test-intprops: disable -Wtype-limits diagnostics
[gnulib.git] / ChangeLog
1 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2
3         test-intprops: disable -Wtype-limits diagnostics
4         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5         diagnostics.  Otherwise, the integer overflow macros generate many
6         diagnostics.  Reported by Jim Meyering in
7         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8
9         intprops: shorten, to pacify gcc -Woverlength-strings
10         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
13         likely to run afoul of C compiler limits for string constant lengths.
14         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15
16 2011-05-24  Eric Blake  <eblake@redhat.com>
17
18         docs: document recently fixed glibc printf bug
19         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20         * doc/posix-functions/printf.texi (printf): Likewise.
21         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23
24         closein-tests: convert to init.sh
25         * modules/closein-tests (Files): Add init.sh
26         * tests/test-closein.sh Use it.
27
28         yesno-tests: convert to init.sh
29         * modules/yesno-tests (Files): Add init.sh.
30         * tests/test-yesno.sh: Use it.
31
32         atexit-tests: ensure reliable exit status
33         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
34         Reported by Bruno Haible.
35
36 2011-05-24  Bruno Haible  <bruno@clisp.org>
37
38         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
40         gl_PREREQ_STRERROR_R invocations from here...
41         * modules/strerror_r-posix (configure.ac): ... to here.
42
43 2011-05-24  Eric Blake  <eblake@redhat.com>
44
45         strerror_r: fix missing header
46         * lib/strerror_r.c: Avoid compiler warning about snprintf.
47
48         strerror_r: fix AIX test failures
49         * lib/strerror_r.c (strerror_r): Convert silent truncation to
50         ERANGE failure.
51
52         strerror_r: fix Solaris test failures
53         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54         failures.
55         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
56
57         strerror_r: enforce POSIX recommendations
58         * lib/strerror_r.c (safe_copy): New helper method.
59         (strerror_r): Guarantee a non-empty string.
60         * tests/test-strerror_r.c (main): Enhance tests to incorporate
61         recent POSIX rulings and to match our strerror guarantees.
62         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
63
64 2011-05-24  Jim Meyering  <meyering@redhat.com>
65
66         test-perror2.c: avoid warning about unused variable
67         * tests/test-perror2.c (main): Remove declaration of unused "fp".
68
69 2011-05-24  Eric Blake  <eblake@redhat.com>
70
71         perror: avoid spurious test failure on HP-UX
72         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
73
74         tests: fix logic bug in init.sh
75         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
76         shell.
77
78 2011-05-24  Jim Meyering  <meyering@redhat.com>
79
80         utimensat: do not reference an out-of-scope buffer
81         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
82         declared in an inner scope, yet "times" would be dereferenced outside
83         the scope in which "ts" was valid.
84         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
85         of ts[2] "out/up", so that the use of aliased "times" (via
86         "times = ts;") does not end up referencing an out-of-scope "ts"
87
88         opendir-safer.c: don't clobber errno; don't close negative FD
89         * lib/opendir-safer.c (opendir_safer):
90         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
91         file descriptor, and more importantly, don't clobber the
92         offending errno value with EINVAL.  Before, upon failure
93         of dup_safer, we would pass the negative file descriptor to
94         fdopendir, which would clobber errno.
95
96 2011-05-23  Bruno Haible  <bruno@clisp.org>
97
98         idcache: Fix module description.
99         * modules/idcache (Include): Set to "idcache.h".
100
101 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
102
103         gnulib-tool: fix portability problem with MacOS sed
104         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
105         before the "}".  Problem reported by Leo in
106         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
107         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
108         sed_extract_condition1, sed_extract_condition2.
109
110 2011-05-23  Bruno Haible  <bruno@clisp.org>
111
112         hash: Simplify autoconf macro.
113         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
114
115 2011-05-23  Bruno Haible  <bruno@clisp.org>
116
117         getugroups: Fix module description.
118         * modules/getugroups (Include): Set to "getugroups.h".
119
120 2011-05-23  Bruno Haible  <bruno@clisp.org>
121
122         linkat: Simplify autoconf macro.
123         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
124
125 2011-05-23  Bruno Haible  <bruno@clisp.org>
126             Eric Blake  <eblake@redhat.com>
127
128         linkat, renameat: Update dependencies.
129         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
130         * modules/linkat (Depends-on): Likewise. Remove also readlink,
131         symlinkat.
132
133 2011-05-23  Jim Meyering  <meyering@redhat.com>
134
135         maint.mk: more tight_scope improvements
136         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
137         (_gl_TS_headers): Define only in if-0'd block.
138         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
139         sometimes we must *not* use it.  Adjust uses accordingly.
140         (sc_tight_scope): Use much simpler grep-based test to determine
141         whether we skip this rule.
142
143         maint.mk: generalize/improve the tight-scope rule
144         * top/maint.mk: Emit a warning when the test is skipped.
145         (_gl_TS_dir): Add $(srcdir)/ prefix.
146         (_gl_TS_function_match): Simplify, rather than trying
147         to enumerate common types.  Otherwise, it would fail to match an
148         "extern unsigned char const *" declaration in idutils.
149         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
150         a way to support use of that type of macro.
151         (_gl_TS_var_match): Simplify regexp.
152         (_gl_TS_obj_files): New configurable variable.
153         (_gl_TS_headers): Likewise.
154
155 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
156
157         verify: fix bug when gnulib <assert.h> is also included
158         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
159         is defined, not if _GL_STATIC_ASSERT_H is not defined.
160         Perhaps there's a better way, but this fixes the immediate problem.
161         Problem reported by Bruno Haible in
162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
163
164 2011-05-22  Bruno Haible  <bruno@clisp.org>
165
166         xgetcwd: Simplify autoconf macro.
167         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
168
169 2011-05-22  Bruno Haible  <bruno@clisp.org>
170
171         New module 'mktime-internal'.
172         * modules/mktime-internal: New file.
173         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
174         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
175         mktime_internal as a C macro if libc has __mktime_internal.
176         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
177         conditions.
178         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
179
180 2011-05-22  Bruno Haible  <bruno@clisp.org>
181
182         timegm: Correct mktime replacement statements.
183         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
184         defining mktime as a C macro. This completes a 2009-07-28 commit.
185
186 2011-05-22  Bruno Haible  <bruno@clisp.org>
187
188         timegm: Simplify autoconf macro.
189         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
190
191 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
192
193         clock-time: change to LGPLv2+.
194         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
195         BSD-like but we have no mark for that; this is good enough for now.
196
197 2011-05-21  Bruno Haible  <bruno@clisp.org>
198
199         strerror_r: Fix comments.
200         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
201
202 2011-05-21  Bruno Haible  <bruno@clisp.org>
203
204         relocatable-prog-wrapper: Fix possible link error.
205         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
206         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
207         (gl_FUNC_SETENV): ... to here.
208         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
209         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
210
211 2011-05-21  Bruno Haible  <bruno@clisp.org>
212
213         relocatable-prog-wrapper: Assume strerror() exists.
214         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
215         m4/strerror.m4.
216         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
217         * lib/relocwrapper.c: Remove mention of strerror module.
218         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
219         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
220         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
221         C macro.
222
223 2011-05-21  Bruno Haible  <bruno@clisp.org>
224
225         select: Simplify replacement idiom.
226         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
227         Win32 platforms.
228         * lib/sys_select.in.h (select): Simplify accordingly.
229         * modules/select (Depends-on): Likewise.
230
231 2011-05-21  Bruno Haible  <bruno@clisp.org>
232
233         mkdir-p: Simplify autoconf macro.
234         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
235         gl_FUNC_LCHOWN.
236
237 2011-05-21  Eric Blake  <eblake@redhat.com>
238
239         strerror_r: avoid clobbering strerror on cygwin
240         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
241         fall back instead to sys_errlist.
242         * modules/strerror (configure.ac): Add witness.
243         * tests/test-strerror_r.c (main): Enhance test.
244         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
245         * tests/test-perror2.c (main): Free memory before exit.
246
247 2011-05-21  Bruno Haible  <bruno@clisp.org>
248
249         mkdtemp: Use gnulib naming conventions.
250         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
251         * modules/mkdtemp (configure.ac): Update.
252
253 2011-05-20  Eric Blake  <eblake@redhat.com>
254
255         strerror_r: avoid corrupting errno on Solaris
256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
257         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
258
259         strerror_r: avoid compiler warning
260         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
261
262         strerror_r: simplify AIX code
263         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
264
265         test-perror: avoid spurious failure on FreeBSD
266         * modules/perror-tests (Depends-on): Add strerror, now that
267         strerror_r no longer pulls it in.
268
269 2011-05-20  Bruno Haible  <bruno@clisp.org>
270
271         strerror_r-posix: Remove unused dependencies.
272         * modules/strerror_r-posix (Depends-on): Remove strerror.
273         Reported by Eric Blake.
274
275 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
276
277         intprops: remove assumption about A|B representation
278         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
279         is a valid integer if both A and B are.  Although this is true for
280         all known practical hosts, the C standard doesn't guarantee it,
281         and the code need not assume it.  Also, this change may work around
282         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
284
285 2011-05-20  Eric Blake  <eblake@redhat.com>
286
287         perror: work around FreeBSD bug
288         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
289         is broken.  Move AC_LIBOBJ...
290         * modules/perror (configure.ac): Here.
291         * doc/posix-functions/perror.texi (perror): Document this.
292         * tests/test-perror2.c (main): Enhance test.
293
294         test-perror: check for strerror interactions
295         * tests/macros.h (STREQ): Add macro.
296         * modules/perror-tests (Files): Add second test.
297         * tests/test-perror2.c (main): New file.
298         * doc/posix-functions/perror.texi (perror): Document glibc bug.
299
300         test-perror: rewrite to use init script
301         * modules/perror-tests (Files): Add init.sh.
302         * tests/test-perror.sh: Use temporary directory.
303
304 2011-05-20  Jim Meyering  <meyering@redhat.com>
305
306         maint: replace misused "a" with "an"
307         * doc/intprops.texi: "a integer"
308         * doc/regex.texi: "a explanation"
309         * lib/alignof.h: "a object"
310         * lib/argmatch.h: "a explanation"
311         * lib/argp-help.c: "a option" and "a OPTION_DOC"
312         * lib/stdint.in.h: "a integer"
313         * lib/userspec.c: "a owner"
314         * doc/gnulib.texi: Fix "a idea", and reword.
315
316 2011-05-19  Jim Meyering  <meyering@redhat.com>
317
318         maint: correct misuse of "a" and "an"
319         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
320         * lib/argp-help.c: "an docum...": s/an/a/
321         * lib/argp-parse.c: "An vector": s/An/A/
322         * lib/execute.c: "an native": s/an/a/
323         * lib/spawn-pipe.c: Likewise.
324         * lib/gc.h: "an Gc_rc": s/an/a/
325         * lib/unigbrk.in.h: "an grapheme": s/an/a/
326         * lib/fts.c: "an stat.st_dev": s/an/a/
327
328 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
329
330         intprops-tests: work around HP-UX 11.23 cc bug with constants
331         * tests/test-intprops.c (VERIFY): New macro.
332         (main): Use it, instead of verify, to work around the compiler bug; see
333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
334
335         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
336         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
337         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
338         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
339         (_GL_REMAINDER_OVERFLOW): Use it.
340
341         intprops-tests: revert unsigned part of previous change
342         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
343         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
344         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
346
347 2011-05-19  Bruno Haible  <bruno@clisp.org>
348
349         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
350         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
351         strerror_r() returned without filling the buffer.
352         Reported by Eric Blake.
353
354 2011-05-19  Eric Blake  <eblake@redhat.com>
355
356         strerror_r: guarantee unchanged errno
357         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
358         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
359         failure.
360         * tests/test-strerror_r.c (main): Enhance test.
361
362 2011-05-19  Bruno Haible  <bruno@clisp.org>
363
364         strerror_r: Reorder #if blocks.
365         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
366         for consistency with the previous commit.
367
368 2011-05-19  Bruno Haible  <bruno@clisp.org>
369
370         perror: Avoid clobbering the strerror buffer when possible.
371         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
372         * lib/strerror.c: Include it.
373         * modules/strerror (Files): Add lib/strerror-impl.h.
374         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
375         (my_strerror): New function, defined through lib/strerror-impl.h.
376         (perror): Use it instead of strerror.
377         * modules/perror (Files): Add lib/strerror-impl.h.
378         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
379
380 2011-05-19  Eric Blake  <eblake@redhat.com>
381
382         strerror_r: fix on newer cygwin
383         * lib/strerror_r.c (strerror_r): Cygwin now has
384         __xpg_strerror_r, use it.
385
386 2011-05-19  Bruno Haible  <bruno@clisp.org>
387
388         strerror_r: Avoid clobbering the strerror buffer when possible.
389         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
390         (sys_nerr, sys_errlist): New declarations.
391         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
392         HP-UX, native Win32, IRIX, and 32-bit Solaris.
393         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
394
395 2011-05-19  Bruno Haible  <bruno@clisp.org>
396
397         strerror_r: Fix test failure on mingw.
398         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
399         EXTEND_STRERROR_R.
400         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
401         macros from errno.in.h instead.
402
403 2011-05-19  Eric Blake  <eblake@redhat.com>
404
405         strerror: relax test for Solaris
406         * tests/test-strerror.c (main): Permit Solaris behavior.
407         * tests/test-strerror_r.c (main): Likewise.
408
409         strerror: enforce POSIX ruling on strerror(0)
410         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
411         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
412         * lib/strerror_r.c (rpl_strerror_r): Work around it.
413         * doc/posix-functions/strerror.texi (strerror): Document it.
414         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
415         * tests/test-strerror.c (main): Strengthen test.
416         * tests/test-strerror_r.c (main): Likewise.
417
418 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
419
420         intprop-tests: port to older and more-pedantic compilers
421         * modules/intprops-tests (Files): Add tests/macros.h.
422         * tests/test-intprops.c: Include macros.h.
423         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
424         it's no longer documented to expand to an integer constant expression.
425         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
426         argument is floating point, as it's no longer documented to expand
427         to an integer constant expression in that case.
428         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
429         compiler bugs reported by Bruno Haible.  See
430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
431         (U0, U1): New constants, to work around the same bugs.  Also,
432         in tests, use e.g., "(unsigned int) 39" rather than "39u".
433
434         intprops: work around C compiler bugs
435         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
436         bug in Sun C 5.11 2010/08/13 and other compilers; see
437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
438
439         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
440         * doc/intprops.texi (Integer Type Determination): Fix
441         documentation for TYPE_IS_INTEGER: it returns an constant
442         expression, not an integer constant expression.  Fix doc for
443         TYPE_SIGNED: it returns an integer constant expression only if its
444         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
445         hardly worth documented that way....)
446
447 2011-05-18  Bruno Haible  <bruno@clisp.org>
448
449         strerror_r: Avoid clobbering the strerror buffer when possible.
450         * lib/strerror_r.c (strerror_r): Merge the three implementations.
451         Handle gnulib defined errno values here. When strerror() returns NULL
452         or an empty string, return EINVAL.
453         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
454         gnulib defined errno values here.
455         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
456
457 2011-05-18  Eric Blake  <eblake@redhat.com>
458
459         fnmatch: avoid compiler warning
460         * lib/fnmatch_loop.c (FCT): Use correct type.
461         Reported by Matthias Bolte.
462
463 2011-05-13  Jim Meyering  <meyering@redhat.com>
464
465         maint.mk: three new prohibit_<HDR>_without_use rules
466         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
467         (sc_prohibit_stdio-safer_without_use): Likewise.
468         (sc_prohibit_xfreopen_without_use): Likewise.
469
470 2011-05-17  Jim Meyering  <meyering@redhat.com>
471
472         announce-gen: fail if the NEWS delta is empty
473         If there's nothing noteworthy in NEWS, then either you forgot
474         or you shouldn't be releasing.
475         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
476
477 2011-05-17  Pádraig Brady <P@draigBrady.com>
478
479         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
480         reserved symbols starting with double underscore from the check.
481
482 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
483
484         intprops: add doc
485         * doc/intprops.texi: New file, documenting intprops.
486         * doc/gnulib.texi (Particular Modules): Include it.
487
488         verify: add doc to gnulib manual and fix example
489         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
490         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
491         (Compile-time Assertions): Fix example so it can't overflow.
492
493 2011-05-17  Jim Meyering  <meyering@redhat.com>
494
495         warnings.m4: don't usurp save_CPPFLAGS variable name
496         * m4/warnings.m4: Prefix local temporary variable name with gl_.
497
498         doc: fix typo
499         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
500
501 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
502             Bruno Haible  <bruno@clisp.org>
503
504         doc: Tweak recent change.
505         * README (Portability guidelines): Tweak new text.
506         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
507         Interix 6.1.
508
509 2011-05-16  Eric Blake  <eblake@redhat.com>
510
511         inttypes: avoid autoconf warning
512         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
513         * m4/stdint.m4 (gl_STDINT_H): Likewise.
514
515 2011-05-16  Sam Steingold <sds@gnu.org>
516         and Eric Blake  <eblake@redhat.com>
517
518         vc-list-files: accept multiple directory operands
519         * build-aux/vc-list-files: Iterate over all remaining operands.
520
521 2011-05-16  Bruno Haible  <bruno@clisp.org>
522
523         Fix confusion regarding deprecated modules.
524         * modules/calloc (Status, Notice): Mark module as deprecated, not
525         obsolete.
526         * modules/fnmatch-posix (Status, Notice): Likewise.
527         * modules/getdate (Status, Notice): Likewise.
528         * modules/getopt (Status, Notice): Likewise.
529         * modules/malloc (Status, Notice): Likewise.
530         * modules/pipe (Status, Notice): Likewise.
531         * modules/realloc (Status, Notice): Likewise.
532         * modules/rename-dest-slash (Status, Notice): Likewise.
533         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
534         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
535         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
536         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
537         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
538
539 2011-05-16  Bruno Haible  <bruno@clisp.org>
540
541         doc: List the target platforms.
542         * doc/gnulib-intro.texi (Target Platforms): New section.
543         * doc/gnulib.texi (Introduction): Update menu.
544         * README (Portability guidelines): Refer to the new section. Update
545         statement about oldest supported environment. Remove rationale why
546         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
547         unportable C89 function.
548         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
549         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
550
551 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
552
553         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
554
555 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
556
557         intprops-tests: new module
558         * modules/intprops-tests, tests/test-intprops.c: New files.
559
560         intprops: add safe, portable integer overflow checking
561         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
562         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
563         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
564         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
565         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
566         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
567         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
568         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
569         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
570         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
571         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
572
573 2011-05-12  James Youngman  <jay@gnu.org>
574
575         Add a test for glibc's Bugzilla bug #12378.
576         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
577         doesn't allow the literal matching of a lone "[" (which is
578         required by POSIX).
579         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
580
581 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
582
583         Sync glibc change fixing Bugzilla bug #12378.
584         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
585         beginning and fall back to matching as normal character if the
586         string ends before the matching ']' is found.  This is what POSIX
587         requires.
588
589 2011-05-13  Eric Blake  <eblake@redhat.com>
590
591         getcwd-lgpl: relax test for FreeBSD
592         * doc/posix-functions/getcwd.texi (getcwd): Document portability
593         issue.
594         * tests/test-getcwd-lgpl.c (main): Relax test.
595         Reported by Matthias Bolte.
596
597 2011-05-11  Eric Blake  <eblake@redhat.com>
598
599         test-fflush: silence compiler warning
600         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
601
602 2011-05-11  Bruno Haible  <bruno@clisp.org>
603
604         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
605         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
606         * modules/canonicalize (Depends-on): Add 'nocrash'.
607         * modules/canonicalize-lgpl (Depends-on): Likewise.
608         * doc/posix-functions/realpath.texi: Update platforms list.
609         Reported by Ryan Schmidt <ryandesign@macports.org>.
610
611 2011-05-11  Bruno Haible  <bruno@clisp.org>
612
613         group-member: Declare function in <unistd.h>.
614         * lib/unistd.in.h (group_member): New declaration.
615         * lib/group-member.h: Remove file.
616         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
617         * tests/test-unistd-c++.cc: Check signature of group_member.
618         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
619         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
620         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
621         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
622         HAVE_GROUP_MEMBER.
623         * modules/group-member (Files): Remove lib/group-member.h.
624         (Depends-on): Add unistd. Specify conditions.
625         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
626         (Include): Change to <unistd.h>.
627         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
628         HAVE_GROUP_MEMBER.
629         * NEWS: Mention the change.
630         * lib/euidaccess.c: Don't include group-member.h.
631
632 2011-05-11  Bruno Haible  <bruno@clisp.org>
633
634         group-member: Document module.
635         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
636         module.
637
638 2011-05-11  Bruno Haible  <bruno@clisp.org>
639
640         fclose: Fix mistake earlier today.
641         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
642
643 2011-05-11  Eric Blake  <eblake@redhat.com>
644
645         fclose: preserve fflush errors
646         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
647         Reported by Jim Meyering.
648
649         bootstrap: support a prereq of 'rpcgen -' on RHEL5
650         * build-aux/bootstrap (check_versions): When no specific version
651         is required, merely check that the app produces an exit status
652         that indicates its existence.
653
654         maint.mk: drop redundant check
655         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
656         the same but better.
657
658 2011-05-11  Bruno Haible  <bruno@clisp.org>
659
660         fclose: Fix possible link error.
661         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
662         unregister_shadow_fd. Improve comments.
663         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
664         Eric Blake.
665
666 2011-05-11  Jim Meyering  <meyering@redhat.com>
667
668         maint.mk: improve "can not" detection and generalize rule name
669         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
670         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
671         Use the same technique as in sc_prohibit_doubled_word, so that
672         we recognize "can not" also when the words are separated by a newline.
673         Suggested by Eric Blake.
674         (perl_filename_lineno_text_): Define.  Factored out of...
675         (prohibit_doubled_word_): ...here.  Use the new definition.
676         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
677         (prohibit_undesirable_word_seq_RE_): New overridable variable.
678         (ignore_undesirable_word_sequence_RE_): New overridable variable.
679
680 2011-05-10  Eric Blake  <eblake@redhat.com>
681
682         fclose: avoid double close race when possible
683         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
684         all but WINDOWS_SOCKETS.
685
686 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
687
688         openat: correct new comment
689         * lib/openat-proc.c (openat_proc_name): Correct the comment.
690
691 2011-05-10  Jim Meyering  <meyering@redhat.com>
692
693         openat: add comments
694         * lib/openat-proc.c (openat_proc_name): Add comments,
695         mostly from Eric Blake.
696
697 2011-05-09  Eric Blake  <eblake@redhat.com>
698
699         openat: reduce syscalls in first probe of /proc
700         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
701         be a directory.  Simplify the probe for .. bugs.
702         * modules/openat (Depends-on): Drop same-inode.
703         Reported by Bastien ROUCARIES.
704
705 2011-05-09  Jim Meyering  <meyering@redhat.com>
706
707         maint.mk: change semantics/name of tight_scope variables
708         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
709         Rename variables to align with semantics that make them more useful.
710
711         maint.mk: tweak new rule's name not to impinge
712         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
713         (sc_tight_scope): Use new rule name rather than $@-0.
714
715         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
716         * top/maint.mk (sc_tight_scope): New rule.
717         (sc_tight_scope-0): New rule, ifdef'd out.
718         (_gl_TS_dir): Default.
719         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
720         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
721
722 2011-05-09  Simon Josefsson  <simon@josefsson.org>
723
724         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
725         Haible <bruno@clisp.org>.
726
727 2011-05-08  Bruno Haible  <bruno@clisp.org>
728
729         Comments.
730         * m4/isnanf.m4: Add comment.
731         * m4/isnanl.m4: Likewise.
732
733 2011-05-08  Bruno Haible  <bruno@clisp.org>
734
735         glob: Remove obsolete macro.
736         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
737
738 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
739
740         intprops: Sun C 5.11 supports __typeof__
741         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
742         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
743         which is new.
744         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
745
746         intprops: switch to usual gnulib indenting and naming
747         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
748         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
749
750         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
751
752 2011-05-08  Jim Meyering  <meyering@redhat.com>
753
754         maint.mk: suppress "Entering/Leaving directory" diag in announcement
755         * top/maint.mk (release-prep): Use make's --no-print-directory
756         option when generating the announcement.  This eliminates the
757         pesky "make[2]: Entering/Leaving directory" diagnostics in the
758         generated announcement template.
759
760 2011-05-08  Bruno Haible  <bruno@clisp.org>
761
762         tzset: Fix gettimeofday wrapper on Solaris 2.6.
763         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
764         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
765
766 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
767
768         ignore-value, verify: Omit include files from lib_SOURCES.
769         * modules/ignore-value, modules/verify (Makefile.am):
770         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
771         that leads Automake to duplicate use of am__objects_... variables
772         in Makefile.in.  See
773         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
774
775 2011-05-07  Bruno Haible  <bruno@clisp.org>
776
777         fclose: Simplify autoconf macro.
778         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
779         defined.
780
781 2011-05-07  Bruno Haible  <bruno@clisp.org>
782
783         canonicalize-lgpl: Fix autoconf macro ordering bug.
784         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
785         gl_STDLIB_H_DEFAULTS.
786
787 2011-05-06  Eric Blake  <eblake@redhat.com>
788
789         maintainer-makefile: make sc_po_check easier to tune
790         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
791         to probe for strings, such as an alternate location for gnulib.
792
793         fclose: guarantee behavior on seekable stdin
794         * modules/fclose (Depends-on): Add fflush.
795         * doc/posix-functions/fclose.texi (fclose): Document this.
796         * tests/test-fclose.c (main): Make test for this unconditional.
797
798 2011-05-06  Bruno Haible  <bruno@clisp.org>
799
800         fflush, fpurge: Relicense under LGPLv2+.
801         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
802         * modules/fpurge (License): Likewise.
803         With permission from Eric Blake and Jim Meyering.
804         Suggested by Eric Blake.
805
806 2011-05-06  Karl Berry  <karl@gnu.org>
807
808         * MODULES.html.sh (func_all_modules): remove exit.
809
810 2011-05-06  Jim Meyering  <meyering@redhat.com>
811
812         maint.mk: use info-gnu@ as the default only for a stable release
813         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
814         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
815         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
817
818 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
819
820         assert-h: new module, which supports C1X-style static_assert
821         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
822         * lib/verify.h: Revamp so that this can be copied into assert.h,
823         while retaining the ability to use it standalone as before.
824         Rename private identifiers so as not to encroach on the
825         standard C namespace, since this is now used by assert.h.
826         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
827         the old verify_true.
828         (_GL_VERIFY_TRUE): New macro, with much of the contents of
829         the old verify_true.  Use _GL_VERIFY_TYPE.
830         (_GL_VERIFY): New macro, with much of the contents of the old verify.
831         (static_assert): New macro, if _GL_STATIC_ASSERT_H
832         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
833         defined when this file is copied into the replacement assert.h.
834         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
835         and _Static_assert is not built in.
836         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
837         defined, and use the new macros mentioned above.
838         * doc/posix-headers/assert.texi: Document this.
839
840 2011-05-05  Bruno Haible  <bruno@clisp.org>
841
842         fclose, fflush: Respect rules for use of AC_LIBOBJ.
843         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
844         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
845         gl_REPLACE_FCLOSE here.
846         * modules/fflush (Depends-on): Remove fclose.
847         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
848         combination with module 'fclose'.
849
850 2011-05-05  Bruno Haible  <bruno@clisp.org>
851
852         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
853         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
854         gl_FUNC_FFLUSH.
855         (gl_FUNC_FFLUSH): Use it.
856         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
857         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
858         gl_REPLACE_FSEEKO here.
859
860 2011-05-05  Bruno Haible  <bruno@clisp.org>
861
862         tzset: Relicense under LGPL.
863         * modules/tzset (License): Change to LGPL.
864         No agreement needed; it's a no-op.
865
866         strtoimax, strtoumax: Relicense under LGPL.
867         * modules/strtoimax (License): Change to LGPL.
868         * modules/strtoumax (License): Likewise.
869         With permission from Jim Meyering, Paul Eggert:
870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
872
873         getgroups: Relicense under LGPL.
874         * modules/getgroups (License): Change to LGPL.
875         With permission from Jim Meyering, Paul Eggert, Eric Blake:
876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
879
880         nanosleep: Relicense under LGPL.
881         * modules/nanosleep (License): Change to LGPL.
882         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
883         Haible:
884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
888
889         futimens: Relicense under LGPL.
890         * modules/futimens (License): Change to LGPL.
891         With permission from Eric Blake:
892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
893
894         fflush: Relicense under LGPL.
895         * modules/fflush (License): Change to LGPL.
896         With permission from Eric Blake, Bruno Haible, Jim Meyering:
897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
900
901         tmpfile: Relicense under LGPL.
902         * modules/tmpfile (License): Change to LGPL.
903         With permission from Ben Pfaff:
904         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
905
906         isfinite: Relicense under LGPL.
907         * modules/isfinite (License): Change to LGPL.
908         With permission from Ben Pfaff, Bruno Haible:
909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
911
912         acosl..tanl: Relicense under LGPL.
913         * modules/acosl (License): Change to LGPL.
914         * modules/asinl (License): Likewise.
915         * modules/atanl (License): Likewise.
916         * modules/cosl (License): Likewise.
917         * modules/expl (License): Likewise.
918         * modules/logl (License): Likewise.
919         * modules/sinl (License): Likewise.
920         * modules/sqrtl (License): Likewise.
921         * modules/tanl (License): Likewise.
922         Source code originally from glibc and Paolo Bonzini. Agreements:
923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
925
926 2011-05-05  Bruno Haible  <bruno@clisp.org>
927
928         signal: Define sighandler_t.
929         * lib/signal.in.h (sighandler_t): New type.
930         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
931         whether sighandler_t is defined.
932         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
933         * modules/signal (Depends-on): Add extensions.
934         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
935         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
936         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
937
938 2011-05-05  Eric Blake  <eblake@redhat.com>
939
940         maint: remove useless REPLACE_*_H macros
941         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
942         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
943         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
944         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
945         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
946         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
947         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
948         * m4/btowc.m4: Update callers.
949         * m4/dirfd.m4: Likewise.
950         * m4/duplocale.m4: Likewise.
951         * m4/fchdir.m4: Likewise.
952         * m4/fdopendir.m4: Likewise.
953         * m4/inet_ntop.m4: Likewise.
954         * m4/inet_pton.m4: Likewise.
955         * m4/ioctl.m4: Likewise.
956         * m4/mbrlen.m4: Likewise.
957         * m4/mbrtowc.m4: Likewise.
958         * m4/mbsinit.m4: Likewise.
959         * m4/mbsnrtowcs.m4: Likewise.
960         * m4/mbsrtowcs.m4: Likewise.
961         * m4/poll.m4: Likewise.
962         * m4/setlocale.m4: Likewise.
963         * m4/wcrtomb.m4: Likewise.
964         * m4/wcsnrtombs.m4: Likewise.
965         * m4/wcsrtombs.m4: Likewise.
966         * m4/wctob.m4: Likewise.
967         * m4/wcwidth.m4: Likewise.
968         * modules/posix_spawn: Likewise.
969         * modules/posix_spawn_file_actions_addclose: Likewise.
970         * modules/posix_spawn_file_actions_adddup2: Likewise.
971         * modules/posix_spawn_file_actions_addopen: Likewise.
972         * modules/posix_spawn_file_actions_destroy: Likewise.
973         * modules/posix_spawn_file_actions_init: Likewise.
974         * modules/posix_spawnattr_destroy: Likewise.
975         * modules/posix_spawnattr_getflags: Likewise.
976         * modules/posix_spawnattr_getpgroup: Likewise.
977         * modules/posix_spawnattr_getschedparam: Likewise.
978         * modules/posix_spawnattr_getschedpolicy: Likewise.
979         * modules/posix_spawnattr_getsigdefault: Likewise.
980         * modules/posix_spawnattr_getsigmask: Likewise.
981         * modules/posix_spawnattr_init: Likewise.
982         * modules/posix_spawnattr_setflags: Likewise.
983         * modules/posix_spawnattr_setpgroup: Likewise.
984         * modules/posix_spawnattr_setschedparam: Likewise.
985         * modules/posix_spawnattr_setschedpolicy: Likewise.
986         * modules/posix_spawnattr_setsigdefault: Likewise.
987         * modules/posix_spawnattr_setsigmask: Likewise.
988         * modules/posix_spawnp: Likewise.
989
990 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
991
992         Add option to do-release-commit-and-tag to specify branch.
993         * build-aux/do-release-commit-and-tag: Add --branch.
994
995 2011-05-03  Bruno Haible  <bruno@clisp.org>
996
997         Avoid unnecessary compilation units, through conditional dependencies.
998         * modules/accept (Depends-on): Add conditions to the dependencies.
999         * modules/acosl (Depends-on): Likewise.
1000         * modules/argz (Depends-on): Likewise.
1001         * modules/asinl (Depends-on): Likewise.
1002         * modules/atanl (Depends-on): Likewise.
1003         * modules/atoll (Depends-on): Likewise.
1004         * modules/bind (Depends-on): Likewise.
1005         * modules/btowc (Depends-on): Likewise.
1006         * modules/canonicalize-lgpl (Depends-on): Likewise.
1007         * modules/ceil (Depends-on): Likewise.
1008         * modules/ceilf (Depends-on): Likewise.
1009         * modules/ceill (Depends-on): Likewise.
1010         * modules/chdir-long (Depends-on): Likewise.
1011         * modules/chown (Depends-on): Likewise.
1012         * modules/close (Depends-on): Likewise.
1013         * modules/connect (Depends-on): Likewise.
1014         * modules/cosl (Depends-on): Likewise.
1015         * modules/dirfd (Depends-on): Likewise.
1016         * modules/dprintf (Depends-on): Likewise.
1017         * modules/dprintf-posix (Depends-on): Likewise.
1018         * modules/error (Depends-on): Likewise.
1019         * modules/euidaccess (Depends-on): Likewise.
1020         * modules/expl (Depends-on): Likewise.
1021         * modules/faccessat (Depends-on): Likewise.
1022         * modules/fchdir (Depends-on): Likewise.
1023         * modules/fclose (Depends-on): Likewise.
1024         * modules/fcntl (Depends-on): Likewise.
1025         * modules/fdopendir (Depends-on): Likewise.
1026         * modules/fflush (Depends-on): Likewise.
1027         * modules/floor (Depends-on): Likewise.
1028         * modules/floorf (Depends-on): Likewise.
1029         * modules/floorl (Depends-on): Likewise.
1030         * modules/fnmatch (Depends-on): Likewise.
1031         * modules/fopen (Depends-on): Likewise.
1032         * modules/fprintf-posix (Depends-on): Likewise.
1033         * modules/frexp (Depends-on): Likewise.
1034         * modules/frexp-nolibm (Depends-on): Likewise.
1035         * modules/frexpl (Depends-on): Likewise.
1036         * modules/frexpl-nolibm (Depends-on): Likewise.
1037         * modules/fseek (Depends-on): Likewise.
1038         * modules/fsusage (Depends-on): Likewise.
1039         * modules/ftell (Depends-on): Likewise.
1040         * modules/ftello (Depends-on): Likewise.
1041         * modules/futimens (Depends-on): Likewise.
1042         * modules/getcwd (Depends-on): Likewise.
1043         * modules/getcwd-lgpl (Depends-on): Likewise.
1044         * modules/getdelim (Depends-on): Likewise.
1045         * modules/getdomainname (Depends-on): Likewise.
1046         * modules/getgroups (Depends-on): Likewise.
1047         * modules/gethostname (Depends-on): Likewise.
1048         * modules/getline (Depends-on): Likewise.
1049         * modules/getlogin_r (Depends-on): Likewise.
1050         * modules/getopt-posix (Depends-on): Likewise.
1051         * modules/getpeername (Depends-on): Likewise.
1052         * modules/getsockname (Depends-on): Likewise.
1053         * modules/getsockopt (Depends-on): Likewise.
1054         * modules/getsubopt (Depends-on): Likewise.
1055         * modules/getusershell (Depends-on): Likewise.
1056         * modules/glob (Depends-on): Likewise.
1057         * modules/grantpt (Depends-on): Likewise.
1058         * modules/iconv_open (Depends-on): Likewise.
1059         * modules/iconv_open-utf (Depends-on): Likewise.
1060         * modules/inet_ntop (Depends-on): Likewise.
1061         * modules/inet_pton (Depends-on): Likewise.
1062         * modules/ioctl (Depends-on): Likewise.
1063         * modules/isapipe (Depends-on): Likewise.
1064         * modules/isfinite (Depends-on): Likewise.
1065         * modules/isinf (Depends-on): Likewise.
1066         * modules/lchown (Depends-on): Likewise.
1067         * modules/ldexpl (Depends-on): Likewise.
1068         * modules/link (Depends-on): Likewise.
1069         * modules/linkat (Depends-on): Likewise.
1070         * modules/listen (Depends-on): Likewise.
1071         * modules/logl (Depends-on): Likewise.
1072         * modules/lstat (Depends-on): Likewise.
1073         * modules/mbrlen (Depends-on): Likewise.
1074         * modules/mbrtowc (Depends-on): Likewise.
1075         * modules/mbsinit (Depends-on): Likewise.
1076         * modules/mbsnrtowcs (Depends-on): Likewise.
1077         * modules/mbsrtowcs (Depends-on): Likewise.
1078         * modules/mbtowc (Depends-on): Likewise.
1079         * modules/memcmp (Depends-on): Likewise.
1080         * modules/mkdir (Depends-on): Likewise.
1081         * modules/mkdtemp (Depends-on): Likewise.
1082         * modules/mkfifo (Depends-on): Likewise.
1083         * modules/mkfifoat (Depends-on): Likewise.
1084         * modules/mknod (Depends-on): Likewise.
1085         * modules/mkostemp (Depends-on): Likewise.
1086         * modules/mkostemps (Depends-on): Likewise.
1087         * modules/mkstemp (Depends-on): Likewise.
1088         * modules/mkstemps (Depends-on): Likewise.
1089         * modules/mktime (Depends-on): Likewise.
1090         * modules/nanosleep (Depends-on): Likewise.
1091         * modules/open (Depends-on): Likewise.
1092         * modules/openat (Depends-on): Likewise.
1093         * modules/perror (Depends-on): Likewise.
1094         * modules/poll (Depends-on): Likewise.
1095         * modules/popen (Depends-on): Likewise.
1096         * modules/posix_spawn (Depends-on): Likewise.
1097         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1098         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1099         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1100         * modules/posix_spawnp (Depends-on): Likewise.
1101         * modules/pread (Depends-on): Likewise.
1102         * modules/printf-posix (Depends-on): Likewise.
1103         * modules/ptsname (Depends-on): Likewise.
1104         * modules/putenv (Depends-on): Likewise.
1105         * modules/pwrite (Depends-on): Likewise.
1106         * modules/readline (Depends-on): Likewise.
1107         * modules/readlink (Depends-on): Likewise.
1108         * modules/readlinkat (Depends-on): Likewise.
1109         * modules/recv (Depends-on): Likewise.
1110         * modules/recvfrom (Depends-on): Likewise.
1111         * modules/regex (Depends-on): Likewise.
1112         * modules/remove (Depends-on): Likewise.
1113         * modules/rename (Depends-on): Likewise.
1114         * modules/renameat (Depends-on): Likewise.
1115         * modules/rmdir (Depends-on): Likewise.
1116         * modules/round (Depends-on): Likewise.
1117         * modules/roundf (Depends-on): Likewise.
1118         * modules/roundl (Depends-on): Likewise.
1119         * modules/rpmatch (Depends-on): Likewise.
1120         * modules/select (Depends-on): Likewise.
1121         * modules/send (Depends-on): Likewise.
1122         * modules/sendto (Depends-on): Likewise.
1123         * modules/setenv (Depends-on): Likewise.
1124         * modules/setlocale (Depends-on): Likewise.
1125         * modules/setsockopt (Depends-on): Likewise.
1126         * modules/shutdown (Depends-on): Likewise.
1127         * modules/sigaction (Depends-on): Likewise.
1128         * modules/signbit (Depends-on): Likewise.
1129         * modules/sigprocmask (Depends-on): Likewise.
1130         * modules/sinl (Depends-on): Likewise.
1131         * modules/sleep (Depends-on): Likewise.
1132         * modules/snprintf (Depends-on): Likewise.
1133         * modules/snprintf-posix (Depends-on): Likewise.
1134         * modules/socket (Depends-on): Likewise.
1135         * modules/sprintf-posix (Depends-on): Likewise.
1136         * modules/sqrtl (Depends-on): Likewise.
1137         * modules/stat (Depends-on): Likewise.
1138         * modules/strchrnul (Depends-on): Likewise.
1139         * modules/strdup-posix (Depends-on): Likewise.
1140         * modules/strerror (Depends-on): Likewise.
1141         * modules/strerror_r-posix (Depends-on): Likewise.
1142         * modules/strndup (Depends-on): Likewise.
1143         * modules/strnlen (Depends-on): Likewise.
1144         * modules/strptime (Depends-on): Likewise.
1145         * modules/strsep (Depends-on): Likewise.
1146         * modules/strsignal (Depends-on): Likewise.
1147         * modules/strstr-simple (Depends-on): Likewise.
1148         * modules/strtod (Depends-on): Likewise.
1149         * modules/strtoimax (Depends-on): Likewise.
1150         * modules/strtok_r (Depends-on): Likewise.
1151         * modules/strtoumax (Depends-on): Likewise.
1152         * modules/symlink (Depends-on): Likewise.
1153         * modules/symlinkat (Depends-on): Likewise.
1154         * modules/tanl (Depends-on): Likewise.
1155         * modules/tcgetsid (Depends-on): Likewise.
1156         * modules/tmpfile (Depends-on): Likewise.
1157         * modules/trunc (Depends-on): Likewise.
1158         * modules/truncf (Depends-on): Likewise.
1159         * modules/truncl (Depends-on): Likewise.
1160         * modules/uname (Depends-on): Likewise.
1161         * modules/unlink (Depends-on): Likewise.
1162         * modules/unlockpt (Depends-on): Likewise.
1163         * modules/unsetenv (Depends-on): Likewise.
1164         * modules/usleep (Depends-on): Likewise.
1165         * modules/utimensat (Depends-on): Likewise.
1166         * modules/vasprintf (Depends-on): Likewise.
1167         * modules/vdprintf (Depends-on): Likewise.
1168         * modules/vdprintf-posix (Depends-on): Likewise.
1169         * modules/vfprintf-posix (Depends-on): Likewise.
1170         * modules/vprintf-posix (Depends-on): Likewise.
1171         * modules/vsnprintf (Depends-on): Likewise.
1172         * modules/vsnprintf-posix (Depends-on): Likewise.
1173         * modules/vsprintf-posix (Depends-on): Likewise.
1174         * modules/wcrtomb (Depends-on): Likewise.
1175         * modules/wcscasecmp (Depends-on): Likewise.
1176         * modules/wcscspn (Depends-on): Likewise.
1177         * modules/wcsdup (Depends-on): Likewise.
1178         * modules/wcsncasecmp (Depends-on): Likewise.
1179         * modules/wcsnrtombs (Depends-on): Likewise.
1180         * modules/wcspbrk (Depends-on): Likewise.
1181         * modules/wcsrtombs (Depends-on): Likewise.
1182         * modules/wcsspn (Depends-on): Likewise.
1183         * modules/wcsstr (Depends-on): Likewise.
1184         * modules/wcstok (Depends-on): Likewise.
1185         * modules/wcswidth (Depends-on): Likewise.
1186         * modules/wctob (Depends-on): Likewise.
1187         * modules/wctomb (Depends-on): Likewise.
1188         * modules/wctype (Depends-on): Likewise.
1189         * modules/wcwidth (Depends-on): Likewise.
1190         * modules/write (Depends-on): Likewise.
1191
1192 2011-05-03  Bruno Haible  <bruno@clisp.org>
1193
1194         Support for conditional dependencies.
1195         * doc/gnulib.texi (Module description): Document the syntax of
1196         conditional dependencies.
1197         * gnulib-tool: New option --conditional-dependencies.
1198         (func_usage): Document it.
1199         (cond_dependencies): New variable.
1200         (func_get_automake_snippet_conditional,
1201         func_get_automake_snippet_unconditional): New functions, extracted from
1202         func_get_automake_snippet.
1203         (func_get_automake_snippet): Use them.
1204         (sed_first_32_chars): New variable.
1205         (func_module_shellfunc_name): New function.
1206         (func_module_shellvar_name): New function.
1207         (func_module_conditional_name): New function.
1208         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1209         func_cond_module_condition): New functions.
1210         (func_modules_transitive_closure): Add support for conditional
1211         dependencies.
1212         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1213         conditional automake snippet in an automake conditional.
1214         (func_emit_autoconf_snippets): Emit shell functions that contain the
1215         code for conditional modules.
1216         (func_import, func_create_testdir): Update specification.
1217
1218 2011-05-03  Eric Blake  <eblake@redhat.com>
1219
1220         test-getaddrinfo: report error information
1221         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1222
1223 2011-05-03  Jim Meyering  <meyering@redhat.com>
1224
1225         bootstrap: avoid build failure when $GZIP is set
1226         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1227         program name.  If defined at all, it is supposed to list gzip options.
1228         Reported by Alan Curry in http://debbugs.gnu.org/8609
1229
1230 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1231
1232         readme-release: new module with release instructions
1233         * modules/readme-release: New module.
1234         * top/README-release: New file, from coreutils, grep, diffutils.
1235         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1236
1237 2011-05-02  Eric Blake  <eblake@redhat.com>
1238
1239         fflush: also replace fclose when fixing fflush
1240         * modules/fflush (Depends-on): Add fclose.
1241         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1242         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1243         memstreams with no backing fd.
1244         * doc/posix-functions/fclose.texi (fclose): Document the use of
1245         fflush module to fix the bug.
1246         * tests/test-fclose.c (main): Relax test when fclose is used in
1247         isolation.
1248
1249         fclose: add some tests
1250         * modules/fclose-tests: New test module.
1251         * tests/test-fclose.c: New file.
1252         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1253
1254         fclose: reduced dependencies
1255         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1256         simpler lseek.
1257         * lib/fclose.c (rpl_fclose): Likewise.
1258         Reported by Simon Josefsson.
1259
1260         exit: drop remaining clients
1261         * modules/argmatch (Depends-on): Replace exit with stdlib.
1262         * modules/copy-file (Depends-on): Likewise.
1263         * modules/execute (Depends-on): Likewise.
1264         * modules/exitfail (Depends-on): Likewise.
1265         * modules/obstack (Depends-on): Likewise.
1266         * modules/pagealign_alloc (Depends-on): Likewise.
1267         * modules/pipe-filter-gi (Depends-on): Likewise.
1268         * modules/pipe-filter-ii (Depends-on): Likewise.
1269         * modules/savewd (Depends-on): Likewise.
1270         * modules/spawn-pipe (Depends-on): Likewise.
1271         * modules/wait-process (Depends-on): Likewise.
1272         * modules/xsetenv (Depends-on): Likewise.
1273         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1274         * modules/git-merge-changelog (Depends-on): Likewise.
1275         * modules/long-options (Depends-on): Likewise.
1276         * modules/pt_chown (Depends-on): Likewise.
1277         * modules/sysexits (Depends-on): Likewise.
1278
1279         freading: relax license from LGPLv3+ to LGPLv2+
1280         * modules/freading (License): Relax LGPL version.
1281
1282 2011-05-02  Bruno Haible  <bruno@clisp.org>
1283
1284         fchdir: Remove unused dependencies.
1285         * modules/fchdir (Depends-on): Remove include_next.
1286
1287 2011-05-02  Bruno Haible  <bruno@clisp.org>
1288
1289         gnulib-tool: Refactor.
1290         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1291         from func_emit_autoconf_snippets.
1292         (func_emit_autoconf_snippets): Use it.
1293
1294 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1295
1296         * NEWS: Document removal of 'exit'.
1297         * modules/exit: Remove file.
1298
1299 2011-05-01  Bruno Haible  <bruno@clisp.org>
1300
1301         Update DEPENDENCIES.
1302         * DEPENDENCIES (gettext): Recommend the newest release.
1303         Reported by Simon Josefsson.
1304
1305 2011-05-01  Bruno Haible  <bruno@clisp.org>
1306
1307         gnulib-tool: Reduce code duplication.
1308         * gnulib-tool (func_emit_autoconf_snippets): New function.
1309         (func_import, func_create_testdir): Use it.
1310
1311 2011-04-30  Eric Blake  <eblake@redhat.com>
1312
1313         fclose: don't fail on non-seekable input stream
1314         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1315         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1316         since fflush is allowed to fail in that case.
1317
1318 2011-04-30  Bruno Haible  <bruno@clisp.org>
1319
1320         dup3: cleanup
1321         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1322
1323 2011-04-30  Bruno Haible  <bruno@clisp.org>
1324
1325         netdb: Make it work in C++ mode.
1326         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1327         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1328         module.
1329         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1330         gl_MODULE_INDICATOR_FOR_TESTS.
1331         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1332         * modules/netdb-c++-tests: New file.
1333         * tests/test-netdb-c++.cc: New file.
1334
1335 2011-04-30  Bruno Haible  <bruno@clisp.org>
1336
1337         New modules 'vfscanf', 'vscanf'.
1338         * modules/vfscanf: New file.
1339         * modules/vscanf: New file.
1340         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1341         here.
1342         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1343         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1344
1345 2011-04-30  Bruno Haible  <bruno@clisp.org>
1346
1347         passfd: Add comments.
1348         * lib/passfd.c: Add comments about platforms.
1349
1350 2011-04-30  Bruno Haible  <bruno@clisp.org>
1351
1352         sys_uio: Make <sys/uio.h> self-contained.
1353         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1354         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1355
1356 2011-04-30  Bruno Haible  <bruno@clisp.org>
1357
1358         sys_socket: Ensure 'struct iovec' definition.
1359         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1360         <sys/socket.h>.
1361         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1362
1363 2011-04-30  Bruno Haible  <bruno@clisp.org>
1364
1365         sys_uio: Protect definition of 'struct iovec'.
1366         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1367         it as a C struct.
1368
1369 2011-04-30  Bruno Haible  <bruno@clisp.org>
1370
1371         manywarnings: fix indentation
1372         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1373
1374 2011-04-30  Pádraig Brady <P@draigBrady.com>
1375
1376         manywarnings: add -Wno-missing-field-initializers if needed.
1377         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1378         option if it's needed to allow initialization with { 0, }
1379
1380 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1381
1382         announce-gen: cosmetic improvement
1383         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1384
1385 2011-04-29  Jim Meyering  <meyering@redhat.com>
1386
1387         vc-list-files: indent with spaces, not TABs
1388         * build-aux/vc-list-files: Convert leading TABs to spaces,
1389         to match the style of most other files in gnulib.
1390
1391         announce-gen: indent with spaces, not TABs
1392         * build-aux/announce-gen: Convert all TABs to spaces, to match
1393         the style of most other files in gnulib.
1394
1395 2011-04-29  Eric Blake  <eblake@redhat.com>
1396
1397         quotearg: avoid uninitialized variable use
1398         * lib/quotearg.c (quoting_options_from_style): Initialize
1399         remaining fields, and ensure that custom styles are only used via
1400         quoting_options rather than quoting_style.
1401
1402 2011-04-29  Jim Meyering  <meyering@redhat.com>
1403
1404         maint.mk: remove unused VC-tag variable
1405         * top/maint.mk (VC-tag): Remove unused variable.
1406
1407 2011-04-29  Bruno Haible  <bruno@clisp.org>
1408
1409         netdb: fix gai_strerror replacements
1410         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1411         * modules/netdb: Substitute it.
1412
1413 2011-04-29  Jim Meyering  <meyering@redhat.com>
1414
1415         test-getcwd.c: avoid new set-but-not-used warning
1416         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1417         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1418         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1419         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1420
1421         test-hash.c: avoid a new shadowing warning
1422         * tests/test-hash.c (main): Don't shadow "dup".
1423
1424 2011-04-28  Eric Blake  <eblake@redhat.com>
1425
1426         getaddrinfo: fix gai_strerror signature
1427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1428         and work around mingw with UNICODE defined.
1429         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1430         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1431         * modules/netdb (Makefile.am): Substitute it.
1432         * lib/netdb.in.h (gai_strerror): Declare replacement.
1433         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1434         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1435         the fix.
1436
1437         getsockopt: avoid compiler warning
1438         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1439         Reported by Matthias Bolte.
1440
1441         tests: drop unused link dependency
1442         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1443         * modules/dirent-safer-tests (Makefile.am): Likewise.
1444         * modules/fdopendir-tests (Makefile.am): Likewise.
1445         * modules/mkfifoat-tests (Makefile.am): Likewise.
1446         * modules/openat-safer-tests (Makefile.am): Likewise.
1447         * modules/openat-tests (Makefile.am): Likewise.
1448         * modules/readlinkat-tests (Makefile.am): Likewise.
1449         * modules/symlinkat-tests (Makefile.am): Likewise.
1450         * modules/linkat-tests (Makefile.am): Likewise.
1451         (Depends-on): Switch to filenamecat-lgpl.
1452         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1453         LIBINTL.
1454         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1455         * tests/test-linkat.c (main): Don't require xalloc.
1456
1457         hash, mgetgroups: drop xalloc dependency
1458         * lib/hash.c (includes): Adjust includes.
1459         * lib/mgetgroups.c (includes): Likewise.
1460         (xgetgroups): Move...
1461         * lib/xgetgroups.c: ...to new file.
1462         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1463         * modules/xgetgroups: New file, split from...
1464         * modules/mgetgroups: ...here.
1465         (Depends-on): Add xalloc-oversized.
1466         * modules/hash (Depends-on): Likewise.
1467         * modules/hash-tests (Depends-on): Drop xalloc.
1468         (test_hash_LDADD): Drop unused library.
1469         * tests/test-hash.c (main): Break xalloc dependency.
1470         (includes): Drop unused include.
1471
1472         xalloc-oversized: new module
1473         * modules/xalloc-oversized: New module.
1474         * modules/xalloc (Depends-on): Add it.
1475         * lib/xalloc.h (xalloc_oversized): Move...
1476         * lib/xalloc-oversized.h: ...into new file.
1477
1478         utimecmp: drop dependency on xmalloc
1479         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1480         due to memory pressure.
1481         * modules/utimecmp (Depends-on): Drop xalloc.
1482
1483 2011-04-27  Eric Blake  <eblake@redhat.com>
1484
1485         getcwd: fix mingw bugs
1486         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1487         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1488         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1489
1490 2011-04-27  Bruno Haible  <bruno@clisp.org>
1491
1492         mkstemps: Ensure declaration on MacOS X 10.5.
1493         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1494         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1495         MacOS X.
1496
1497 2011-04-27  Bruno Haible  <bruno@clisp.org>
1498
1499         mkstemp: More documentation.
1500         * doc/posix-functions/mkstemp.texi: Document header file problem on
1501         MacOS X.
1502
1503 2011-04-27  Bruno Haible  <bruno@clisp.org>
1504
1505         mkstemp: Tweak configure message when cross-compiling.
1506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1507         result as a guess.
1508
1509 2011-04-27  Bruno Haible  <bruno@clisp.org>
1510
1511         clean-temp: Clarify what it does.
1512         * lib/clean-temp.h: Add more comments.
1513         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1514         module.
1515         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1516         * doc/glibc-functions/mkstemps.texi: Likewise.
1517         * doc/glibc-functions/mkostemps.texi: Likewise.
1518
1519 2011-04-27  Eric Blake  <eblake@redhat.com>
1520
1521         fchdir: avoid extra chdir and fix test
1522         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1523         getcwd-lgpl.
1524         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1525         have to be canonical.
1526         (canonicalize_file_name): Drop unused macro.
1527         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1528
1529         filenamecat-lgpl: fix licence
1530         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1531         when it was first created.
1532
1533         linkat, renameat: add missing dependency
1534         * modules/linkat (Depends-on): Require getcwd-lgpl.
1535         * modules/renameat (Depends-on): Likewise.
1536
1537         tests: reduce dependencies
1538         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1539         * tests/test-renameat.c (main): Likewise.
1540         * modules/linkat-tests (Depends-on): Relax dependency.
1541         * modules/renameat-tests (Depends-on): Likewise.
1542         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1543         dependency explicit.
1544
1545         save-cwd: reduce default dependency
1546         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1547         * lib/save-cwd.c: Update comments.
1548         * NEWS: Document the semantic change.
1549
1550         getcwd: enhance tests
1551         * tests/test-getcwd-lgpl.c: New file, taken from...
1552         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1553         repeat long path stress tests from m4 probe.
1554         * modules/getcwd-lgpl-tests: New module.
1555         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1556         * m4/getcwd-abort-bug.m4: Update comment.
1557         * m4/getcwd-path-max.m4: Likewise.
1558
1559         getcwd-lgpl: new module
1560         * modules/getcwd-lgpl: New module.
1561         * lib/getcwd-lgpl.c: New file.
1562         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1563         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1564         * modules/getcwd (configure.ac): Set C witness.
1565         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1566
1567         getcwd: tweak comments
1568         * m4/getcwd-abort-bug.m4: Fix comments.
1569         * m4/getcwd-path-max.m4: Likewise.
1570         * m4/getcwd.m4: Likewise.
1571
1572 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1573         and Eric Blake  <eblake@redhat.com>
1574
1575         mkstemp: replace if system version uses wrong permissions
1576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1577         read/write mode bits set in file created by mkstemp.
1578         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1579
1580 2011-04-27  Eric Blake  <eblake@redhat.com>
1581
1582         passfd: avoid compiler warning
1583         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1584         Reported by Laine Stump.
1585
1586 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1587
1588         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1589         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1590
1591 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1592         and Eric Blake  <eblake@redhat.com>
1593
1594         mkstemp: mention clean-temp module
1595         * lib/mkstemp.c: Add comment.
1596         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1597
1598 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1599
1600         inttypes: also provide default values for 32-bit tests
1601         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1602         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1603
1604 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1605
1606         strtoumax: remove dependency on strtoimax
1607         This is like the strtoull change of yesterday.
1608         * modules/strtoumax (Files): Add lib/strtoimax.c.
1609         (Depends-on): Remove strtoimax and add verify.
1610
1611         inttypes-incomplete: new module
1612         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1613         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1614         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1615         of gl_INTTYPES_H.
1616         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1617         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1618         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1619         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1620         * modules/strtoumax, modules/xstrtol (Depends-on):
1621         Depend on inttypes-incomplete, not inttypes.
1622         * modules/inttypes-incomplete: New module, containing the contents
1623         of the old modules/inttypes module, except that the Files: section
1624         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1625         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1626         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1627         (Depends-on): Depend only on inttypes-incomplete.
1628         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1629
1630         inttypes: omit now-redundant strtoimax and strtoumax work
1631         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1632         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1633
1634         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1635         This supports apps that need pointers to strtoimax and strtoumax,
1636         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1637         nonexistent functions.  See
1638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1639         et seq.
1640         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1641         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1642         a macro.
1643         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1644
1645 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1646
1647         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1648
1649 2011-04-25  Bruno Haible  <bruno@clisp.org>
1650
1651         strtol, strtoul: Mark modules as obsolete.
1652         * modules/strtol (Status, Notice): New sections.
1653         * modules/strtoul (Status, Notice): New sections.
1654
1655 2011-04-25  Bruno Haible  <bruno@clisp.org>
1656
1657         strtod: Remove check for strtod, unless supporting old platforms.
1658         * modules/strtod-obsolete: New file.
1659         * m4/strtod-obsolete.m4: New file.
1660         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1661         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1662         * modules/strtod (Depends-on): Add strtod-obsolete.
1663         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1664
1665 2011-04-25  Bruno Haible  <bruno@clisp.org>
1666
1667         strcase: Make module obsolete.
1668         * modules/strcase (Status, Notice): New sections.
1669
1670 2011-04-25  Bruno Haible  <bruno@clisp.org>
1671
1672         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1673         * modules/dup2-obsolete: New file.
1674         * m4/dup2-obsolete.m4: New file.
1675         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1676         gl_FUNC_DUP2_OBSOLETE is not also defined.
1677         * modules/dup2 (Depends-on): Add dup2-obsolete.
1678         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1679
1680 2011-04-25  Bruno Haible  <bruno@clisp.org>
1681
1682         strnlen: Avoid memchr related link error on old obsolete platforms.
1683         * modules/memchr-obsolete: New file.
1684         * m4/memchr-obsolete.m4: New file.
1685         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1686         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1687         * modules/memchr (Depends-on): Add memchr-obsolete.
1688         * modules/strnlen (Depends-on): Likewise.
1689         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1690
1691 2011-04-25  Jim Meyering  <meyering@redhat.com>
1692
1693         maint.mk: makefile_at_at_check extend and clean up
1694         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1695         in addition to */Makefile.am.
1696         Exempt legitimate uses of @VAR@ notation, e.g.,
1697         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1698         Remove obsolete coreutils-specific comment.
1699         Prompted by discussion here:
1700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1701
1702 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1703
1704         strtoul: remove dependency on strtol
1705         This is so that 'configure' need not check for strtol merely because
1706         the application needs strtoul.
1707         * modules/strtoul (Files): Add lib/strtol.c.
1708         (Depends-on): Remove strtol.
1709
1710         strtoull: remove dependency on strtoul
1711         This is like the strtoll change.
1712         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1713         (Depends-on): Remove strtoul.
1714
1715         strtoll: remove dependency on strtol
1716         This is so that 'configure' need not check for strtol merely because
1717         the application needs strtoll.
1718         * modules/strtoll (Files): Add lib/strtol.c.
1719         (Depends-on): Remove strtol.
1720
1721 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1722
1723         inttypes: Move some configure check to module 'imaxdiv'.
1724         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1725         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1726         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1727
1728 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1729
1730         inttypes: Move some configure check to module 'imaxabs'.
1731         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1732         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1733         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1734
1735 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1736
1737         inttypes: Remove configure tests that are not needed since 2009-12-31.
1738         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1739         gl_cv_header_working_inttypes_h.
1740
1741 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1742
1743         * modules/strnlen (Depends-on): Remove memchr.
1744         The strnlen implementation doesn't need the memchr module's fixes; see
1745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1746
1747         strtol: remove dependency on wchar
1748         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1749         * modules/strtol (Depends-on): Remove wchar.
1750
1751 2011-04-21  Eric Blake  <eblake@redhat.com>
1752
1753         passfd: fix test regression on Linux
1754         * modules/passfd-tests (configure.ac): Correct socketpair check.
1755
1756         passfd: speed up configure and drop unused code
1757         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1758         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1759         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1760         Instead of probing at configure for unix_scm_rights_bsd44_way,
1761         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1762         check to a struct member probe.
1763         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1764         (sendfd, recvfd): Update preprocessor checks.
1765         * modules/passfd (Files): Reflect rename, and drop unused file.
1766         (Depends-on): Drop unused dependency.
1767
1768         passfd: allow compilation on mingw
1769         * modules/sys_socket (Depends-on): Add sys_uio.
1770         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1771         iovec and a minimal struct msghdr.
1772         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1773         * tests/test-sys_socket.c (main): Enhance test.
1774         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1775         guaranteed to provide what we need.
1776         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1777         * modules/passfd-tests (Depends-on): Add sys_wait.
1778         * tests/test-passfd.c (main): Skip test on mingw, for now.
1779         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1780         partial 'struct msghdr' implementation.
1781
1782         sys_uio: new module
1783         * modules/sys_uio: New module.
1784         * modules/sys_uio-tests: Likewise.
1785         * lib/sys_uio.in.h: New file.
1786         * m4/sys_uio_h.m4: Likewise.
1787         * tests/test-sys_uio.c: Likewise.
1788         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1789         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1790
1791 2011-04-20  Jim Meyering  <meyering@redhat.com>
1792
1793         useless-if-before-free: avoid false-positive
1794         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1795         disjunct so that it too requires a terminating ";".  Without that,
1796         this script would identify as useless one statement from gcc that
1797         was not:
1798           if (aligned_ptr)
1799             free (((void **) aligned_ptr) [-1]);
1800
1801 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1802
1803         doc: update users.txt.
1804         * users.txt: Add barcode.
1805
1806 2011-04-19  Bruno Haible  <bruno@clisp.org>
1807
1808         ioctl: Remove link dependency on native Windows.
1809         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1810         (gl_close_fn, gl_ioctl_fn): New types.
1811         (struct fd_hook): Renamed from struct close_hook. Change type of
1812         private_close_fn field. Add private_ioctl_fn field.
1813         (close_hook_fn): Add parameter for primary close method.
1814         (execute_close_hooks, execute_all_close_hooks): Likewise.
1815         (ioctl_hook_fn): New type.
1816         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1817         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1818         argument.
1819         (unregister_fd_hook): Renamed from unregister_close_hook.
1820         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1821         Don't include <unistd.h>.
1822         (close): Remove undef.
1823         (anchor): Update.
1824         (execute_close_hooks): Add argument for primary close method.
1825         (execute_all_close_hooks): Likewise.
1826         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1827         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1828         argument. Allow each argument to be NULL.
1829         (unregister_fd_hook): Renamed from unregister_close_hook.
1830         * lib/close.c (rpl_close): Pass 'close' function pointer to
1831         execute_all_close_hooks.
1832         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1833         (primary_ioctl): New function.
1834         (ioctl): Don't call ioctlsocket here. Instead, call
1835         execute_all_ioctl_hooks.
1836         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1837         close method.
1838         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1839         (fd_sockets_hook): Renamed from close_sockets_hook.
1840         (gl_sockets_startup, gl_sockets_cleanup): Update.
1841         * modules/fd-hook: Renamed from modules/close-hook. Update.
1842         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1843         * modules/sockets (Depends-on): Likewise.
1844         * modules/ioctl (Depends-on): Add fd-hook.
1845         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1846         GNULIB_SOCKET.
1847
1848 2011-04-19  Bruno Haible  <bruno@clisp.org>
1849
1850         Move the support of O_NONBLOCK in open() to the 'open' module.
1851         * modules/nonblocking (Depends-on): Remove 'open'.
1852         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1853         gl_cv_have_open_O_NONBLOCK.
1854         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1855         O_NONBLOCK support.
1856         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1857
1858 2011-04-17  Bruno Haible  <bruno@clisp.org>
1859
1860         pipe2: Simplify code.
1861         * lib/pipe2.c (pipe2): Reduce code duplication.
1862
1863 2011-04-17  Bruno Haible  <bruno@clisp.org>
1864
1865         nonblocking: Add comment.
1866         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1867
1868 2011-04-17  Bruno Haible  <bruno@clisp.org>
1869
1870         nonblocking: Add tests for sockets.
1871         * tests/test-nonblocking-socket.sh: New file.
1872         * tests/test-nonblocking-socket-main.c: New file.
1873         * tests/test-nonblocking-socket-child.c: New file.
1874         * tests/test-nonblocking-socket.h: New file.
1875         * tests/socket-server.h: New file.
1876         * tests/socket-client.h: New file.
1877         * modules/nonblocking-socket-tests: New file.
1878         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1879
1880 2011-04-17  Bruno Haible  <bruno@clisp.org>
1881
1882         nonblocking: Add tests for pipes.
1883         * tests/test-nonblocking-pipe.sh: New file.
1884         * tests/test-nonblocking-pipe-main.c: New file.
1885         * tests/test-nonblocking-pipe-child.c: New file.
1886         * tests/test-nonblocking-pipe.h: New file.
1887         * tests/test-nonblocking-writer.h: New file.
1888         * tests/test-nonblocking-reader.h: New file.
1889         * tests/test-nonblocking-misc.h: New file.
1890         * modules/nonblocking-pipe-tests: New file.
1891         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1892
1893 2011-04-16  Bruno Haible  <bruno@clisp.org>
1894
1895         gettext: Clarify the needed programmer actions.
1896         * modules/gettext (Notice): New field.
1897         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1898
1899 2011-04-16  Bruno Haible  <bruno@clisp.org>
1900
1901         strchrnul: Tweak last commit.
1902         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1903         bug.
1904         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1905         as in _GL_FUNCDECL_SYS.
1906         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1907         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1908
1909 2011-04-15  Eric Blake  <eblake@redhat.com>
1910
1911         strchrnul: work around cygwin bug
1912         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1913         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1915         * modules/string (Makefile.am): Substitute it.
1916         * lib/string.in.h (strchrnul): Use it.
1917
1918 2011-04-15  Bruno Haible  <bruno@clisp.org>
1919
1920         Don't require lib/stdio-write.c when only module 'stdio' is used.
1921         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1922         invocation.
1923         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1924
1925 2011-04-14  Bruno Haible  <bruno@clisp.org>
1926
1927         Support non-blocking pipe I/O in read() on native Windows.
1928         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1929         (read): New declaration.
1930         * lib/read.c: New file.
1931         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1932         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1933         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1934         vscanf): New declarations.
1935         * lib/stdio-read.c: New file.
1936         * m4/read.m4: New file.
1937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1938         REPLACE_READ.
1939         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1940         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1941         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1942         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1943         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1944         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1945         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1946         * modules/read: New file.
1947         * modules/nonblocking (Files): Add lib/stdio-read.c.
1948         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1949         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1950         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1951         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1952         * modules/pread (Depends-on): Add read.
1953         * modules/safe-read (Depends-on): Likewise.
1954         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1955         gets, scanf, vfscanf, vscanf): Verify signatures.
1956         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1957         problem with non-blocking pipes.
1958         * doc/posix-functions/fgetc.texi: Likewise.
1959         * doc/posix-functions/fgets.texi: Likewise.
1960         * doc/posix-functions/fread.texi: Likewise.
1961         * doc/posix-functions/fscanf.texi: Likewise.
1962         * doc/posix-functions/getc.texi: Likewise.
1963         * doc/posix-functions/getchar.texi: Likewise.
1964         * doc/posix-functions/gets.texi: Likewise.
1965         * doc/posix-functions/scanf.texi: Likewise.
1966         * doc/posix-functions/vfscanf.texi: Likewise.
1967         * doc/posix-functions/vscanf.texi: Likewise.
1968
1969 2011-04-14  Bruno Haible  <bruno@clisp.org>
1970
1971         Support non-blocking pipe I/O in write() on native Windows.
1972         * lib/write.c (rpl_write): Split a write request that failed merely
1973         because the byte count was larger than the pipe buffer's size.
1974         * doc/posix-functions/write.texi: Mention the problem with large byte
1975         counts.
1976
1977 2011-04-14  Bruno Haible  <bruno@clisp.org>
1978
1979         wchar: Ensure that wchar_t gets defined on uClibc.
1980         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1981         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1982
1983 2011-04-13  Bruno Haible  <bruno@clisp.org>
1984
1985         safe-write, full-read: Avoid unnecessary compilation units.
1986         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1987         (Depends-on): Remove safe-read. Add ssize_t.
1988         * modules/full-read (Files): Add lib/full-write.c.
1989         (Depends-on): Add full-write.
1990
1991 2011-04-13  Bruno Haible  <bruno@clisp.org>
1992
1993         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1994         * modules/pwrite (Depends-on): Add 'write'.
1995
1996 2011-04-13  Bruno Haible  <bruno@clisp.org>
1997
1998         Support non-blocking pipe I/O in write() on native Windows.
1999         * lib/unistd.in.h (write): Enable replacement also if
2000         GNULIB_UNISTD_H_NONBLOCKING is 1.
2001         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2002         (rpl_write): When failing to write on a non-blocking pipe, change
2003         errno from ENOSPC to EAGAIN.
2004         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2005         putchar, puts, vfprintf, vprintf): Enable replacement also if
2006         GNULIB_STDIO_H_NONBLOCKING is 1.
2007         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2008         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2009         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2010         CALL_WITH_SIGPIPE_EMULATION.
2011         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2012         * m4/nonblocking.m4: New file.
2013         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2014         for non-blocking I/O support.
2015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2016         GNULIB_UNISTD_H_NONBLOCKING.
2017         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2018         required for non-blocking I/O support.
2019         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2020         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2021         lib/stdio-write.c, m4/asm-underscore.m4.
2022         (Depends-on): Add stdio, unistd.
2023         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2024         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2025         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2026         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2027         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2028         problem with non-blocking pipes.
2029         * doc/posix-functions/fputc.texi: Likewise.
2030         * doc/posix-functions/fputs.texi: Likewise.
2031         * doc/posix-functions/fwrite.texi: Likewise.
2032         * doc/posix-functions/printf.texi: Likewise.
2033         * doc/posix-functions/putc.texi: Likewise.
2034         * doc/posix-functions/putchar.texi: Likewise.
2035         * doc/posix-functions/puts.texi: Likewise.
2036         * doc/posix-functions/vfprintf.texi: Likewise.
2037         * doc/posix-functions/vprintf.texi: Likewise.
2038         * doc/posix-functions/write.texi: Likewise.
2039
2040 2011-04-10  Jim Meyering  <meyering@redhat.com>
2041
2042         maint.mk: prohibit doubled words
2043         Detect them also when they're separated by a newline.
2044         There are 3 ways to customize it:
2045           - disable the test on a per file basis, as usual with rules using
2046             $(VC_LIST_EXCEPT)
2047           - replace the default doubled-word-selecting regexp (affects all files)
2048           - ignore a particular file-vs-doubled-word match
2049         I nearly used that last one to ignore the "is is" match in
2050         coreutils' NEWS file, since the text was "ls -is is ..."
2051         To do that, I would have added this line to cfg.mk:
2052           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2053         but it would have ignored any "is is" match in NEWS.
2054         Low probability, but still...
2055         Instead, I changed the text, slightly:
2056           -  ls -is is now consistent with ls -lis in ignoring values returned
2057           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2058         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2059         (prohibit_doubled_word_): Define.
2060         (sc_prohibit_doubled_word): New rule.
2061         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2062
2063 2011-04-10  Jim Meyering  <meyering@redhat.com>
2064
2065         maint: fix doubled-word typo in comment
2066         * m4/gethostname.m4: s/is is/it is/
2067         * m4/getdomainname.m4: Likewise.
2068
2069 2011-04-10  Jim Meyering  <meyering@redhat.com>
2070
2071         maint: remove doubled word: s/it it/it/
2072         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2073
2074 2011-04-10  Jim Meyering  <meyering@redhat.com>
2075
2076         maint.mk: remove useless semicolon and backslash
2077         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2078         semicolon and backslash.
2079
2080 2011-04-10  Bruno Haible  <bruno@clisp.org>
2081
2082         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2083         * modules/stdint-tests (Depends-on): Add wchar.
2084
2085 2011-04-10  Jim Meyering  <meyering@redhat.com>
2086
2087         maint: remove doubled words in comments, e.g., s/a a/a/
2088         * lib/strptime.c (day_of_the_week): s/the the/the/
2089         * tests/test-chown.h (test_chown): s/a a/a/
2090
2091         test-chown.h: correct a cast
2092         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2093         when the destination is a stat.st_gid.
2094
2095 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2096
2097         getaddrinfo: Fix test for sa_len member.
2098         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2099         include <sys/types.h> before <sys/socket.h>.
2100
2101 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2102
2103         maint: change "can not" to "cannot"
2104         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2105         boundaries.
2106
2107 2011-04-09  Jim Meyering  <meyering@redhat.com>
2108
2109         maint: change "a a" to "a"
2110         * tests/test-lchown.h (test_lchown): s/a a/a/
2111
2112         maint.mk: prohibit \<the the\>
2113         * top/maint.mk (sc_prohibit_the_the): New rule.
2114
2115         maint: fix "the the" in comment
2116         * lib/count-one-bits.h: s/the the/the/
2117
2118         maint: change "can not" to "cannot"
2119         But do not change the occurrences in maintain.texi or in
2120         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2121         * doc/gnulib-tool.texi: s/can not/cannot/
2122         * doc/posix-functions/accept.texi (accept): Likewise.
2123         * doc/posix-functions/socket.texi (socket): Likewise.
2124         * lib/mbrtowc.c: Likewise.
2125
2126         maint.mk: prohibit use of "can not"
2127         * top/maint.mk (sc_prohibit_can_not): New rule.
2128         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2129
2130 2011-04-09  Bruno Haible  <bruno@clisp.org>
2131
2132         careadlinkat: Guard against misuse of careadlinkatcwd.
2133         * lib/careadlinkat.c: Include <stdlib.h>.
2134         (careadlinkatcwd): Check that the fd argument is as expected.
2135
2136 2011-04-09  Bruno Haible  <bruno@clisp.org>
2137
2138         careadlinkat: Use common coding style.
2139         * lib/careadlinkat.c: Move gnulib includes after system includes.
2140
2141 2011-04-09  Bruno Haible  <bruno@clisp.org>
2142
2143         careadlinkat: Clarify specification.
2144         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2145         (careadlinkatcwd): Add comment.
2146         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2147
2148 2011-04-09  Bruno Haible  <bruno@clisp.org>
2149
2150         areadlinkat: Avoid link error on many platforms.
2151         * modules/areadlinkat (Depends-on): Add areadlink.
2152
2153 2011-04-09  Bruno Haible  <bruno@clisp.org>
2154
2155         allocator, careadlinkat: Fix double-inclusion guard.
2156         * lib/allocator.h: Fix double-inclusion guard.
2157         * lib/careadlinkat.h: Likewise.
2158
2159 2011-04-09  Bruno Haible  <bruno@clisp.org>
2160
2161         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2162         * lib/relocwrapper.c: Update dependencies hierarchy.
2163         * build-aux/install-reloc: Update list of files to be compiled.
2164         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2165         lib/allocator.[hc].
2166
2167 2011-04-08  Eric Blake  <eblake@redhat.com>
2168
2169         strftime: silence gnulib-tool warning
2170         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2171
2172 2011-04-08  Bruno Haible  <bruno@clisp.org>
2173
2174         verify: Fix syntax error with GCC 4.6 in C++ mode.
2175         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2176         (HAVE_STATIC_ASSERT): New macro.
2177         (verify_true, verify): Use 'static_assert' if it is supported and
2178         '_Static_assert' is not supported.
2179
2180 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2181
2182         allocator: New module.
2183         * modules/allocator, lib/allocator.c: New files.
2184         * lib/allocator.h (stdlib_allocator): New decl.
2185         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2186         Remove.  Do not include <stdlib.h>.
2187         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2188         * modules/careadlinkat (Files): Remove lib/allocator.h.
2189         (Depends-on): Add allocator.
2190
2191         stdlib: let modules use system malloc, realloc
2192         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2193         if !_GL_USE_STDLIB_ALLOC.
2194         (malloc, realloc): Limit this change to a smaller scope.
2195
2196         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2197         (malloc, realloc): Don't #undef; no longer needed.
2198         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2199         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2200         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2201         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2202         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2203         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2204         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2205         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2206
2207         careadlinkat: rename members to avoid problem
2208         * lib/allocator.h (struct allocator): Rename members from
2209         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2210         and realloc are #define'd.  Reported by Eric Blake in
2211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2212         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2213
2214 2011-04-08  Eric Blake  <eblake@redhat.com>
2215
2216         nonblocking: reduce dependency
2217         * tests/test-nonblocking.c: Only test sockets when in use.
2218         * modules/nonblocking-tests (Depends-on): Drop socket.
2219         (Makefile.am): Link even if sockets are not present.
2220         * modules/pipe2-tests (Makefile.am): Likewise.
2221         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2222
2223         pipe2: fix O_NONBLOCK support on mingw
2224         * modules/pipe2 (Depends-on): Add nonblocking.
2225         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2226         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2227         * tests/test-nonblocking.c (main): Likewise.
2228         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2229
2230         fcntl-h: fix O_ACCMODE on cygwin
2231         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2232         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2233
2234         pipe-filter: drop O_NONBLOCK workarounds
2235         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2236         * modules/pipe-filter-ii (Depends-on): Likewise.
2237         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2238
2239         nonblocking: provide O_NONBLOCK for mingw
2240         * modules/nonblocking (Depends-on): Add open.
2241         (configure.ac): Set new witness macro.
2242         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2243         * modules/fcntl-h (Makefile.am): Substitute it.
2244         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2245         nonblocking module is in use.
2246         * lib/nonblocking.c: Adjust portability test.
2247         * lib/open.c (open): Don't let native open see gnulib flag.
2248         * tests/test-fcntl-h.c (main): Enhance test.
2249         * tests/test-open.h (test_open): Likewise.
2250         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2251
2252         careadlinkat: fix compilation error on mingw
2253         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2254         within struct allocator.
2255
2256 2011-04-06  Eric Blake  <eblake@redhat.com>
2257
2258         binary-io: relicense under LGPLv2+
2259         * modules/binary-io (License): Relax to LGPLv2+.
2260         Requested for libvirt, and required by pipe2.
2261
2262 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2263
2264         verify: use _Static_assert if available
2265         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2266         (verify_true, verify): Use it if available.  This generates better
2267         diagnostics with GCC 4.6.0 and later.
2268
2269 2011-04-05  Bruno Haible  <bruno@clisp.org>
2270
2271         Remove leftover generated .h files after config.status changed.
2272
2273         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2274         GL_GENERATE_ALLOCA_H.
2275         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2276         GL_GENERATE_ALLOCA_H evaluates to false.
2277
2278         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2279         GL_GENERATE_ARGZ_H.
2280         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2281         evaluates to false.
2282
2283         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2284         GL_GENERATE_BYTESWAP_H.
2285         * modules/byteswap (Makefile.am): Remove byteswap.h if
2286         GL_GENERATE_BYTESWAP_H evaluates to false.
2287
2288         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2289         GL_GENERATE_ERRNO_H.
2290         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2291         evaluates to false.
2292
2293         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2294         GL_GENERATE_FLOAT_H.
2295         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2296         evaluates to false.
2297
2298         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2299         GL_GENERATE_FNMATCH_H.
2300         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2301         GL_GENERATE_FNMATCH_H evaluates to false.
2302
2303         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2304         GL_GENERATE_GLOB_H.
2305         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2306         evaluates to false.
2307
2308         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2309         automake conditional GL_GENERATE_ICONV_H.
2310         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2311         evaluates to false.
2312
2313         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2314         GL_GENERATE_NETINET_IN_H.
2315         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2316         GL_GENERATE_NETINET_IN_H evaluates to false.
2317
2318         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2319         conditional GL_GENERATE_PTHREAD_H.
2320         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2321         * modules/pthread (Makefile.am): Remove pthread.h if
2322         GL_GENERATE_PTHREAD_H evaluates to false.
2323
2324         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2325         GL_GENERATE_SCHED_H.
2326         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2327         evaluates to false.
2328
2329         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2330         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2331         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2332         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2333
2334         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2335         GL_GENERATE_STDARG_H.
2336         * modules/stdarg (Makefile.am): Remove stdarg.h if
2337         GL_GENERATE_STDARG_H evaluates to false.
2338
2339         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2340         GL_GENERATE_STDBOOL_H.
2341         * modules/stdbool (Makefile.am): Remove stdbool.h if
2342         GL_GENERATE_STDBOOL_H evaluates to false.
2343
2344         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2345         conditional GL_GENERATE_STDDEF_H.
2346         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2347         * modules/stddef (Makefile.am): Remove stddef.h if
2348         GL_GENERATE_STDDEF_H evaluates to false.
2349
2350         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2351         GL_GENERATE_STDINT_H.
2352         * modules/stdint (Makefile.am): Remove stdint.h if
2353         GL_GENERATE_STDINT_H evaluates to false.
2354
2355         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2356         GL_GENERATE_SYSEXITS_H.
2357         * modules/sysexits (Makefile.am): Remove sysexits.h if
2358         GL_GENERATE_SYSEXITS_H evaluates to false.
2359
2360         Reported by Karl Berry and Ralf Wildenhues.
2361
2362 2011-04-05  Bruno Haible  <bruno@clisp.org>
2363
2364         Ensure to rebuild generated .h files when config.status has changed.
2365         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2366         config.status.
2367         * modules/ctype (Makefile.am): Likewise.
2368         * modules/dirent (Makefile.am): Likewise.
2369         * modules/errno (Makefile.am): Likewise.
2370         * modules/fcntl-h (Makefile.am): Likewise.
2371         * modules/float (Makefile.am): Likewise.
2372         * modules/getopt-posix (Makefile.am): Likewise.
2373         * modules/glob (Makefile.am): Likewise.
2374         * modules/iconv-h (Makefile.am): Likewise.
2375         * modules/inttypes (Makefile.am): Likewise.
2376         * modules/langinfo (Makefile.am): Likewise.
2377         * modules/locale (Makefile.am): Likewise.
2378         * modules/math (Makefile.am): Likewise.
2379         * modules/netdb (Makefile.am): Likewise.
2380         * modules/netinet_in (Makefile.am): Likewise.
2381         * modules/poll-h (Makefile.am): Likewise.
2382         * modules/pthread (Makefile.am): Likewise.
2383         * modules/pty (Makefile.am): Likewise.
2384         * modules/sched (Makefile.am): Likewise.
2385         * modules/search (Makefile.am): Likewise.
2386         * modules/selinux-h (Makefile.am): Likewise.
2387         * modules/signal (Makefile.am): Likewise.
2388         * modules/spawn (Makefile.am): Likewise.
2389         * modules/stdarg (Makefile.am): Likewise.
2390         * modules/stdbool (Makefile.am): Likewise.
2391         * modules/stddef (Makefile.am): Likewise.
2392         * modules/stdint (Makefile.am): Likewise.
2393         * modules/stdio (Makefile.am): Likewise.
2394         * modules/stdlib (Makefile.am): Likewise.
2395         * modules/string (Makefile.am): Likewise.
2396         * modules/strings (Makefile.am): Likewise.
2397         * modules/sys_file (Makefile.am): Likewise.
2398         * modules/sys_ioctl (Makefile.am): Likewise.
2399         * modules/sys_select (Makefile.am): Likewise.
2400         * modules/sys_socket (Makefile.am): Likewise.
2401         * modules/sys_stat (Makefile.am): Likewise.
2402         * modules/sys_time (Makefile.am): Likewise.
2403         * modules/sys_times (Makefile.am): Likewise.
2404         * modules/sys_utsname (Makefile.am): Likewise.
2405         * modules/sys_wait (Makefile.am): Likewise.
2406         * modules/sysexits (Makefile.am): Likewise.
2407         * modules/termios (Makefile.am): Likewise.
2408         * modules/time (Makefile.am): Likewise.
2409         * modules/unistd (Makefile.am): Likewise.
2410         * modules/wchar (Makefile.am): Likewise.
2411         * modules/wctype-h (Makefile.am): Likewise.
2412         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2413
2414 2011-04-05  Bruno Haible  <bruno@clisp.org>
2415
2416         pipe2: Relicense under LGPLv2+.
2417         * modules/pipe2 (License): Change to LGPLv2+.
2418         Requested by Eric Blake, for libvirt.
2419
2420 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2421
2422         bootstrap: compute gnulib_extra_files after updating build_aux
2423         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2424         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2425
2426 2011-04-05  Eric Blake  <eblake@redhat.com>
2427
2428         bootstrap: preserve git whitelist item sorting
2429         * build-aux/bootstrap (sort_patterns): New function.
2430         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2431
2432 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2433
2434         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2435         sc_space_tab check.
2436
2437 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2438
2439         areadlink, areadlinkat: rewrite in terms of careadlinkat
2440         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2441         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2442         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2443         (malloc, realloc): Remove #undefs.
2444         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2445         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2446         readlink, ssize_t, stdint, unistd.
2447         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2448         areadlink, stdint.
2449
2450         careadlinkat: new module
2451         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2452         * modules/careadlinkat: New files, written by me with
2453         a review and feedback from Ben Pfaff in
2454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2455
2456 2011-04-01  Bruno Haible  <bruno@clisp.org>
2457
2458         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2459         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2460         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2461         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2462         Reported by Bruce Korb <bruce.korb@gmail.com>.
2463
2464 2011-04-01  Bruno Haible  <bruno@clisp.org>
2465
2466         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2467         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2468         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2469         * modules/wcpcpy (Depends-on): Add extensions.
2470         * modules/wcpncpy (Depends-on): Likewise.
2471         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2472         systems.
2473         * doc/posix-functions/wcpncpy.texi: Likewise.
2474         * doc/posix-functions/wcwidth.texi: Likewise.
2475
2476 2011-03-31  Eric Blake  <eblake@redhat.com>
2477
2478         nonblocking: fix mingw test failures
2479         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2480         non-blocking flag on regular file.
2481         (get_nonblocking_flag): Set errno on invalid fd.
2482         * tests/test-nonblocking.c (main): Avoid test failure on
2483         directories if fchdir is not active.
2484         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2485
2486 2011-03-31  Bruno Haible  <bruno@clisp.org>
2487
2488         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2489         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2490         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2491         Reported by Simon Josefsson <simon@josefsson.org>.
2492
2493 2011-03-31  Bruno Haible  <bruno@clisp.org>
2494         and Eric Blake  <eblake@redhat.com>
2495
2496         nonblocking: new module
2497         * modules/nonblocking: New module.
2498         * modules/nonblocking-tests: Likewise.
2499         * lib/nonblocking.h: New file.
2500         * lib/nonblocking.c: Likewise.
2501         * tests/test-nonblocking.c: New test.
2502         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2503
2504 2011-03-30  Bruno Haible  <bruno@clisp.org>
2505
2506         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2507         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2508         instead of 'printf' format for GCC >= 4.4.
2509         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2510         (fprintf, printf, vfprintf, vprintf): Declare with
2511         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2512         the system's vfprintf() function.
2513         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2514
2515 2011-03-30  Eric Blake  <eblake@redhat.com>
2516
2517         passfd: fix scoping bug
2518         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2519         before sendmsg/recvmsg.
2520
2521         passfd: standardize coding conventions
2522         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2523         can be learned at compile time.
2524         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2525         ifdefs.
2526         (sendfd, recvfd): Follow gnulib code conventions.
2527
2528         passfd: fix incorrect sendmsg arguments
2529         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2530         incorrect msg_controllen value.
2531         * modules/passfd-tests (Depends-on): Check for alarm.
2532         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2533         Reported by Bastien ROUCARIES.
2534
2535 2011-03-30  Bruno Haible  <bruno@clisp.org>
2536
2537         c-strcasestr: Relicense under LGPLv2+.
2538         * modules/c-strcasestr (License): Change to LGPLv2+.
2539         Requested by Eric Blake, for libvirt.
2540
2541 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2542
2543         * users.txt: Add libidn2.  Fix libtasn1 link.
2544
2545 2011-03-30  Jim Meyering  <meyering@redhat.com>
2546
2547         tests: readlink* ("",... fails with EINVAL on newer kernels
2548         readlink and readlinkat have typically failed with ENOENT for
2549         the invalid, empty file name,  "".  However, with the advent
2550         of linux-2.6.39, they fail with EINVAL.
2551         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2552         when operating on the empty file name.
2553         * tests/test-readlink.h (test_readlink): Likewise.
2554
2555 2011-03-29  Bruno Haible  <bruno@clisp.org>
2556
2557         Relicense some modules under LGPLv2+, for libidn2.
2558         * modules/array-mergesort (License): Change to LGPLv2+.
2559         * modules/c-strcaseeq (License): Likewise.
2560         * modules/striconveh (License): Likewise.
2561         * modules/striconveha (License): Likewise.
2562         * modules/uniconv/base (License): Likewise.
2563         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2564         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2565         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2566         * modules/unictype/base (License): Likewise.
2567         * modules/unictype/bidiclass-of (License): Likewise.
2568         * modules/unictype/category-M (License): Likewise.
2569         * modules/unictype/category-none (License): Likewise.
2570         * modules/unictype/category-of (License): Likewise.
2571         * modules/unictype/category-test (License): Likewise.
2572         * modules/unictype/category-test-withtable (License): Likewise.
2573         * modules/unictype/combining-class (License): Likewise.
2574         * modules/unictype/joiningtype-of (License): Likewise.
2575         * modules/unictype/scripts (License): Likewise.
2576         * modules/uninorm/base (License): Likewise.
2577         * modules/uninorm/canonical-decomposition (License): Likewise.
2578         * modules/uninorm/composition (License): Likewise.
2579         * modules/uninorm/decompose-internal (License): Likewise.
2580         * modules/uninorm/decomposition-table (License): Likewise.
2581         * modules/uninorm/nfc (License): Likewise.
2582         * modules/uninorm/nfd (License): Likewise.
2583         * modules/uninorm/u32-normalize (License): Likewise.
2584         * modules/unistr/base (License): Likewise.
2585         * modules/unistr/u32-cpy (License): Likewise.
2586         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2587         * modules/unistr/u32-to-u8 (License): Likewise.
2588         * modules/unistr/u32-uctomb (License): Likewise.
2589         * modules/unistr/u8-check (License): Likewise.
2590         * modules/unistr/u8-mblen (License): Likewise.
2591         * modules/unistr/u8-mbtouc (License): Likewise.
2592         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2593         * modules/unistr/u8-mbtoucr (License): Likewise.
2594         * modules/unistr/u8-prev (License): Likewise.
2595         * modules/unistr/u8-strlen (License): Likewise.
2596         * modules/unistr/u8-to-u32 (License): Likewise.
2597         * modules/unistr/u8-uctomb (License): Likewise.
2598         * modules/unitypes (License): Likewise.
2599         Requested by Simon Josefsson.
2600
2601 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2602
2603         lib-symbol-visibility: Add a notice.
2604         * modules/lib-symbol-visibility (Notice): New field.
2605
2606 2011-03-29  Bruno Haible  <bruno@clisp.org>
2607
2608         getaddrinfo: Doc fix.
2609         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2610         section "fixed in Gnulib".
2611
2612 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2613
2614         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2615         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2616
2617 2011-03-26  Bruno Haible  <bruno@clisp.org>
2618
2619         unictype/property-byname: Reduce the number of load-time relocations.
2620         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2621         (UC_PROPERTY_INDEX_*): New enumeration values.
2622         (uc_property_byname): Convert an index from the lookup table to an
2623         uc_property_t.
2624         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2625         values.
2626
2627 2011-03-26  Bruno Haible  <bruno@clisp.org>
2628
2629         unictype/property-byname: Allow omitted word separators and aliases.
2630         * lib/unictype/pr_byname.gperf: Add property names without word
2631         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2632         for 'space'.
2633
2634 2011-03-26  Bruno Haible  <bruno@clisp.org>
2635
2636         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2637         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2638         also hyphens to space.
2639         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2640         without spaces.
2641         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2642
2643 2011-03-26  Bruno Haible  <bruno@clisp.org>
2644
2645         unictype/joiningtype-byname: Recognize long names as well.
2646         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2647         a long name.
2648         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2649         unictype/joiningtype_byname.h.
2650         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2651         * lib/unictype/joiningtype_byname.gperf: New file.
2652         * modules/unictype/joiningtype-byname (Files): Add
2653         lib/unictype/joiningtype_byname.gperf.
2654         (Depends-on): Add gperf.
2655         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2656         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2657         long names.
2658
2659         Tests for module 'unictype/joiningtype-longname'.
2660         * modules/unictype/joiningtype-longname-tests: New file.
2661         * tests/unictype/test-joiningtype_longname.c: New file.
2662
2663         New module 'unictype/joiningtype-longname'.
2664         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2665         * lib/unictype/joiningtype_longname.c: New file.
2666         * modules/unictype/joiningtype-longname: New file.
2667         * modules/unictype/joiningtype-all (Depends-on): Add
2668         unictype/joiningtype-longname.
2669
2670 2011-03-26  Bruno Haible  <bruno@clisp.org>
2671
2672         unictype/bidiclass-byname: Recognize long names as well.
2673         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2674         name.
2675         * lib/unictype/bidi_byname.c: Include <string.h>,
2676         unictype/bidi_byname.h.
2677         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2678         * lib/unictype/bidi_byname.gperf: New file.
2679         * modules/unictype/bidiclass-byname (Files): Add
2680         lib/unictype/bidi_byname.gperf.
2681         (Depends-on): Add gperf.
2682         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2683         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2684         long names.
2685
2686         Tests for module 'unictype/bidiclass-longname'.
2687         * modules/unictype/bidiclass-longname-tests: New file.
2688         * tests/unictype/test-bidi_longname.c: New file.
2689
2690         New module 'unictype/bidiclass-longname'.
2691         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2692         * lib/unictype/bidi_longname.c: New file.
2693         * modules/unictype/bidiclass-longname: New file.
2694         * modules/unictype/bidiclass-all (Depends-on): Add
2695         unictype/bidiclass-longname.
2696
2697 2011-03-26  Bruno Haible  <bruno@clisp.org>
2698
2699         unictype/bidi*: Rename modules.
2700         * modules/unictype/bidiclass-all: Renamed from
2701         modules/unictype/bidicategory-all.
2702         * modules/unictype/bidiclass-name: Renamed from
2703         modules/unictype/bidiclass-name.
2704         (Description): Update.
2705         * modules/unictype/bidiclass-name-tests: Renamed from
2706         modules/unictype/bidicategory-name-tests.
2707         * modules/unictype/bidiclass-byname: Renamed from
2708         modules/unictype/bidicategory-byname.
2709         (Description): Update.
2710         * modules/unictype/bidiclass-byname-tests: Renamed from
2711         modules/unictype/bidicategory-byname-tests.
2712         * modules/unictype/bidiclass-of: Renamed from
2713         modules/unictype/bidicategory-of.
2714         (Description): Update.
2715         * modules/unictype/bidiclass-of-tests: Renamed from
2716         modules/unictype/bidicategory-of-tests.
2717         * modules/unictype/bidiclass-test: Renamed from
2718         modules/unictype/bidicategory-test.
2719         (Description): Update.
2720         * modules/unictype/bidiclass-test-tests: Renamed from
2721         modules/unictype/bidicategory-test-tests.
2722         * modules/unictype/bidicategory-all: New file, a simple redirection.
2723         * modules/unictype/bidicategory-name: Likewise.
2724         * modules/unictype/bidicategory-byname: Likewise.
2725         * modules/unictype/bidicategory-of: Likewise.
2726         * modules/unictype/bidicategory-test: Likewise.
2727         * modules/unictype/property-bidi-* (Dependencies): Update.
2728         * lib/unictype/bidi_*.c: Update comment.
2729
2730 2011-03-26  Bruno Haible  <bruno@clisp.org>
2731
2732         unictype/bidi*: Rename functions, part 2.
2733         * modules/unictype/bidicategory-name (configure.ac): Update required
2734         libunistring version.
2735         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2736
2737 2011-03-25  Bruno Haible  <bruno@clisp.org>
2738
2739         New module 'unictype/combining-class-all'.
2740         * modules/unictype/combining-class-all: New file.
2741
2742         Tests for module 'unictype/combining-class-byname'.
2743         * modules/unictype/combining-class-byname-tests: New file.
2744         * tests/unictype/test-combiningclass_byname.c: New file.
2745
2746         New module 'unictype/combining-class-byname'.
2747         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2748         * lib/unictype/combiningclass_byname.c: New file.
2749         * lib/unictype/combiningclass_byname.gperf: New file.
2750         * modules/unictype/combining-class-byname: New file.
2751
2752         Tests for module 'unictype/combining-class-longname'.
2753         * modules/unictype/combining-class-longname-tests: New file.
2754         * tests/unictype/test-combiningclass_longname.c: New file.
2755
2756         New module 'unictype/combining-class-longname'.
2757         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2758         * lib/unictype/combiningclass_longname.c: New file.
2759         * modules/unictype/combining-class-longname: New file.
2760
2761         Tests for module 'unictype/combining-class-name'.
2762         * modules/unictype/combining-class-name-tests: New file.
2763         * tests/unictype/test-combiningclass_name.c: New file.
2764
2765         New module 'unictype/combining-class-name'.
2766         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2767         * lib/unictype/combiningclass_name.c: New file.
2768         * modules/unictype/combining-class-name: New file.
2769
2770 2011-03-25  Bruno Haible  <bruno@clisp.org>
2771
2772         unictype/combining-class: Rename source files.
2773         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2774         of unictype/combining.h.
2775         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2776         Update.
2777         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2778         * modules/unictype/combining-class (Description): Fix.
2779         (Files, Makefile.am): Update.
2780         * tests/unictype/test-combiningclass.c: Renamed from
2781         tests/unictype/test-combining.c.
2782         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2783
2784 2011-03-25  Bruno Haible  <bruno@clisp.org>
2785
2786         unictype: Update list of canonical combining classes.
2787         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2788
2789 2011-03-25  Bruno Haible  <bruno@clisp.org>
2790
2791         unictype/category-byname: Recognize long names as well.
2792         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2793         a long name.
2794         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2795         unictype/categ_byname.h.
2796         (UC_CATEGORY_INDEX_*): New enumeration values.
2797         (uc_general_category_byname): Use uc_general_category_lookup and
2798         convert from index to value.
2799         * lib/unictype/categ_byname.gperf: New file.
2800         * modules/unictype/category-byname (Files): Add
2801         lib/unictype/categ_byname.gperf.
2802         (Depends-on): Add gperf.
2803         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2804         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2805         long names.
2806
2807         Tests for module 'unictype/category-longname'.
2808         * modules/unictype/category-longname-tests: New file.
2809         * tests/unictype/test-categ_longname.c: New file.
2810
2811         New module 'unictype/category-longname'.
2812         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2813         * lib/unictype/categ_longname.c: New file.
2814         * modules/unictype/category-longname: New file.
2815         * modules/unictype/category-all (Depends-on): Add it.
2816
2817 2011-03-25  Bruno Haible  <bruno@clisp.org>
2818
2819         Tests for module 'unictype/category-LC'.
2820         * modules/unictype/category-LC-tests: New file.
2821         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2822
2823         New module 'unictype/category-LC'.
2824         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2825         (UC_CATEGORY_LC): New declaration.
2826         (UC_CASED_LETTER): New macro.
2827         * lib/gen-uni-tables.c (is_category_LC): New function.
2828         (output_categories): Also handle category LC.
2829         (UC_CATEGORY_MASK_LC): New enumeration value.
2830         (general_category_byname): Also handle category LC.
2831         * lib/unictype/categ_LC.c: New file.
2832         * lib/unictype/categ_LC.h: New file, automatically generated.
2833         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2834         category LC.
2835         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2836         * modules/unictype/category-LC: New file.
2837         * modules/unictype/category-byname (Depends-on): Add
2838         unictype/category-LC.
2839         * modules/unictype/category-all (Depends-on): Likewise.
2840
2841 2011-03-25  Eric Blake  <eblake@redhat.com>
2842
2843         xmalloc: revert yesterday's regression
2844         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2845         realloc's underlying behavior (allowing allocation of zero-size
2846         objects, especially if malloc-gnu is also in use).
2847
2848 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2849
2850         maint.mk: add missing version to VC-tag
2851         * top/maint.mk: git tag was missing actual tag name; add it.
2852
2853         valgrind: do leak checking, and exit with code 1 on error (not 0)
2854         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2855         to VALGRIND.
2856
2857 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2858
2859         posix-modules: say what it does.
2860         * posix-modules: Add a line to the --help output saying what it does.
2861
2862 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2863
2864         xmalloc: Do not leak if underlying realloc is C99 compatible.
2865         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2866         This avoids a leak on C99-based systems.  See
2867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2868
2869 2011-03-24  Eric Blake  <eblake@redhat.com>
2870
2871         realloc: document portability problem
2872         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2873         passing 0 size to realloc.
2874
2875 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2876
2877         doc: update users.txt
2878         * users.txt: Add cvsps, tmpwatch
2879
2880 2011-03-23  Matt Rice  <ratmice@gmail.com>
2881
2882         doc: update users.txt
2883         * users.txt: Add gdb.
2884
2885 2011-03-23  Jim Meyering  <meyering@redhat.com>
2886
2887         doc: update users.txt
2888         Looking through matches up to the following URL (there are still
2889         several more pages), I found several projects that use gnulib:
2890         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2891         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2892         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2893
2894 2011-03-22  Bruno Haible  <bruno@clisp.org>
2895
2896         unictype/bidi*: Rename functions.
2897         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2898         uc_bidi_class, uc_is_bidi_class): New declarations.
2899         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2900         uc_bidi_category_byname.
2901         (uc_bidi_category_byname): New function.
2902         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2903         u_bidi_category_name.
2904         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2905         (uc_bidi_category_name): New function.
2906         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2907         uc_bidi_category.
2908         (uc_bidi_category): New function.
2909         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2910         uc_is_bidi_category. Invoke uc_bidi_class.
2911         (uc_is_bidi_category): New function.
2912         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2913         instead of uc_bidi_category_byname.
2914         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2915         instead of uc_bidi_category_name.
2916         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2917         uc_bidi_category.
2918         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2919         instead of uc_is_bidi_category.
2920
2921 2011-03-21  Bruno Haible  <bruno@clisp.org>
2922
2923         New module 'unictype/joininggroup-all'.
2924         * modules/unictype/joininggroup-all: New file.
2925
2926         Tests for module 'unictype/joininggroup-of'.
2927         * modules/unictype/joininggroup-of-tests: New file.
2928         * tests/unictype/test-joininggroup_of.c: New file.
2929         * tests/unictype/test-joininggroup_of.h: New file, automatically
2930         generated by gen-uni-tables.
2931
2932         New module 'unictype/joininggroup-of'.
2933         * modules/unictype/joininggroup-of: New file.
2934         * lib/unictype/joininggroup_of.c: New file.
2935         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2936         gen-uni-tables.
2937
2938         Tests for module 'unictype/joininggroup-byname'.
2939         * modules/unictype/joininggroup-byname-tests: New file.
2940         * tests/unictype/test-joininggroup_byname.c: New file.
2941
2942         New module 'unictype/joininggroup-byname'.
2943         * modules/unictype/joininggroup-byname: New file.
2944         * lib/unictype/joininggroup_byname.c: New file.
2945         * lib/unictype/joininggroup_byname.gperf: New file.
2946
2947         Tests for module 'unictype/joininggroup-name'.
2948         * modules/unictype/joininggroup-name-tests: New file.
2949         * tests/unictype/test-joininggroup_name.c: New file.
2950
2951         New module 'unictype/joininggroup-name'.
2952         * modules/unictype/joininggroup-name: New file.
2953         * lib/unictype/joininggroup_name.c: New file.
2954         * lib/unictype/joininggroup_name.h: New file.
2955
2956         New module 'unictype/joiningtype-all'.
2957         * modules/unictype/joiningtype-all: New file.
2958
2959         Tests for module 'unictype/joiningtype-of'.
2960         * modules/unictype/joiningtype-of-tests: New file.
2961         * tests/unictype/test-joiningtype_of.c: New file.
2962         * tests/unictype/test-joiningtype_of.h: New file, automatically
2963         generated by gen-uni-tables.
2964
2965         New module 'unictype/joiningtype-of'.
2966         * modules/unictype/joiningtype-of: New file.
2967         * lib/unictype/joiningtype_of.c: New file.
2968         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2969         gen-uni-tables.
2970
2971         Tests for module 'unictype/joiningtype-byname'.
2972         * modules/unictype/joiningtype-byname-tests: New file.
2973         * tests/unictype/test-joiningtype_byname.c: New file.
2974
2975         New module 'unictype/joiningtype-byname'.
2976         * modules/unictype/joiningtype-byname: New file.
2977         * lib/unictype/joiningtype_byname.c: New file.
2978
2979         Tests for module 'unictype/joiningtype-name'.
2980         * modules/unictype/joiningtype-name-tests: New file.
2981         * tests/unictype/test-joiningtype_name.c: New file.
2982
2983         New module 'unictype/joiningtype-name'.
2984         * modules/unictype/joiningtype-name: New file.
2985         * lib/unictype/joiningtype_name.c: New file.
2986
2987         unictype: Add support for Arabic shaping properties.
2988         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2989         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2990         declarations.
2991         (UC_JOINING_GROUP_*): New enumeration values.
2992         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2993         declarations.
2994         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2995         (unicode_joining_type): New variable.
2996         (UC_JOINING_GROUP_*): New enumeration values.
2997         (unicode_joining_group): New variable.
2998         (fill_arabicshaping, joining_type_as_c_identifier,
2999         output_joining_type_test, output_joining_type,
3000         joining_group_as_c_identifier, output_joining_group_test,
3001         output_joining_group): New functions.
3002         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3003         fill_arabicshaping and output_joining_type_test, output_joining_type,
3004         output_joining_group_test, output_joining_group.
3005         Reported by Simon Josefsson.
3006
3007 2011-03-21  Jim Meyering  <meyering@redhat.com>
3008
3009         strftime: fix a bug in yesterday's change
3010         * lib/strftime.c (add): Accommodate width's initial value of -1.
3011         Otherwise, nstrftime would copy uninitialized data into
3012         the result buffer.
3013
3014 2011-03-21  Jim Meyering  <meyering@redhat.com>
3015
3016         tests: add strftime-tests module
3017         * tests/test-strftime.c: New file.
3018         * modules/strftime-tests: New module.
3019
3020 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3021
3022         strftime: don't assume a byte count fits in 'int'
3023         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3024         found this problem by static analysis, using gcc -Wstrict-overflow
3025         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3026         on an integer overflow having undefined behavior, but it turns out
3027         that the argument is a size, which might not fit in 'int' anyway,
3028
3029 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3030
3031         stdio: don't require ignore_value around fwrite
3032
3033         This patch works around libc bug 11959
3034         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3035         Without this patch, applications must often write
3036         ignore_value (fwrite (...)) even though the ignore_value is
3037         not helpful here.  It's common to write many objects, using
3038         fwrite/printf/etc., and then use ferror to detect output error.
3039
3040         I considered making this patch optional, but decided against it,
3041         because libc is obviously being inconsistent here: there is no
3042         reason libc should insist that user code must inspect fwrite
3043         return's value without also insisting that it inspect printf's,
3044         putchar's, etc.  If user code wants to have a strict style where
3045         all these functions' values are checked (so that ferror need not
3046         be checked), we could add support for that style in a new gnulib
3047         module, but in the meantime it's better to be consistent and to
3048         support common usage.
3049
3050         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3051         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3052         that we are compiling in checking mode, and if not C++, and
3053         if not already wrapping fwrite for some other reason.
3054         (fwrite): #define to rpl_fwrite if the latter is defined.
3055
3056 2011-03-20  Bruno Haible  <bruno@clisp.org>
3057
3058         verror: Fix compilation error introduced on 2011-02-13.
3059         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3060         instead of __attribute__.
3061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3062
3063 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3064             Bruno Haible  <bruno@clisp.org>
3065
3066         socklen: do not depend on sys_socket
3067         While trying to modify Emacs to use gnulib's socklen module,
3068         I discovered a circular dependency: socklen depends on sys_socket
3069         and vice versa.  Emacs can use socklen, but it does not need
3070         sys_socket because it has its own substitute for sys/socket.h.
3071         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3072         gl_TYPE_SOCKLEN_T.
3073         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3074         gl_PREREQ_SYS_H_SOCKET.
3075         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3076         gl_PREREQ_SYS_H_SOCKET.
3077         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3078         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3079         * modules/socklen (Depends-on): Do not depend on sys_socket.
3080         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3081
3082 2011-03-20  Jim Meyering  <meyering@redhat.com>
3083
3084         maint.mk: sort file names *after* new transformation
3085         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3086         prefix would have led to an unwarranted failure in GNU parted.
3087         Sort after that transformation.
3088
3089 2011-03-19  Jim Meyering  <meyering@redhat.com>
3090
3091         maint.mk: fix po-file syntax-check rule
3092         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3093         Patch by Bruno Haible.
3094
3095 2011-03-19  Bruno Haible  <bruno@clisp.org>
3096
3097         socklen: Update comment.
3098         * m4/socklen.m4: Update comment about platforms.
3099
3100 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3101             Bruno Haible  <bruno@clisp.org>
3102
3103         inet_ntop, inet_pton: Simplify.
3104         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3105         documented to provide socklen_t and we already depend on sys_socket.
3106         * modules/inet_pton (Depends-on): Likewise.
3107         * lib/arpa_inet.in.h: Adjust comment.
3108
3109 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3110             Bruno Haible  <bruno@clisp.org>
3111
3112         netdb: Simplify.
3113         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3114         documented to provide socklen_t and we already depend on sys_socket.
3115         * lib/netdb.in.h: Adjust comment.
3116
3117 2011-03-19  Bruno Haible  <bruno@clisp.org>
3118
3119         sys_socket, netdb: Document problem with socklen_t.
3120         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3121         platforms.
3122         * doc/posix-headers/netdb.texi: Likewise.
3123
3124 2011-03-18  Eric Blake  <eblake@redhat.com>
3125
3126         maint.mk: let po check work in VPATH build
3127         * top/maint.mk (po_file): Allow cfg.mk override.
3128         (sc_po_check): Allow VPATH use.
3129         Reported by Jiri Denemark.
3130
3131 2011-03-16  Jim Meyering  <meyering@redhat.com>
3132
3133         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3134         Before, you would have had to create one .x-sc_ file per rule in order
3135         to exempt offending files.  Now, you may instead use a Make variable --
3136         usually defined in cfg.mk -- whose name identifies the affected rule.
3137         * top/maint.mk (_sc_excl): Define.
3138         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3139         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3140
3141 2011-03-13  Bruno Haible  <bruno@clisp.org>
3142
3143         ignore-value tests: Avoid warnings.
3144         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3145         empty for gcc < 3.4.
3146
3147 2011-03-13  Bruno Haible  <bruno@clisp.org>
3148
3149         passfd: Fix link error on Solaris.
3150         * modules/passfd (Description): Correct.
3151         (Depends-on): Add socketlib.
3152         (Link): New section.
3153         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3154
3155 2011-03-13  Bruno Haible  <bruno@clisp.org>
3156
3157         passfd: Fix link error on AIX 5.2.
3158         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3159
3160 2011-03-13  Bruno Haible  <bruno@clisp.org>
3161
3162         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3163         * lib/sys_socket.in.h: Include <stddef.h>.
3164         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3165         CMSG_FIRSTHDR. Remove unused variable.
3166
3167 2011-03-13  Bruno Haible  <bruno@clisp.org>
3168
3169         passfd: Fix compilation error on OpenBSD.
3170         * lib/passfd.c: Include <sys/uio.h>.
3171
3172 2011-03-13  Bruno Haible  <bruno@clisp.org>
3173
3174         passfd test: Fix warnings.
3175         * tests/test-passfd.c: Include <sys/wait.h>.
3176         (main): Fix typo.
3177
3178 2011-03-13  Bruno Haible  <bruno@clisp.org>
3179
3180         passfd module, part 4, tweaks.
3181         * tests/test-passfd.c: Reorder includes.
3182         (main): Fix perror and printf calls.
3183
3184 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3185
3186         passfd module, part 4.
3187         * modules/passfd-tests: New file.
3188         * tests/test-passfd.c: New file.
3189
3190 2011-03-13  Jim Meyering  <meyering@redhat.com>
3191
3192         Makefile: rely on GNU make; derive syntax-check rule names
3193         Rather than requiring that each sc_ rule be listed as a dependent
3194         of "check", use features of GNU make to derive the list.
3195         * Makefile (syntax-check-rules): Define.
3196         (check): Depend on the new variable, not the hard-coded list.
3197
3198 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3199             Bruno Haible  <bruno@clisp.org>
3200
3201         passfd module, part 3.
3202         * lib/passfd.h (recvfd): Add a flags argument.
3203         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3204         (recvfd): Add a flags argument.
3205         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3206         exists.
3207         * modules/passfd (Depends-on): Add cloexec.
3208         Suggested by Eric Blake.
3209
3210 2011-03-13  Bruno Haible  <bruno@clisp.org>
3211
3212         passfd module, part 2, tweaks.
3213         * modules/passfd (Files): Reorder.
3214         (Depends-on): Remove errno.
3215         (Include): Remove <sys/socket.h>, <sys/un.h>.
3216         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3217         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3218         specification header. Include <sys/socket.h> always. Don't include
3219         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3220         (sendfd): Clarify that it sets errno when it fails.
3221         (recvfd): Fix specification.
3222
3223 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3224
3225         passfd module, part 2.
3226         * modules/passfd: New file.
3227         * lib/passfd.h: New file.
3228         * lib/passfd.c: New file.
3229
3230 2011-03-12  Bruno Haible  <bruno@clisp.org>
3231
3232         wcswidth, mbswidth: Avoid integer overflow.
3233         * lib/wcswidth.c: Include <limits.h>.
3234         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3235         * lib/mbswidth.c: Include <limits.h>.
3236         (mbsnwidth): Avoid 'int' overflow.
3237         Reported by Jim Meyering.
3238
3239 2011-03-12  Bruno Haible  <bruno@clisp.org>
3240
3241         futimens, utimensat: Avoid endless recursion on Solaris 10.
3242         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3243         Solaris.
3244         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3245         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3246
3247 2011-03-11  Jim Meyering  <meyering@redhat.com>
3248
3249         maint.mk: relax a regexp to accommodate other formatting styles
3250         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3251         between "ngettext" and the following "(".
3252
3253 2011-03-11  Pádraig Brady <P@draigBrady.com>
3254
3255         maint.mk: suppress a false positive warning
3256         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3257         diagnostics are marked with ngettext.
3258
3259 2011-03-10  Eric Blake  <eblake@redhat.com>
3260
3261         wchar: add explicit dependencies, for Tru64
3262         * modules/mbmemcasecoll (Depends-on): Add wchar.
3263         * modules/mbtowc (Depends-on): Likewise.
3264         * modules/vasnprintf (Depends-on): Likewise.
3265         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3266         * modules/wctomb (Depends-on): Likewise.
3267         Reported by Peter O'Gorman.
3268
3269 2011-03-08  Bruno Haible  <bruno@clisp.org>
3270
3271         passfd module, part 1, tweaks.
3272         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3273         Improve indentation. Improve AC_MSG_CHECKING messages.
3274         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3275         gl_SOCKET_FAMILIES.
3276
3277 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3278
3279         passfd module, part 1.
3280         * m4/afunix.m4: New file.
3281         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3282         sockets.
3283
3284 2011-03-08  Bruno Haible  <bruno@clisp.org>
3285
3286         regex-quote: New API.
3287         * lib/regex-quote.h: Include <stdbool.h>.
3288         (struct regex_quote_spec): New type.
3289         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3290         New declarations.
3291         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3292         'const struct regex_quote_spec *' argument.
3293         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3294         (pcre_special): New constant.
3295         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3296         New functions.
3297         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3298         'const struct regex_quote_spec *' argument.
3299         * modules/regex-quote (Depends-on): Add stdbool.
3300         * tests/test-regex-quote.c (check): Update for new API. Add test for
3301         anchored results.
3302         * NEWS: Mention the API change.
3303         Reported by Reuben Thomas and Eric Blake.
3304
3305 2011-03-06  Bruno Haible  <bruno@clisp.org>
3306
3307         regex-quote: Fix creation of POSIX extended regular expressions.
3308         * lib/regex-quote.c (ere_special): Add grouping and alternation
3309         operators.
3310
3311 2011-03-05  Bruno Haible  <bruno@clisp.org>
3312
3313         doc: Improve doc regarding autopoint vs. gnulib.
3314         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3315         disable autopoint while running autoreconf.
3316         Suggested by Ralf Wildenhues.
3317
3318 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3319
3320         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3321         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3322
3323 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3324
3325         parse-duration: remove xalloc.h dependency
3326         * lib/parse-duration.c (parse_period): handle NULL return from
3327         strdup instead of calling xstrdup().
3328         * modules/parse-duration: remove "xalloc" dependency
3329
3330 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3331
3332         bootstrap: honor m4_base when running aclocal
3333         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3334
3335 2011-03-02  Jim Meyering  <meyering@redhat.com>
3336
3337         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3338         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3339         on request from Matt Booth.
3340
3341 2011-03-01  Eric Blake  <eblake@redhat.com>
3342
3343         test-link: work on Hurd
3344         * tests/test-link.h (test_link): Hurd rejects linking directories
3345         with EISDIR instead of the POSIX-mandated EPERM.
3346
3347 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3348
3349         stdio: simplify by moving files to printf-posix, sigpipe
3350         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3351         since this symbol is needed only if printf is replaced.
3352         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3353         Require gl_ASM_SYMBOL_PREFIX.
3354         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3355         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3356         (Depends-on): Add 'raise'.
3357         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3358         * modules/stdio (Files): Remove lib/stdio-write.c,
3359         m4/asm-underscore.m4.
3360         (Depends-on): Remove 'raise'.
3361
3362         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3363         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3364         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3365         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3366
3367 2011-02-28  Bruno Haible  <bruno@clisp.org>
3368
3369         localcharset: Assume ANSI C behaviour of free().
3370         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3371         calling free().
3372         Suggested by Simon Josefsson <simon@josefsson.org>.
3373
3374 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3375             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3376             Bruno Haible  <bruno@clisp.org>  (tiny change)
3377
3378         On Cygwin, use /proc file system instead of win32 API.
3379         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3380         Win32 file names.
3381         (DllMain): Simplify by removing Cygwin specific code.
3382         (find_shared_library_fullname): Use Linux specific implementation also
3383         for Cygwin.
3384         (get_shared_library_fullname): Update accordingly.
3385         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3386         Win32 file names.
3387         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3388         Cygwin specific code.
3389
3390 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3391             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3392
3393         Fix OpenMP flag detection for various Fortran compilers.
3394         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3395         OpenMP-conditional compilation construct, to force compile
3396         failure with missing OpenMP flag.
3397         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3398
3399 2011-02-25  Eric Blake  <eblake@redhat.com>
3400
3401         strstr: expand test coverage
3402         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3403         compilation.
3404         * tests/test-memmem.c (main): Duplicate tests.
3405         * tests/test-strcasestr.c (main): Likewise.
3406         * tests/test-c-strcasestr.c (main): Likewise.
3407
3408 2011-02-25  Jim Meyering  <meyering@redhat.com>
3409
3410         maint.mk: detect missing-NL-at-EOF, too
3411         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3412         it also detects when a file lacks a newline at EOF.
3413         (require_exactly_one_NL_at_EOF_): Renamed from
3414         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3415         since people may well have .x-sc_... file names tied to the
3416         existing name.  Suggested by Eric Blake.
3417
3418 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3419
3420         dirname: move m4/dos.m4 functionality into lib/dosname.h
3421
3422         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3423         extracts symbols from it, puts them into config.h; but it's much
3424         easier to use the symbols directly.  filename.h already does this,
3425         but it disagrees with dos.m4 in some respects.  This patch
3426         introduces a different include file dosname.h that packages up
3427         dos.m4, and then later we can work on merging filename.h and
3428         dosname.h.  Applications that need only the easy-to-configure
3429         symbols should consider including dosname.h rather than dirname.h.
3430         * NEWS: Mention incompatible changes.
3431         * m4/dos.m4: Remove.
3432         * lib/dosname.h, modules/dosname: New files.
3433         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3434         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3435         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3436         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3437         Include dosname.h, not dirname.h.
3438         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3439         Include dosname.h, for definitions of symbols like ISSLASH
3440         that used to be in config.h.
3441         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3443         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3444         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3445         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3446         * modules/rmdir (Files): Likewise.
3447         * modules/stat (Files): Likewise.
3448         * modules/unlink (Files): Likewise.
3449         * modules/dirname-lgpl (Depends-on): Add dosname.
3450         * modules/lstat (Depends-on): Likewise.
3451         * modules/openat (Depends-on): Likewise.
3452         * modules/rmdir (Depends-on): Likewise.
3453         * modules/savewd (Depends-on): Likewise.
3454         * modules/stat (Depends-on): Likewise.
3455         * modules/unlink (Depends-on): Likewise.
3456         * modules/openat (Depends-on): Remove dirname-lgpl.
3457         * modules/savewd (Depends-on): Likewise.
3458         * tests/test-dirname.c: Do not use removed symbols like
3459         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3460         the remaining symbols, e.g., ISSLASH ('\\').
3461
3462 2011-02-25  Eric Blake  <eblake@redhat.com>
3463
3464         strstr: revert patches that introduced bug and pessimization
3465         * lib/str-two-way.h: Add another reference.
3466         (two_way_short_needle, two_way_long_needle): Revert changes from
3467         2011-02-24; they pessimize search speed.
3468         (critical_factorization): Partially revert changes from
3469         2010-06-22; they violate the requirement that the left half of the
3470         needle be smaller than the period of the needle.
3471
3472 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         filenamecat: remove unnecessary dependency on dirname-lgpl
3475         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3476         is no direct dependency, just an indirect one via filenamecat-lgpl.
3477
3478         remove: remove unnecessary use of m4/dos.m4
3479         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3480         * modules/remove (FILES): Remove m4/dos.m4.
3481
3482         * lib/openat-proc.c: Don't include dirname.h; not needed.
3483
3484         backupfile: remove unnecessary use of m4/dos.m4
3485         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3486         of its symbols are used by the backupfile code.  backupfile.c does
3487         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3488         for the rare case of programs that want all their backup file
3489         names to live within 8+3 limits, and dos.m4 doesn't address that.
3490         * modules/backupfile (Files): Remove m4/dos.m4.
3491
3492 2011-02-24  Jim Meyering  <meyering@redhat.com>
3493
3494         strstr: fix a bug whereby strstr would mistakenly return NULL
3495         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3496         in period calculation.
3497         (two_way_long_needle): Likewise.
3498         The original problem was reported by Mike Stump in
3499         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3500         Ralf Wildenhues provided the short needle and haystack.
3501         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3502         Add a more involved test to trigger the bug in two_way_long_needle.
3503
3504 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3505
3506         gnulib-tool: remove use of bold display in help screen
3507         * gnulib-tool (func_usage): Do not use bold display anymore in the
3508         help screen.  That was just meant to be a temporary emphasis for a
3509         backward-incompatible change.
3510
3511 2011-02-23  Bruno Haible  <bruno@clisp.org>
3512
3513         Fix misindentation of preprocessor directives.
3514         * lib/argp-namefrob.h: Reindent preprocessor directives.
3515         * lib/getopt_int.h (struct _getopt_data): Likewise.
3516         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3517         * lib/vasnprintf.c (decode_long_double): Likewise.
3518         * tests/test-argmatch.c: Insert blank lines, for clarity.
3519         * tests/test-exclude.c: Likewise.
3520
3521 2011-02-22  Bruno Haible  <bruno@clisp.org>
3522
3523         ioctl: Fix for MacOS X in 64-bit mode.
3524         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3525         value.
3526         Suggested by Eric Blake.
3527         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3528
3529 2011-02-22  Jim Meyering  <meyering@redhat.com>
3530
3531         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3532         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3533         in lib/.
3534
3535 2011-02-22  Eric Blake  <eblake@redhat.com>
3536
3537         maint: avoid any CDPATH issue
3538         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3539
3540         maint: adjust cpp indentation for my modules, as well
3541         * Makefile (sc_cpp_indent_check): Add my name.
3542         * lib/fbufmode.c: Filter through cppi.
3543         * lib/fpurge.c: Likewise.
3544         * lib/freadable.c: Likewise.
3545         * lib/freading.c: Likewise.
3546         * lib/fwritable.c: Likewise.
3547         * lib/fwriting.c: Likewise.
3548         * lib/sigaction.c: Likewise.
3549
3550 2011-02-22  Jim Meyering  <meyering@redhat.com>
3551
3552         maint: adjust cpp indentation to reflect nesting depth
3553         I.e., in a block of code that begins with an unnested "#if",
3554         put one space between the "#" in column 1 and following token.
3555         For example,
3556         -#include <sys/vfs.h>
3557         +# include <sys/vfs.h>
3558         Do this only in .c files that are part of a module I maintain.
3559         * lib/linkat.c: Filter through cppi.
3560         * lib/nanosleep.c: Likewise.
3561         * lib/openat.c: Likewise.
3562         * lib/openat-die.c: Likewise.
3563         * lib/dup3.c: Likewise.
3564         * lib/fchownat.c: Likewise.
3565         * lib/flock.c: Likewise.
3566         * lib/fsync.c: Likewise.
3567         * lib/fts.c: Likewise.
3568         * lib/getpass.c: Likewise.
3569         * lib/gettimeofday.c: Likewise.
3570         * lib/userspec.c: Likewise.
3571         * Makefile (sc_cpp_indent_check): New rule, to check this.
3572
3573 2011-02-22  Bruno Haible  <bruno@clisp.org>
3574
3575         New module 'wctomb'.
3576         * lib/stdlib.in.h (wctomb): New declaration.
3577         * lib/wctomb.c: New file.
3578         * lib/wctomb-impl.h: New file.
3579         * m4/wctomb.m4: New file.
3580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3581         REPLACE_WCTOMB.
3582         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3583         REPLACE_WCTOMB.
3584         * modules/wctomb: New file.
3585         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3586         * doc/posix-functions/wctomb.texi: Mention the new module.
3587         * modules/wctob (Depends-on): Add wctomb.
3588
3589 2011-02-22  Bruno Haible  <bruno@clisp.org>
3590
3591         New module 'mbtowc'.
3592         * lib/stdlib.in.h (mbtowc): New declaration.
3593         * lib/mbtowc.c: New file.
3594         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3595         * m4/mbtowc.m4: New file.
3596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3597         REPLACE_MBTOWC.
3598         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3599         REPLACE_MBTOWC.
3600         * modules/mbtowc: New file.
3601         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3602         * doc/posix-functions/mbtowc.texi: Mention the new module.
3603         * modules/btowc (Depends-on): Add mbtowc.
3604
3605 2011-02-22  Bruno Haible  <bruno@clisp.org>
3606
3607         wcrtomb: Add more tests for native Windows platforms.
3608         * tests/test-wcrtomb-w32-1.sh: New file.
3609         * tests/test-wcrtomb-w32-2.sh: New file.
3610         * tests/test-wcrtomb-w32-3.sh: New file.
3611         * tests/test-wcrtomb-w32-4.sh: New file.
3612         * tests/test-wcrtomb-w32-5.sh: New file.
3613         * tests/test-wcrtomb-w32.c: New file.
3614         * modules/wcrtomb-tests (Files): Add them.
3615         (Makefile.am): Arrange to run these tests.
3616         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3617         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3618
3619 2011-02-20  Bruno Haible  <bruno@clisp.org>
3620
3621         wcrtomb: Enhance test.
3622         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3623
3624 2011-02-20  Bruno Haible  <bruno@clisp.org>
3625
3626         mbrtowc: Tiny optimization.
3627         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3628
3629 2011-02-20  Jim Meyering  <meyering@redhat.com>
3630
3631         test-exclude.c: remove unmatched #endif
3632         * tests/test-exclude.c: Remove stray #endif, left over from
3633         the change of a week ago.
3634
3635 2011-02-19  Jim Meyering  <meyering@redhat.com>
3636
3637         git-version-gen: skip "-dirty" check when appropriate
3638         * build-aux/git-version-gen: Don't run any git commands when the
3639         version string comes from .tarball-version.  Prior to this, we
3640         would run git update-index --refresh even from a just-unpacked
3641         tarball directory, and that could affect a .git/ directory in a
3642         parent of the build directory.  Reported by Mike Frysinger.
3643
3644 2011-02-19  Bruno Haible  <bruno@clisp.org>
3645
3646         unictype/property-byname: Reduce the size of the 'data' segment.
3647         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3648
3649 2011-02-19  Bruno Haible  <bruno@clisp.org>
3650
3651         unictype/scripts: Reduce the size of the 'data' segment.
3652         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3653         '%pic'.
3654         * lib/unictype/scripts_byname.gperf: Regenerated.
3655
3656 2011-02-19  Bruno Haible  <bruno@clisp.org>
3657
3658         stdint: Update documentation.
3659         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3660
3661 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3662
3663         stdint: omit redundant check for wchar.h
3664         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3665         always tests whether wchar.h exists, so remove the now-redundant test.
3666
3667 2011-02-18  Bruno Haible  <bruno@clisp.org>
3668
3669         stdint: Cut dependency to module 'wchar'.
3670         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3671         include the necessary prerequisites.
3672         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3673         * modules/stdint (Depends-on): Remove wchar.
3674         (Makefile.am): Substitute HAVE_WCHAR_H.
3675         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3676
3677 2011-02-18  Eric Blake  <eblake@redhat.com>
3678
3679         longlong: skip, rather than fail, on cross-compilation
3680         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3681         when cross-compiling; regression from 2011-02-16.
3682
3683 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3684
3685         * NEWS: Mention 2011-02-08 change to stdlib.
3686
3687 2011-02-17  Bruno Haible  <bruno@clisp.org>
3688
3689         getloadavg: Add comments about platforms.
3690         * m4/getloadavg.m4: Add comment.
3691         * lib/getloadavg.c: Likewise.
3692
3693 2011-02-17  Bruno Haible  <bruno@clisp.org>
3694
3695         getloadavg: Fix link error on Solaris 2.6.
3696         * modules/getloadavg (Link): New section.
3697         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3698         linking test-getloadavg.
3699         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3700         getloadavg.
3701
3702 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3705         It was 'int', but this doesn't match the IRIX 6.5 manual.
3706         Suggested by Bruno Haible in
3707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3708
3709 2011-02-17  Bruno Haible  <bruno@clisp.org>
3710
3711         havelib: Fix comments.
3712         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3713         change.
3714
3715 2011-02-17  Bruno Haible  <bruno@clisp.org>
3716
3717         havelib: Update config.rpath.
3718         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3719
3720 2011-02-17  Bruno Haible  <bruno@clisp.org>
3721
3722         getloadavg test: Add some plausibility checks.
3723         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3724         is improbable.
3725
3726 2011-02-16  Eric Blake  <eblake@redhat.com>
3727
3728         maintainer-makefile: make syntax-check a no-op from tarballs
3729         * top/maint.mk (no-vc-detected): New rule.
3730         (local-checks-available): Use it to avoid hanging if someone tries
3731         'make syntax-check' from a tarball.  Also append to any non-syntax
3732         checks already defined in cfg.mk.
3733
3734 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3735
3736         longlong: tune, particularly for common case of c99
3737
3738         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3739         or running anything if c99, or if unsigned long long int does not
3740         work.  In either case, we know the answer without further tests.
3741         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3742         it at most once, and use its results for both long long int and
3743         unsigned long long int.  This is more likely to be efficient in
3744         the common case where the program wants to check for both long
3745         long int and unsigned long long int.
3746         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3747         since the answer is already known.
3748
3749 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3750
3751         getloadavg: set errno
3752         * lib/getloadavg.c: Set errno when returning -1.  If no other
3753         error number looks appropriate, set it to ENOSYS if the getloadavg
3754         looks like it can't possibly ever work, ENOTSUP otherwise.
3755         Suggested by Bruno Haible in
3756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3757
3758         getloadavg: trim unused parts and speed up 'configure'
3759         * NEWS: Document this.
3760         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3761         always compiled if getloadavg is absent.
3762         Move test code to ...
3763         * tests/test-getloadavg.c: New file, containing previous
3764         contents of test from lib/getloadavg.c.  It also contains
3765         suggestions by Bruno Haible in
3766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3767         * modules/getloadavg-tests: New file.
3768         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3769         Do tests in the same order as they're needed for getloadavg.c.
3770         Omit setgid-related tests that generate symbols KMEM_GROUP,
3771         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3772         Do only the tests that are needed to see whether the system has
3773         getloadavg, moving the other tests into ...
3774         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3775         NLIST_NAME_UNION; nobody should be using it.  Do not define
3776         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3777         relevant, as the user of this module shouldn't care how getloadavg
3778         is implemented.
3779
3780         getloadavg: omit unused var
3781         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3782
3783 2011-02-15  Jim Meyering  <meyering@redhat.com>
3784
3785         doc: update users.txt
3786         * users.txt: Update iwhd's URL.
3787
3788 2011-02-13  Bruno Haible  <bruno@clisp.org>
3789
3790         Consistent macro naming for macros that use GCC __attribute__.
3791         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3792         _ATTRIBUTE_NONNULL_.
3793         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3794         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3795         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3796         ATTRIBUTE_DEPRECATED.
3797         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3798         ATTRIBUTE_NORETURN.
3799         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3800         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3801         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3802         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3803         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3804         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3805         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3806         ATTRIBUTE_SENTINEL.
3807         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3808         ATTRIBUTE_RETURN_CHECK.
3809         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3810         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3811         ATTRIBUTE_NORETURN.
3812         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3813         Reported by Paul Eggert.
3814
3815 2011-02-13  Bruno Haible  <bruno@clisp.org>
3816
3817         Don't interfere with a program's definition of __attribute__.
3818         * lib/argp.h (__attribute__): Remove definition.
3819         (_GL_ATTRIBUTE_FORMAT): New macro.
3820         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3821         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3822         (_GL_ATTRIBUTE_FORMAT): New macro.
3823         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3824         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3825         GCC 3 or newer.
3826         * lib/error.h (__attribute__): Remove definition.
3827         (_GL_ATTRIBUTE_FORMAT): New macro.
3828         (error, error_at_line): Use it.
3829         * lib/hash.h (__attribute__): Remove definition.
3830         (ATTRIBUTE_WUR): Update definition. Define always.
3831         * lib/openat.h (__attribute__): Remove definition.
3832         (ATTRIBUTE_NORETURN): Update definition. Define always.
3833         * lib/sigpipe-die.h (__attribute__): Remove definition.
3834         (ATTRIBUTE_NORETURN): Update definition. Define always.
3835         * lib/vasnprintf.h (__attribute__): Remove definition.
3836         (_GL_ATTRIBUTE_FORMAT): New macro.
3837         (asnprintf, vasnprintf): Use it.
3838         * lib/xalloc.h (__attribute__): Remove definition.
3839         (ATTRIBUTE_NORETURN): Update definition. Define always.
3840         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3841         * lib/xmemdup0.h (__attribute__): Remove definition.
3842         (ATTRIBUTE_NORETURN): Update definition. Define always.
3843         * lib/xprintf.h (__attribute__): Remove definition.
3844         (_GL_ATTRIBUTE_FORMAT): New macro.
3845         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3846         * lib/xstrtol.h (__attribute__): Remove definition.
3847         (ATTRIBUTE_NORETURN): Update definition. Define always.
3848         * lib/xvasprintf.h (__attribute__): Remove definition.
3849         (_GL_ATTRIBUTE_FORMAT): New macro.
3850         (xasprintf, xvasprintf): Use it.
3851         * tests/test-argmatch.c (__attribute__): Remove definition.
3852         (ATTRIBUTE_NORETURN): Update definition. Define always.
3853         * tests/test-exclude.c (__attribute__): Remove definition.
3854         (ATTRIBUTE_NORETURN): Update definition. Define always.
3855         Reported by Paul Eggert.
3856
3857 2011-02-13  Bruno Haible  <bruno@clisp.org>
3858
3859         mbrtowc: Add more tests for native Windows platforms.
3860         * tests/test-mbrtowc-w32-1.sh: New file.
3861         * tests/test-mbrtowc-w32-2.sh: New file.
3862         * tests/test-mbrtowc-w32-3.sh: New file.
3863         * tests/test-mbrtowc-w32-4.sh: New file.
3864         * tests/test-mbrtowc-w32-5.sh: New file.
3865         * tests/test-mbrtowc-w32.c: New file.
3866         * modules/mbrtowc-tests (Files): Add them.
3867         (Makefile.am): Arrange to run these tests.
3868         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3869         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3870
3871 2011-02-13  Bruno Haible  <bruno@clisp.org>
3872
3873         mbrtowc: Work around native Windows bug.
3874         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3875         guess when no suitable locale for testing was found.
3876         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3877
3878 2011-02-13  Bruno Haible  <bruno@clisp.org>
3879
3880         mbsinit: Work around mingw bug.
3881         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3882         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3883         Windows.
3884         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3885
3886 2011-02-13  Bruno Haible  <bruno@clisp.org>
3887
3888         mbsinit: Don't crash for a NULL argument.
3889         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3890         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3891
3892 2011-02-13  Bruno Haible  <bruno@clisp.org>
3893
3894         Don't interfere with a program's definition of __attribute__.
3895         * lib/stdio.in.h (__attribute__): Remove definition.
3896         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3897         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3898         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3899         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3900         * lib/string.in.h (__attribute__): Remove definition.
3901         Reported by Paul Eggert.
3902
3903 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3904
3905         stdlib: don't get in the way of non-GCC __attribute__
3906         See thread starting at
3907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3908         Revert previous stdlib change, installing the following instead:
3909         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3910         to get in the way of a non-GCC compiler that supports __attribute__.
3911         (_GL_ATTRIBUTE_RETURN): New macro.
3912         (_Exit): Use it instead of __attribute__.
3913
3914 2011-02-12  Bruno Haible  <bruno@clisp.org>
3915
3916         quotearg test: Avoid test failure on mingw.
3917         * tests/test-quotearg.sh: Convert the locale identifier from native
3918         Windows syntax to Unix syntax.
3919
3920 2011-02-12  Bruno Haible  <bruno@clisp.org>
3921
3922         setlocale: Prefer gnulib's override over libintl's override.
3923         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3924         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3925         GNULIB_defined_setlocale is set.
3926
3927 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3928
3929         stdlib: support non-GCC __attribute__
3930
3931         Fix a serious and tricky problem encountered when attempting to
3932         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3933         5.5, but it crashed due to memory corruption on Solaris 10 with
3934         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3935         bits that are otherwise zero.  This tagging is optional inside
3936         Emacs but is preferred and is used when __attribute__ ((__aligned
3937         (8))) works, as it does with both recent-enough GCC and with Sun C
3938         5.11.  However, Sun C 5.11 is not GCC and does not #define
3939         __GNUC__ and __GNUC_MINOR__.
3940
3941         When I added the getloadavg module to Emacs, it brought in
3942         stdlib.in.h, which contained this fragment:
3943
3944            #ifndef __attribute__
3945            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3946            #  define __attribute__(Spec)   /* empty */
3947            # endif
3948            #endif
3949
3950         When files that include <stdlib.h> were compiled with Sun C 5.11,
3951         the above code disabled __attribute__ ((__aligned (8))), which
3952         caused variables to not be properly aligned, which eventually led
3953         to the pointer corruption mentioned above.  (This was a bit hard
3954         to diagnose, unfortunately.)
3955
3956         Several "#define __attribute__(X) /* empty */" code snippets need
3957         to be eradicated from Gnulib to work with non-GCC compilers that
3958         support __attribute__.  The Autoconf way to do this is to test for
3959         each kind of attribute that we want support for, and selectively
3960         enable that in source code.
3961
3962         Fix this problem just for stdlib.h, by adding a test for the
3963         __noreturn__ attribute, and change stdlib.in.h to use that test
3964         when needed.  This technique can be easily generalized to the
3965         other *.in.h files and attributes, and a similar technique can be
3966         used for *.h and *.c files.  This patch is enough to solve the
3967         problem for Emacs + getloadavg, and I thought I'd publish it for
3968         feedback before undertaking further, similar fixes in other
3969         modules.
3970
3971         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3972         because it's not needed for stdlib.h.  It merely substitutes the
3973         value directly into stdlib.h.  We may well need to #define it, or
3974         similar symbols, for other modules, but it's nice to also have an
3975         option to not #define it for applications like Emacs that do not
3976         need it.
3977
3978         * lib/stdlib.in.h (__attribute__): Do not #define.
3979         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3980         be defined only if the _Exit module is also used.
3981         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3983         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3984         platforms.
3985         * modules/_Exit (Files): Add m4/attribute.m4.
3986         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3987         * m4/attribute.m4: New file.
3988
3989 2011-02-12  Bruno Haible  <bruno@clisp.org>
3990
3991         wcsrtombs: Work around bug on native Windows.
3992         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3993         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3994         instead of len.
3995         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3996
3997 2011-02-12  Bruno Haible  <bruno@clisp.org>
3998
3999         mbsrtowcs: Work around bug on native Windows.
4000         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4001         against mingw bug.
4002         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4003
4004 2011-02-12  Bruno Haible  <bruno@clisp.org>
4005
4006         Avoid setlocale bugs in tests.
4007         * modules/btowc (Dependencies): Add setlocale.
4008         * modules/c-strcase (Dependencies): Likewise.
4009         * modules/mbmemcasecmp (Dependencies): Likewise.
4010         * modules/mbmemcasecoll (Dependencies): Likewise.
4011         * modules/mbrtowc (Dependencies): Likewise.
4012         * modules/mbscasecmp (Dependencies): Likewise.
4013         * modules/mbscasestr (Dependencies): Likewise.
4014         * modules/mbschr (Dependencies): Likewise.
4015         * modules/mbscspn (Dependencies): Likewise.
4016         * modules/mbsinit (Dependencies): Likewise.
4017         * modules/mbsncasecmp (Dependencies): Likewise.
4018         * modules/mbsnrtowcs (Dependencies): Likewise.
4019         * modules/mbspbrk (Dependencies): Likewise.
4020         * modules/mbspcasecmp (Dependencies): Likewise.
4021         * modules/mbsrchr (Dependencies): Likewise.
4022         * modules/mbsrtowcs (Dependencies): Likewise.
4023         * modules/mbsspn (Dependencies): Likewise.
4024         * modules/mbsstr (Dependencies): Likewise.
4025         * modules/nl_langinfo (Dependencies): Likewise.
4026         * modules/quotearg (Dependencies): Likewise.
4027         * modules/unicase/locale-language (Dependencies): Likewise.
4028         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4029         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4030         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4031         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4032         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4033         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4034         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4035         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4036         * modules/vasnprintf-posix (Dependencies): Likewise.
4037         * modules/wcrtomb (Dependencies): Likewise.
4038         * modules/wcsnrtombs (Dependencies): Likewise.
4039         * modules/wcsrtombs (Dependencies): Likewise.
4040
4041 2011-02-12  Bruno Haible  <bruno@clisp.org>
4042
4043         setlocale: Workaround native Windows bug.
4044         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4045         succeeds but sets LC_CTYPE to "C", report a failure.
4046         * tests/test-setlocale2.sh: New file.
4047         * tests/test-setlocale2.c: New file.
4048         * modules/setlocale-tests (Files): Add the new files.
4049         (Makefile.am): Enable test-setlocale2.sh test.
4050         * doc/posix-functions/setlocale.texi: Mention workaround.
4051
4052 2011-02-11  Bruno Haible  <bruno@clisp.org>
4053
4054         Tests for module 'setlocale'.
4055         * modules/setlocale-tests: New file.
4056         * tests/test-setlocale1.sh: New file.
4057         * tests/test-setlocale1.c: New file.
4058
4059         New module 'setlocale'.
4060         * lib/locale.in.h (setlocale): New declaration.
4061         * lib/setlocale.c: New file, based on
4062         gettext/gettext-runtime/intl/setlocale.c.
4063         * m4/setlocale.m4: New file.
4064         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4065         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4066         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4067         REPLACE_SETLOCALE.
4068         * modules/setlocale: New file.
4069         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4070         * doc/posix-functions/setlocale.texi: Mention the new module.
4071
4072 2011-02-11  Bruno Haible  <bruno@clisp.org>
4073
4074         Prepare for locale dependent tests on mingw.
4075         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4076         because it has the wrong locale encoding.
4077         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4078         French_France.1252 instead of "fr".
4079         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4080         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4081         because it has the wrong locale encoding.
4082         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4083         native Windows, try Turkish_Turkey.65001.
4084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4085         Chinese_China.54936.
4086
4087         Prepare for locale dependent tests on mingw.
4088         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4089         differently.
4090         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4091         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4092         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4093         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4094
4095 2011-02-11  Eric Blake  <eblake@redhat.com>
4096
4097         strptime: avoid compiler warnings
4098         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4099         compiler warnings about dead code.
4100         Reported by Daniel P. Berrange.
4101
4102 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4103
4104         doc: update users.txt
4105         * users.txt: Add rcs.
4106
4107 2011-02-10  John W. Eaton  <jwe@gnu.org>
4108
4109         doc: update users.txt
4110         * users.txt: Add octave.
4111
4112 2011-02-10  Jim Meyering  <meyering@redhat.com>
4113
4114         doc: update users.txt
4115         * users.txt: Add iwhd.
4116
4117 2011-02-09  Bruno Haible  <bruno@clisp.org>
4118
4119         gnulib-tool: Make copyright notice adjustment more robust.
4120         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4121         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4122         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4123         License".
4124         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4125
4126 2011-02-06  Bruno Haible  <bruno@clisp.org>
4127
4128         New module 'towctrans'.
4129         * modules/towctrans: New file.
4130         * lib/wctype.in.h (towctrans): New declaration.
4131         * lib/towctrans.c: New file.
4132         * lib/towctrans-impl.h: New file.
4133         * m4/towctrans.m4: New file.
4134         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4135         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4136         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4137         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4138         * doc/posix-functions/towctrans.texi: Mention the new module.
4139
4140 2011-02-06  Bruno Haible  <bruno@clisp.org>
4141
4142         New module 'wctrans'.
4143         * modules/wctrans: New file.
4144         * lib/wctype.in.h (wctrans): New declaration.
4145         * lib/wctrans.c: New file.
4146         * lib/wctrans-impl.h: New file.
4147         * m4/wctrans.m4: New file.
4148         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4149         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4150         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4151         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4152         * doc/posix-functions/wctrans.texi: Mention the new module.
4153
4154 2011-02-06  Bruno Haible  <bruno@clisp.org>
4155
4156         New module 'iswctype'.
4157         * modules/iswctype: New file.
4158         * lib/wctype.in.h (iswctype): New declaration.
4159         * lib/iswctype.c: New file.
4160         * lib/iswctype-impl.h: New file.
4161         * m4/iswctype.m4: New file.
4162         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4163         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4164         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4165         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4166         * doc/posix-functions/iswctype.texi: Mention the new module and the
4167         HP-UX 11.00 problem.
4168
4169 2011-02-06  Bruno Haible  <bruno@clisp.org>
4170
4171         New module 'wctype'.
4172         * modules/wctype: Change to represent the wctype() substitute.
4173         * lib/wctype.in.h (wctype): New declaration.
4174         * lib/wctype.c: New file.
4175         * lib/wctype-impl.h: New file.
4176         * m4/wctype.m4: New file.
4177         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4178         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4179         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4180         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4181         * doc/posix-functions/wctype.texi: Mention the new module and the
4182         HP-UX 11.00 problem.
4183
4184 2011-02-06  Bruno Haible  <bruno@clisp.org>
4185
4186         wctype-h: Ensure wctype_t and wctrans_t are defined.
4187         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4188         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4189         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4190         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4191         HAVE_WCTRANS_T.
4192         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4193
4194 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4195
4196         flock: fix license typo
4197
4198         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4199         omitted.
4200
4201 2011-02-08  Bruno Haible  <bruno@clisp.org>
4202
4203         Split large sed scripts, for HP-UX sed.
4204         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4205         to avoid HP-UX limit of 99 commands, in the near future.
4206         * modules/stdlib (Makefile.am): Likewise.
4207         * modules/unistd (Makefile.am): Likewise.
4208         * modules/wchar (Makefile.am): Likewise.
4209         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4210         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4211         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4212
4213 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4214             Bruno Haible  <bruno@clisp.org>
4215
4216         stdlib: improve random_r modularization
4217         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4218         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4219         you also need the random_r module to get this material right.
4220         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4221         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4222         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4223
4224 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         stdlib: don't depend on stdint
4227         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4228         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4229         be independent of whether stdint.h is needed.
4230         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4231         here, instead of ...
4232         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4233         struct random_data should be using the random_r module, not just
4234         the stdlib module (which wouldn't make sense: what package needs
4235         just struct random_data without also needing random_r?).
4236         * modules/stdlib (Depends-on): Remove stdint.
4237
4238         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4239         See the thread rooted at
4240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4241         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4242         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4243         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4244         __VMS)); previously it was always included (via fcntl--.h).
4245         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4246         hand; this is good enough for load averages.  Also, do not use
4247         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4248         flags directly if available and don't bother otherwise.  (Packages
4249         that need the extra reliability should use the modules that define
4250         these flags on older platforms that lack them.)
4251         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4252         fcntl-safer.
4253
4254 2011-02-08  Jim Meyering  <meyering@redhat.com>
4255
4256         di-set.h, ino-map.h: add multiple-inclusion guard
4257         Technically, the guard is required only for ino-map.h, due to its
4258         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4259         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4260         * lib/ino-map.h: Likewise.
4261
4262 2011-02-06  Bruno Haible  <bruno@clisp.org>
4263
4264         iswblank: Ensure declaration on glibc systems.
4265         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4266         * modules/iswblank (Dependencies): Add 'extensions'.
4267         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4268
4269 2011-02-06  Bruno Haible  <bruno@clisp.org>
4270
4271         New module 'iswblank'.
4272         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4273         * modules/iswblank: New file.
4274         * modules/wctype-h (Files): Remove lib/iswblank.c.
4275         (Makefile.am): Substitute GNULIB_ISWBLANK.
4276         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4277         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4278         (gl_WCTYPE_H_DEFAULTS): New macro.
4279         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4280         * modules/iswblank-tests: New file.
4281         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4282         * tests/test-wctype-h.c (main): Remove iswblank tests.
4283         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4284         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4285         of 'wctype-h'.
4286         * NEWS: Mention the change.
4287         * modules/mbchar (Depends-on): Add iswblank.
4288
4289 2011-02-08  Bruno Haible  <bruno@clisp.org>
4290
4291         di-set tests: Refactor.
4292         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4293         unnecessary includes.
4294         (ASSERT): Remove macro.
4295         (main): Make C90 compliant by avoiding variable declaration after
4296         statement.
4297         * modules/di-set-tests (Files): Add tests/macros.h.
4298
4299 2011-02-08  Bruno Haible  <bruno@clisp.org>
4300
4301         ino-map tests: Refactor.
4302         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4303         unnecessary includes.
4304         (ASSERT): Remove macro.
4305         (main): Make C90 compliant by avoiding variable declaration after
4306         statement.
4307         * modules/ino-map-tests (Files): Add tests/macros.h.
4308
4309 2011-02-08  Jim Meyering  <meyering@redhat.com>
4310
4311         di-set: add "const" to a cast
4312         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4313         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4314
4315 2011-02-06  Bruno Haible  <bruno@clisp.org>
4316
4317         Rename module 'wctype' to 'wctype-h'.
4318         * modules/wctype-h: Renamed from modules/wctype.
4319         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4320         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4321         (Files, Depends-on, Makefile.am): Update.
4322         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4323         (Files, Makefile.am): Update.
4324         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4325         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4326         * doc/posix-headers/wctype.texi: Update.
4327         * doc/posix-functions/iswalnum.texi: Update.
4328         * doc/posix-functions/iswalpha.texi: Update.
4329         * doc/posix-functions/iswblank.texi: Update.
4330         * doc/posix-functions/iswcntrl.texi: Update.
4331         * doc/posix-functions/iswdigit.texi: Update.
4332         * doc/posix-functions/iswgraph.texi: Update.
4333         * doc/posix-functions/iswlower.texi: Update.
4334         * doc/posix-functions/iswprint.texi: Update.
4335         * doc/posix-functions/iswpunct.texi: Update.
4336         * doc/posix-functions/iswspace.texi: Update.
4337         * doc/posix-functions/iswupper.texi: Update.
4338         * doc/posix-functions/iswxdigit.texi: Update.
4339         * doc/posix-functions/towlower.texi: Update.
4340         * doc/posix-functions/towupper.texi: Update.
4341         * NEWS: Mention the change.
4342         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4343         * modules/mbchar (Dependencies): Likewise.
4344         * modules/mbswidth (Dependencies): Likewise.
4345         * modules/quotearg (Dependencies): Likewise.
4346         * modules/regex (Dependencies): Likewise.
4347         * modules/wcscasecmp (Dependencies): Likewise.
4348         * modules/wcsncasecmp (Dependencies): Likewise.
4349         * modules/wcwidth (Dependencies): Likewise.
4350
4351 2011-02-06  Bruno Haible  <bruno@clisp.org>
4352
4353         New module 'wcswidth'.
4354         * modules/wcswidth: New file.
4355         * lib/wchar.in.h (wcswidth): New declaration.
4356         * lib/wcswidth.c: New file.
4357         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4358         * m4/wcswidth.m4: New file.
4359         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4360         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4361         REPLACE_WCSWIDTH.
4362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4363         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4364         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4365         * doc/posix-functions/wcswidth.texi: Mention the new module.
4366
4367 2011-02-06  Bruno Haible  <bruno@clisp.org>
4368
4369         New module 'wcstok'.
4370         * modules/wcstok: New file.
4371         * lib/wchar.in.h (wcstok): New declaration.
4372         * lib/wcstok.c: New file.
4373         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4374         * m4/wcstok.m4: New file.
4375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4378         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4379         * doc/posix-functions/wcstok.texi: Mention the new module.
4380
4381 2011-02-06  Bruno Haible  <bruno@clisp.org>
4382
4383         New module 'wcsstr'.
4384         * modules/wcsstr: New file.
4385         * lib/wchar.in.h (wcsstr): New declaration.
4386         * lib/wcsstr.c: New file.
4387         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4388         * m4/wcsstr.m4: New file.
4389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4392         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4393         * doc/posix-functions/wcsstr.texi: Mention the new module.
4394
4395 2011-02-06  Bruno Haible  <bruno@clisp.org>
4396
4397         New module 'wcspbrk'.
4398         * modules/wcspbrk: New file.
4399         * lib/wchar.in.h (wcspbrk): New declaration.
4400         * lib/wcspbrk.c: New file.
4401         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4402         * m4/wcspbrk.m4: New file.
4403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4406         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4407         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4408
4409 2011-02-06  Bruno Haible  <bruno@clisp.org>
4410
4411         New module 'wcsspn'.
4412         * modules/wcsspn: New file.
4413         * lib/wchar.in.h (wcsspn): New declaration.
4414         * lib/wcsspn.c: New file.
4415         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4416         * m4/wcsspn.m4: New file.
4417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4420         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4421         * doc/posix-functions/wcsspn.texi: Mention the new module.
4422
4423 2011-02-06  Bruno Haible  <bruno@clisp.org>
4424
4425         New module 'wcscspn'.
4426         * modules/wcscspn: New file.
4427         * lib/wchar.in.h (wcscspn): New declaration.
4428         * lib/wcscspn.c: New file.
4429         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4430         * m4/wcscspn.m4: New file.
4431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4434         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4435         * doc/posix-functions/wcscspn.texi: Mention the new module.
4436
4437 2011-02-06  Bruno Haible  <bruno@clisp.org>
4438
4439         New module 'wcsrchr'.
4440         * modules/wcsrchr: New file.
4441         * lib/wchar.in.h (wcsrchr): New declaration.
4442         * lib/wcsrchr.c: New file.
4443         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4444         * m4/wcsrchr.m4: New file.
4445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4448         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4449         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4450
4451 2011-02-06  Bruno Haible  <bruno@clisp.org>
4452
4453         New module 'wcschr'.
4454         * modules/wcschr: New file.
4455         * lib/wchar.in.h (wcschr): New declaration.
4456         * lib/wcschr.c: New file.
4457         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4458         * m4/wcschr.m4: New file.
4459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4462         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4463         * doc/posix-functions/wcschr.texi: Mention the new module.
4464
4465 2011-02-06  Bruno Haible  <bruno@clisp.org>
4466
4467         New module 'wcsdup'.
4468         * modules/wcsdup: New file.
4469         * lib/wchar.in.h (wcsdup): New declaration.
4470         * lib/wcsdup.c: New file.
4471         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4472         * m4/wcsdup.m4: New file.
4473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4476         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4477         * doc/posix-functions/wcsdup.texi: Mention the new module.
4478
4479 2011-02-06  Bruno Haible  <bruno@clisp.org>
4480
4481         New module 'wcsxfrm'.
4482         * modules/wcsxfrm: New file.
4483         * lib/wchar.in.h (wcsxfrm): New declaration.
4484         * lib/wcsxfrm.c: New file.
4485         * lib/wcsxfrm-impl.h: New file.
4486         * m4/wcsxfrm.m4: New file.
4487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4490         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4491         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4492
4493 2011-02-06  Bruno Haible  <bruno@clisp.org>
4494
4495         New module 'wcscoll'.
4496         * modules/wcscoll: New file.
4497         * lib/wchar.in.h (wcscoll): New declaration.
4498         * lib/wcscoll.c: New file.
4499         * lib/wcscoll-impl.h: New file.
4500         * m4/wcscoll.m4: New file.
4501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4504         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4505         * doc/posix-functions/wcscoll.texi: Mention the new module.
4506
4507 2011-02-06  Bruno Haible  <bruno@clisp.org>
4508
4509         New module 'wcsncasecmp'.
4510         * modules/wcsncasecmp: New file.
4511         * lib/wchar.in.h (wcsncasecmp): New declaration.
4512         * lib/wcsncasecmp.c: New file.
4513         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4514         * m4/wcsncasecmp.m4: New file.
4515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4518         HAVE_WCSNCASECMP.
4519         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4520         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4521
4522 2011-02-06  Bruno Haible  <bruno@clisp.org>
4523
4524         New module 'wcscasecmp'.
4525         * modules/wcscasecmp: New file.
4526         * lib/wchar.in.h (wcscasecmp): New declaration.
4527         * lib/wcscasecmp.c: New file.
4528         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4529         * m4/wcscasecmp.m4: New file.
4530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4533         HAVE_WCSCASECMP.
4534         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4535         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4536
4537 2011-02-05  Bruno Haible  <bruno@clisp.org>
4538
4539         New module 'wcsncmp'.
4540         * modules/wcsncmp: New file.
4541         * lib/wchar.in.h (wcsncmp): New declaration.
4542         * lib/wcsncmp.c: New file.
4543         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4544         * m4/wcsncmp.m4: New file.
4545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4548         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4549         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4550
4551 2011-02-05  Bruno Haible  <bruno@clisp.org>
4552
4553         New module 'wcscmp'.
4554         * modules/wcscmp: New file.
4555         * lib/wchar.in.h (wcscmp): New declaration.
4556         * lib/wcscmp.c: New file.
4557         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4558         * m4/wcscmp.m4: New file.
4559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4562         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4563         * doc/posix-functions/wcscmp.texi: Mention the new module.
4564
4565 2011-02-05  Bruno Haible  <bruno@clisp.org>
4566
4567         New module 'wcsncat'.
4568         * modules/wcsncat: New file.
4569         * lib/wchar.in.h (wcsncat): New declaration.
4570         * lib/wcsncat.c: New file.
4571         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4572         * m4/wcsncat.m4: New file.
4573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4576         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4577         * doc/posix-functions/wcsncat.texi: Mention the new module.
4578
4579 2011-02-05  Bruno Haible  <bruno@clisp.org>
4580
4581         New module 'wcscat'.
4582         * modules/wcscat: New file.
4583         * lib/wchar.in.h (wcscat): New declaration.
4584         * lib/wcscat.c: New file.
4585         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4586         * m4/wcscat.m4: New file.
4587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4590         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4591         * doc/posix-functions/wcscat.texi: Mention the new module.
4592
4593 2011-02-05  Bruno Haible  <bruno@clisp.org>
4594
4595         New module 'wcpncpy'.
4596         * modules/wcpncpy: New file.
4597         * lib/wchar.in.h (wcpncpy): New declaration.
4598         * lib/wcpncpy.c: New file.
4599         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4600         * m4/wcpncpy.m4: New file.
4601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4603         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4604         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4605         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4606
4607 2011-02-05  Bruno Haible  <bruno@clisp.org>
4608
4609         New module 'wcsncpy'.
4610         * modules/wcsncpy: New file.
4611         * lib/wchar.in.h (wcsncpy): New declaration.
4612         * lib/wcsncpy.c: New file.
4613         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4614         * m4/wcsncpy.m4: New file.
4615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4618         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4619         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4620
4621 2011-02-05  Bruno Haible  <bruno@clisp.org>
4622
4623         New module 'wcpcpy'.
4624         * modules/wcpcpy: New file.
4625         * lib/wchar.in.h (wcpcpy): New declaration.
4626         * lib/wcpcpy.c: New file.
4627         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4628         * m4/wcpcpy.m4: New file.
4629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4631         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4632         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4633         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4634
4635 2011-02-05  Bruno Haible  <bruno@clisp.org>
4636
4637         New module 'wcscpy'.
4638         * modules/wcscpy: New file.
4639         * lib/wchar.in.h (wcscpy): New declaration.
4640         * lib/wcscpy.c: New file.
4641         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4642         * m4/wcscpy.m4: New file.
4643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4646         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4647         * doc/posix-functions/wcscpy.texi: Mention the new module.
4648
4649 2011-02-05  Bruno Haible  <bruno@clisp.org>
4650
4651         New module 'wcsnlen'.
4652         * modules/wcsnlen: New file.
4653         * lib/wchar.in.h (wcsnlen): New declaration.
4654         * lib/wcsnlen.c: New file.
4655         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4656         * m4/wcsnlen.m4: New file.
4657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4660         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4661         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4662
4663 2011-02-05  Bruno Haible  <bruno@clisp.org>
4664
4665         New module 'wcslen'.
4666         * modules/wcslen: New file.
4667         * lib/wchar.in.h (wcslen): New declaration.
4668         * lib/wcslen.c: New file.
4669         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4670         * m4/wcslen.m4: New file.
4671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4674         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4675         * doc/posix-functions/wcslen.texi: Mention the new module.
4676
4677 2011-02-05  Bruno Haible  <bruno@clisp.org>
4678
4679         New module 'wmemset'.
4680         * modules/wmemset: New file.
4681         * lib/wchar.in.h (wmemset): New declaration.
4682         * lib/wmemset.c: New file.
4683         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4684         * m4/wmemset.m4: New file.
4685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4687         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4688         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4689         * doc/posix-functions/wmemset.texi: Mention the new module.
4690
4691 2011-02-05  Bruno Haible  <bruno@clisp.org>
4692
4693         New module 'wmemmove'.
4694         * modules/wmemmove: New file.
4695         * lib/wchar.in.h (wmemmove): New declaration.
4696         * lib/wmemmove.c: New file.
4697         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4698         * m4/wmemmove.m4: New file.
4699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4701         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4702         HAVE_WMEMMOVE.
4703         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4704         * doc/posix-functions/wmemmove.texi: Mention the new module.
4705
4706 2011-02-05  Bruno Haible  <bruno@clisp.org>
4707
4708         New module 'wmemcpy'.
4709         * modules/wmemcpy: New file.
4710         * lib/wchar.in.h (wmemcpy): New declaration.
4711         * lib/wmemcpy.c: New file.
4712         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4713         * m4/wmemcpy.m4: New file.
4714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4716         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4717         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4718         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4719
4720 2011-02-05  Bruno Haible  <bruno@clisp.org>
4721
4722         New module 'wmemcmp'.
4723         * modules/wmemcmp: New file.
4724         * lib/wchar.in.h (wmemcmp): New declaration.
4725         * lib/wmemcmp.c: New file.
4726         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4727         * m4/wmemcmp.m4: New file.
4728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4730         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4731         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4732         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4733
4734 2011-02-07  Jim Meyering  <meyering@redhat.com>
4735
4736         di-set, ino-map: new modules, from coreutils
4737         * lib/di-set.c: New file.
4738         * lib/di-set.h: Likewise.
4739         * lib/ino-map.c: Likewise.
4740         * lib/ino-map.h: Likewise.
4741         * modules/di-set: Likewise.
4742         * modules/di-set-tests: Likewise.
4743         * modules/ino-map: Likewise.
4744         * modules/ino-map-tests: Likewise.
4745         * tests/test-di-set.c: Likewise.
4746         * tests/test-ino-map.c: Likewise.
4747
4748 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4749
4750         getloadavg: merge minor changes from Emacs
4751
4752         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4753         (getloadavg): Use memset, not bzero.
4754
4755         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4756         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4757         clash (bug#86).
4758
4759 2010-11-14  Bruno Haible  <bruno@clisp.org>
4760
4761         Allow multiple gnulib generated replacements to coexist.
4762         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4763         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4764         * lib/langinfo.in.h (nl_item): Likewise.
4765         * lib/math.in.h (_NaN, NAN): Likewise.
4766         * lib/netdb.in.h (struct addrinfo): Likewise.
4767         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4768         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4769         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4770         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4771         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4772         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4773         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4774         pthread_mutexattr_init, pthread_mutexattr_settype,
4775         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4776         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4777         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4778         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4779         * lib/sched.in.h (struct sched_param): Likewise.
4780         * lib/se-selinux.in.h (security_class_t, security_context_t,
4781         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4782         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4783         lsetfilecon, fsetfilecon, security_check_context,
4784         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4785         Likewise.
4786         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4787         Likewise.
4788         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4789         _gl_function_taking_int_returning_void_t, union sigval,
4790         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4791         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4792         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4793         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4794         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4795         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4796         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4797         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4798         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4799         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4800         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4801         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4802         socklen_t, rpl_fd_isset): Likewise.
4803         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4804         * lib/sys_time.in.h (struct timeval): Likewise.
4805         * lib/sys_times.in.h (struct tms): Likewise.
4806         * lib/sys_utsname.in.h (struct utsname):
4807         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4808         * lib/unistd.in.h (getpagesize): Likewise.
4809         * lib/wchar.in.h (mbstate_t): Likewise.
4810         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4811         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4812         towlower, towupper): Likewise.
4813         Reported by Sam Steingold <sds@gnu.org>.
4814
4815 2011-02-05  Eric Blake  <eblake@redhat.com>
4816
4817         unsetenv: work around Haiku issues
4818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4819         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4820
4821 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4822
4823         libposix: avoid calling error() within libposix
4824         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4825         is defined.
4826
4827 2011-02-05  Eric Blake  <eblake@redhat.com>
4828
4829         strerror_r-posix: port to cygwin
4830         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4831         implementation.
4832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4833         * tests/test-strerror_r.c (main): Fix test.
4834         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4835         issue.
4836
4837 2011-02-05  Bruno Haible  <bruno@clisp.org>
4838
4839         New module 'wmemchr'.
4840         * modules/wmemchr: New file.
4841         * lib/wchar.in.h (wmemchr): New declaration.
4842         * lib/wmemchr.c: New file.
4843         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4844         * m4/wmemchr.m4: New file.
4845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4847         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4848         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4849         * doc/posix-functions/wmemchr.texi: Mention the new module.
4850
4851 2011-02-04  Eric Blake  <eblake@redhat.com>
4852
4853         fdopendir: detect FreeBSD bug
4854         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4855         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4856
4857 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4858
4859         stdbool: do not define HAVE_STDBOOL_H
4860         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4861         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4862         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4863         imported from the latest Autoconf git.  It was motivated by Emacs,
4864         which uses gnulib but does not need HAVE_STDBOOL_H.
4865
4866 2011-02-04  Bruno Haible  <bruno@clisp.org>
4867
4868         wcsnrtombs: Prepare for new module wwcsnrtombs.
4869         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4870         * lib/wcsnrtombs.c: Include it.
4871         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4872
4873         wcsrtombs: Prepare for new module wwcsrtombs.
4874         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4875         * lib/wcsrtombs.c: Include it.
4876         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4877
4878         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4879         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4880         * lib/mbsnrtowcs.c: Include it.
4881         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4882
4883         mbsrtowcs: Prepare for new module mbsrtowwcs.
4884         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4885         * lib/mbsrtowcs.c: Include it.
4886         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4887
4888 2011-02-04  Bruno Haible  <bruno@clisp.org>
4889
4890         vasnprintf: Reduce use of malloc for small format strings.
4891         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4892         (arguments): Add room for the first 7 arguments.
4893         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4894         (char_directives, u8_directives, u16_directives, u32_directives): Add
4895         room for the first 7 directives.
4896         * lib/printf-parse.c: Include <string.h>.
4897         (PRINTF_PARSE): Change memory handling code so that it uses the first
4898         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4899         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4900         Reported by Pádraig Brady <P@draigbrady.com>.
4901
4902 2011-01-31  Eric Blake  <eblake@redhat.com>
4903
4904         dup2: work around Haiku bug
4905         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4906         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4907         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4908         * tests/test-dup2.c (main): Enhance test.
4909
4910 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4911
4912         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4913         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4914         declared by eglibc 2.11.2.
4915         * lib/stdio.in.h: Likewise.
4916
4917 2011-01-31  Eric Blake  <eblake@redhat.com>
4918
4919         ignore-value: add missing test dependency
4920         * tests/test-ignore-value.c: Revert previous change; stdio.h
4921         provides off_t.
4922         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4923
4924 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4925
4926         mktime: clarify long_int width checking
4927         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4928         the top level, to make it clearer that the assumption about
4929         long_int width is being checked.  See
4930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4931
4932 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4933
4934         ignore-value: Fix self-test.
4935         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4936
4937 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4938
4939         TYPE_MAXIMUM: avoid theoretically undefined behavior
4940         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4941         negative number, which the C Standard says has undefined behavior.
4942         In practice this is not a problem, but might as well do it by the book.
4943         Reported by Rich Felker and Eric Blake; see
4944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4945         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4946         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4947         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4948         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4949         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4950         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4951
4952         mktime: #undef mktime before #defining it
4953         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4954
4955         mktime: systematically normalize tm_isdst comparisons
4956         * lib/mktime.c (isdst_differ): New function.
4957         (__mktime_internal): Use it systematically for all isdst comparisons.
4958         This completes the fix for libc BZ #6723, and removes the need for
4959         normalizing tm_isdst.  See
4960         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4961         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4962
4963         mktime: fix some integer overflow issues and sidestep the rest
4964
4965         This was prompted by a bug report by Benjamin Lindner for MinGW
4966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4967         His bug is due to signed integer overflow (0 - INT_MIN), and I
4968         I scanned through mktime.c looking for other integer overflow
4969         problems, fixing all the bugs I found.
4970
4971         Although the C Standard says the resulting code is still not safe
4972         in the presence of integer overflow, in practice it should be good
4973         enough for all real-world two's-complement implementations, except
4974         for debugging environments that deliberately trap on integer
4975         overflow (e.g., gcc -ftrapv).
4976
4977         * lib/mktime.c (WRAPV): New macro.
4978         (SHR): Also check that long_int and time_t shift right in the
4979         usual way, before using the fast-but-unportable method.
4980         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4981         used.  The code already assumed two's complement, so there's
4982         no need to test for alternatives.  All uses removed.
4983         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4984         the C standard.  Problem reported by Rich Felker in
4985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4986         (twos_complement_arithmetic): Also check long_int and time_t.
4987         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4988         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4989         (__mktime_internal): Avoid integer overflow with unary subtraction
4990         in two instances where -1 - X is an adequate replacement for -X,
4991         since the calculations are approximate.
4992
4993 2011-01-29  Eric Blake  <eblake@redhat.com>
4994
4995         mktime: avoid infinite loop
4996         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4997         type; behavior is still undefined but portable to all known targets.
4998         Reported by Rich Felker.
4999
5000 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5001
5002         rename, unlink, same-inode: Relicense.
5003         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5004         * modules/unlink (License): Likewise.
5005         * modules/same-inode (License): Likewise.
5006
5007 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5008
5009         mktime: avoid problems on NetBSD 5 / i386
5010         * lib/mktime.c (long_int): New type.  This works around a problem
5011         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5012         but time_t is 64 bits, and where I expect the existing code is
5013         wrong in some cases.
5014         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5015         (ydhms_diff): Bring back the compile-time check for wide-enough
5016         year and yday.
5017
5018         mktime: fix misspelling in comment
5019         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5020         This merges all recent glibc changes of importance.
5021
5022 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5023
5024         move-if-change: cope with concurrent mv of identical file.
5025         * build-aux/move-if-change (CMPPROG): Accept environment
5026         variable as an override for `cmp'.
5027         (usage): Document CMPPROG.
5028         Adjust comparison to drop stdout.  Cope with failure of mv if
5029         the target file exists and is identical to the source, for
5030         parallel builds.
5031         Report from H.J. Lu against binutils in PR binutils/12283.
5032
5033 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5034
5035         * users.txt: Mention sharutils.
5036
5037 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5038
5039         * users.txt: Mention OATH Toolkit.
5040
5041 2011-01-27  Bruno Haible  <bruno@clisp.org>
5042
5043         Prepare for supporting FreeBSD 10.
5044         * build-aux/config.libpath: Remove handling of freebsd1*.
5045
5046 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5047
5048         Prepare for supporting FreeBSD 10.
5049         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5050         match FreeBSD 10.0.
5051
5052 2011-01-27  Bruno Haible  <bruno@clisp.org>
5053
5054         vma-iter, get-rusage-as: Add OpenBSD support.
5055         * modules/vma-iter (configure.ac): Test for mquery.
5056         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5057         * lib/vma-iter.c: Include <sys/mman.h>.
5058         (vma_iterate): Add an implementation based on mquery().
5059         * lib/resource-ext.h (get_rusage_as): Update comments.
5060         * lib/get-rusage-as.c: Likewise.
5061         * lib/get-rusage-data.c: Likewise.
5062
5063 2011-01-26  Karl Berry  <karl@gnu.org>
5064
5065         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5066         variables to make it easier to override the makeinfo program used.
5067
5068 2011-01-26  Eric Blake  <eblake@redhat.com>
5069
5070         fcntl: work around Haiku F_DUPFD bugs
5071         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5072         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5073         cloexec bit on duplication.
5074         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5075
5076 2011-01-26  Bruno Haible  <bruno@clisp.org>
5077
5078         Enable memory leak tests on AIX.
5079         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5080         * tests/test-fprintf-posix3.c (main): Likewise.
5081
5082 2011-01-26  Bruno Haible  <bruno@clisp.org>
5083
5084         Tests for module 'get-rusage-data'.
5085         * modules/get-rusage-data-tests: New file.
5086         * tests/test-get-rusage-data.c: New file.
5087
5088         New module 'get-rusage-data'.
5089         * lib/resource-ext.h (get_rusage_data): New declaration.
5090         * lib/get-rusage-data.c: New file.
5091         * modules/get-rusage-data: New file.
5092
5093 2011-01-25  Bruno Haible  <bruno@clisp.org>
5094
5095         get-rusage-as: Allow for easier testing.
5096         * lib/resource-ext.h (get_rusage_as): Add comment.
5097         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5098         (main): New function for interactive testing.
5099
5100 2011-01-25  Bruno Haible  <bruno@clisp.org>
5101
5102         vma-iter: Treat Haiku like BeOS.
5103         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5104         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5105
5106 2011-01-25  Eric Blake  <eblake@redhat.com>
5107
5108         c-stack: fix regression on cygwin when libsigsegv is present
5109         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5110
5111 2011-01-24  Bruno Haible  <bruno@clisp.org>
5112
5113         vma-iter: Avoid empty intervals.
5114         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5115         on an empty interval.
5116
5117 2011-01-24  Jim Meyering  <meyering@redhat.com>
5118
5119         u64: remove unnecessary #include
5120         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5121
5122 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5123
5124         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5125         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5126
5127 2011-01-23  Bruno Haible  <bruno@clisp.org>
5128
5129         New module 'vma-iter'.
5130         * lib/vma-iter.h: New file.
5131         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5132         * modules/vma-iter: New file.
5133         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5134         for get_rusage_as_via_iterator.
5135         (vma_iterate_callback): New function.
5136         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5137         * modules/get-rusage-as (Depends-on): Add vma-iter.
5138
5139 2011-01-23  Bruno Haible  <bruno@clisp.org>
5140
5141         uninorm: Tweak includes.
5142         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5143         Reported by Jim Meyering.
5144
5145 2011-01-23  Bruno Haible  <bruno@clisp.org>
5146
5147         get-rusage-as: Improve on NetBSD.
5148         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5149         /proc, like on FreeBSD.
5150
5151 2011-01-23  Jim Meyering  <meyering@redhat.com>
5152
5153         xreadlink.h: remove unnecessary #include
5154         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5155
5156         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5157         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5158
5159 2011-01-23  Bruno Haible  <bruno@clisp.org>
5160
5161         get-rusage-as: Fix bug.
5162         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5163         original limit when aborting the first loop.
5164
5165 2011-01-23  Bruno Haible  <bruno@clisp.org>
5166
5167         wctype: Ensure valid C syntax.
5168         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5169         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5170
5171 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5172
5173         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5175         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5176         as they are needed only for configure's test case.
5177         This removes two unnecessary symbols from config.h.
5178
5179         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5180         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5182         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5183         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5184         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5185         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5186         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5187         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5188         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5189         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5191         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5192         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5193         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5194         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5195         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5196         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5197
5198 2011-01-21  Eric Blake  <eblake@redhat.com>
5199
5200         maintainer-makefile: work with older git for submodule check
5201         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5202         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5203         Reported by Matthias Bolte.
5204
5205         bootstrap: minor portability fixes
5206         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5207         (usage): Omit leading capital and trailing . on help phrases, per
5208         GNU Coding Standards.
5209         (check_versions, top level): Prefix messages with script name.
5210
5211 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5212
5213         bootstrap: support --no-git option
5214         * build-aux/bootstrap: Add --no-git option, to be used when
5215         --gnulib-srcdir points to the exact desired checkout.
5216
5217 2011-01-21  Eric Blake  <eblake@redhat.com>
5218
5219         strerror_r-posix: work with glibc 2.13
5220         * lib/strerror_r.c (strerror_r): Fix return type.
5221
5222 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5223             Bruno Haible  <bruno@clisp.org>
5224
5225         uN_strstr: New unit tests.
5226         * modules/unistr/u8-strstr-tests: New file.
5227         * modules/unistr/u16-strstr-tests: New file.
5228         * modules/unistr/u32-strstr-tests: New file.
5229         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5230         * tests/unistr/test-u8-strstr.c: New file.
5231         * tests/unistr/test-u16-strstr.c: New file.
5232         * tests/unistr/test-u32-strstr.c: New file.
5233
5234 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5235             Bruno Haible  <bruno@clisp.org>
5236
5237         Make uN_strstr functions O(n) worst-case.
5238         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5239         16-bit and 32-bit unit cases, use the unibyte algorithm from
5240         lib/mbsstr.c.
5241         * lib/unistr/u8-strstr.c: Include <string.h>.
5242         (UNIT_IS_UINT8_T): New macro.
5243         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5244         (U_STRLEN, U_STRNLEN): New macros.
5245         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5246         (U_STRLEN, U_STRNLEN): New macros.
5247         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5248         (configure.ac): Update required libunistring version.
5249         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5250         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5251         malloca.
5252         (configure.ac): Update required libunistring version.
5253         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5254         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5255         malloca.
5256         (configure.ac): Update required libunistring version.
5257
5258 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5259             Bruno Haible  <bruno@clisp.org>
5260
5261         Prepare for faster uN_strstr functions.
5262         * lib/str-kmp.h: Support definable UNITs.
5263         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5264         needle_len argument.
5265         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5266         * lib/mbscasestr.c (mbscasestr): Likewise.
5267
5268 2011-01-21  Pádraig Brady <P@draigBrady.com>
5269
5270         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5271         * tests/test-malloca.c (main): Unset the environment variable
5272         to greatly speed up the test.
5273         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5274         * modules/malloca-tests: Depend on unsetenv.
5275
5276 2011-01-21  Pádraig Brady <P@draigBrady.com>
5277
5278         ignore-value: remove stdint dependency
5279         * lib/ignore-value.h: Remove <stdint.h>
5280         * modules/ignore-value: Remove stdint dependency.
5281
5282 2011-01-21  Jim Meyering  <meyering@redhat.com>
5283
5284         maint.mk: adjust variable name to be consistent with other gl_ vars
5285         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5286         to be lower case.
5287
5288 2011-01-20  Jim Meyering  <meyering@redhat.com>
5289
5290         maint.mk: make "check" depend on public-submodule-commit by default
5291         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5292
5293 2011-01-20  Bruno Haible  <bruno@clisp.org>
5294
5295         mbfile, mbiter: Complete change from 2008-12-21.
5296         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5297         * m4/mbiter.m4 (gl_MBITER): Likewise.
5298
5299 2011-01-20  Jim Meyering  <meyering@redhat.com>
5300
5301         init.sh: insert space between each function name and "()"
5302         * tests/init.sh: Make it a little easier to see that a function's
5303         name is "warn_", and not "warn" when looking at the first part of
5304         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5305
5306 2011-01-20  Jim Meyering  <meyering@redhat.com>
5307
5308         mountlist: clean up code formatting
5309         * lib/mountlist.c (read_file_system_list): Split a long line,
5310         correct bracing style, use NULL in place of "(struct statfs *)0",
5311         don't parenthesize return value, add spaces around "=" and after
5312         ";-in-for-stmt".
5313
5314 2011-01-14  Markus Duft <mduft@gentoo.org>
5315
5316         mountlist: add support for Interix
5317         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5318         Apply statvfs to all entries of /dev/fs.
5319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5320         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5321
5322 2011-01-20  Jim Meyering  <meyering@redhat.com>
5323
5324         maint.mk: improve the public-submodule-commit rule
5325         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5326         to suppress printing of its commands... unless V=1.
5327         Add git submodule's --quiet option to suppress printing of e.g.,
5328         "Entering gnulib" output.
5329         "cd" into $(srcdir) before running git submodule.
5330
5331 2011-01-20  Bruno Haible  <bruno@clisp.org>
5332
5333         include_next: Fix bug introduced on 2011-01-18.
5334         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5335         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5336         ac_cv_header_... variable if the second argument is not 'check'.
5337         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5338         gl_NEXT_HEADERS_INTERNAL.
5339
5340 2011-01-20  Bruno Haible  <bruno@clisp.org>
5341
5342         Allow the user to avoid the GNULIB_TEST_* macros.
5343         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5344         Suggested by Paul Eggert.
5345
5346 2011-01-14  Jim Meyering  <meyering@redhat.com>
5347
5348         bootstrap: avoid failure when there is no .gitmodules file
5349         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5350         has been assigned to, even when its value is the empty string.
5351         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5352         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5353         Reported by John W. Eaton <jwe@gnu.org>.
5354
5355 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         assume <ctype.h>, ..., <time.h> exist
5358         For years gnulib has been assuming the existence of the headers
5359         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5360         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5361         them, since they don't appear to be needed.
5362         * README (Portability guidelines): Document this.
5363         * lib/flock.c: Assume <fcntl.h> exists.
5364         * lib/regex_internal.h: Assume <locale.h> exists.
5365         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5367         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5368         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5369         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5370         * m4/regex.m4 (gl_REGEX): Likewise.
5371         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5372         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5373         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5374         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5375         * tests/test-argp.c: Likewise.
5376         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5377
5378         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5379         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5380         AA_APPLE_UNIVERSAL_BUILD.  See
5381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5382         * NEWS: Document this.
5383
5384 2011-01-19  Eric Blake  <eblake@redhat.com>
5385
5386         c-stack: assume stack overflow if SA_SIGINFO unsupported
5387         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5388         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5389         sigaction will work.
5390         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5391         behavior match Linux.
5392         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5393
5394         stdbool-tests: accomodate Haiku
5395         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5396
5397         binary-io: fix O_TEXT on Haiku
5398         * modules/binary-io (Depends-on): Add fcntl-h.
5399         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5400         than blindly undefining O_TEXT.
5401         Reported by Scott McCreary.
5402
5403 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         include_next: do not check for standard headers like stddef.h
5406
5407         I found this problem when modifying Emacs to use gnulib.
5408         I noticed that it added HAVE_STDDEF_H to config.h, even though
5409         gnulib always assumes <stddef.h> exists as per README and this
5410         symbol is unnecessary.
5411         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5412         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5413         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5414         faster for headers like stddef.h that are known to exist.
5415         (gl_CHECK_NEXT_HEADERS): Use it.
5416         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5417         rather than gl_CHECK_NEXT_HEADERS.
5418         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5419         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5420
5421 2011-01-18  Eric Blake  <eblake@redhat.com>
5422
5423         ansi-c++-opt: skip C++ dependency style if C++ is unused
5424         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5425         tests when we know C++ compilation is not desired.
5426         Reported by Scott McCreary.
5427
5428 2011-01-18  Bruno Haible  <bruno@clisp.org>
5429
5430         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5431         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5432         (main): Perform test also when getrlimit and setrlimit don't exist or
5433         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5434         limiting the address space size using setrlimit, compare the address
5435         space size before and after the the test.
5436         * tests/test-dprintf-posix2.c: Likewise.
5437         * tests/test-fprintf-posix3.sh: Update skip messages.
5438         * tests/test-dprintf-posix2.sh: Likewise.
5439         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5440         * modules/dprintf-posix-tests (Depends-on): Likewise.
5441         Reported by Bruce Korb <bkorb@gnu.org> and
5442         Gary V. Vaughan <gary@gnu.org>.
5443
5444 2011-01-18  Bruno Haible  <bruno@clisp.org>
5445
5446         get-rusage-as: Improvement for Cygwin.
5447         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5448         areas that are merely reserved.
5449
5450 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         strftime: remove dependencies on multibyte modules
5453
5454         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5455         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5456         only if __osf__ is defined, and I suspect OSF doesn't need these
5457         other modules.  If my guess is wrong, we'll need to come up with a
5458         variant of strftime that doesn't need the multibyte modules.
5459
5460         I discovered this problem when attempting modify Emacs to use the
5461         strftime module.  With the previous gnulib, this caused Emacs to
5462         need 31 new files, ranging from lib/config.charset to
5463         m4/wint_t.m4.  This was overkill and I expect would be offputting
5464         to the Emacs maintainers.  After this change, only 6 new files are
5465         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5466         stdbool.m4, and tm_gmtoff.m4.
5467
5468         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5469         Suggested by Bruno Haible in
5470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5471         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5472         and do not check for wchar.h.
5473         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5474         (Depends-on): Remove mbrlen, mbsinit, wchar.
5475
5476 2011-01-18  Bruno Haible  <bruno@clisp.org>
5477
5478         Tests for module 'get-rusage-as'.
5479         * modules/get-rusage-as-tests: New file.
5480         * tests/test-get-rusage-as.c: New file.
5481
5482         New module 'get-rusage-as'.
5483         * modules/get-rusage-as: New file.
5484         * lib/resource-ext.h: New file.
5485         * lib/get-rusage-as.c: New file.
5486
5487 2011-01-17  Eric Blake  <eblake@redhat.com>
5488
5489         sigaction: relax license from LGPLv3+ to LGPLv2+
5490         * modules/sigaction (License): Relax to LGPLv2+.
5491
5492 2011-01-14  Bruno Haible  <bruno@clisp.org>
5493
5494         filemode: Make function declarations usable in C++ mode.
5495         * lib/filemode.h: Enclose function declarations in extern "C" block.
5496         Reported by John W. Eaton <jwe@gnu.org>.
5497
5498 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5499
5500         save-cwd: no longer include "xgetcwd.h"
5501         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5502         This avoids a compilation failure in projects that use save-cwd
5503         without also using the xgetcwd module.
5504
5505 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5508         This is so that a program like Emacs, which needs only dtoastr,
5509         does not have to bother with distributing and compiling ftoastr
5510         and ldtoastr.
5511         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5512         * modules/dtoastr, modules/ldtoastr: New files.
5513         * modules/ftoastr: Now works just for 'float'.
5514         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5515         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5516         dtoastr.c, ldtoastr.c.
5517
5518 2011-01-11  Jim Meyering  <meyering@redhat.com>
5519
5520         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5521         There is no need to work around the lack of the fchdir function,
5522         since gnulib can now provide a replacement when required.
5523         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5524         * modules/save-cwd (Depends-on): Add fchdir.
5525
5526 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5527
5528         openat, save-cwd: avoid xmalloc
5529
5530         This removes a direct (but undocumented) dependency of openat on
5531         xalloc, along with an indirect dependency via save-cwd.  It also
5532         removes a dependency of save-cwd on xgetcwd, and thereby
5533         indirectly on xalloc.  This change causes the openat substitute
5534         to fall back on save_cwd when memory is tight, and for save_cwd to
5535         fail instead of dying when memory is tight, but that's good enough.
5536         Problem and initial idea for fix reported by Bastien Roucaries in
5537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5538
5539         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5540         xalloc.h (for xmalloc).
5541         (openat_proc_name): Use malloc, not xmalloc.
5542         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5543         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5544
5545         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5546         This avoids heap allocation for file names whose lengths are in
5547         the range 512..1023, with the upper bound increasing to at most
5548         4031 depending on the platform's PATH_MAX.  (We do not want
5549         pathmax.h here as it might supply a non-constant PATH_MAX.)
5550         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5551         Perhaps they should be moved to malloca.h?
5552         (OPENAT_BUFFER_SIZE): Use them.
5553
5554 2011-01-10  Bruno Haible  <bruno@clisp.org>
5555
5556         doc: Update users.txt.
5557         * users.txt: Add recutils.
5558
5559 2011-01-09  Karl Berry  <karl@gnu.org>
5560
5561         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5562
5563         * doc/configmake.texi: New file.
5564         * doc/gnulib.texi: Include it.
5565         * modules/configmake: Move documentation from here.
5566
5567 2011-01-09  Bruno Haible  <bruno@clisp.org>
5568
5569         Update to Unicode 6.0.0.
5570         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5571         (get_lbp): Update for Unicode 6.0.0.
5572         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5573         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5574         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5575         U+11001, U+11038..U+11046. Remove U+06DE.
5576         (uc_width): Fix bounds of planes.
5577         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5578         lib/uniwidth/width.c.
5579         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5580         trailing whitespace removed.
5581         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5582         without comments, but with the original copyright notice.
5583         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5584         * lib/unicase/ignorable.h: Likewise.
5585         * lib/unicase/tocasefold.h: Likewise.
5586         * lib/unicase/tolower.h: Likewise.
5587         * lib/unicase/totitle.h: Likewise.
5588         * lib/unicase/toupper.h: Likewise.
5589         * lib/unictype/bidi_of.h: Likewise.
5590         * lib/unictype/blocks.h: Likewise.
5591         * lib/unictype/categ_C.h: Likewise.
5592         * lib/unictype/categ_Cn.h: Likewise.
5593         * lib/unictype/categ_L.h: Likewise.
5594         * lib/unictype/categ_Ll.h: Likewise.
5595         * lib/unictype/categ_Lm.h: Likewise.
5596         * lib/unictype/categ_Lo.h: Likewise.
5597         * lib/unictype/categ_Lu.h: Likewise.
5598         * lib/unictype/categ_M.h: Likewise.
5599         * lib/unictype/categ_Mc.h: Likewise.
5600         * lib/unictype/categ_Me.h: Likewise.
5601         * lib/unictype/categ_Mn.h: Likewise.
5602         * lib/unictype/categ_N.h: Likewise.
5603         * lib/unictype/categ_Nd.h: Likewise.
5604         * lib/unictype/categ_No.h: Likewise.
5605         * lib/unictype/categ_P.h: Likewise.
5606         * lib/unictype/categ_Po.h: Likewise.
5607         * lib/unictype/categ_S.h: Likewise.
5608         * lib/unictype/categ_Sc.h: Likewise.
5609         * lib/unictype/categ_Sk.h: Likewise.
5610         * lib/unictype/categ_Sm.h: Likewise.
5611         * lib/unictype/categ_So.h: Likewise.
5612         * lib/unictype/categ_of.h: Likewise.
5613         * lib/unictype/combining.h: Likewise.
5614         * lib/unictype/ctype_alnum.h: Likewise.
5615         * lib/unictype/ctype_alpha.h: Likewise.
5616         * lib/unictype/ctype_graph.h: Likewise.
5617         * lib/unictype/ctype_lower.h: Likewise.
5618         * lib/unictype/ctype_print.h: Likewise.
5619         * lib/unictype/ctype_punct.h: Likewise.
5620         * lib/unictype/ctype_upper.h: Likewise.
5621         * lib/unictype/decdigit.h: Likewise.
5622         * lib/unictype/digit.h: Likewise.
5623         * lib/unictype/numeric.h: Likewise.
5624         * lib/unictype/pr_alphabetic.h: Likewise.
5625         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5626         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5627         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5628         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5629         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5630         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5631         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5632         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5633         * lib/unictype/pr_case_ignorable.h: Likewise.
5634         * lib/unictype/pr_cased.h: Likewise.
5635         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5636         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5637         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5638         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5639         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5640         * lib/unictype/pr_combining.h: Likewise.
5641         * lib/unictype/pr_composite.h: Likewise.
5642         * lib/unictype/pr_currency_symbol.h: Likewise.
5643         * lib/unictype/pr_decimal_digit.h: Likewise.
5644         * lib/unictype/pr_deprecated.h: Likewise.
5645         * lib/unictype/pr_format_control.h: Likewise.
5646         * lib/unictype/pr_grapheme_base.h: Likewise.
5647         * lib/unictype/pr_grapheme_extend.h: Likewise.
5648         * lib/unictype/pr_grapheme_link.h: Likewise.
5649         * lib/unictype/pr_id_continue.h: Likewise.
5650         * lib/unictype/pr_id_start.h: Likewise.
5651         * lib/unictype/pr_ideographic.h: Likewise.
5652         * lib/unictype/pr_lowercase.h: Likewise.
5653         * lib/unictype/pr_math.h: Likewise.
5654         * lib/unictype/pr_numeric.h: Likewise.
5655         * lib/unictype/pr_other_alphabetic.h: Likewise.
5656         * lib/unictype/pr_other_id_continue.h: Likewise.
5657         * lib/unictype/pr_other_math.h: Likewise.
5658         * lib/unictype/pr_punctuation.h: Likewise.
5659         * lib/unictype/pr_sentence_terminal.h: Likewise.
5660         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5661         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5662         * lib/unictype/pr_unified_ideograph.h: Likewise.
5663         * lib/unictype/pr_uppercase.h: Likewise.
5664         * lib/unictype/pr_xid_continue.h: Likewise.
5665         * lib/unictype/pr_xid_start.h: Likewise.
5666         * lib/unictype/scripts.h: Likewise.
5667         * lib/unictype/scripts_byname.gperf: Likewise.
5668         * lib/unictype/sy_java_ident.h: Likewise.
5669         * lib/unigbrk/gbrkprop.h: Likewise.
5670         * lib/unilbrk/lbrkprop1.h: Likewise.
5671         * lib/unilbrk/lbrkprop2.h: Likewise.
5672         * lib/uninorm/decomposition-table2.h: Likewise.
5673         * lib/uniwbrk/wbrkprop.h: Likewise.
5674         * tests/unicase/test-cased.c: Likewise.
5675         * tests/unicase/test-ignorable.c: Likewise.
5676         * tests/unicase/test-uc_tolower.c: Likewise.
5677         * tests/unicase/test-uc_totitle.c: Likewise.
5678         * tests/unicase/test-uc_toupper.c: Likewise.
5679         * tests/unictype/test-categ_C.c: Likewise.
5680         * tests/unictype/test-categ_Cn.c: Likewise.
5681         * tests/unictype/test-categ_L.c: Likewise.
5682         * tests/unictype/test-categ_Ll.c: Likewise.
5683         * tests/unictype/test-categ_Lm.c: Likewise.
5684         * tests/unictype/test-categ_Lo.c: Likewise.
5685         * tests/unictype/test-categ_Lu.c: Likewise.
5686         * tests/unictype/test-categ_M.c: Likewise.
5687         * tests/unictype/test-categ_Mc.c: Likewise.
5688         * tests/unictype/test-categ_Me.c: Likewise.
5689         * tests/unictype/test-categ_Mn.c: Likewise.
5690         * tests/unictype/test-categ_N.c: Likewise.
5691         * tests/unictype/test-categ_Nd.c: Likewise.
5692         * tests/unictype/test-categ_No.c: Likewise.
5693         * tests/unictype/test-categ_P.c: Likewise.
5694         * tests/unictype/test-categ_Po.c: Likewise.
5695         * tests/unictype/test-categ_S.c: Likewise.
5696         * tests/unictype/test-categ_Sc.c: Likewise.
5697         * tests/unictype/test-categ_Sk.c: Likewise.
5698         * tests/unictype/test-categ_Sm.c: Likewise.
5699         * tests/unictype/test-categ_So.c: Likewise.
5700         * tests/unictype/test-ctype_alnum.c: Likewise.
5701         * tests/unictype/test-ctype_alpha.c: Likewise.
5702         * tests/unictype/test-ctype_graph.c: Likewise.
5703         * tests/unictype/test-ctype_lower.c: Likewise.
5704         * tests/unictype/test-ctype_print.c: Likewise.
5705         * tests/unictype/test-ctype_punct.c: Likewise.
5706         * tests/unictype/test-ctype_upper.c: Likewise.
5707         * tests/unictype/test-decdigit.h: Likewise.
5708         * tests/unictype/test-digit.h: Likewise.
5709         * tests/unictype/test-numeric.h: Likewise.
5710         * tests/unictype/test-pr_alphabetic.c: Likewise.
5711         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5712         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5713         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5714         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5715         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5716         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5717         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5718         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5719         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5720         * tests/unictype/test-pr_cased.c: Likewise.
5721         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5722         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5723         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5724         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5725         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5726         * tests/unictype/test-pr_combining.c: Likewise.
5727         * tests/unictype/test-pr_composite.c: Likewise.
5728         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5729         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5730         * tests/unictype/test-pr_deprecated.c: Likewise.
5731         * tests/unictype/test-pr_format_control.c: Likewise.
5732         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5733         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5734         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5735         * tests/unictype/test-pr_id_continue.c: Likewise.
5736         * tests/unictype/test-pr_id_start.c: Likewise.
5737         * tests/unictype/test-pr_ideographic.c: Likewise.
5738         * tests/unictype/test-pr_lowercase.c: Likewise.
5739         * tests/unictype/test-pr_math.c: Likewise.
5740         * tests/unictype/test-pr_numeric.c: Likewise.
5741         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5742         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5743         * tests/unictype/test-pr_other_math.c: Likewise.
5744         * tests/unictype/test-pr_punctuation.c: Likewise.
5745         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5746         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5747         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5748         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5749         * tests/unictype/test-pr_uppercase.c: Likewise.
5750         * tests/unictype/test-pr_xid_continue.c: Likewise.
5751         * tests/unictype/test-pr_xid_start.c: Likewise.
5752         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5753         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5754         changes.
5755         * lib/unictype/categ_Cc.h: Likewise.
5756         * lib/unictype/categ_Cf.h: Likewise.
5757         * lib/unictype/categ_Co.h: Likewise.
5758         * lib/unictype/categ_Cs.h: Likewise.
5759         * lib/unictype/categ_Lt.h: Likewise.
5760         * lib/unictype/categ_Nl.h: Likewise.
5761         * lib/unictype/categ_Pc.h: Likewise.
5762         * lib/unictype/categ_Pd.h: Likewise.
5763         * lib/unictype/categ_Pe.h: Likewise.
5764         * lib/unictype/categ_Pf.h: Likewise.
5765         * lib/unictype/categ_Pi.h: Likewise.
5766         * lib/unictype/categ_Ps.h: Likewise.
5767         * lib/unictype/categ_Z.h: Likewise.
5768         * lib/unictype/categ_Zl.h: Likewise.
5769         * lib/unictype/categ_Zp.h: Likewise.
5770         * lib/unictype/categ_Zs.h: Likewise.
5771         * lib/unictype/ctype_blank.h: Likewise.
5772         * lib/unictype/ctype_cntrl.h: Likewise.
5773         * lib/unictype/ctype_digit.h: Likewise.
5774         * lib/unictype/ctype_space.h: Likewise.
5775         * lib/unictype/ctype_xdigit.h: Likewise.
5776         * lib/unictype/mirror.h: Likewise.
5777         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5778         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5779         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5780         * lib/unictype/pr_bidi_control.h: Likewise.
5781         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5782         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5783         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5784         * lib/unictype/pr_bidi_pdf.h: Likewise.
5785         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5786         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5787         * lib/unictype/pr_dash.h: Likewise.
5788         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5789         * lib/unictype/pr_diacritic.h: Likewise.
5790         * lib/unictype/pr_extender.h: Likewise.
5791         * lib/unictype/pr_hex_digit.h: Likewise.
5792         * lib/unictype/pr_hyphen.h: Likewise.
5793         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5794         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5795         * lib/unictype/pr_ignorable_control.h: Likewise.
5796         * lib/unictype/pr_iso_control.h: Likewise.
5797         * lib/unictype/pr_join_control.h: Likewise.
5798         * lib/unictype/pr_left_of_pair.h: Likewise.
5799         * lib/unictype/pr_line_separator.h: Likewise.
5800         * lib/unictype/pr_logical_order_exception.h: Likewise.
5801         * lib/unictype/pr_non_break.h: Likewise.
5802         * lib/unictype/pr_not_a_character.h: Likewise.
5803         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5804         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5805         * lib/unictype/pr_other_id_start.h: Likewise.
5806         * lib/unictype/pr_other_lowercase.h: Likewise.
5807         * lib/unictype/pr_other_uppercase.h: Likewise.
5808         * lib/unictype/pr_paired_punctuation.h: Likewise.
5809         * lib/unictype/pr_paragraph_separator.h: Likewise.
5810         * lib/unictype/pr_pattern_syntax.h: Likewise.
5811         * lib/unictype/pr_pattern_white_space.h: Likewise.
5812         * lib/unictype/pr_private_use.h: Likewise.
5813         * lib/unictype/pr_quotation_mark.h: Likewise.
5814         * lib/unictype/pr_radical.h: Likewise.
5815         * lib/unictype/pr_soft_dotted.h: Likewise.
5816         * lib/unictype/pr_space.h: Likewise.
5817         * lib/unictype/pr_titlecase.h: Likewise.
5818         * lib/unictype/pr_variation_selector.h: Likewise.
5819         * lib/unictype/pr_white_space.h: Likewise.
5820         * lib/unictype/pr_zero_width.h: Likewise.
5821         * lib/unictype/sy_c_ident.h: Likewise.
5822         * lib/unictype/sy_c_whitespace.h: Likewise.
5823         * lib/unictype/sy_java_whitespace.h: Likewise.
5824         * lib/uninorm/composition-table.gperf: Likewise.
5825         * lib/uninorm/decomposition-table1.h: Likewise.
5826         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5827         LB8.
5828         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5829         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5830         * modules/unictype/*: Bump version number of expected libunistring
5831         version.
5832
5833 2011-01-09  Bruno Haible  <bruno@clisp.org>
5834
5835         Update to Unicode 5.2.0.
5836         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5837         trailing whitespace removed.
5838
5839 2011-01-09  Bruno Haible  <bruno@clisp.org>
5840
5841         New Unicode character properties, from Unicode 5.2.0.
5842         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5843         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5844         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5845         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5846         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5847         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5848         uc_is_property_cased, uc_is_property_case_ignorable,
5849         uc_is_property_changes_when_lowercased,
5850         uc_is_property_changes_when_uppercased,
5851         uc_is_property_changes_when_titlecased,
5852         uc_is_property_changes_when_casefolded,
5853         uc_is_property_changes_when_casemapped): New declarations.
5854         * lib/unictype/pr_byname.gperf: Add the new properties.
5855         * modules/unictype/property-byname (Depends-on): Depend on the new
5856         properties modules.
5857         * modules/unictype/property-all (Depends-on): Likewise.
5858         * MODULES.html.sh (Unicode string functions): Add
5859         unictype/property-case-ignorable, unictype/property-cased,
5860         unictype/property-changes-when-casefolded,
5861         unictype/property-changes-when-casemapped,
5862         unictype/property-changes-when-lowercased,
5863         unictype/property-changes-when-titlecased,
5864         unictype/property-changes-when-uppercased.
5865
5866         New module 'unictype/property-changes-when-casemapped'.
5867         * modules/unictype/property-changes-when-casemapped: New file.
5868         * lib/unictype/pr_changes_when_casemapped.c: New file.
5869         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5870         generated by gen-uni-tables.
5871         * modules/unictype/property-changes-when-casemapped-tests: New file.
5872         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5873         automatically generated by gen-uni-tables.
5874
5875         New module 'unictype/property-changes-when-casefolded'.
5876         * modules/unictype/property-changes-when-casefolded: New file.
5877         * lib/unictype/pr_changes_when_casefolded.c: New file.
5878         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5879         generated by gen-uni-tables.
5880         * modules/unictype/property-changes-when-casefolded-tests: New file.
5881         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5882         automatically generated by gen-uni-tables.
5883
5884         New module 'unictype/property-changes-when-titlecased'.
5885         * modules/unictype/property-changes-when-titlecased: New file.
5886         * lib/unictype/pr_changes_when_titlecased.c: New file.
5887         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5888         generated by gen-uni-tables.
5889         * modules/unictype/property-changes-when-titlecased-tests: New file.
5890         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5891         automatically generated by gen-uni-tables.
5892
5893         New module 'unictype/property-changes-when-uppercased'.
5894         * modules/unictype/property-changes-when-uppercased: New file.
5895         * lib/unictype/pr_changes_when_uppercased.c: New file.
5896         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5897         generated by gen-uni-tables.
5898         * modules/unictype/property-changes-when-uppercased-tests: New file.
5899         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5900         automatically generated by gen-uni-tables.
5901
5902         New module 'unictype/property-changes-when-lowercased'.
5903         * modules/unictype/property-changes-when-lowercased: New file.
5904         * lib/unictype/pr_changes_when_lowercased.c: New file.
5905         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5906         generated by gen-uni-tables.
5907         * modules/unictype/property-changes-when-lowercased-tests: New file.
5908         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5909         automatically generated by gen-uni-tables.
5910
5911         New module 'unictype/property-case-ignorable'.
5912         * modules/unictype/property-case-ignorable: New file.
5913         * lib/unictype/pr_case_ignorable.c: New file.
5914         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5915         by gen-uni-tables.
5916         * modules/unictype/property-case-ignorable-tests: New file.
5917         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5918         generated by gen-uni-tables.
5919
5920         New module 'unictype/property-cased'.
5921         * modules/unictype/property-cased: New file.
5922         * lib/unictype/pr_cased.c: New file.
5923         * lib/unictype/pr_cased.h: New file, automatically generated by
5924         gen-uni-tables.
5925         * modules/unictype/property-cased-tests: New file.
5926         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5927         gen-uni-tables.
5928
5929 2011-01-09  Bruno Haible  <bruno@clisp.org>
5930
5931         Update to Unicode 5.2.0.
5932         * lib/gen-uni-tables.c (output_predicate, output_category,
5933         output_combclass, output_bidi_category, output_decimal_digit_test,
5934         output_decimal_digit, output_digit_test, output_digit,
5935         output_numeric_test, output_numeric, output_mirror, output_scripts,
5936         output_scripts_byname, output_blocks, output_ident_category): Fix
5937         comment header.
5938         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5939         get_wbp.
5940         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5941         items.
5942         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5943         Changes_When_Lowercased, Changes_When_Uppercased,
5944         Changes_When_Titlecased, Changes_When_Casefolded,
5945         Changes_When_Casemapped.
5946         (is_property_alphabetic, is_property_default_ignorable_code_point):
5947         Update for Unicode 5.2.0.
5948         (is_property_cased, is_property_case_ignorable,
5949         is_property_changes_when_lowercased,
5950         is_property_changes_when_uppercased,
5951         is_property_changes_when_titlecased,
5952         is_property_changes_when_casefolded,
5953         is_property_changes_when_casemapped): New functions.
5954         (output_properties): Output also the properties cased, case_ignorable,
5955         changes_when_lowercased, changes_when_uppercased,
5956         changes_when_titlecased, changes_when_casefolded,
5957         changes_when_casemapped.
5958         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5959         Unicode TR#11 revision 17 -> 19.
5960         (LBP_CP): New enumeration value.
5961         (LBP_*): Adjust values accordingly.
5962         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5963         TR#14 revision 22 -> 24.
5964         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5965         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5966         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5967         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5968         is_WBP_MIDLETTER.
5969         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5970         the code1 and code2 of each composition rule.
5971         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5972         * lib/unicase/ignorable.h: Likewise.
5973         * lib/unicase/tocasefold.h: Likewise.
5974         * lib/unicase/tolower.h: Likewise.
5975         * lib/unicase/totitle.h: Likewise.
5976         * lib/unicase/toupper.h: Likewise.
5977         * lib/unictype/bidi_of.h: Likewise.
5978         * lib/unictype/blocks.h: Likewise.
5979         * lib/unictype/categ_C.h: Likewise.
5980         * lib/unictype/categ_Cf.h: Likewise.
5981         * lib/unictype/categ_Cn.h: Likewise.
5982         * lib/unictype/categ_L.h: Likewise.
5983         * lib/unictype/categ_Ll.h: Likewise.
5984         * lib/unictype/categ_Lm.h: Likewise.
5985         * lib/unictype/categ_Lo.h: Likewise.
5986         * lib/unictype/categ_Lu.h: Likewise.
5987         * lib/unictype/categ_M.h: Likewise.
5988         * lib/unictype/categ_Mc.h: Likewise.
5989         * lib/unictype/categ_Mn.h: Likewise.
5990         * lib/unictype/categ_N.h: Likewise.
5991         * lib/unictype/categ_Nd.h: Likewise.
5992         * lib/unictype/categ_Nl.h: Likewise.
5993         * lib/unictype/categ_No.h: Likewise.
5994         * lib/unictype/categ_P.h: Likewise.
5995         * lib/unictype/categ_Pd.h: Likewise.
5996         * lib/unictype/categ_Po.h: Likewise.
5997         * lib/unictype/categ_S.h: Likewise.
5998         * lib/unictype/categ_Sc.h: Likewise.
5999         * lib/unictype/categ_So.h: Likewise.
6000         * lib/unictype/categ_of.h: Likewise.
6001         * lib/unictype/combining.h: Likewise.
6002         * lib/unictype/ctype_alnum.h: Likewise.
6003         * lib/unictype/ctype_alpha.h: Likewise.
6004         * lib/unictype/ctype_graph.h: Likewise.
6005         * lib/unictype/ctype_lower.h: Likewise.
6006         * lib/unictype/ctype_print.h: Likewise.
6007         * lib/unictype/ctype_punct.h: Likewise.
6008         * lib/unictype/ctype_upper.h: Likewise.
6009         * lib/unictype/decdigit.h: Likewise.
6010         * lib/unictype/digit.h: Likewise.
6011         * lib/unictype/numeric.h: Likewise.
6012         * lib/unictype/pr_alphabetic.h: Likewise.
6013         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6014         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6015         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6016         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6017         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6018         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6019         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6020         * lib/unictype/pr_combining.h: Likewise.
6021         * lib/unictype/pr_composite.h: Likewise.
6022         * lib/unictype/pr_currency_symbol.h: Likewise.
6023         * lib/unictype/pr_dash.h: Likewise.
6024         * lib/unictype/pr_decimal_digit.h: Likewise.
6025         * lib/unictype/pr_deprecated.h: Likewise.
6026         * lib/unictype/pr_diacritic.h: Likewise.
6027         * lib/unictype/pr_extender.h: Likewise.
6028         * lib/unictype/pr_grapheme_base.h: Likewise.
6029         * lib/unictype/pr_grapheme_extend.h: Likewise.
6030         * lib/unictype/pr_grapheme_link.h: Likewise.
6031         * lib/unictype/pr_id_continue.h: Likewise.
6032         * lib/unictype/pr_id_start.h: Likewise.
6033         * lib/unictype/pr_ideographic.h: Likewise.
6034         * lib/unictype/pr_ignorable_control.h: Likewise.
6035         * lib/unictype/pr_logical_order_exception.h: Likewise.
6036         * lib/unictype/pr_lowercase.h: Likewise.
6037         * lib/unictype/pr_numeric.h: Likewise.
6038         * lib/unictype/pr_other_alphabetic.h: Likewise.
6039         * lib/unictype/pr_punctuation.h: Likewise.
6040         * lib/unictype/pr_sentence_terminal.h: Likewise.
6041         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6042         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6043         * lib/unictype/pr_unified_ideograph.h: Likewise.
6044         * lib/unictype/pr_uppercase.h: Likewise.
6045         * lib/unictype/pr_xid_continue.h: Likewise.
6046         * lib/unictype/pr_xid_start.h: Likewise.
6047         * lib/unictype/pr_zero_width.h: Likewise.
6048         * lib/unictype/scripts.h: Likewise.
6049         * lib/unictype/scripts_byname.gperf: Likewise.
6050         * lib/unictype/sy_java_ident.h: Likewise.
6051         * lib/unigbrk/gbrkprop.h: Likewise.
6052         * lib/unilbrk/lbrkprop1.h: Likewise.
6053         * lib/unilbrk/lbrkprop2.h: Likewise.
6054         * lib/unilbrk/lbrktables.h: Likewise.
6055         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6056         LBP_CP. Implement rule LB30.
6057         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6058         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6059         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6060         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6061         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6062         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6063         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6064         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6065         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6066         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6067         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6068         bits instead of 16 bits in the code1 and code2 of each composition
6069         rule.
6070         (uc_composition): Update for Unicode 5.2.0.
6071         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6072         * lib/uninorm/decomposition-table2.h: Likewise.
6073         * lib/uniwbrk/wbrkprop.h: Likewise.
6074         * tests/unicase/test-cased.c: Likewise.
6075         * tests/unicase/test-ignorable.c: Likewise.
6076         * tests/unicase/test-uc_tolower.c: Likewise.
6077         * tests/unicase/test-uc_totitle.c: Likewise.
6078         * tests/unicase/test-uc_toupper.c: Likewise.
6079         * tests/unictype/test-categ_C.c: Likewise.
6080         * tests/unictype/test-categ_Cf.c: Likewise.
6081         * tests/unictype/test-categ_Cn.c: Likewise.
6082         * tests/unictype/test-categ_L.c: Likewise.
6083         * tests/unictype/test-categ_Ll.c: Likewise.
6084         * tests/unictype/test-categ_Lm.c: Likewise.
6085         * tests/unictype/test-categ_Lo.c: Likewise.
6086         * tests/unictype/test-categ_Lu.c: Likewise.
6087         * tests/unictype/test-categ_M.c: Likewise.
6088         * tests/unictype/test-categ_Mc.c: Likewise.
6089         * tests/unictype/test-categ_Mn.c: Likewise.
6090         * tests/unictype/test-categ_N.c: Likewise.
6091         * tests/unictype/test-categ_Nd.c: Likewise.
6092         * tests/unictype/test-categ_Nl.c: Likewise.
6093         * tests/unictype/test-categ_No.c: Likewise.
6094         * tests/unictype/test-categ_P.c: Likewise.
6095         * tests/unictype/test-categ_Pd.c: Likewise.
6096         * tests/unictype/test-categ_Po.c: Likewise.
6097         * tests/unictype/test-categ_S.c: Likewise.
6098         * tests/unictype/test-categ_Sc.c: Likewise.
6099         * tests/unictype/test-categ_So.c: Likewise.
6100         * tests/unictype/test-ctype_alnum.c: Likewise.
6101         * tests/unictype/test-ctype_alpha.c: Likewise.
6102         * tests/unictype/test-ctype_graph.c: Likewise.
6103         * tests/unictype/test-ctype_lower.c: Likewise.
6104         * tests/unictype/test-ctype_print.c: Likewise.
6105         * tests/unictype/test-ctype_punct.c: Likewise.
6106         * tests/unictype/test-ctype_upper.c: Likewise.
6107         * tests/unictype/test-decdigit.h: Likewise.
6108         * tests/unictype/test-digit.h: Likewise.
6109         * tests/unictype/test-numeric.h: Likewise.
6110         * tests/unictype/test-pr_alphabetic.c: Likewise.
6111         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6112         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6113         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6114         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6115         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6116         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6117         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6118         * tests/unictype/test-pr_combining.c: Likewise.
6119         * tests/unictype/test-pr_composite.c: Likewise.
6120         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6121         * tests/unictype/test-pr_dash.c: Likewise.
6122         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6123         * tests/unictype/test-pr_deprecated.c: Likewise.
6124         * tests/unictype/test-pr_diacritic.c: Likewise.
6125         * tests/unictype/test-pr_extender.c: Likewise.
6126         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6127         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6128         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6129         * tests/unictype/test-pr_id_continue.c: Likewise.
6130         * tests/unictype/test-pr_id_start.c: Likewise.
6131         * tests/unictype/test-pr_ideographic.c: Likewise.
6132         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6133         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6134         * tests/unictype/test-pr_lowercase.c: Likewise.
6135         * tests/unictype/test-pr_numeric.c: Likewise.
6136         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6137         * tests/unictype/test-pr_punctuation.c: Likewise.
6138         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6139         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6140         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6141         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6142         * tests/unictype/test-pr_uppercase.c: Likewise.
6143         * tests/unictype/test-pr_xid_continue.c: Likewise.
6144         * tests/unictype/test-pr_xid_start.c: Likewise.
6145         * tests/unictype/test-pr_zero_width.c: Likewise.
6146         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6147         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6148         changed behaviour: line breaking is now disallowed between a letter
6149         or '=' and '('.
6150         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6151         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6152         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6153         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6154         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6155         lib/uniwidth/width.c.
6156         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6157         without comments, but with the original copyright notice.
6158         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6159         changes.
6160         * lib/unictype/categ_Cc.h: Likewise.
6161         * lib/unictype/categ_Co.h: Likewise.
6162         * lib/unictype/categ_Cs.h: Likewise.
6163         * lib/unictype/categ_Lt.h: Likewise.
6164         * lib/unictype/categ_Me.h: Likewise.
6165         * lib/unictype/categ_Pc.h: Likewise.
6166         * lib/unictype/categ_Pe.h: Likewise.
6167         * lib/unictype/categ_Pf.h: Likewise.
6168         * lib/unictype/categ_Pi.h: Likewise.
6169         * lib/unictype/categ_Ps.h: Likewise.
6170         * lib/unictype/categ_Sk.h: Likewise.
6171         * lib/unictype/categ_Sm.h: Likewise.
6172         * lib/unictype/categ_Z.h: Likewise.
6173         * lib/unictype/categ_Zl.h: Likewise.
6174         * lib/unictype/categ_Zp.h: Likewise.
6175         * lib/unictype/categ_Zs.h: Likewise.
6176         * lib/unictype/ctype_blank.h: Likewise.
6177         * lib/unictype/ctype_cntrl.h: Likewise.
6178         * lib/unictype/ctype_digit.h: Likewise.
6179         * lib/unictype/ctype_space.h: Likewise.
6180         * lib/unictype/ctype_xdigit.h: Likewise.
6181         * lib/unictype/mirror.h: Likewise.
6182         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6183         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6184         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6185         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6186         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6187         * lib/unictype/pr_bidi_control.h: Likewise.
6188         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6189         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6190         * lib/unictype/pr_bidi_pdf.h: Likewise.
6191         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6192         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6193         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6194         * lib/unictype/pr_format_control.h: Likewise.
6195         * lib/unictype/pr_hex_digit.h: Likewise.
6196         * lib/unictype/pr_hyphen.h: Likewise.
6197         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6198         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6199         * lib/unictype/pr_iso_control.h: Likewise.
6200         * lib/unictype/pr_join_control.h: Likewise.
6201         * lib/unictype/pr_left_of_pair.h: Likewise.
6202         * lib/unictype/pr_line_separator.h: Likewise.
6203         * lib/unictype/pr_math.h: Likewise.
6204         * lib/unictype/pr_non_break.h: Likewise.
6205         * lib/unictype/pr_not_a_character.h: Likewise.
6206         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6207         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6208         * lib/unictype/pr_other_id_continue.h: Likewise.
6209         * lib/unictype/pr_other_id_start.h: Likewise.
6210         * lib/unictype/pr_other_lowercase.h: Likewise.
6211         * lib/unictype/pr_other_math.h: Likewise.
6212         * lib/unictype/pr_other_uppercase.h: Likewise.
6213         * lib/unictype/pr_paired_punctuation.h: Likewise.
6214         * lib/unictype/pr_paragraph_separator.h: Likewise.
6215         * lib/unictype/pr_pattern_syntax.h: Likewise.
6216         * lib/unictype/pr_pattern_white_space.h: Likewise.
6217         * lib/unictype/pr_private_use.h: Likewise.
6218         * lib/unictype/pr_quotation_mark.h: Likewise.
6219         * lib/unictype/pr_radical.h: Likewise.
6220         * lib/unictype/pr_soft_dotted.h: Likewise.
6221         * lib/unictype/pr_space.h: Likewise.
6222         * lib/unictype/pr_titlecase.h: Likewise.
6223         * lib/unictype/pr_variation_selector.h: Likewise.
6224         * lib/unictype/pr_white_space.h: Likewise.
6225         * lib/unictype/sy_c_ident.h: Likewise.
6226         * lib/unictype/sy_c_whitespace.h: Likewise.
6227         * lib/unictype/sy_java_whitespace.h: Likewise.
6228         * modules/uni*/*: Bump version number of expected libunistring version.
6229         Reported by Simon Josefsson.
6230
6231 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6232
6233         useless-if-before-free: fix typo in --help and make the internal,
6234         automatic version date update process work once again.
6235         --help output contained a NUL character instead of the
6236         backslash-zero that was intended.  Also, the "must lie within
6237         the first 8 lines" line is on line 9, and hence not getting
6238         automatically updated.
6239         * build-aux/useless-if-before-free: Fix the former by adding a
6240         backslash, and the latter by condensing the three lines of what-it-does
6241         to a single line, leaving one line of slack for the future.
6242
6243 2011-01-09  Bruno Haible  <bruno@clisp.org>
6244
6245         uniwidth/width: Fix width of U+1D173..U+1D17A.
6246         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6247         symbolic_width, output_width_property_test): New functions.
6248         (main): Invoke output_nonspacing_property, output_width_property_test.
6249         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6250         U+1D173..U+1D17A.
6251         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6252         1.
6253         * modules/uniwidth/*: Bump version number of expected libunistring
6254         version.
6255         * modules/unilbrk/*: Likewise.
6256
6257 2011-01-08  Bruno Haible  <bruno@clisp.org>
6258
6259         uninorm tests: Preserve copyright of Unicode data file.
6260         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6261         Mention modifications.
6262
6263 2011-01-08  Bruno Haible  <bruno@clisp.org>
6264
6265         gen-uni-tables: Prepare for Unicode 5.2.0.
6266         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6267         (debug_output_lbp, output_lbp): Update.
6268
6269 2011-01-08  Bruno Haible  <bruno@clisp.org>
6270
6271         unilbrk: Clarify gen-uni-tables.c code.
6272         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6273         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6274         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6275
6276 2011-01-07  Bruno Haible  <bruno@clisp.org>
6277
6278         strtod: Restore errno when successfully parsing Infinity or NaN.
6279         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6280         restore the original errno.
6281
6282 2011-01-07  Bruno Haible  <bruno@clisp.org>
6283
6284         remove test: Avoid failure on HP-UX 11.
6285         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6286
6287 2011-01-07  Bruno Haible  <bruno@clisp.org>
6288
6289         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6290         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6291         error code.
6292
6293 2011-01-07  Pádraig Brady <P@draigBrady.com>
6294
6295         ignore-value: fixup comments, and add Eric Blake
6296         as an author since he rewrote the macros.
6297         * lib/ignore-value.h (ignore_value):  State that
6298         we now support aggregates.  Also specify exactly
6299         when the GCC warn_unused_result feature was added.
6300
6301 2011-01-06  Eric Blake  <eblake@redhat.com>
6302
6303         ignore-value: support aggregate types
6304         * lib/ignore-value.h (ignore_value): Provide separate gcc
6305         definition.
6306         * modules/ignore-value-tests: New test module.
6307         * tests/test-ignore-value.c: New test.
6308
6309         maint.mk: improve sc_prohibit_strcmp regex
6310         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6311         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6312         definition of STRNEQ.
6313
6314         signal: work around Haiku issue with SIGBUS
6315         * lib/siglist.h: Add comment.
6316         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6317         strsignal's favoring of SIGSEGV.
6318         * tests/test-signal.c (main): Avoid test failure.
6319         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6320         Reported by Scott McCreary.
6321
6322         maint.mk: add pre-release check to ensure submodule commits are public
6323         * top/maint.mk (public-submodule-commit): New rule.
6324         (submodule-checks): New variable.
6325         (alpha beta stable): Depend on the variable.
6326
6327 2011-01-05  Pádraig Brady <P@draigBrady.com>
6328         and Jim Meyering  <meyering@redhat.com>
6329
6330         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6331         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6332         (ATTRIBUTE_DEPRECATED): Define.
6333         (_ignore_case): New function.
6334         (ignore_value): New macro, to replace the old function.
6335         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6336         * modules/ignore-value (Depends-on): Add stdint.
6337
6338 2011-01-04  Eric Blake  <eblake@redhat.com>
6339
6340         doc: regenerate INSTALL
6341         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6342         @firstparagraphindent support, now that autoconf dropped it.
6343         (INSTALL_PRELUDE): Reinstate old macro.
6344         * doc/install.texi: Resync from autoconf.
6345         * doc/INSTALL: Reflect recent autoconf update.
6346         * doc/INSTALL.ISO: Likewise.
6347         * doc/INSTALL.UTF-8: Likewise.
6348         Reported by Karl Berry.
6349
6350 2011-01-04  Bruce Korb  <address@hidden>
6351
6352         git-version-gen: avoid a sub-shell
6353         * build-aux/git-version-gen: Redirect stderr in `...` via
6354         "exec 2>...", rather than via an added sub-shell.
6355
6356 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6357
6358         git-version-gen: use (...) rather than sh -c '...'
6359         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6360         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6361
6362 2011-01-03  Jim Meyering  <meyering@redhat.com>
6363
6364         git-version-gen: convert leading TABs to spaces
6365         * build-aux/git-version-gen: Expand leading TABs.
6366
6367         git-version-gen: handle failed "git rev-list"
6368         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6369         from git and proceeding as if it had succeeded but printed no SHA1
6370         checksums, suppress the diagnostic and handle the failure.
6371         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6372
6373         git-version-gen: include command name in one more diagnostic
6374         * build-aux/git-version-gen: When the required .tarball-version file
6375         was missing or unreadable, you might see the diagnostic from "cat",
6376         but no trace of the name of the invoking script.  Now, you still see
6377         the diagnostic from cat, but also get one from "git-version-gen: ".
6378         Inspired by a patch from Bruce Korb.
6379
6380         update-copyright: adjust test to match changed code
6381         * tests/test-update-copyright.sh: Change test's expected output
6382         to match new actual output.
6383
6384 2011-01-02  Bruno Haible  <bruno@clisp.org>
6385
6386         getlogin_r: Avoid test failure on HP-UX 11.
6387         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6388         ERANGE when the second argument is zero.
6389         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6390         portability problem.
6391
6392 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6393
6394         * build-aux/update-copyright: doc Simon's changes
6395
6396 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6397
6398         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6399         environment variable.
6400
6401 2011-01-02  Bruno Haible  <bruno@clisp.org>
6402
6403         unigbrk: Avoid gcc warnings.
6404         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6405         unused variable.
6406         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6407         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6408         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6409         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6410         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6411         Change type of first argument to 'const char *'.
6412         (main): Remove unused variable.
6413         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6414         type of first argument to 'const char *'.
6415         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6416         Likewise.
6417         (main): Change type of variable 's'.
6418         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6419         to 'int'.
6420
6421 2011-01-02  Bruno Haible  <bruno@clisp.org>
6422
6423         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6424         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6425         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6426         bug.
6427         * lib/pwrite.c: Undo 2010-12-31 patch.
6428         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6429
6430 2011-01-02  Bruno Haible  <bruno@clisp.org>
6431
6432         pread: Fix test whether it works.
6433         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6434
6435 2011-01-02  Bruno Haible  <bruno@clisp.org>
6436
6437         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6438         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6439         ends in "6". Don't require a specific month name. Try also the locale
6440         names found on HP-UX 11 and Solaris 7.
6441
6442 2011-01-02  Bruno Haible  <bruno@clisp.org>
6443
6444         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6445         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6446         C linkage.
6447         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6448
6449 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6450
6451         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6452         for consistency, since the "cluster" term is not used elsewhere.
6453         * lib/unigbrk.in.h: Update name.
6454         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6455         * lib/unigbrk/u16-grapheme-next.c: Update name.
6456         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6457         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6458         * lib/unigbrk/u32-grapheme-next.c: Update name.
6459         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6460         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6461         * lib/unigbrk/u8-grapheme-next.c: Update name.
6462         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6463         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6464         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6465         Suggested by Bruno Haible.
6466
6467 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6468
6469         Remove module 'u8-grapheme-len' as too redundant with
6470         'u8-grapheme-next'.
6471         * modules/unigbrk/u8-grapheme-len: Delete file.
6472         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6473         * lib/unigbrk.in.h: Remove prototype for deleted function.
6474         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6475         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6476
6477         Remove module 'u16-grapheme-len' as too redundant with
6478         'u16-grapheme-next'.
6479         * modules/unigbrk/u16-grapheme-len: Delete file.
6480         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6481         * lib/unigbrk.in.h: Remove prototype for deleted function.
6482         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6483         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6484
6485         Remove module 'u32-grapheme-len' as too redundant with
6486         'u32-grapheme-next'.
6487         * modules/unigbrk/u32-grapheme-len: Delete file.
6488         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6489         * lib/unigbrk.in.h: Remove prototype for deleted function.
6490         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6491         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6492
6493         Suggested by Bruno Haible.
6494
6495 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6496
6497         * unigbrk.in.h: Fix typo: "ben" => "been".
6498         Reported by Bruno Haible.
6499
6500 2011-01-01  Jim Meyering  <meyering@redhat.com>
6501
6502         maint: update almost all copyright ranges to include 2011
6503         Run the new "make update-copyright" rule.
6504
6505 2011-01-01  Jim Meyering  <meyering@redhat.com>
6506
6507         maint: update-copyright: exempt doc/INSTALL*
6508         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6509         since they are generated.  Suggested by Bruno Haible.
6510
6511 2011-01-01  Jim Meyering  <meyering@redhat.com>
6512
6513         maint: refine the update-copyright rule
6514         * Makefile (update-copyright): Also exclude any file that includes
6515         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6516         code that merely generates the comment.
6517
6518 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6519
6520         New module 'u8-grapheme-len'.
6521         * modules/unigbrk/u8-grapheme-len: New file.
6522         * modules/unigbrk/u8-grapheme-len-tests: New file.
6523         * lib/unigbrk.in.h: Add prototype for new function.
6524         * lib/unigbrk/u8-grapheme-len.c: New file.
6525         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6526
6527         New module 'u16-grapheme-len'.
6528         * modules/unigbrk/u16-grapheme-len: New file.
6529         * modules/unigbrk/u16-grapheme-len-tests: New file.
6530         * lib/unigbrk.in.h: Add prototype for new function.
6531         * lib/unigbrk/u16-grapheme-len.c: New file.
6532         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6533
6534         New module 'u32-grapheme-len'.
6535         * modules/unigbrk/u32-grapheme-len: New file.
6536         * modules/unigbrk/u32-grapheme-len-tests: New file.
6537         * lib/unigbrk.in.h: Add prototype for new function.
6538         * lib/unigbrk/u32-grapheme-len.c: New file.
6539         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6540
6541         New module 'u8-grapheme-next'.
6542         * modules/unigbrk/u8-grapheme-next: New file.
6543         * modules/unigbrk/u8-grapheme-next-tests: New file.
6544         * lib/unigbrk.in.h: Add prototype for new function.
6545         * lib/unigbrk/u8-grapheme-next.c: New file.
6546         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6547
6548         New module 'u16-grapheme-next'.
6549         * modules/unigbrk/u16-grapheme-next: New file.
6550         * modules/unigbrk/u16-grapheme-next-tests: New file.
6551         * lib/unigbrk.in.h: Add prototype for new function.
6552         * lib/unigbrk/u16-grapheme-next.c: New file.
6553         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6554
6555         New module 'u32-grapheme-next'.
6556         * modules/unigbrk/u32-grapheme-next: New file.
6557         * modules/unigbrk/u32-grapheme-next-tests: New file.
6558         * lib/unigbrk.in.h: Add prototype for new function.
6559         * lib/unigbrk/u32-grapheme-next.c: New file.
6560         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6561
6562         New module 'u8-grapheme-prev'.
6563         * modules/unigbrk/u8-grapheme-prev: New file.
6564         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6565         * lib/unigbrk.in.h: Add prototype for new function.
6566         * lib/unigbrk/u8-grapheme-prev.c: New file.
6567         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6568
6569         New module 'u16-grapheme-prev'.
6570         * modules/unigbrk/u16-grapheme-prev: New file.
6571         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6572         * lib/unigbrk.in.h: Add prototype for new function.
6573         * lib/unigbrk/u16-grapheme-prev.c: New file.
6574         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6575
6576         New module 'u32-grapheme-prev'.
6577         * modules/unigbrk/u32-grapheme-prev: New file.
6578         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6579         * lib/unigbrk.in.h: Add prototype for new function.
6580         * lib/unigbrk/u32-grapheme-prev.c: New file.
6581         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6582
6583         New module 'u8-grapheme-breaks'.
6584         * modules/unigbrk/u8-grapheme-breaks: New file.
6585         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6586         * lib/unigbrk.in.h: Add prototype for new function.
6587         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6588         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6589
6590         New module 'u16-grapheme-breaks'.
6591         * modules/unigbrk/u16-grapheme-breaks: New file.
6592         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6593         * lib/unigbrk.in.h: Add prototype for new function.
6594         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6595         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6596
6597         New module 'u32-grapheme-breaks'.
6598         * modules/unigbrk/u32-grapheme-breaks: New file.
6599         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6600         * lib/unigbrk.in.h: Add prototype for new function.
6601         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6602         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6603
6604         New module 'ulc-grapheme-breaks'.
6605         * modules/unigbrk/ulc-grapheme-breaks: New file.
6606         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6607         * m4/locale-ar.m4: New file.
6608         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6609         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6610         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6611
6612 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6613
6614         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6615         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6616         modified how this file was generated before I initially submitted
6617         the module, but failed to regenerate it.  This meant that several
6618         of the level2 entries were wrong.
6619         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6620         Remove the division-by-2 that is folded into the table now that
6621         gbrkprop.h has been regenerated properly.  Now -1 entries are
6622         handled correctly.
6623
6624         New module 'unigbrk/uc-gbrk-prop-tests'.
6625         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6626         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6627         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6628         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6629
6630 2011-01-01  Bruno Haible  <bruno@clisp.org>
6631
6632         Avoid use of hexadecimal escapes.
6633         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6634         instead of hexadecimal escapes.
6635
6636 2011-01-01  Jim Meyering  <meyering@redhat.com>
6637
6638         maint: new rule to update copyright year ranges
6639         * Makefile (update-copyright): New rule.
6640
6641         maint: indent with TABs in Makefile
6642         * Makefile: Expand leading sequences of spaces to TABs
6643
6644         version-etc: update the copyright year it reports
6645         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6646
6647 2010-12-31  Bruno Haible  <bruno@clisp.org>
6648
6649         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6650         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6651         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6652         zero.
6653
6654 2010-12-31  Bruno Haible  <bruno@clisp.org>
6655
6656         pwrite: Work around HP-UX 11.11 bug.
6657         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6658         works and set REPLACE_PWRITE if not.
6659         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6660         function.
6661         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6662
6663 2010-12-31  Bruno Haible  <bruno@clisp.org>
6664
6665         pread: Work around HP-UX 11 bugs.
6666         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6667         and set REPLACE_PREAD if not.
6668         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6669
6670 2010-12-31  Eric Blake  <eblake@redhat.com>
6671
6672         nl_langinfo: fix YESEXPR on Irix 6.5
6673         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6674         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6675         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6676         it.
6677
6678 2010-12-31  Bruno Haible  <bruno@clisp.org>
6679
6680         iconv: Document HP-UX 11 bug.
6681         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6682
6683 2010-12-31  Bruno Haible  <bruno@clisp.org>
6684
6685         ldexpl: Fix link error on HP-UX 11.
6686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6687         LDEXPL_LIBM, using $ISNANL_LIBM.
6688
6689 2010-12-31  Eric Blake  <eblake@redhat.com>
6690
6691         ftello: avoid compilation failure with SunStudio c89
6692         * lib/ftello.c (ftello): Use lseek, not llseek.
6693
6694         tests: avoid failing coreutils tests on cygwin
6695         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6696         (create_exe_shims_): Return 0 when skipping.
6697
6698 2010-12-31  Bruno Haible  <bruno@clisp.org>
6699
6700         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6701         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6702
6703 2010-12-31  Bruno Haible  <bruno@clisp.org>
6704
6705         waitpid: Fix link error in C++ mode.
6706         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6707
6708 2010-12-31  Bruno Haible  <bruno@clisp.org>
6709
6710         isnan: Use GCC built-ins when possible.
6711         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6712         __builtin_isnan.
6713         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6714         (isnan): Define using GCC built-ins for GCC >= 4.0.
6715
6716 2010-12-31  Bruno Haible  <bruno@clisp.org>
6717
6718         isnand: Fix mistake.
6719         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6720         __builtin_isnand.
6721
6722 2010-12-31  Bruno Haible  <bruno@clisp.org>
6723
6724         open: Avoid C++ error on HP-UX 11.
6725         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6726
6727 2010-12-31  Bruno Haible  <bruno@clisp.org>
6728
6729         time_r: Add missing declarations on HP-UX 11.
6730         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6731         instead of HAVE_LOCALTIME_R.
6732         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6733         HAVE_LOCALTIME_R always.
6734         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6735         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6736         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6737         HAVE_LOCALTIME_R.
6738         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6739         * doc/posix-functions/localtime_r.texi: Likewise.
6740
6741 2010-12-29  Eric Blake  <eblake@redhat.com>
6742
6743         mountlist: tweak previous commit
6744         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6745         Reported by Paul Eggert.
6746
6747         mountlist: fix local drive detection on cygwin
6748         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6749         that works for cygwin.
6750
6751 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         ftoastr, snprintf: ftoastr + snprintf module
6754         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6755         since the snprintf module now should be good enough here.
6756         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6757         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6758         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6759         GNULIB_SNPRINTF only for the test directory, and the latter
6760         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6761         seems to suffice by itself.
6762
6763 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6764
6765         alloca: one step towards thread-safety
6766         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6767         need for a static variable.  All callers changed.  This does not
6768         make the alloca replacement thread-safe, but it's one step.
6769
6770         tests: minor indenting change
6771         * tests/init.sh: Sync from coreutils housekeeping patch
6772         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6773         to keep lines within 80 columns.
6774
6775 2010-12-28  Jim Meyering  <meyering@redhat.com>
6776
6777         regex: don't infloop on persistent failing calloc
6778         * lib/regexec.c (build_trtable): Return failure indication upon
6779         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6780         In glibc, this was fixed for version 2.13:
6781         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6782
6783 2010-12-28  Bruno Haible  <bruno@clisp.org>
6784             Paul Eggert <eggert@cs.ucla.edu>
6785
6786         linkat: Make implementation robust against system behaviour variations.
6787         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6788         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6789         way, and to -2 if it needs a generic runtime test.
6790         * lib/linkat.c (solaris_optimized_link_immediate,
6791         solaris_optimized_link_follow): New functions.
6792         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6793         (check_same_link): Use it.
6794
6795 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6796
6797         New module 'unigbrk/base'.
6798         * modules/unigbrk/base: New file.
6799         * lib/unigbrk.in.h: New file.
6800
6801         New module 'unigbrk/uc-gbrk-prop'.
6802         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6803         * modules/unigbrk/uc-gbrk-prop: New file.
6804         * lib/unigbrk/gbrkprop.h: New file.
6805         * lib/unigbrk/uc-gbrk-prop.c: New file.
6806
6807         New module 'unigbrk/uc-is-grapheme-break'.
6808         * modules/unigbrk/uc-is-grapheme-break: New file.
6809         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6810         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6811         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6812         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6813         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6814
6815         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6816
6817 2010-12-27  Bruno Haible  <bruno@clisp.org>
6818
6819         linkat test: Avoid failure on Solaris 11 2010-11.
6820         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6821
6822 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6823
6824         utimens: work around glibc rounding bug on more platforms
6825         * lib/utimens.c (fdutimens): Work around rounding bug even if
6826         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6827         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6828
6829 2010-12-27  Bruno Haible  <bruno@clisp.org>
6830
6831         select tests: Improve comments.
6832         * tests/test-select.c (do_select): Add comments.
6833
6834 2010-12-27  Bruno Haible  <bruno@clisp.org>
6835
6836         select tests: Safer way of handling timeout.
6837         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6838         at every invocation.
6839
6840 2010-12-27  Bruno Haible  <bruno@clisp.org>
6841
6842         select tests: Use 'bool' where appropriate.
6843         * tests/test-select.c (connect_to_socket): Change argument type to
6844         'bool'.
6845
6846 2010-12-27  Bruno Haible  <bruno@clisp.org>
6847
6848         select tests: Use existing modules.
6849         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6850         (configure.ac): Don't test for unistd.h.
6851         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6852         declared in <unistd.h>.
6853
6854 2010-12-27  Bruno Haible  <bruno@clisp.org>
6855
6856         mbrtowc: Work around a Solaris 7 bug.
6857         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6858         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6859         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6860         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6861         MBRTOWC_NULL_ARG1_BUG.
6862         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6863         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6864         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6865         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6866
6867 2010-12-27  Jim Meyering  <meyering@redhat.com>
6868
6869         read-file.c: tweak syntax
6870         * lib/read-file.c (fread_file): Remove space after "*" in function
6871         definitions.
6872
6873 2010-12-27  Bruno Haible  <bruno@clisp.org>
6874
6875         times test: Avoid gcc warnings on OSF/1.
6876         * tests/test-times.c (main): Cast printf arguments from clock_t to
6877         'long int'.
6878
6879 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6880
6881         utimens: work around glibc rounding bug on older Linux kernels
6882         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6883         on Linux with a glibc whose utimes might not work, then work
6884         around a longstanding glibc bug involving rounding rather than
6885         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6887
6888 2010-12-26  Bruno Haible  <bruno@clisp.org>
6889
6890         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6891         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6892         _GL_CXXALIAS_SYS.
6893         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6894
6895 2010-12-26  Bruno Haible  <bruno@clisp.org>
6896
6897         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6898         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6900         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6901         looking for the declaration.
6902         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6903         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6904         problem.
6905         * doc/posix-functions/inet_pton.texi: Likewise.
6906
6907 2010-12-26  Bruno Haible  <bruno@clisp.org>
6908
6909         arpa_inet: Use the common idioms with C++ support.
6910         * lib/arpa_inet.in.h: Include c++defs.h.
6911         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6912         support.
6913         * modules/arpa_inet (Depends-on): Add c++defs.
6914         (Makefile.am): Substitute the contents of c++defs.h.
6915         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6916         * modules/arpa_inet-c++-tests: New file.
6917         * tests/test-arpa_inet-c++.cc: New file.
6918
6919 2010-12-25  Bruno Haible  <bruno@clisp.org>
6920
6921         Fix more C++ link errors on Solaris 8.
6922         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6923         $(LIB_EACCESS).
6924         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6925         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6926         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6927         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6928         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6929
6930 2010-12-25  Bruno Haible  <bruno@clisp.org>
6931
6932         printf-posix: Fix link error when a non-GCC compiler is used.
6933         * lib/stdio.in.h (printf): When not using GCC, override printf
6934         correctly.
6935         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6936
6937 2010-12-25  Bruno Haible  <bruno@clisp.org>
6938
6939         strerror_r-posix: Update doc.
6940         * doc/posix-functions/strerror_r.texi: Update doc about the return
6941         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6942
6943 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6944
6945         utimens: simplify the logic of the previous change
6946         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6947         This should not affect whether the test succeeds or fails.
6948
6949         utimens: configure better on hosts with NFS clock skew
6950         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6951         uses the clock of the local host.  It might use the clock of the
6952         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6953         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6954
6955 2010-12-25  Bruno Haible  <bruno@clisp.org>
6956
6957         ptsname test: Avoid failure on Solaris.
6958         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6959         open a pseudo-terminal; don't use BSD-style ptys.
6960         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6961
6962 2010-12-25  Bruno Haible  <bruno@clisp.org>
6963
6964         ptsname: Avoid ERANGE failure on some systems.
6965         * lib/ptsname.c (buffer): Increase size.
6966
6967 2010-12-25  Bruno Haible  <bruno@clisp.org>
6968
6969         rename, renameat: Avoid test failures at NFS mounted locations.
6970         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6971         so that subsequent mkdir calls succeed.
6972
6973 2010-12-25  Bruno Haible  <bruno@clisp.org>
6974
6975         iswblank: Fix C++ link error on Solaris 8.
6976         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6977         _GL_FUNCDECL_SYS.
6978
6979 2010-12-25  Bruno Haible  <bruno@clisp.org>
6980
6981         unistd: Fix C++ link error on Solaris 8.
6982         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6983
6984 2010-12-25  Bruno Haible  <bruno@clisp.org>
6985
6986         readlink doc: Mention an old glibc bug.
6987         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6988
6989 2010-12-25  Bruno Haible  <bruno@clisp.org>
6990
6991         fcntl-h: Fix for use of C++ on glibc systems.
6992         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6993         also on glibc systems in C++ mode.
6994         Reported by Gary V. Vaughan <gary@gnu.org>.
6995
6996 2010-12-25  Bruno Haible  <bruno@clisp.org>
6997
6998         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6999         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7000
7001 2010-12-25  Bruno Haible  <bruno@clisp.org>
7002
7003         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7004         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7005         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7006         test whether truncl works according to ISO C 99 with IEC 60559.
7007         * m4/truncl-ieee.m4: New file.
7008         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7009         m4/signbit.m4.
7010         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7011
7012 2010-12-25  Bruno Haible  <bruno@clisp.org>
7013
7014         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7015         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7016         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7017         test whether ceill works according to ISO C 99 with IEC 60559.
7018         * m4/ceill-ieee.m4: New file.
7019         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7020         m4/signbit.m4.
7021         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7022
7023 2010-12-25  Bruno Haible  <bruno@clisp.org>
7024
7025         Ensure all prerequisites of <wchar.h> are included.
7026         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7027         before <wchar.h>.
7028         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7029         gl_MBRLEN_NUL_RETVAL): Likewise.
7030         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7031         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7032         AC_FUNC_MBRTOWC): Likewise.
7033         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7034         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7036         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7037         Likewise.
7038         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7039         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7040         (gl_WCHAR_H): Improve comments.
7041         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7042
7043 2010-12-25  Bruno Haible  <bruno@clisp.org>
7044
7045         strtok_r: Fix C syntax error in autoconf macro.
7046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7047         characters in test program.
7048
7049 2010-12-24  Bruno Haible  <bruno@clisp.org>
7050
7051         ceil, trunc, round: Fix gcc warnings.
7052         * lib/ceil.c (MIN): Undefine before redefining.
7053         * lib/trunc.c (MIN): Likewise.
7054         * lib/round.c (MIN): Likewise.
7055         Include <math.h> first.
7056
7057 2010-12-24  Bruno Haible  <bruno@clisp.org>
7058
7059         select tests: Avoid failures on OSF/1 5.1.
7060         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7061         failure of closing the last socket; it may fail with ECONNRESET.
7062
7063 2010-12-24  Eric Blake  <eblake@redhat.com>
7064
7065         stdint: avoid HP-UX 10.20 preprocessor bug
7066         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7067         than #if.
7068         * tests/test-floor2.c (main): Likewise.
7069         Reported by Peter O'Gorman.
7070
7071         pipe: make obsoletion transition easier
7072         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7073         * modules/pipe (Files): Include revived file.
7074         (Include): Drop reference, to mirror getdate's behavior.
7075
7076 2010-12-24  Bruno Haible  <bruno@clisp.org>
7077
7078         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7079         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7080         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7081         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7082
7083 2010-12-24  Bruno Haible  <bruno@clisp.org>
7084
7085         gethostname: Ensure declaration on NonStop Kernel.
7086         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7087         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7088
7089 2010-12-24  Bruno Haible  <bruno@clisp.org>
7090
7091         sys_select: Ensure all necessary types on NonStop Kernel.
7092         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7093         include <sys/time.h>.
7094         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7095         NonStop Kernel.
7096         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7097
7098 2010-12-24  Bruno Haible  <bruno@clisp.org>
7099
7100         sys_select: Remove unneeded include.
7101         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7102         have <sys/select.h>.
7103
7104 2010-12-24  Bruno Haible  <bruno@clisp.org>
7105
7106         gethostname: Provide a fallback for HOST_NAME_MAX.
7107         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7108         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7109         instead.
7110         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7111
7112 2010-12-24  Bruno Haible  <bruno@clisp.org>
7113
7114         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7115         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7116         (SA_RESTART): Likewise.
7117         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7118
7119 2010-12-24  Bruno Haible  <bruno@clisp.org>
7120
7121         signal: Define NSIG.
7122         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7123         * tests/test-signal.c (nsig): New variable.
7124         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7125
7126 2010-12-24  Bruno Haible  <bruno@clisp.org>
7127
7128         rename, renameat: Avoid test failures on OSF/1 5.1.
7129         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7130         alternative error codes.
7131         * tests/test-renameat.c (main): Likewise.
7132
7133 2010-12-24  Bruno Haible  <bruno@clisp.org>
7134
7135         *printf: Detect large precisions bug on Solaris 10/SPARC.
7136         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7137         by Paul Eggert.
7138         * tests/test-snprintf-posix.h (test_function): Add this test code here
7139         too.
7140         * tests/test-sprintf-posix.h (test_function): Likewise.
7141         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7142         * tests/test-vasprintf-posix.c (test_function): Likewise.
7143         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7144         around by gnulib.
7145         * doc/posix-functions/printf.texi: Likewise.
7146         * doc/posix-functions/snprintf.texi: Likewise.
7147         * doc/posix-functions/sprintf.texi: Likewise.
7148         * doc/posix-functions/vfprintf.texi: Likewise.
7149         * doc/posix-functions/vprintf.texi: Likewise.
7150         * doc/posix-functions/vsnprintf.texi: Likewise.
7151         * doc/posix-functions/vsprintf.texi: Likewise.
7152         * doc/posix-functions/dprintf.texi: Undo last commit.
7153         * doc/posix-functions/vdprintf.texi: Likewise.
7154
7155 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7156
7157         tests: port test-fdutimensat.c to Solaris 8
7158         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7159         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7160         On Solaris 8, it fails with errno == ENOSYS, because there is no
7161         futimens (so it can't use the fd), and there is no lutimens (so it
7162         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7163
7164         vsnprintf: make more consistent with snprintf; doc fixes
7165
7166         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7167         the byte count return problem was promoted from the snprintf-posix
7168         to the snprintf module.
7169         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7170         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7171         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7172         * tests/test-snprintf.c (main): Check the byte count returned.
7173         * tests/test-vsnprintf.c (main): Likewise.
7174
7175 2010-12-23  Eric Blake  <eblake@redhat.com>
7176
7177         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7178         * modules/sigpipe (License): Relax license.
7179
7180 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7181
7182         doc: document Solaris printf bug with large float precisions
7183         * doc/posix-functions/dprintf.texi (dprintf):
7184         * doc/posix-functions/fprintf.texi (fprintf):
7185         * doc/posix-functions/printf.texi (printf):
7186         * doc/posix-functions/snprintf.texi (snprintf):
7187         * doc/posix-functions/sprintf.texi (sprintf):
7188         * doc/posix-functions/vdprintf.texi (vdprintf):
7189         * doc/posix-functions/vfprintf.texi (vfprintf):
7190         * doc/posix-functions/vprintf.texi (vprintf):
7191         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7192         * doc/posix-functions/vsprintf.texi (vsprintf):
7193         Mention that these functions mishandle large floating point
7194         precisions on Solaris 10.  The same bug is also present in Solaris
7195         8, and I assume earlier.  This causes "cd gnulib-tests; make
7196         check" to fail on Solaris 8 (and I assume, later) when building
7197         the latest coreutils, in test-vasprintf-posix's call to
7198         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7199         the wide flavors (e.g., wprintf) so this patch just updates the
7200         documentation for the narrow ones.
7201
7202         test-posixtm.c: add two tests
7203         * tests/test-posixtm.c: Add two tests, to highlight the
7204         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7205         around this bug; this is merely to document it.
7206
7207 2010-12-22  Bruno Haible  <bruno@clisp.org>
7208
7209         getlogin_r: Work around portability problem on OSF/1.
7210         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7211         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7212         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7213         test for a truncated result.
7214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7215         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7216         * modules/getlogin_r (Depends-on): Add memchr.
7217         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7218
7219 2010-12-22  Bruno Haible  <bruno@clisp.org>
7220
7221         ptsname: Avoid test failure on OSF/1 5.1.
7222         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7223         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7224         (same_slave): New function.
7225         (main): Use it to compare ptsname's result with the expected file name.
7226
7227 2010-12-22  Bruno Haible  <bruno@clisp.org>
7228
7229         Port extended stdio modules to HP NonStop Kernel.
7230         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7231         macros.
7232         * lib/fbufmode.c: Update comments.
7233         * lib/fflush.c: Likewise.
7234         * lib/fpurge.c: Likewise.
7235         * lib/freadable.c: Likewise.
7236         * lib/freadahead.c: Likewise.
7237         * lib/freading.c: Likewise.
7238         * lib/freadptr.c: Likewise.
7239         * lib/freadseek.c: Likewise.
7240         * lib/fseeko.c: Likewise.
7241         * lib/fseterr.c: Likewise.
7242         * lib/fwritable.c: Likewise.
7243         * lib/fwriting.c: Likewise.
7244         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7245
7246 2010-12-22  Bruno Haible  <bruno@clisp.org>
7247
7248         ttyname_r: Work around bug on OSF/1 5.1.
7249         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7250         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7251         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7252         present.
7253         * lib/ttyname_r.c (ttyname_r): Update comments.
7254
7255 2010-12-22  Bruno Haible  <bruno@clisp.org>
7256
7257         round: Implement result sign according to IEEE 754.
7258         * lib/round.c (MIN, MINUS_ZERO): New macros.
7259         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7260         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7261         * tests/test-round-ieee.c (main): Likewise.
7262         * tests/test-roundl-ieee.c (main): Likewise.
7263
7264         trunc: Implement result sign according to IEEE 754.
7265         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7266         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7267         * tests/test-trunc2.c: Include minus-zero.h.
7268         (MINUS_ZERO): New macro.
7269         (trunc_reference): Keep in sync with lib/trunc.c.
7270         * tests/test-truncf2.c: Include minus-zero.h.
7271         (MINUS_ZERO): New macro.
7272         (truncf_reference): Keep in sync with lib/trunc.c.
7273         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7274         * tests/test-trunc-ieee.c (main): Likewise.
7275         * tests/test-truncl-ieee.c (main): Likewise.
7276
7277         ceil: Implement result sign according to IEEE 754.
7278         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7279         (FUNC): Return -0.0 for -1 < x < 0.
7280         * tests/test-ceil2.c: Include minus-zero.h.
7281         (MINUS_ZERO): New macro.
7282         (ceil_reference): Keep in sync with lib/ceil.c.
7283         * tests/test-ceilf2.c: Include minus-zero.h.
7284         (MINUS_ZERO): New macro.
7285         (ceilf_reference): Keep in sync with lib/ceil.c.
7286         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7287         * tests/test-ceil-ieee.c (main): Likewise.
7288         * tests/test-ceill-ieee.c (main): Likewise.
7289
7290         floor: Implement result sign according to IEEE 754.
7291         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7292         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7293         * tests/test-floorf2.c (floorf_reference): Likewise.
7294         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7295         * tests/test-floor-ieee.c (main): Likewise.
7296         * tests/test-floorl-ieee.c (main): Likewise.
7297
7298 2010-12-22  Bruno Haible  <bruno@clisp.org>
7299
7300         getaddrinfo: Update doc.
7301         * doc/posix-functions/gai_strerror.texi: Return type is also different
7302         on AIX and HP-UX.
7303
7304 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7305
7306         getaddrinfo, inet_ntop: Update doc for Solaris.
7307         * doc/posix-functions/gai_strerror.texi: Return type is also an
7308         issue on Solaris 9 and earlier.
7309         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7310         on Solaris 10 and earlier.
7311
7312 2010-12-21  Bruno Haible  <bruno@clisp.org>
7313
7314         New module 'roundl-ieee'.
7315         * modules/roundl-ieee: New file.
7316         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7317         test whether roundl works according to ISO C 99 with IEC 60559.
7318         * m4/roundl-ieee.m4: New file.
7319         * modules/roundl-ieee-tests: New file.
7320         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7321         * tests/test-roundl.c (main): Remove signbit tests.
7322         * modules/roundl-tests (Depends-on): Remove signbit.
7323         * doc/posix-functions/roundl.texi: Mention the new module.
7324
7325 2010-12-21  Bruno Haible  <bruno@clisp.org>
7326
7327         New module 'truncl-ieee'.
7328         * modules/truncl-ieee: New file.
7329         * modules/truncl-ieee-tests: New file.
7330         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7331         * tests/test-truncl.c (main): Remove signbit tests.
7332         * modules/truncl-tests (Depends-on): Remove signbit.
7333         * doc/posix-functions/truncl.texi: Mention the new module.
7334
7335 2010-12-21  Bruno Haible  <bruno@clisp.org>
7336
7337         New module 'ceill-ieee'.
7338         * modules/ceill-ieee: New file.
7339         * modules/ceill-ieee-tests: New file.
7340         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7341         * tests/test-ceill.c (main): Remove signbit tests.
7342         * modules/ceill-tests (Depends-on): Remove signbit.
7343         * doc/posix-functions/ceill.texi: Mention the new module.
7344
7345 2010-12-21  Bruno Haible  <bruno@clisp.org>
7346
7347         New module 'floorl-ieee'.
7348         * modules/floorl-ieee: New file.
7349         * modules/floorl-ieee-tests: New file.
7350         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7351         * tests/test-floorl.c (main): Remove signbit tests.
7352         * modules/floorl-tests (Depends-on): Remove signbit.
7353         * doc/posix-functions/floorl.texi: Mention the new module.
7354
7355 2010-12-21  Bruno Haible  <bruno@clisp.org>
7356
7357         New module 'round-ieee'.
7358         * modules/round-ieee: New file.
7359         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7360         whether round works according to ISO C 99 with IEC 60559.
7361         * m4/round-ieee.m4: New file.
7362         * modules/round-ieee-tests: New file.
7363         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7364         * tests/test-round1.c (main): Remove signbit tests.
7365         * modules/round-tests (Depends-on): Remove 'signbit'.
7366         * doc/posix-functions/round.texi: Mention the new module.
7367
7368 2010-12-21  Bruno Haible  <bruno@clisp.org>
7369
7370         New module 'trunc-ieee'.
7371         * modules/trunc-ieee: New file.
7372         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7373         whether trunc works according to ISO C 99 with IEC 60559.
7374         * m4/trunc-ieee.m4: New file.
7375         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7377         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7378         * modules/trunc-ieee-tests: New file.
7379         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7380         * tests/test-trunc1.c (main): Remove signbit tests.
7381         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7382         * doc/posix-functions/trunc.texi: Mention the new module.
7383
7384 2010-12-21  Bruno Haible  <bruno@clisp.org>
7385
7386         New module 'ceil-ieee'.
7387         * modules/ceil-ieee: New file.
7388         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7389         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7390         ISO C 99 with IEC 60559.
7391         * m4/ceil-ieee.m4: New file.
7392         * modules/ceil (Files): Add lib/ceil.c.
7393         (Depends-on): Add 'float'.
7394         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7395         * lib/math.in.h (ceil): New declaration.
7396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7397         REPLACE_CEIL.
7398         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7399         * modules/ceil-ieee-tests: New file.
7400         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7401         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7402         * doc/posix-functions/ceil.texi: Mention the new module.
7403
7404 2010-12-21  Bruno Haible  <bruno@clisp.org>
7405
7406         New module 'floor-ieee'.
7407         * modules/floor-ieee: New file.
7408         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7409         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7410         ISO C 99 with IEC 60559.
7411         * m4/floor-ieee.m4: New file.
7412         * modules/floor (Files): Add lib/floor.c.
7413         (Depends-on): Add 'float'.
7414         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7415         * lib/math.in.h (floor): New declaration.
7416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7417         REPLACE_FLOOR.
7418         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7419         * modules/floor-ieee-tests: New file.
7420         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7421         * tests/test-math-c++.cc: Check the signature of 'floor'.
7422         * doc/posix-functions/floor.texi: Mention the new module.
7423
7424 2010-12-21  Bruno Haible  <bruno@clisp.org>
7425
7426         New module 'roundf-ieee'.
7427         * modules/roundf-ieee: New file.
7428         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7429         test whether roundf works according to ISO C 99 with IEC 60559.
7430         * m4/roundf-ieee.m4: New file.
7431         * modules/roundf-ieee-tests: New file.
7432         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7433         * tests/test-roundf1.c (main): Remove signbit tests.
7434         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7435         * doc/posix-functions/roundf.texi: Mention the new module.
7436
7437 2010-12-21  Bruno Haible  <bruno@clisp.org>
7438
7439         New module 'truncf-ieee'.
7440         * modules/truncf-ieee: New file.
7441         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7442         test whether truncf works according to ISO C 99 with IEC 60559.
7443         * m4/truncf-ieee.m4: New file.
7444         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7446         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7447         * modules/truncf-ieee-tests: New file.
7448         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7449         * tests/test-truncf1.c (main): Remove signbit tests.
7450         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7451         * doc/posix-functions/truncf.texi: Mention the new module.
7452
7453 2010-12-21  Bruno Haible  <bruno@clisp.org>
7454
7455         New module 'ceilf-ieee'.
7456         * modules/ceilf-ieee: New file.
7457         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7458         test whether ceilf works according to ISO C 99 with IEC 60559.
7459         * m4/ceilf-ieee.m4: New file.
7460         * modules/ceilf-ieee-tests: New file.
7461         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7462         * tests/test-ceilf1.c (main): Remove signbit tests.
7463         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7464         * doc/posix-functions/ceilf.texi: Mention the new module.
7465
7466 2010-12-21  Bruno Haible  <bruno@clisp.org>
7467
7468         New module 'floorf-ieee'.
7469         * modules/floorf-ieee: New file.
7470         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7471         test whether floorf works according to ISO C 99 with IEC 60559.
7472         * m4/floorf-ieee.m4: New file.
7473         * modules/floorf-ieee-tests: New file.
7474         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7475         * tests/test-floorf1.c (main): Remove signbit tests.
7476         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7477         * doc/posix-functions/floorf.texi: Mention the new module.
7478
7479 2010-12-21  Bruno Haible  <bruno@clisp.org>
7480
7481         Support for minus zero in autoconf macros.
7482         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7483         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7484         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7485         * tests/minus-zero.h: Update comments.
7486
7487 2010-12-21  Bruno Haible  <bruno@clisp.org>
7488
7489         Tests for module 'ceil'.
7490         * modules/ceil-tests: New file.
7491         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7492         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7493
7494 2010-12-21  Bruno Haible  <bruno@clisp.org>
7495
7496         Tests for module 'floor'.
7497         * modules/floor-tests: New file.
7498         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7499         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7500
7501 2010-12-21  Bruno Haible  <bruno@clisp.org>
7502
7503         math: Fix indentation.
7504         * lib/math.in.h (floorf): Fix indentation.
7505
7506 2010-12-21  Bruno Haible  <bruno@clisp.org>
7507
7508         Fix cross-compilation guesses on Solaris.
7509         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7510         not match "solaris2.10".
7511         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7512         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7513         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7514
7515 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7516
7517         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7518         This fixes a problem observed with the latest coreutils snapshot
7519         that caused a test to fail on Solaris 8.  src/csplit.c's call
7520         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7521         earlier, instead of returning the number of bytes that would have
7522         been generated; this causes csplit to incorrectly report memory
7523         exhaustion.
7524         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7525         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7526         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7527         comments to match.
7528         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7529         Fix typo in matching older versions of Solaris: "solaris2.10"
7530         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7531         only for guessing while cross-compiling.
7532         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7533
7534 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7535
7536         ftoastr: fix comment again
7537         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7538         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7539         Also, simplify example a bit by using flags = 0.
7540
7541 2010-12-20  Bruno Haible  <bruno@clisp.org>
7542
7543         round*, trunc*: Update documentation regarding glibc.
7544         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7545         * doc/posix-functions/round.texi: Likewise.
7546         * doc/posix-functions/roundl.texi: Likewise.
7547         * doc/posix-functions/truncf.texi: Likewise.
7548         * doc/posix-functions/trunc.texi: Likewise.
7549         * doc/posix-functions/truncl.texi: Likewise.
7550
7551 2010-12-20  Bruno Haible  <bruno@clisp.org>
7552
7553         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7554         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7555         * doc/posix-functions/round.texi: Likewise.
7556         * doc/posix-functions/roundl.texi: Likewise.
7557
7558 2010-12-20  Bruno Haible  <bruno@clisp.org>
7559
7560         ttyname_r: Add missing declaration on HP-UX 11.
7561         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7562         HAVE_TTYNAME_R.
7563         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7564         declared. Set HAVE_TTYNAME_R always.
7565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7566         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7567         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7568         HAVE_TTYNAME_R.
7569         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7570
7571 2010-12-20  Bruno Haible  <bruno@clisp.org>
7572
7573         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7574         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7575         * doc/posix-functions/getlogin_r.texi: Likewise.
7576         * tests/test-getlogin.c: Include <errno.h>.
7577         (main): Avoid test failure on HP-UX 11.11.
7578         * tests/test-getlogin_r.c (main): Likewise.
7579
7580 2010-12-20  Bruno Haible  <bruno@clisp.org>
7581
7582         getlogin_r: Add missing declaration on HP-UX 11.
7583         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7584         declared also when it exists as a function.
7585         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7586
7587 2010-12-20  Bruno Haible  <bruno@clisp.org>
7588
7589         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7590         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7591         through wcrtomb.
7592
7593 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7594
7595         ftoastr: fix comment
7596         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7597         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7598
7599 2010-12-19  Bruno Haible  <bruno@clisp.org>
7600
7601         isnan: Ensure it is a macro.
7602         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7603         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7604         Solaris.
7605
7606 2010-12-19  Bruno Haible  <bruno@clisp.org>
7607
7608         ldexpl test: Fix link error on OSF/1 5.1.
7609         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7610
7611 2010-12-19  Bruno Haible  <bruno@clisp.org>
7612
7613         wctype: Make it work in C++ mode on OSF/1 5.1.
7614         * lib/wctype.in.h (iswblank): Declare but not define here.
7615         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7616         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7617         * modules/wctype (Files): Add lib/iswblank.c.
7618
7619 2010-12-19  Bruno Haible  <bruno@clisp.org>
7620
7621         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7622         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7623         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7624
7625 2010-12-19  Bruno Haible  <bruno@clisp.org>
7626
7627         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7628         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7629         _POSIX_PII_SOCKET.
7630         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7631         * doc/posix-functions/recvfrom.texi: Likewise.
7632         * doc/posix-functions/send.texi: Likewise.
7633         * doc/posix-functions/sendto.texi: Likewise.
7634
7635 2010-12-19  Bruno Haible  <bruno@clisp.org>
7636
7637         tcgetsid: Add missing declaration on OSF/1 5.1.
7638         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7639         HAVE_TCGETSID.
7640         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7641         Don't set HAVE_TCGETSID.
7642         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7643         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7644         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7645         HAVE_TCGETSID.
7646         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7647
7648 2010-12-19  Bruno Haible  <bruno@clisp.org>
7649
7650         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7651         * lib/stdio.in.h: During the include_next statement, let recursive
7652         includes of this file include only the system header file.
7653
7654 2010-12-19  Bruno Haible  <bruno@clisp.org>
7655
7656         iconv_open: Fix regression from 2010-12-04.
7657         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7658         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7659
7660 2010-12-19  Bruno Haible  <bruno@clisp.org>
7661
7662         stdbool test: Avoid a gcc warning.
7663         * tests/test-stdbool.c (main): Fail if e1 is false.
7664         Reported by Jim Meyering.
7665
7666 2010-12-19  Jim Meyering  <meyering@redhat.com>
7667
7668         setenv: restore to working order
7669         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7670         mistakenly removed.
7671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7672         HAVE_SETENV.
7673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7674         HAVE_SETENV.
7675
7676 2010-12-19  Bruno Haible  <bruno@clisp.org>
7677
7678         Document some different function declarations on OSF/1 5.1.
7679         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7680         * doc/posix-functions/inet_ntop.texi: Likewise.
7681         * doc/posix-functions/gethostname.texi: Likewise.
7682         * lib/unistd.in.h (gethostname): Update comment.
7683
7684 2010-12-19  Bruno Haible  <bruno@clisp.org>
7685
7686         doc: Mention vasprintf-posix module.
7687         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7688         the 'vasprintf-posix' module.
7689         * doc/glibc-functions/vasprintf.texi: Likewise.
7690
7691 2010-12-19  Bruno Haible  <bruno@clisp.org>
7692
7693         unsetenv: Add missing declaration on OSF/1 5.1.
7694         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7695         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7696         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7698         not HAVE_UNSETENV.
7699         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7700         HAVE_UNSETENV.
7701         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7702
7703 2010-12-19  Bruno Haible  <bruno@clisp.org>
7704
7705         setenv: Add missing declaration on OSF/1 5.1.
7706         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7708         declared. Don't set HAVE_SETENV.
7709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7710         not HAVE_SETENV.
7711         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7712         HAVE_SETENV.
7713         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7714
7715 2010-12-19  Bruno Haible  <bruno@clisp.org>
7716
7717         nl_langinfo tests: Avoid gcc warning.
7718         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7719
7720 2010-12-19  Bruno Haible  <bruno@clisp.org>
7721
7722         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7723         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7724         _GL_CXXALIAS_SYS.
7725
7726 2010-12-19  Bruno Haible  <bruno@clisp.org>
7727
7728         stdbool: Relax test.
7729         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7730         address to 'bool' work in static initializer, for compilers other than
7731         GCC.
7732
7733 2010-12-19  Bruno Haible  <bruno@clisp.org>
7734
7735         ftello: Add missing declaration on OSF/1 5.1.
7736         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7737         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7739         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7740         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7741
7742 2010-12-19  Bruno Haible  <bruno@clisp.org>
7743
7744         fseeko: Add missing declaration on OSF/1 5.1.
7745         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7748         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7749         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7750
7751 2010-12-19  Bruno Haible  <bruno@clisp.org>
7752
7753         fchdir: Add missing declaration on OSF/1 5.1.
7754         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7757         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7758         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7759
7760 2010-12-19  Bruno Haible  <bruno@clisp.org>
7761
7762         relocatable-prog-wrapper: Separate from relocatable-prog.
7763         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7764         uninstall-relocwrapper rule here.
7765         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7766         Reported by Ian Beckwith <ianb@erislabs.net>.
7767
7768 2010-12-19  Bruno Haible  <bruno@clisp.org>
7769
7770         unistr/u8-mbsnlen: Add missing dependency.
7771         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7772         Reported by Ian Beckwith <ianb@erislabs.net>.
7773
7774 2010-12-19  Bruno Haible  <bruno@clisp.org>
7775
7776         iconv: Make it possible again to use this module without 'iconv-h'.
7777         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7778         if it is not defined.
7779         Reported by Ian Beckwith <ianb@erislabs.net>.
7780
7781 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         acl: port to Solaris 8 when copying from tmpfs to ufs
7784         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7785         error number.  Problem observed on Solaris 8 with latest
7786         coreutils, with "mv A B", where A is on a tmpfs file system and B
7787         is on a ufs file system.  This caused coreutils' mv/part-symlink
7788         test to fail.
7789
7790         tests: set fail=0 at start
7791         * tests/init.sh (setup_): Move fail=0 initialization here ...
7792         (mktempd_): ... from here, so that tests can rely on fail being
7793         set to 0 initially.  This fixes a problem in coreutils; see:
7794         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7795
7796 2010-12-18  Bruno Haible  <bruno@clisp.org>
7797
7798         memmem-simple: Stylistic changes.
7799         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7800         Fix preprocessor directive indentation.
7801
7802 2010-12-15  Pádraig Brady <P@draigBrady.com>
7803
7804         memmem, memmem-simple: reorganize and expand empty needle check
7805         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7806         functional checks to memmem-simple so that one has a fully functional
7807         memmem by using just this module.
7808         Restrict the performance only check to the memmem module.
7809         Also expand the empty needle check to ensure the correct
7810         pointer is returned, not just a non NULL pointer.
7811         * doc/glibc-functions/memmem.texi: Rearrange the portability
7812         documentation to correlate with the rearranged checks.
7813         Clarify exactly how the memmem and memmem-simple modules
7814         relate to each other.
7815
7816 2010-12-15  Pádraig Brady <P@draigBrady.com>
7817             Bruno Haible  <bruno@clisp.org>
7818
7819         Improve cross-compilation guesses for uClibc.
7820         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7821         that uClibc does not have the glibc bug.
7822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7823         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7824
7825 2010-12-14  Eric Blake  <eblake@redhat.com>
7826
7827         configmake: provide fallbacks for oldest supported autotools
7828         * m4/configmake.m4: New file.
7829         * modules/configmake (Files): Ship it.
7830         (configure.ac): Use it to guarantee fallbacks.
7831
7832 2010-12-13  Pádraig Brady <P@draigBrady.com>
7833
7834         read-file: Improve handling of large files
7835         * lib/read-file.c (fread_file): Minimize realloc()s
7836         for regular files, and better manage sizes around SIZE_MAX.
7837
7838 2010-12-13  Eric Blake  <eblake@redhat.com>
7839
7840         cloexec, fcntl: relax license
7841         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7842         consent from all contributors.
7843         * modules/fcntl (License): Likewise.
7844
7845 2010-12-10  Bruno Haible  <bruno@clisp.org>
7846
7847         Tests for module 'pipe-posix'.
7848         * modules/pipe-posix-tests: New file.
7849         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7850
7851 2010-12-10  Bruno Haible  <bruno@clisp.org>
7852
7853         pipe-posix: Make it work in C++ mode.
7854         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7855         (pipe): Use common idiom, not a macro definition.
7856         * lib/pipe.c: New file.
7857         * m4/pipe.m4: New file.
7858         * modules/pipe-posix (Description): Enhance.
7859         (Files): Add lib/pipe.c, m4/pipe.m4.
7860         (configure.ac): Invoke gl_FUNC_PIPE.
7861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7862         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7863         * tests/test-unistd-c++.cc: Check the signature of pipe.
7864
7865 2010-12-10  Bruno Haible  <bruno@clisp.org>
7866
7867         Rename module 'pipe' to 'spawn-pipe'.
7868         * modules/spawn-pipe: New file, renamed from modules/pipe.
7869         (Files, configure.ac, Makefile.am): Update.
7870         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7871         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7872         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7873         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7874         "spawn-pipe.h" instead of "pipe.h".
7875         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7876         to gl_SPAWN_PIPE.
7877         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7878         (Files, Makefile.am): Update.
7879         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7880         Update.
7881         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7882         Include "spawn-pipe.h" instead of "pipe.h".
7883         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7884         * lib/javacomp.c: Likewise.
7885         * lib/javaversion.c: Likewise.
7886         * lib/pipe-filter-gi.c: Likewise.
7887         * lib/pipe-filter-ii.c: Likewise.
7888         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7889         * modules/javacomp (Depends-on): Likewise.
7890         * modules/javaversion (Depends-on): Likewise.
7891         * modules/pipe-filter-gi (Depends-on): Likewise.
7892         * modules/pipe-filter-ii (Depends-on): Likewise.
7893         * MODULES.html.sh (Executing programs): Update.
7894         * NEWS: Mention the change.
7895
7896 2010-12-10  Eric Blake  <eblake@redhat.com>
7897
7898         pipe-posix: new module
7899         * modules/pipe-posix: New file.
7900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7901         (gl_UNISTD_H): Check for declaration.
7902         * modules/unistd (Makefile.am): Substitute it.
7903         * lib/unistd.in.h (pipe): Provide it for mingw.
7904         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7905         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7906
7907 2010-12-07  Bruno Haible  <bruno@clisp.org>
7908
7909         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7910         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7911         u8_strcmp_gnu.
7912         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7913
7914 2010-12-06  Bruno Haible  <bruno@clisp.org>
7915
7916         Update internal documentation.
7917         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7918
7919 2010-12-04  Bruno Haible  <bruno@clisp.org>
7920
7921         Put more information about failed tests into the test return codes.
7922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7923         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7925         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7926         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7927         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7928         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7929         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7930         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7932         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7933         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7934         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7935         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7936         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7937         returns a bit mask.
7938         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7939         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7940         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7941         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7942         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7946         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7947         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7948         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7949         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7950         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7952         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7953         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7954         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7955         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7956         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7957         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7958         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7959         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7960         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7961         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7962         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7963         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7964         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7965         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7966         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7967         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7968         gl_PRINTF_PRECISION): Likewise.
7969         * m4/regex.m4 (gl_REGEX): Likewise.
7970         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7971         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7972         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7973         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7976         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7977         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7978         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7979         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7980         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7981         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7982         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7983         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7984         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7985         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7986         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7987         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7990         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7991         enumerated value.
7992         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7993
7994 2010-12-04  Bruno Haible  <bruno@clisp.org>
7995
7996         Update for Solaris 11 2010-11.
7997         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7998         Express, released in November 2010.
7999
8000 2010-12-04  Bruno Haible  <bruno@clisp.org>
8001
8002         nproc: Relax license.
8003         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8004         and Paul Eggert.
8005         Requested by Ludovic Courtès <ludo@gnu.org>.
8006
8007 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8008
8009         utimecmp: fine-grained src to nearby coarse-grained dest
8010
8011         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8012         and the source is on a file system with higher-resolution time
8013         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8014         not work, and the time stamps are close together, the algorithm to
8015         determine the exact resolution from the read-back mtime was buggy:
8016         it had a "!=" where it should have had an "==".  This bug has been
8017         in the code ever since it was introduced to gnulib.
8018         Problem reported by Dan Jacobson in
8019         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8020
8021 2010-11-30  Bruno Haible  <bruno@clisp.org>
8022
8023         strerror_r-posix: Fix autoconf test.
8024         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8025
8026 2010-11-28  Bruno Haible  <bruno@clisp.org>
8027             Paul Eggert  <eggert@cs.ucla.edu>
8028
8029         Tests for module 'getdomainname'.
8030         * modules/getdomainname-tests: New file.
8031         * tests/test-getdomainname.c: New file, based on
8032         tests/test-gethostname.c.
8033
8034 2010-11-28  Bruno Haible  <bruno@clisp.org>
8035             Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         getdomainname: Use the system function when possible.
8038         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8039         (getdomainname): Replace if needed. Provide the declaration if it is
8040         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8041         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8042         (getdomainname): When the system has getdomainname, call the system
8043         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8044         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8045         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8046         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8047         the function if its second argument is of type 'int' or if it is found
8048         in libnsl.
8049         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8050         <sys/systeminfo.h> and sysinfo().
8051         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8053         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8054         HAVE_GETDOMAINNAME.
8055         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8056         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8057         * doc/glibc-functions/getdomainname.texi: Document the problems with
8058         the getdomainname declaration.
8059
8060 2010-11-28  Bruno Haible  <bruno@clisp.org>
8061
8062         sys_socket: Ensure ss_family field on AIX.
8063         * lib/sys_socket.in.h (ss_family): New macro definition.
8064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8065         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8066         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8067         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8068         * modules/sys_socket (Makefile.am): Substitute
8069         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8070         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8071
8072 2010-11-27  Bruno Haible  <bruno@clisp.org>
8073
8074         readline: Improve configure output.
8075         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8076         "checking for readline..." result understandable.
8077
8078 2010-11-27  Bruno Haible  <bruno@clisp.org>
8079
8080         *printf-posix: Detect a bug on Solaris 10/x86.
8081         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8082         for floating-point output.
8083         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8084         directive.
8085         * tests/test-snprintf-posix.h (test_function): Likewise.
8086         * tests/test-sprintf-posix.h (test_function): Likewise.
8087         * tests/test-vasprintf-posix.c (test_function): Likewise.
8088         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8089         * doc/posix-functions/printf.texi: Likewise.
8090         * doc/posix-functions/snprintf.texi: Likewise.
8091         * doc/posix-functions/sprintf.texi: Likewise.
8092         * doc/posix-functions/vfprintf.texi: Likewise.
8093         * doc/posix-functions/vprintf.texi: Likewise.
8094         * doc/posix-functions/vsnprintf.texi: Likewise.
8095         * doc/posix-functions/vsprintf.texi: Likewise.
8096         * doc/glibc-functions/obstack_printf.texi: Likewise.
8097         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8098
8099 2010-11-27  Bruno Haible  <bruno@clisp.org>
8100
8101         Fix link error when module libunistring-optional is in use.
8102         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8103         * modules/striconveha-tests (Makefile.am): Likewise.
8104
8105 2010-11-27  Bruno Haible  <bruno@clisp.org>
8106
8107         regex: Mention link dependencies.
8108         * modules/regex (Link): New section.
8109         * modules/rpmatch (Link): Likewise.
8110         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8111
8112 2010-11-27  Bruno Haible  <bruno@clisp.org>
8113
8114         ftoastr: Fix compilation error on Solaris.
8115         * lib/ftoastr.c: Include <config.h>.
8116
8117 2010-11-27  Bruno Haible  <bruno@clisp.org>
8118
8119         getloadavg: Update documentation.
8120         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8121
8122 2010-11-27  Bruno Haible  <bruno@clisp.org>
8123
8124         sys_socket: Fix test whether the functions are declared.
8125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8126         not <sys/select.h>.
8127
8128 2010-11-27  Bruno Haible  <bruno@clisp.org>
8129
8130         getpass: Make sure to get system declaration on some platforms.
8131         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8132         gl_USE_SYSTEM_EXTENSIONS.
8133         * modules/getpass (Depends-on): Add extensions.
8134
8135 2010-11-26  Bruno Haible  <bruno@clisp.org>
8136
8137         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8138         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8139         'iconv' module is present.
8140         (ICONV_CONST): New macro.
8141         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8142         ICONV_CONST.
8143         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8144         set ICONV_CONST.
8145         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8146         here.
8147         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8148         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8149         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8150         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8151         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8152         present.
8153
8154 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8155
8156         ftoastr: comment fix
8157         * lib/ftoastr.c: "little" -> "little or no" in comment
8158
8159 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         stdint: port to GCC 4.3 + OSX + Octave
8162         On this platform, stdint.h is buggy and defines int64_t to long
8163         long int.  The replacement defined it to long int, causing
8164         problems with C++ style name mangling.  Instead, trust the system
8165         definition if INT64_MAX is defined, and likewise for the unsigned
8166         variant.   Problem reported by Jarno Rajahalme in
8167         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8168         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8169         and don't mess with int64_t and INT64_MAX in this case.
8170         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8171
8172 2010-11-24  Bruno Haible  <bruno@clisp.org>
8173
8174         doc: Corrections regarding MacOS X 10.4 and 10.5.
8175         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8176         MacOS X.
8177         Reported by Simon Josefsson.
8178
8179 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8180
8181         Uninstall ".bin" files installed by relocwrapper.
8182         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8183         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8184         unless it is already there.
8185
8186 2010-11-21  Bruno Haible  <bruno@clisp.org>
8187
8188         Update for NetBSD 5.0.
8189         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8190         NetBSD; the test fails on NetBSD 5.0.
8191         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8192         about NetBSD.
8193
8194 2010-11-21  Bruno Haible  <bruno@clisp.org>
8195
8196         Update for HP-UX 11.23 and HP-UX 11.31.
8197         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8198         HP-UX.
8199
8200 2010-11-21  Bruno Haible  <bruno@clisp.org>
8201
8202         Update for MacOS X 10.5.
8203         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8204         MacOS X; the test fails on MacOS X 10.5.8.
8205         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8206         about MacOS X.
8207
8208 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8209
8210         bootstrap: add bootstrap_sync option.
8211         See discussion at
8212         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8214         * build-aux/bootstrap: Accept --bootstrap-sync to update
8215         bootstrap if it is not identical to the local gnulib's
8216         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8217         enable this by default.  Accept --no-bootstrap-sync to disable
8218         it.
8219
8220 2010-11-20  Bruno Haible  <bruno@clisp.org>
8221
8222         Ensure that <features.h> is included before __GLIBC__ is tested.
8223         * lib/printf-parse.h: Include <features.h>.
8224         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8225         Reported by Mike Frysinger <vapier@gentoo.org>.
8226
8227         Ensure that <features.h> is included before __GLIBC__ is tested.
8228         * lib/wchar.in.h: Include <features.h>.
8229         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8230         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8231         Reported by Mike Frysinger <vapier@gentoo.org>.
8232
8233         Ensure that <features.h> is included before __GLIBC__ is tested.
8234         * lib/arpa_inet.in.h: Include <features.h>.
8235         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8236         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8237         Reported by Mike Frysinger <vapier@gentoo.org>.
8238
8239         Ensure that <features.h> is included before __GLIBC__ is tested.
8240         * build-aux/link-warning.h: Include <features.h>.
8241         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8242         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8243         Reported by Mike Frysinger <vapier@gentoo.org>.
8244
8245         Ensure that <features.h> is included before __GLIBC__ is tested.
8246         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8247         Reported by Mike Frysinger <vapier@gentoo.org>.
8248
8249 2010-11-20  Bruno Haible  <bruno@clisp.org>
8250
8251         memmem: Fix autoconf test.
8252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8253
8254 2010-11-20  Bruno Haible  <bruno@clisp.org>
8255
8256         Port to uClibc.
8257         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8258         * lib/fcntl.in.h: Likewise.
8259         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8260         * lib/mbrtowc.c (mbrtowc): Likewise.
8261         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8262         * lib/strerror_r.c: Likewise.
8263         * lib/unistr/u8-strnlen.c: Likewise.
8264         * lib/vasnprintf.c (decimal_point_char): Likewise.
8265         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8266         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8268         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8269         * tests/test-sigaction.c (handler, main): Likewise.
8270         * lib/freading.h: Treat uClibc like a non-glibc platform.
8271         * lib/freading.c: Likewise.
8272         * lib/gettext.h: Likewise.
8273         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8274         Likewise.
8275         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8276         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8277         * lib/propername.c (proper_name_utf8): Likewise.
8278         * lib/spawn.in.h: Likewise.
8279         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8280         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8281         mem_cd_iconveh_internal): Likewise.
8282         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8283         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8284         strstr, strcasestr): Likewise.
8285         * lib/unicodeio.c (unicode_to_mb): Likewise.
8286         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8287         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8288         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8289         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8290         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8291         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8292         * lib/unistr/u8-stpncpy.c: Likewise.
8293         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8294         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8295         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8296         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8297         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8298         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8299         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8302         Likewise.
8303         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8304         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8307         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8308         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8309         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8310         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8311         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8312         * tests/test-striconveha.c (main): Likewise.
8313         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8314         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8315         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8316         * doc/posix-functions/getline.texi: Likewise.
8317         Reported by Mike Frysinger <vapier@gentoo.org>.
8318
8319 2010-11-20  Bruno Haible  <bruno@clisp.org>
8320
8321         nproc: Fix condition.
8322         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8323         HAVE_PTHREAD_AFFINITY_NP.
8324
8325 2010-11-20  Bruno Haible  <bruno@clisp.org>
8326
8327         Fix a comment.
8328         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8329
8330 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8331
8332         ftoastr: don't assume snprintf
8333         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8334         Implement a subset of snprintf here, by using sprintf safely.
8335         * modules/ftoastr (Depends-on): Remove snprintf.
8336
8337 2010-11-19  Jim Meyering  <meyering@redhat.com>
8338
8339         test-rename.h: fix compilation failure
8340         * tests/test-rename.h (test_rename): Add omitted "}".
8341
8342 2010-11-17  Jim Meyering  <meyering@redhat.com>
8343
8344         maint.mk: add a URL discussing the no-@acronym policy
8345         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8346
8347 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8348
8349         ftoastr: depend on snprintf, improve comments
8350         * lib/ftoastr.c: Also mention Loitsch's draft.
8351         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8352         needed in the current implementation, but it might simplify
8353         speeding up the code later.
8354         * modules/ftoastr: Depend on snprintf; this improves portability.
8355         Suggested by Bruno Haible in the same email.
8356
8357         ftoastr: port to hosts lacking strtof and strtold
8358         Problem reported by Bruno Haible in
8359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8360         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8361         environment and strtold (and presumably strtof) are not available.
8362         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8363         (configure.ac): Require gl_C99_STRTOLD.
8364
8365 2010-11-18  Bruno Haible  <bruno@clisp.org>
8366
8367         c-strtold: Avoid link error on AIX 7.
8368         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8369         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8370         (gl_C_STRTOLD): Test whether strtold_l exists.
8371         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8372
8373 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8374
8375         intprops: new macro INT_BITS_STRLEN_BOUND
8376         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8377         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8378         not exposed.  Also, it uses a slightly tighter bound than before;
8379         though this makes no practical difference, we might as well be as
8380         tight as we easily can.
8381
8382         ftoastr: new module, for lossless conversion of floats to short strings
8383         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8384         * modules/ftoastr: New files.
8385
8386 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         bootstrap: port to Solaris sed
8389         * build-aux/bootstrap (get_version): Port to Solaris sed.
8390         See Ralf Wildenhues's note in
8391         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8392
8393 2010-11-14  Jim Meyering  <meyering@redhat.com>
8394
8395         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8396         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8397         and move definition closer to sole use.
8398
8399 2010-11-13  Jim Meyering  <meyering@redhat.com>
8400
8401         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8402         Now we require at least autoconf-2.59, which means the work-around
8403         is no longer needed.
8404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8405         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8406         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8407         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8408         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8409
8410 2010-11-13  Bruno Haible  <bruno@clisp.org>
8411
8412         rename, renameat: Avoid test failures at NFS mounted locations.
8413         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8414         functions.
8415         (test_rename): Use assert_nonexistent.
8416         * tests/test-rename.c: Include <dirent.h>.
8417         * tests/test-renameat.c: Likewise.
8418         Reported by Gary V. Vaughan <gary@gnu.org>.
8419
8420         rename, renameat: Document Linux bug with NFS
8421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8422         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8423         * doc/posix-functions/renameat.texi: Likewise.
8424         Suggested by Eric Blake.
8425
8426 2010-11-13  Bruno Haible  <bruno@clisp.org>
8427
8428         rename test: Add comments.
8429         * tests/test-rename.h (test_rename): Add structure and comments.
8430
8431 2010-11-13  Eric Blake  <eblake@redhat.com>
8432
8433         maintainer-makefile: cover a few more files
8434         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8435         scripts generated within C files, for libvirt.
8436
8437 2010-11-13  Bruno Haible  <bruno@clisp.org>
8438
8439         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8440         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8441         character, return the number of bytes that belong together, not always
8442         1.
8443         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8444         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8445         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8446         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8447         number of bytes of an invalid character.
8448         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8449         (main): Invoke it.
8450         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8451         results.
8452         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8453         malformed byte sequences.
8454         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8455         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8456         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8457         Reported by Ben Pfaff and Paolo Bonzini.
8458
8459 2010-11-13  Bruno Haible  <bruno@clisp.org>
8460
8461         openat: Work around glibc bug with fchownat() and empty file names.
8462         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8463         (gl_FUNC_FCHOWNAT): Invoke it.
8464         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8465         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8466         Reported by Gary V. Vaughan <gary@gnu.org>.
8467
8468 2010-11-13  Bruno Haible  <bruno@clisp.org>
8469
8470         openat: Ensure autoconf macro ordering.
8471         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8472         gl_USE_SYSTEM_EXTENSIONS.
8473         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8474
8475 2010-11-13  Bruno Haible  <bruno@clisp.org>
8476
8477         Update comments.
8478         * lib/unistr/u8-check.c: Update file name in comments.
8479         * lib/unistr/u8-mblen.c: Likewise.
8480         * lib/unistr/u8-prev.c: Likewise.
8481         * lib/unistr/u8-strmblen.c: Likewise.
8482         * lib/unistr/u8-strmbtouc.c: Likewise.
8483
8484 2010-11-13  Jim Meyering  <meyering@redhat.com>
8485
8486         tests: avoid test failure on Solaris 10 due to lack of PATH export
8487         * tests/test-update-copyright.sh: Don't forget to export PATH.
8488
8489         init.sh: ensure that IFS is defined, just in case...
8490         * tests/init.sh (setup_): Ensure that IFS is defined,
8491         so that saving and restoring it works as expected.  This
8492         appears to be useful at least for an old version of dash
8493         from a long time ago (RH 6).  See here for details:
8494         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8495
8496         maint.mk: tighten "test a == b" check
8497         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8498         test to files that contain something like #!/bin/sh.
8499         Without this, coreutils would get two false positives in
8500         the comments of C source files.
8501
8502 2010-11-12  Eric Blake  <eblake@redhat.com>
8503
8504         bootstrap: fix typo in previous attempt
8505         * build-aux/bootstrap (buildreq): Correct the grouping.
8506         Reported by Paul Eggert.
8507
8508         maintainer-makefile: prohibit test x == x
8509         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8510         Based on a report by Matthias Bolte.
8511
8512         bootstrap: allow FreeBSD gzip
8513         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8514         which has no '.' and goes to stderr.
8515         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8516         Reported by Matthias Bolte.
8517
8518         maintainer-makefile: check for i18n setup
8519         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8520         will likely work.
8521
8522 2010-11-12  Bruno Haible  <bruno@clisp.org>
8523
8524         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8525         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8526         * lib/nanosleep.c (nanosleep): Likewise.
8527
8528 2010-11-11  Bruno Haible  <bruno@clisp.org>
8529
8530         fcntl-h: Fix for use of C++ on glibc systems.
8531         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8532         also on glibc systems in C++ mode.
8533         Reported by Gary V. Vaughan <gary@gnu.org>.
8534
8535 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8536
8537         mknod: avoid false failure with dash
8538         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8539
8540 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8541
8542         unlink: Fix "is it should" typo in diagnostic.
8543         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8544         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8545
8546 2010-11-11  Bruno Haible  <bruno@clisp.org>
8547
8548         Tests for module 'strerror_r-posix'.
8549         * modules/strerror_r-posix-tests: New file.
8550         * tests/test-strerror_r.c: New file.
8551         * tests/test-string-c++.cc: Check the signature of strerror_r.
8552
8553         New module 'strerror_r-posix'.
8554         * lib/string.in.h (strerror_r): New declaration.
8555         * lib/strerror_r.c: New file.
8556         * m4/strerror_r.m4: New file.
8557         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8558         of strerror_r.
8559         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8560         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8561         * modules/strerror_r-posix: New file.
8562         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8563         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8564         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8565         portability problems.
8566
8567 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8568
8569         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8570         line is also considered for output. Quoted function name in shell
8571         command, so temporary files for functions like MyClass::operator()
8572         are removed correctly without errors.
8573
8574 2010-11-09  Bruno Haible  <bruno@clisp.org>
8575
8576         * doc/posix-functions/strerror.texi: List more failing platforms.
8577
8578         * doc/posix-functions/strerror.texi: Add a comment.
8579
8580 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8581
8582         fdopendir: fix bug on MacOS X when low on file descriptors
8583
8584         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8585         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8586         All callers changed.
8587         (fdopendir): Invoke save_cwd at the top level, not after using
8588         multiple dup() calls to use up file descriptors.  Then retry
8589         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8590         less than the maximum number of open file descriptors, because
8591         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8592         on Mac OS X 10.6.4 for tar 1.24
8593         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8594         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8595         and for tar 1.25
8596         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8597
8598 2010-11-07  Bruno Haible  <bruno@clisp.org>
8599
8600         vasnprintf: Support I flag on glibc systems.
8601         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8602         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8603         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8604         snprintf function.
8605         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8606         glibc systems.
8607         * tests/test-vasnprintf-posix3.c: New file.
8608         * modules/vasnprintf-posix-tests (Files): Add it.
8609         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8610
8611 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8612
8613         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8614         * MODULES.html.sh: For compiler warnings, use name
8615         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8616
8617 2010-11-05  Eric Blake  <eblake@redhat.com>
8618
8619         ceil, floor: avoid spurious failure with icc
8620         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8621         [denormals-as-zero] when optimizing without -mieee-fp option.
8622         * tests/test-floorf2.c (floorf_reference): Likewise.
8623         * tests/test-ceilf1.c (dummy): New function.
8624         (main): Use it to outsmart icc's optimization.
8625         * tests/test-floorf1.c (dummy, main): Likewise.
8626
8627         tests: require working signbit
8628         * modules/ceilf-tests (Depends-on): Add signbit.
8629         * modules/ceill-tests (Depends-on): Likewise.
8630         * modules/floorf-tests (Depends-on): Likewise.
8631         * modules/floorl-tests (Depends-on): Likewise.
8632         * modules/round-tests (Depends-on): Likewise.
8633         * modules/roundf-tests (Depends-on): Likewise.
8634         * modules/roundl-tests (Depends-on): Likewise.
8635         * modules/trunc-tests (Depends-on): Likewise.
8636         * modules/truncf-tests (Depends-on): Likewise.
8637         * modules/truncl-tests (Depends-on): Likewise.
8638
8639         strtod: work around icc bug
8640         * lib/strtod.c (minus_zero): Define to working value.
8641         (strtod): Use it to avoid icc bug.
8642
8643         copysign: enhance tests
8644         * modules/copysign-tests (Files): Add minus-zero.h.
8645         * tests/test-copysign.c (main): Also test zeros.
8646
8647 2010-11-04  Eric Blake  <eblake@redhat.com>
8648
8649         ceil, floor, round, trunc: enhance tests of -0
8650         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8651         * tests/test-ceill.c (main): Likewise.
8652         * tests/test-floorf1.c (main): Likewise.
8653         * tests/test-floorl.c (main): Likewise.
8654         * tests/test-round1.c (main): Likewise.
8655         * tests/test-roundf1.c (main): Likewise.
8656         * tests/test-roundl.c (main): Likewise.
8657         * tests/test-trunc1.c (main): Likewise.
8658         * tests/test-truncf1.c (main): Likewise.
8659         * tests/test-truncl.c (main): Likewise.
8660
8661 2010-11-04  Eric Blake  <eblake@redhat.com>
8662
8663         frexp, tests: work around ICC bug with -zero
8664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8665         works with more compilers.
8666         * tests/minus-zero.h: New file.
8667         * modules/ceilf-tests (Files): Include it.
8668         * modules/ceill-tests (Files): Likewise.
8669         * modules/floorf-tests (Files): Likewise.
8670         * modules/floorl-tests (Files): Likewise.
8671         * modules/frexp-nolibm-tests (Files): Likewise.
8672         * modules/frexp-tests (Files): Likewise.
8673         * modules/frexpl-nolibm-tests (Files): Likewise.
8674         * modules/frexpl-tests (Files): Likewise.
8675         * modules/isnan-tests (Files): Likewise.
8676         * modules/isnand-nolibm-tests (Files): Likewise.
8677         * modules/isnand-tests (Files): Likewise.
8678         * modules/isnanf-nolibm-tests (Files): Likewise.
8679         * modules/isnanf-tests (Files): Likewise.
8680         * modules/isnanl-nolibm-tests (Files): Likewise.
8681         * modules/isnanl-tests (Files): Likewise.
8682         * modules/round-tests (Files): Likewise.
8683         * modules/roundf-tests (Files): Likewise.
8684         * modules/roundl-tests (Files): Likewise.
8685         * modules/ldexpl-tests (Files): Likewise.
8686         * modules/signbit-tests (Files): Likewise.
8687         * modules/snprintf-posix-tests (Files): Likewise.
8688         * modules/sprintf-posix-tests (Files): Likewise.
8689         * modules/strtod-tests (Files): Likewise.
8690         * modules/trunc-tests (Files): Likewise.
8691         * modules/truncf-tests (Files): Likewise.
8692         * modules/truncl-tests (Files): Likewise.
8693         * modules/vsnprintf-posix-tests (Files): Likewise.
8694         * modules/vsprintf-posix-tests (Files): Likewise.
8695         * modules/vasnprintf-posix-tests (Files): Likewise.
8696         * modules/vasprintf-posix-tests (Files): Likewise.
8697         * tests/test-ceilf1.c (main): Use it.
8698         * tests/test-ceill.c (main): Likewise.
8699         * tests/test-floorf1.c (main): Likewise.
8700         * tests/test-floorl.c (main): Likewise.
8701         * tests/test-frexp.c (main): Likewise.
8702         * tests/test-frexpl.c (main): Likewise.
8703         * tests/test-isnan.c (main): Likewise.
8704         * tests/test-isnand.h (main): Likewise.
8705         * tests/test-isnanf.h (main): Likewise.
8706         * tests/test-isnanl.h (main): Likewise.
8707         * tests/test-ldexpl.c (main): Likewise.
8708         * tests/test-round.c (main): Likewise.
8709         * tests/test-roundf.c (main): Likewise.
8710         * tests/test-roundl.c (main): Likewise.
8711         * tests/test-signbit.c (test_signbitf, test_signbitd)
8712         (test_signbitl): Likewise.
8713         * tests/test-snprintf-posix.h (test_function): Likewise.
8714         * tests/test-sprintf-posix.h (test_function): Likewise.
8715         * tests/test-strtod.c (main): Likewise.
8716         * tests/test-trunc1.c (main): Likewise.
8717         * tests/test-truncf1.c (main): Likewise.
8718         * tests/test-truncl.c (main): Likewise.
8719
8720         isnanl: work around icc bug
8721         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8722
8723 2010-11-03  Eric Blake  <eblake@redhat.com>
8724
8725         tests: fix compiler warnings
8726         * tests/test-getopt.h (test_getopt): Fix condition.
8727         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8728         * tests/test-pipe2.c (main): Likewise.
8729         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8730
8731         utimens: fix broken m4 test
8732         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8733
8734 2010-10-28  Bruno Haible  <bruno@clisp.org>
8735
8736         posix_spawn*, getdtablesize: Relax license.
8737         * modules/posix_spawn (License): Change to LGPLv2+.
8738         * modules/posix_spawnp (License): Likewise.
8739         * modules/posix_spawn-internal (License): Likewise.
8740         * modules/posix_spawnattr_init (License): Likewise.
8741         * modules/posix_spawnattr_getflags (License): Likewise.
8742         * modules/posix_spawnattr_setflags (License): Likewise.
8743         * modules/posix_spawnattr_getpgroup (License): Likewise.
8744         * modules/posix_spawnattr_setpgroup (License): Likewise.
8745         * modules/posix_spawnattr_getschedparam (License): Likewise.
8746         * modules/posix_spawnattr_setschedparam (License): Likewise.
8747         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8748         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8749         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8750         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8751         * modules/posix_spawnattr_getsigmask (License): Likewise.
8752         * modules/posix_spawnattr_setsigmask (License): Likewise.
8753         * modules/posix_spawnattr_destroy (License): Likewise.
8754         * modules/posix_spawn_file_actions_init (License): Likewise.
8755         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8756         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8757         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8758         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8759         * modules/getdtablesize (License): Likewise.
8760         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8761
8762 2010-10-26  Bruno Haible  <bruno@clisp.org>
8763
8764         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8765         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8766         Cygwin and mingw.
8767         Suggested by Eric Blake.
8768
8769 2010-10-26  Bruno Haible  <bruno@clisp.org>
8770
8771         stdio: Work around compilation error due to renameat() on Solaris 10.
8772         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8773         * lib/renameat.c: Don't include <unistd.h> here.
8774         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8775         Reported by Paul Eggert and Eric Blake.
8776
8777 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8778
8779         renameat: port to Solaris 10, which declares renameat in unistd.h
8780
8781         * lib/renameat.c: Include unistd.h before stdio.h, because
8782         Solaris 10 declares renameat in unistd.h.  Problem encountered
8783         when building GNU tar 1.24 on Solaris 10.
8784
8785 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8786
8787         fdopendir: fix C89 compilation
8788         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8789         compilers.
8790
8791 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8792
8793         inttostr: simplify by removing unnecessary redundancy
8794         * lib/anytostr.c: Don't include verify.h.
8795         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8796         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8797         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8798         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8799         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8800         Likewise.
8801         * modules/inttostr (Depends-on): Remove 'verify'.
8802
8803 2010-10-23  Bruno Haible  <bruno@clisp.org>
8804
8805         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8806         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8807         Reported by Eric Blake.
8808
8809 2010-10-23  Bruno Haible  <bruno@clisp.org>
8810
8811         Tests: Fix LOCALE_JA on MirBSD 10.
8812         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8813         to an UTF-8 locale.
8814         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8815         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8816         Reported by Eric Blake.
8817
8818 2010-10-21  Bruno Haible  <bruno@clisp.org>
8819
8820         nl_langinfo test: Avoid test failure on NetBSD 5.
8821         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8822         Reported by Eric Blake.
8823
8824 2010-10-21  Eric Blake  <eblake@redhat.com>
8825
8826         c-stack: work around libsigsegv 2.8 bug
8827         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8828         overflow on at least PowerPC64.
8829
8830 2010-10-17  Bruno Haible  <bruno@clisp.org>
8831
8832         userspec: Drop redundant file.
8833         * modules/userspec (Files): Remove lib/inttostr.h.
8834
8835 2010-10-17  Bruno Haible  <bruno@clisp.org>
8836
8837         nl_langinfo tests: Silence some warnings.
8838         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8839         Reported by Jim Meyering.
8840
8841 2010-10-17  Bruno Haible  <bruno@clisp.org>
8842
8843         Make use of GCC's attribute __alloc_size__.
8844         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8845         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8846         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8847         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8848         __alloc_size__.
8849         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8850         Suggested by Jim Meyering.
8851
8852 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8853
8854         bootstrap: anchor .gitignore entries.
8855         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8856         with...
8857         (insert_vc_ignore): ... this new function, which prepends `/' to
8858         all .gitignore entries before passing them to
8859         insert_sorted_if_absent.
8860
8861 2010-10-16  Bruno Haible  <bruno@clisp.org>
8862
8863         nextafter: Fix configure check.
8864         * modules/nextafter (configure.ac): Correct expected prototype.
8865
8866 2010-10-16  Bruno Haible  <bruno@clisp.org>
8867
8868         termios: Update documentation.
8869         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8870
8871 2010-10-16  Bruno Haible  <bruno@clisp.org>
8872
8873         tests: Make them compile with TinyCC.
8874         * tests/test-strstr.c (main): Remove parentheses around array
8875         initializer.
8876
8877 2010-10-15  Eric Blake  <eblake@redhat.com>
8878
8879         ignore-value: make header idempotent
8880         * lib/ignore-value.h: Add double-inclusion guards.
8881         Reported by Stefan Berger.
8882
8883 2010-10-15  Jim Meyering  <meyering@redhat.com>
8884
8885         GNUmakefile: handle "stable" target, not "major"
8886         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8887         lists in maint.mk and announce-gen.  Without this, "make stable"
8888         would fail to ensure that $(VERSION) is up to date.
8889
8890 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8891
8892         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8893         & co.
8894
8895 2010-10-14  Bruno Haible  <bruno@clisp.org>
8896
8897         vasnprintf: Don't set errno to 0.
8898         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8899         block that sets it to 0.
8900         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8901
8902 2010-10-14  Bruno Haible  <bruno@clisp.org>
8903
8904         socketlib: Fix.
8905         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8906         gl_PREREQ_SYS_H_WINSOCK2.
8907         Reported by Ian Beckwith <ianb@erislabs.net>.
8908
8909 2010-10-13  Jim Meyering  <meyering@redhat.com>
8910
8911         test-select-stdin.c: avoid warn_unused_result warnings
8912         * tests/test-select-stdin.c: Include "macros.h".
8913         ASSERT that read and fflush succeed.
8914
8915 2010-10-13  Jim Meyering  <meyering@redhat.com>
8916
8917         git-version-gen: do require git-VC'd files in cwd
8918         * build-aux/git-version-gen: Reject a git version string
8919         if there are no commits associated with the current directory.
8920         This avoids an unlikely false-positive (unrelated dir whose parent
8921         repository also contains a tag matching v*), as pointed out
8922         by Giuseppe Scrivano in
8923         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8924
8925 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8926
8927         argv-iter: omit nonconforming declaration
8928         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8929         enum arg_iter_err declaration, which doesn't conform to C99.
8930         Solaris 10 cc warns about this.
8931
8932 2010-10-13  Eric Blake  <eblake@redhat.com>
8933
8934         termios: fix compilation on mingw
8935         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8936         (gl_TERMIOS_H): Adjust it on mingw.
8937         * modules/termios (Makefile.am): Substitute new key.
8938         * lib/termios.in.h (includes): Make include_next conditional.
8939         * doc/posix-headers/termios.texi (termios.h): Update
8940         documentation.
8941         Reported by Daniel P. Berrange.
8942
8943 2010-10-13  Jim Meyering  <meyering@redhat.com>
8944
8945         git-version-gen: don't require that .git/ be in the current dir
8946         * build-aux/git-version-gen: Adjust this script so that it works
8947         when run from any working directory beneath the top-level .git/-
8948         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8950
8951         test-select: avoid warn_unused_result warnings
8952         * tests/test-select.c: Include "macros.h".
8953         ASSERT that each call to read, write, and pipe succeeds.
8954         While not technically required, also check each "close".
8955         * modules/select-tests (Files): Add tests/macros.h.
8956
8957         test-symlinkat: remove declaration of unused local
8958         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8959
8960         test-inttostr: avoid shadowing warnings
8961         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8962         and use malloc rather than the stack for the same reason as
8963         mentioned in the comment justifying the other allocation.
8964
8965 2010-10-11  Bruno Haible  <bruno@clisp.org>
8966
8967         stdlib: Allow multiple gnulib generated replacements to coexist.
8968         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8969         Reported by Sam Steingold <sds@gnu.org>.
8970
8971 2010-10-11  Jim Meyering  <meyering@redhat.com>
8972
8973         fix a documentation typo
8974         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8975
8976 2010-10-11  Eric Blake  <eblake@redhat.com>
8977
8978         futimens: work around Solaris 11 bug
8979         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8980         * tests/test-futimens.h (test_futimens): Enhance, rather than
8981         weaken test.
8982         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8983
8984 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8985
8986         Indentation.
8987         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8988         higher-level operators more to the left.
8989
8990 2010-10-11  Jim Meyering  <meyering@redhat.com>
8991
8992         test-futimens: avoid unwarranted test failure on Solaris 5.11
8993         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8994         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8995         because it tries to dereference the NULL name argument.
8996
8997 2010-10-11  Bruno Haible  <bruno@clisp.org>
8998
8999         Indentation.
9000         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9001         indentation.
9002
9003 2010-10-11  Jim Meyering  <meyering@redhat.com>
9004
9005         spawn.in.h: make indentation consistent with parentheses
9006         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9007         Make indentation consistent with parentheses.
9008
9009 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9010
9011         Fix mismatched parens in previous commit
9012         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9013         parens.
9014
9015 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9016
9017         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9018
9019         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9020         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9021         * lib/malloca.c: Include "verify.h".
9022         (verify1): Remove, replacing with a verify call.
9023         * lib/relocwrapper.c (verify1): Likewise.
9024         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9025         Likewise.
9026         * modules/malloca (Depends-on): Add 'verify'.
9027         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9028         * modules/vasnprintf (Depends-on): Add 'verify'.
9029         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9030         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9031         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9032         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9033         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9034         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9035         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9036
9037         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9038
9039         Formerly the style was sometimes 2*X - 1, because the C standard
9040         was wrongly thought to disallow ?: in integral constant expressions.
9041         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9042         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9043         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9044         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9045         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9046         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9047         verify that time_t cannot be floating.
9048
9049 2010-10-08  Eric Blake  <eblake@redhat.com>
9050
9051         time: enforce recent POSIX ruling that time_t is integral
9052         * lib/time.in.h (__time_t_must_be_integral): Detect any
9053         problematic systems, allowing the rest of gnulib to assume POSIX.
9054
9055 2010-10-08  Jim Meyering  <meyering@redhat.com>
9056
9057         fdopendir: fix a bug on systems lacking openat and /proc support
9058         OpenBSD 4.7 is one such system.  The most noticeable effect was
9059         failure of any application making nontrivial use of fts: rm, du,
9060         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9061           ./rm: traversal failed: `a': Bad file descriptor
9062         Debugging that, you see that even though FD 6 was closed just
9063         prior to the opendir call in fd_clone_opendir, its resulting
9064         dir->dd_fd was 8, rather than the expected value of 6:
9065
9066         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9067         93                close (fd);
9068         (gdb) n
9069         94                dir = fd_clone_opendir (dupfd);
9070         (gdb) n
9071         95                saved_errno = errno;
9072         (gdb) p dir->dd_fd
9073         $11 = 8
9074
9075         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9076         The problem is that on OpenBSD, fd_clone_opendir has to resort
9077         to using the old-style save/restore CWD mechanism, due to its
9078         lack of openat/proc support, and *that* would steal the FD (6)
9079         that opendir was supposed to use.
9080
9081         The fix is to squirrel away the desired FD so that save_cwd uses a
9082         different one, and then free the dest FD right before calling opendir.
9083         That guarantees opendir will use the required file descriptor.
9084
9085         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9086
9087 2010-10-08  Bruno Haible  <bruno@clisp.org>
9088
9089         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9090         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9091
9092 2010-10-08  Bruno Haible  <bruno@clisp.org>
9093
9094         nanosleep: Make replacement POSIX compliant.
9095         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9096         is out of range.
9097         Reported by Jim Meyering.
9098
9099 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         bootstrap: add hook for altering gnulib.mk, for Bison
9102         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9103         the Bison bootstrapping process can rewrite file names and variables
9104         in this file before later parts of 'bootstrap' use the file.
9105         Bison wants to include lib/gnulib.mk from the top-level makefile,
9106         so it needs the file names in this file to be relative to the top
9107         level, not relative to lib; plus it needs variable names to be
9108         rewritten.
9109         (slurp): Use the new function.
9110
9111         bootstrap: reformat for readability
9112         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9113
9114 2010-10-08  Eric Blake  <eblake@redhat.com>
9115
9116         docs: update cygwin progress
9117         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9118         1.7.7.
9119         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9120         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9121         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9122         * doc/posix-functions/carg.texi (carg): Likewise.
9123         * doc/posix-functions/cargf.texi (cargf): Likewise.
9124         * doc/posix-functions/casin.texi (casin): Likewise.
9125         * doc/posix-functions/casinf.texi (casinf): Likewise.
9126         * doc/posix-functions/casinh.texi (casinh): Likewise.
9127         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9128         * doc/posix-functions/catan.texi (catan): Likewise.
9129         * doc/posix-functions/catanf.texi (catanf): Likewise.
9130         * doc/posix-functions/catanh.texi (catanh): Likewise.
9131         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9132         * doc/posix-functions/ccos.texi (ccos): Likewise.
9133         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9134         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9135         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9136         * doc/posix-functions/cexp.texi (cexp): Likewise.
9137         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9138         * doc/posix-functions/cimag.texi (cimag): Likewise.
9139         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9140         * doc/posix-functions/clog.texi (clog): Likewise.
9141         * doc/posix-functions/clogf.texi (clogf): Likewise.
9142         * doc/posix-functions/conj.texi (conj): Likewise.
9143         * doc/posix-functions/conjf.texi (conjf): Likewise.
9144         * doc/posix-functions/cpow.texi (cpow): Likewise.
9145         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9146         * doc/posix-functions/cproj.texi (cproj): Likewise.
9147         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9148         * doc/posix-functions/creal.texi (creal): Likewise.
9149         * doc/posix-functions/crealf.texi (crealf): Likewise.
9150         * doc/posix-functions/csin.texi (csin): Likewise.
9151         * doc/posix-functions/csinf.texi (csinf): Likewise.
9152         * doc/posix-functions/csinh.texi (csinh): Likewise.
9153         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9154         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9155         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9156         * doc/posix-functions/ctan.texi (ctan): Likewise.
9157         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9158         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9159         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9160         * doc/posix-headers/complex.texi (complex.h): Likewise.
9161
9162 2010-10-07  Jim Meyering  <meyering@redhat.com>
9163
9164         parse-datetime: avoid compilation failure on OpenBSD 4.7
9165         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9166         This works around a compilation failure on OpenBSD 4.7:
9167         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9168
9169 2010-10-07  Eric Blake  <eblake@redhat.com>
9170
9171         docs: update cygwin progress
9172         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9173         1.7.6.
9174         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9175         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9176         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9177         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9178         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9179         Likewise.
9180         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9181         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9182         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9183         Likewise.
9184         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9185         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9186         Likewise.
9187         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9188         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9189         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9190         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9191         Likewise.
9192         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9193         Likewise.
9194         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9195
9196         docs: update parse-datetime history
9197         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9198         documentation of this function's history and alternatives.
9199
9200         cygwin: use more robust version check
9201         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9202         exclude an eventual cygwin 1.9.1.
9203         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9205         (gl_FUNC_STRCASESTR): Likewise.
9206         Reported by Bruno Haible.
9207
9208 2010-10-06  Bruno Haible  <bruno@clisp.org>
9209
9210         string, sys_select: Avoid #including large headers unless necessary.
9211         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9212         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9213         OSF/1, BeOS, Haiku.
9214         Reported by Jim Meyering.
9215
9216 2010-10-05  Eric Blake  <eblake@redhat.com>
9217
9218         memmem, strstr, strcasestr: fix bug with long periodic needle
9219         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9220         periodic needle having false positive.
9221         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9222         and cygwin 1.7.7.
9223         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9225         (gl_FUNC_STRCASESTR): Likewise.
9226         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9227         * tests/test-memmem.c (main): Expose the bug.
9228         * tests/test-strcasestr.c (main): Likewise.
9229         * tests/test-strstr.c (main): Likewise.
9230         * tests/test-c-strcasestr.c (main): Likewise.
9231         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9232         * doc/posix-functions/strstr.texi (strstr): Likewise.
9233         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9234         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9235
9236 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9237
9238         parse-datetime: do some more renaming
9239         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9240         parse_datetime, not get_date.  Mention the renaming.
9241         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9242         in comments.
9243         * m4/bison.m4: Likewise.
9244
9245 2010-10-05  Eric Blake  <eblake@redhat.com>
9246
9247         parse-datetime: better name than get_date
9248         * NEWS: Reword the deprecation notice.
9249         * modules/get_date: Rename to modules/parse-datetime.
9250         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9251         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9252         * lib/get_date.y: Rename to lib/parse-datetime.y.
9253         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9254         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9255         * doc/getdate.texi: Provide fallback wrapper.
9256         * lib/getdate.h: Move guts, and wrap...
9257         * lib/parse-datetime.h: ...new file.
9258         * lib/parse-datetime.y (get_date): Rename...
9259         (parse_datetime): ...to this.
9260         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9261         (gl_PARSE_DATETIME): ...to this.
9262         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9263         documentation.
9264         * modules/getdate (Files): Provide fallback docs and header.
9265         (Notice, Depends-on): Update references.
9266         * tests/test-parse-datetime.c: Likewise.
9267         * DEPENDENCIES: Likewise.
9268         * MODULES.html.sh (Date and time <time.h>): Likewise.
9269         * doc/parse-datetime.texi (Date input formats)
9270         (Authors of parse_datetime): Likewise.
9271         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9272         (Include): Likewise.
9273         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9274         * gnulib-tool: Likewise.
9275         * m4/bison.m4 (gl_BISON): Likewise.
9276         Suggested by Bruno Haible.
9277
9278 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9279
9280         more ports to Solaris tr, which needs [] around ranges
9281         * gnulib-tool: Solaris tr needs [] around ranges.
9282         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9283         * tests/test-pipe-filter-gi1.c (main): Likewise.
9284         * tests/test-pipe-filter-ii1.c (main): Likewise.
9285
9286 2010-10-05  Eric Blake  <eblake@redhat.com>
9287
9288         bootstrap: fix Solaris regression
9289         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9290         around ranges.
9291         Reported by Pádraig Brady.
9292
9293         bootstrap: work with pkg-config
9294         * build-aux/bootstrap (check_versions): Also transliterate - in
9295         prerequisite name.
9296         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9297         prerequisites that were already found, to avoid confusion.
9298         Reported by Justin Clift.
9299
9300         faccessat: remove unused wrappers
9301         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9302         presence of these wrappers dragged in -lgen on Solaris.
9303         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9304
9305 2010-10-05  Jim Meyering  <meyering@redhat.com>
9306
9307         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9308         * Makefile (sc_pragma_columns): New syntax-check rule.
9309
9310 2010-10-04  Bruno Haible  <bruno@clisp.org>
9311
9312         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9313         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9314         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9315         Reported by Bruce Korb and Eric Blake.
9316
9317 2010-10-04  Bruno Haible  <bruno@clisp.org>
9318
9319         threadlib: Make option --with-libpth-prefix work.
9320         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9321         use $LIBPTH, not just -lpth.
9322
9323 2010-10-04  Bruno Haible  <bruno@clisp.org>
9324
9325         Avoid line length limitation from HP NonStop system header files.
9326         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9327         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9328         * lib/ctype.in.h: Likewise.
9329         * lib/dirent.in.h: Likewise.
9330         * lib/errno.in.h: Likewise.
9331         * lib/fcntl.in.h: Likewise.
9332         * lib/float.in.h: Likewise.
9333         * lib/getopt.in.h: Likewise.
9334         * lib/iconv.in.h: Likewise.
9335         * lib/inttypes.in.h: Likewise.
9336         * lib/langinfo.in.h: Likewise.
9337         * lib/locale.in.h: Likewise.
9338         * lib/math.in.h: Likewise.
9339         * lib/netdb.in.h: Likewise.
9340         * lib/netinet_in.in.h: Likewise.
9341         * lib/poll.in.h: Likewise.
9342         * lib/pthread.in.h: Likewise.
9343         * lib/pty.in.h: Likewise.
9344         * lib/sched.in.h: Likewise.
9345         * lib/se-selinux.in.h: Likewise.
9346         * lib/search.in.h: Likewise.
9347         * lib/signal.in.h: Likewise.
9348         * lib/spawn.in.h: Likewise.
9349         * lib/stdarg.in.h: Likewise.
9350         * lib/stddef.in.h: Likewise.
9351         * lib/stdint.in.h: Likewise.
9352         * lib/stdio.in.h: Likewise.
9353         * lib/stdlib.in.h: Likewise.
9354         * lib/string.in.h: Likewise.
9355         * lib/strings.in.h: Likewise.
9356         * lib/sys_file.in.h: Likewise.
9357         * lib/sys_ioctl.in.h: Likewise.
9358         * lib/sys_select.in.h: Likewise.
9359         * lib/sys_socket.in.h: Likewise.
9360         * lib/sys_stat.in.h: Likewise.
9361         * lib/sys_time.in.h: Likewise.
9362         * lib/sys_times.in.h: Likewise.
9363         * lib/sys_utsname.in.h: Likewise.
9364         * lib/sys_wait.in.h: Likewise.
9365         * lib/sysexits.in.h: Likewise.
9366         * lib/termios.in.h: Likewise.
9367         * lib/time.in.h: Likewise.
9368         * lib/unistd.in.h: Likewise.
9369         * lib/wchar.in.h: Likewise.
9370         * lib/wctype.in.h: Likewise.
9371         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9372         * modules/ctype (Makefile.am): Likewise.
9373         * modules/dirent (Makefile.am): Likewise.
9374         * modules/errno (Makefile.am): Likewise.
9375         * modules/fcntl-h (Makefile.am): Likewise.
9376         * modules/float (Makefile.am): Likewise.
9377         * modules/getopt-posix (Makefile.am): Likewise.
9378         * modules/iconv-h (Makefile.am): Likewise.
9379         * modules/inttypes (Makefile.am): Likewise.
9380         * modules/langinfo (Makefile.am): Likewise.
9381         * modules/locale (Makefile.am): Likewise.
9382         * modules/math (Makefile.am): Likewise.
9383         * modules/netdb (Makefile.am): Likewise.
9384         * modules/netinet_in (Makefile.am): Likewise.
9385         * modules/poll-h (Makefile.am): Likewise.
9386         * modules/pthread (Makefile.am): Likewise.
9387         * modules/pty (Makefile.am): Likewise.
9388         * modules/sched (Makefile.am): Likewise.
9389         * modules/search (Makefile.am): Likewise.
9390         * modules/selinux-h (Makefile.am): Likewise.
9391         * modules/signal (Makefile.am): Likewise.
9392         * modules/spawn (Makefile.am): Likewise.
9393         * modules/stdarg (Makefile.am): Likewise.
9394         * modules/stddef (Makefile.am): Likewise.
9395         * modules/stdint (Makefile.am): Likewise.
9396         * modules/stdio (Makefile.am): Likewise.
9397         * modules/stdlib (Makefile.am): Likewise.
9398         * modules/string (Makefile.am): Likewise.
9399         * modules/strings (Makefile.am): Likewise.
9400         * modules/sys_file (Makefile.am): Likewise.
9401         * modules/sys_ioctl (Makefile.am): Likewise.
9402         * modules/sys_select (Makefile.am): Likewise.
9403         * modules/sys_socket (Makefile.am): Likewise.
9404         * modules/sys_stat (Makefile.am): Likewise.
9405         * modules/sys_time (Makefile.am): Likewise.
9406         * modules/sys_times (Makefile.am): Likewise.
9407         * modules/sys_utsname (Makefile.am): Likewise.
9408         * modules/sys_wait (Makefile.am): Likewise.
9409         * modules/sysexits (Makefile.am): Likewise.
9410         * modules/termios (Makefile.am): Likewise.
9411         * modules/time (Makefile.am): Likewise.
9412         * modules/unistd (Makefile.am): Likewise.
9413         * modules/wchar (Makefile.am): Likewise.
9414         * modules/wctype (Makefile.am): Likewise.
9415
9416 2010-10-04  Bruno Haible  <bruno@clisp.org>
9417
9418         read-file tests: Avoid a test failure on NonStop Kernel.
9419         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9420         a regular file.
9421         Reported by Joachim Schmitz <schmitz@hp.com>.
9422
9423 2010-10-03  Bruno Haible  <bruno@clisp.org>
9424
9425         gnulib-tool: Fixes for --create-testdir with --libtool.
9426         * gnulib-tool (func_get_automake_snippet): Don't augment
9427         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9428         an executable.
9429         (func_create_testdir): Handle module 'alloca' like func_import.
9430         Reported by Bruce Korb <bruce.korb@gmail.com>.
9431
9432 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9433
9434         Avoid some lines longer than 80 characters.
9435         * lib/stdint.in.h: Break long comment lines.
9436         * lib/math.in.h: Likewise.
9437         (_GL_NUM_UINT_WORDS): New macro, for readability.
9438         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9439         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9440         * lib/stdlib.in.h: Likewise.
9441         * lib/spawn.in.h: Likewise.
9442         * lib/sys_socket.in.h: Update an URL.
9443         * lib/sys_stat.in.h: Break long line.
9444
9445 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9446
9447         Improve pmccabe2html.
9448         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9449         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9450         when the sources change. Remove the line in the HTML about "Used
9451         ranges" (which implied that there might be other unused ranges),
9452         rename "Resume" to "Summary" (easier to understand for more users).
9453         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9454         styles, and some unnecessary blank lines.
9455
9456 2010-10-03  Bruno Haible  <bruno@clisp.org>
9457             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9458
9459         acl: Add support for ACLs on NonStop Kernel.
9460         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9461         Check whether the function aclsort() exists.
9462         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9463         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9464         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9465         (acl_nontrivial [HAVE_ACLSORT]: New function.
9466         (file_has_acl): Implement for NonStop Kernel.
9467         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9468         (qset_acl): Implement for NonStop Kernel.
9469         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9470         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9471         (main): Implement for NonStop Kernel.
9472         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9473         Kernel. Handle this flavor.
9474         * tests/test-set-mode-acl.sh: Likewise.
9475         * tests/test-copy-acl.sh: Likewise.
9476         * tests/test-copy-file.sh: Likewise.
9477
9478 2010-10-03  Bruno Haible  <bruno@clisp.org>
9479
9480         Info about ACLs on NonStop Kernel.
9481         * doc/acl-resources.txt: Add info about NonStop Kernel.
9482         References by Joachim Schmitz <schmitz@hp.com>.
9483
9484 2010-10-02  Bruno Haible  <bruno@clisp.org>
9485
9486         Define missing EDQUOT on NonStop Kernel.
9487         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9488         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9490         missing.
9491         * doc/posix-headers/errno.texi: Mention the NSK bug.
9492         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9493         Reported by Joachim Schmitz <schmitz@hp.com>.
9494
9495 2010-10-02  Bruno Haible  <bruno@clisp.org>
9496
9497         Update doc for POSIX:2008.
9498         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9499         Update URL of POSIX specification.
9500
9501 2010-10-02  Bruno Haible  <bruno@clisp.org>
9502
9503         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9504         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9505         from gnulib, not from Automake.
9506
9507 2010-10-02  Bruno Haible  <bruno@clisp.org>
9508
9509         New module 'system-posix'.
9510         * modules/system-posix: New file.
9511         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9512         module is present.
9513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9514         GNULIB_SYSTEM_POSIX.
9515         * modules/stdlib (Depends-on): Remove sys_wait.
9516         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9517         * doc/posix-functions/system.texi: Mention the new module.
9518         * doc/posix-headers/stdlib.texi: Likewise.
9519         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9520         define test_sys_wait_macros to a no-op.
9521         Reported by Sam Steingold <sds@gnu.org>.
9522
9523 2010-09-30  Bruno Haible  <bruno@clisp.org>
9524
9525         More renaming from 'getdate' to 'get_date'.
9526         * doc/get_date.texi: Renamed from doc/getdate.texi.
9527         * modules/get_date (Files): Update.
9528         * MODULES.html.sh (Date and time <time.h>): Update.
9529         * DEPENDENCIES: Update.
9530         * gnulib-tool: Update comment.
9531         * m4/bison.m4 (gl_BISON): Likewise.
9532         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9533
9534 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9535
9536         bootstrap: support ACLOCAL_FLAGS during aclocal
9537         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9538         can add additional -I dir for third-party .m4 files.
9539
9540 2010-09-30  Eric Blake  <eblake@redhat.com>
9541
9542         bootstrap: use glibtoolize on MacOS
9543         * build-aux/bootstrap (check_versions): Convert libtool into
9544         libtoolize.
9545         (tool search): Move libtool check earlier, and look for
9546         glibtoolize for MacOS.
9547         (gnulib_tool_options): Auto-add --libtool when appropriate.
9548         Reported by Justin Clift.
9549
9550         poll: fix typo that broke test on MacOS
9551         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9552         Reported by Justin Clift.
9553
9554         getdate: rename to get_date
9555         Note: getdate.h is not renamed, to minimize client impact.
9556         * modules/getdate: Mark obsolete.  Move old contents...
9557         * modules/get_date: ...to new module name.
9558         * modules/getdate-tests: Move...
9559         * modules/get_date-tests: ...here.
9560         * m4/getdate.m4: Move...
9561         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9562         * lib/getdate.y: Move...
9563         * lib/get_date.y: ...here.
9564         * tests/test-getdate.c: Move...
9565         * tests/test-get_date.c: ...here.
9566         * doc/posix-functions/getdate.texi (getdate): Update name.
9567         * NEWS: Mention the change.
9568
9569 2010-09-29  Bruno Haible  <bruno@clisp.org>
9570
9571         Separate the module 'waitpid' from the module 'sys_wait'.
9572         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9573         present.
9574         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9575         gl_MODULE_INDICATOR_FOR_TESTS.
9576         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9577         * modules/sys_wait (Depends-on): Remove waitpid.
9578         (Makefile.am): Substitute GNULIB_WAITPID.
9579         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9580         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9581         signature only if the 'waitpid' module is present.
9582         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9583         * NEWS: Mention the change.
9584         * modules/grantpt (Depends-on): Add waitpid.
9585         * modules/wait-process (Depends-on): Likewise.
9586
9587 2010-09-29  Bruno Haible  <bruno@clisp.org>
9588
9589         More tests for module 'sys_wait'.
9590         * modules/sys_wait-c++-tests: New file.
9591         * tests/test-sys_wait-c++.cc: New file.
9592         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9593         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9594
9595 2010-09-29  Bruno Haible  <bruno@clisp.org>
9596
9597         New module 'waitpid'.
9598         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9599         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9600         Don't include <process.h>.
9601         (waitpid): Declare only, using modern idiom.
9602         * m4/waitpid.m4: New file.
9603         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9604         * modules/waitpid: New file.
9605         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9606         (Makefile.am): Update.
9607         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9608
9609 2010-09-28  Bruno Haible  <bruno@clisp.org>
9610
9611         poll: Assume ANSI C.
9612         * lib/poll.c (poll): Use an ANSI C declaration.
9613
9614 2010-09-28  Bruno Haible  <bruno@clisp.org>
9615
9616         poll-h: Create poll.h on all platforms.
9617         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9618         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9619         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9620         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9621         (gl_REPLACE_POLL_H): Don't set POLL_H.
9622         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9623         * modules/poll-h (Depends-on): Add include_next.
9624         (Makefile.am): Create poll.h unconditionally. Substitute also
9625         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9626
9627 2010-09-28  Bruno Haible  <bruno@clisp.org>
9628
9629         Tests for module 'poll-h'.
9630         * modules/poll-h-c++-tests: New file.
9631         * tests/test-poll-h-c++.cc: New file.
9632
9633         Tests for module 'poll-h'.
9634         * modules/poll-h-tests: New file.
9635         * tests/test-poll-h.c: New file.
9636
9637 2010-09-28  Bruno Haible  <bruno@clisp.org>
9638
9639         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9640         * modules/poll-h (Depends-on): Add 'extensions'.
9641
9642 2010-09-28  Bruno Haible  <bruno@clisp.org>
9643
9644         New module 'poll-h'.
9645         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9646         (poll): Use modern idiom.
9647         * modules/poll-h: New file.
9648         * modules/poll (Files): Remove lib/poll.in.h.
9649         (Depends-on): Add poll-h.
9650         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9651         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9652         * m4/poll_h.m4: New file.
9653         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9654         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9655         and invoke gl_REPLACE_POLL_H.
9656         * lib/poll.c: Use common idiom.
9657         * tests/test-poll.c: Likewise.
9658         * doc/posix-headers/poll.texi: Mention the poll-h module.
9659         Suggested by Eric Blake.
9660
9661 2010-09-26  Bruno Haible  <bruno@clisp.org>
9662
9663         sys_wait: Implement WSTOPSIG.
9664         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9665         Reported by Simon Josefsson.
9666
9667 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9668
9669         stdlib, sys_wait: Avoid compilation error on mingw.
9670         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9671
9672 2010-09-26  Bruno Haible  <bruno@clisp.org>
9673
9674         stdlib tests: Avoid code duplication.
9675         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9676         * modules/sys_wait-tests (Files): Likewise.
9677         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9678         * tests/test-stdlib.c: Include test-sys_wait.h.
9679         (main): Invoke test_sys_wait_macros.
9680         * tests/test-sys_wait.c: Include test-sys_wait.h.
9681         (main): Invoke test_sys_wait_macros.
9682
9683 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9684
9685         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9686         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9687         sure Windows sockets are working before calling getaddrinfo.
9688         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9689         * doc/gnulib.texi (Windows sockets): Fix typo.
9690
9691 2010-09-25  Bruno Haible  <bruno@clisp.org>
9692
9693         Tests for module 'regex-quote'.
9694         * modules/regex-quote-tests: New file.
9695         * tests/test-regex-quote.c: New file.
9696
9697         New module 'regex-quote'.
9698         * lib/regex-quote.h: New file.
9699         * lib/regex-quote.c: New file.
9700         * modules/regex-quote: New file.
9701         Suggested by Reuben Thomas <rrt@sc3d.org>.
9702
9703 2010-09-24  Bruno Haible  <bruno@clisp.org>
9704
9705         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9706         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9707
9708 2010-09-23  Bruno Haible  <bruno@clisp.org>
9709
9710         setenv: Relax license.
9711         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9712         Blake.
9713         Requested by Eric Blake.
9714
9715 2010-09-22  Bruno Haible  <bruno@clisp.org>
9716
9717         termios: Relax license.
9718         * modules/termios (License): Change to LGPLv2+.
9719         Requested by Eric Blake.
9720
9721 2010-09-22  Bruno Haible  <bruno@clisp.org>
9722
9723         threadlib: Allow the package to change the default to 'no'.
9724         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9725         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9726         Reported by Paul Eggert.
9727
9728 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9729             Bruno Haible  <bruno@clisp.org>
9730
9731         Fix endless loop in mbmemcasecoll.
9732         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9733         byte.
9734         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9735
9736 2010-09-22  Bruno Haible  <bruno@clisp.org>
9737
9738         Tests for module 'memcoll'.
9739         * modules/memcoll-tests: New file.
9740         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9741
9742         memcoll, xmemcoll: Clarify size vs. length.
9743         * modules/memcoll.c (memcoll0): Clarify specification.
9744         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9745         passed to collate_error.
9746
9747 2010-09-22  Bruno Haible  <bruno@clisp.org>
9748
9749         Tests for module 'memcasecmp'.
9750         * modules/memcasecmp-tests: New file.
9751         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9752
9753 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         * lib/pthread.in.h: Add split double-inclusion guard, and include
9756         system <pthread.h> if there is one.  Use @@-style as in other
9757         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9758         pthread.h doesn't.
9759         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9760         (pthread_mutexattr_settype, pthread_mutex_trylock):
9761         New static inline functions, if there's no system <pthread.h>.
9762         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9763         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9764         Approximate with mutexes if the system lacks spinlocks, as in
9765         MacOS.
9766         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9767         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9768         @@-style.  Check for spinlocks separately.
9769         (gl_PTHREAD_DEFAULTS): New macro.
9770         * modules/pthread: Redo to use a more typical style for in.h files.
9771
9772 2010-09-21  Eric Blake  <eblake@redhat.com>
9773
9774         net_if: enhance tests
9775         * tests/test-net_if.c (main): Move signature checks earlier.
9776         Print failures to stderr.
9777         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9778         Document the bug that we do not yet fix.
9779
9780 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9781
9782         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9783         about gnulib, not GSS.
9784
9785 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9786
9787         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9788         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9789         for Emacs.
9790         * build-aux/pmccabe2html: Make Makefile.am example code more
9791         cut-and-paste friendly.
9792
9793 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9794
9795         * tests/test-net_if.c: New file.
9796         * modules/net_if-tests: New file.
9797
9798 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9799
9800         pthread: add pthread_spin_destroy
9801         * lib/pthread.in.h (pthread_spin_destroy): New function.
9802
9803 2010-09-19  Bruno Haible  <bruno@clisp.org>
9804
9805         gnulib-tool: Fix --help output.
9806         * gnulib-tool (func_usage): Fix help message.
9807         Reported by Reuben Thomas <rrt@sc3d.org>.
9808
9809 2010-09-18  Jim Meyering  <meyering@redhat.com>
9810
9811         maint.mk: avoid unexpanded \n in two diagnostics
9812         * top/maint.mk (sc_prohibit_always_true_header_tests):
9813         Don't use a literal \n in a halt=... assignment.  It would not be
9814         expanded, and the two \n bytes would appear in the diagnostic output
9815         rather than the desired newline.  Use halt=$$(printf ... instead.
9816         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9817
9818 2010-09-18  Bruno Haible  <bruno@clisp.org>
9819
9820         netinet_in: Doc tweak.
9821         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9822         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9823
9824 2010-09-18  Jim Meyering  <meyering@redhat.com>
9825
9826         init.sh: correct an outdated comment
9827         * tests/init.sh (create_exe_shims_):  s/function/alias/
9828
9829         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9830         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9831         a file named "*.exe" is removed between the glob expansion and the
9832         processing of that oddly named file.
9833
9834 2010-09-17  Eric Blake  <eblake@redhat.com>
9835
9836         mirbsd: add some more support
9837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9838         in BSD family.
9839         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9840         devices as OpenBSD.
9841         * m4/host-os.m4 (mirbsd): Add MirBSD.
9842
9843         tests: fix unportable assumption on sys/wait.h
9844         * tests/test-sys_wait.c (main): Relax test.
9845         * tests/test-stdlib.c (main): Likewise.
9846
9847         init.sh: accomodate directory with no .exes
9848         * tests/init.sh: Accomodate directory containing only scripts.
9849
9850         tests: avoid compiler warning
9851         * tests/test-stdlib.c (main): Use the variable.
9852
9853         fdutimens, fdutimensat: update signature, again
9854         * lib/utimens.h (gl_futimens): Delete, and move signature...
9855         (fdutimens): ...here.
9856         (fdutimensat): Rearrange signature.
9857         (lutimensat): Rename variable for clarity.
9858         * lib/fdutimensat.c (fdutimensat): Update signature.
9859         * lib/utimens.c (fdutimens): Likewise.
9860         (gl_futimens): Delete.
9861         (utimens, lutimens): Update callers.
9862         * lib/futimens.c (futimens): Likewise.
9863         * tests/test-fdutimensat.c: Likewise.
9864         * tests/test-utimens.c: Likewise.
9865         * tests/test-futimens.h: Update comment.
9866         * NEWS: Mention this.
9867         Suggested by Paul Eggert.
9868
9869 2010-09-17  Bruno Haible  <bruno@clisp.org>
9870
9871         Take over the maintenance of some older macros from Autoconf.
9872         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9873         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9874         GNU Autoconf.
9875         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9876         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9877
9878 2010-09-17  Eric Blake  <eblake@redhat.com>
9879
9880         fdutimensat: drop atflag validation
9881         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9882         with valid fd, to close a race scenario where futimens is
9883         unsupported and FILE was replaced by a symlink.
9884         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9885         accordingly.
9886         Suggested by Paul Eggert.
9887
9888 2010-09-16  Bruno Haible  <bruno@clisp.org>
9889
9890         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9891         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9892
9893 2010-09-16  Bruno Haible  <bruno@clisp.org>
9894
9895         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9896         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9897         login_tty exists.
9898         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9899
9900 2010-09-16  Bruno Haible  <bruno@clisp.org>
9901
9902         login_tty: Make the replacement code work on BSD systems.
9903         * lib/login_tty.c: Include <sys/ioctl.h>.
9904         (login_tty): Use ioctl TIOCSCTTY when available.
9905         * modules/login_tty (Depends-on): Add sys_ioctl.
9906         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9907
9908 2010-09-16  Bruno Haible  <bruno@clisp.org>
9909
9910         login_tty: Stricter unit test.
9911         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9912         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9913         and tcgetsid() after login_tty.
9914         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9915
9916 2010-09-16  Bruno Haible  <bruno@clisp.org>
9917
9918         New module 'tcgetsid'.
9919         * lib/tcgetsid.c: New file.
9920         * m4/tcgetsid.m4: New file.
9921         * modules/tcgetsid: New file.
9922         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9923         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9924         GNULIB_TCGETSID, HAVE_TCGETSID.
9925         * lib/termios.in.h: Include <sys/types.h>.
9926         (tcgetsid): New declaration.
9927         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9928         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9929         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9930         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9931
9932 2010-09-16  Bruno Haible  <bruno@clisp.org>
9933
9934         Tests for module 'termios'.
9935         * modules/termios-c++-tests: New file.
9936         * modules/termios-tests: New file.
9937         * tests/test-termios-c++.cc: New file.
9938         * tests/test-termios.c: New file.
9939
9940         New module 'termios'.
9941         * modules/termios: New file.
9942         * lib/termios.in.h: New file.
9943         * m4/termios_h.m4: New file.
9944         * doc/posix-headers/termios.texi: Mention the new module.
9945
9946 2010-09-16  Eric Blake  <eblake@redhat.com>
9947
9948         fdutimensat: add an atflag parameter
9949         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9950         * lib/utimens.h (fdutimensat): Update prototype.
9951         * tests/test-fdutimensat.c: Adjust test to match.
9952         * NEWS: Document the change.
9953         Suggested by Paul Eggert.
9954
9955 2010-09-16  Bruno Haible  <bruno@clisp.org>
9956
9957         Fix typos in comments.
9958         * lib/striconveh.h: Fix typo in comment.
9959         * lib/login_tty.c (login_tty): Likewise.
9960
9961 2010-09-15  Bruno Haible  <bruno@clisp.org>
9962
9963         stdlib: clarify MirBSD WEXITSTATUS bug
9964         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9965         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9966
9967 2010-09-15  Eric Blake  <eblake@redhat.com>
9968
9969         stdlib: work around MirBSD WEXITSTATUS bug
9970         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9971         * modules/stdlib (Depends-on): Add sys_wait.
9972         * tests/test-sys_wait.c (main): Enhance test.
9973         * tests/test-stdlib.c (main): Likewise.
9974         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9975
9976         docs: mention MacOS issue with WEXITSTATUS(constant)
9977         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9978         issue.
9979         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9980
9981         strnlen: add tests
9982         * modules/strnlen-tests: New file.
9983         * tests/test-strnlen.c: Likewise.
9984
9985 2010-09-14  Bruno Haible  <bruno@clisp.org>
9986
9987         unistr/base: Avoid link errors when module 'libunistring' is also used.
9988         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9989         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9990         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9991         Declare also when HAVE_LIBUNISTRING is set.
9992         Reported by Pádraig Brady <P@draigbrady.com>.
9993
9994 2010-09-14  Eric Blake  <eblake@redhat.com>
9995
9996         test-rawmemchr: make more robust
9997         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9998         (Depends-on, configure.ac): Add needed prerequisites to use it.
9999         * modules/memchr-tests (Files, Depends-on, configure.ac):
10000         Likewise, to avoid implicit reliance on memchr module prereqs.
10001         * tests/test-memchr.c (main): Ensure proper masking.
10002         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10003         reads.
10004
10005         memchr: detect glibc Alpha bug
10006         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10007         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10008         Alpha.
10009         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10010         * tests/test-memchr.c (main): Enhance test.
10011         Reported by Nelson H. F. Beebe.
10012
10013 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10014
10015         fts, getcwd, glob: audit for dirfd returning -1
10016         * lib/fts.c (opendir): Remove #define; no longer used.
10017         (opendirat): New arg PDIR_FD.  All callers changed.
10018         (fts_build, _opendir2): Use new opendirat to avoid the need for
10019         dirfd, or for checking whether dirfd returns a negative value.
10020         Don't use opendir; always use openat followed by fdopendir.
10021         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10022         it.
10023         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10024         returns -1 here.
10025         * modules/fts (Depends-on): Remove dirfd.
10026         * modules/getcwd (Depends-on): Likewise.
10027
10028 2010-09-13  Eric Blake  <eblake@redhat.com>
10029
10030         float: fix broken MirBSD header
10031         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10032         * doc/posix-headers/float.texi (float.h): Document it.
10033
10034 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10035
10036         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10037         * lib/fts.c (opendirat): New arg extra_flags.
10038         (__opendir2): Use it to avoid following symlinks when opening
10039         a directory, if symlinks are not supposed to be followed.  See
10040         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10041
10042         fdopendir: preserve argument fd before returning
10043         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10044         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10045         (fdopendir): Use them, arranging for FD to be open to the same
10046         directory that it was when it started.  (It might be temporarily
10047         closed while fdopendir is running, so this not thread- or
10048         signal-safe.)  Be careful to do the right thing even when file
10049         descriptors are scarce and dup fails with errno == EMFILE.  See
10050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10051
10052 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10053
10054         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10055         * NEWS: Document change.
10056         * m4/regex.m4: Disable test for regoff_t size.
10057
10058 2010-09-13  Jim Meyering  <meyering@redhat.com>
10059
10060         fts: don't operate on an invalid file descriptor after failed dup
10061         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10062         negative file descriptor.
10063
10064 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         savedir: add streamsavedir, deprecate fdsavedir
10067         * NEWS: Mention deprecation of fdsavedir.
10068         * lib/savedir.c (streamsavedir): New extern function, whose name
10069         ends in "savedir" to be consistent with the others.  This differs
10070         from savedirstream in that it doesn't close its argument.  The
10071         next version of GNU tar will use this instead of fdsavedir, to
10072         avoid some race conditions and conserve file descriptors.
10073         (savedirstream): Reimplement as a wrapper around streamsavedir.
10074         (fdsavedir): Add a comment deprecating this function.  As far as
10075         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10076         * lib/savedir.h (streamsavedir): New decl.
10077         (fdsavedir): Add a comment deprecating this.
10078
10079 2010-09-10  Bruno Haible  <bruno@clisp.org>
10080
10081         langinfo: Fix last commit.
10082         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10083         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10085
10086 2010-09-10  Bruno Haible  <bruno@clisp.org>
10087
10088         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10089         * lib/progreloc.c (O_EXEC): Define fallback.
10090
10091 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10092
10093         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10094         * NEWS: Document recent changes to fcntl-h.
10095         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10096         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10097         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10098         Similarly for O_SEARCH; this last was already true, but not documented.
10099         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10100         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10101         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10102         Likewise.
10103         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10104         is zero, not whether it is defined.
10105         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10106         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10107         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10108
10109 2010-09-10  Bruno Haible  <bruno@clisp.org>
10110
10111         langinfo, nl_langinfo: Fix for IRIX 5.3.
10112         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10113         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10114         HAVE_LANGINFO_YESEXPR.
10115         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10116         HAVE_LANGINFO_YESEXPR.
10117         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10118         HAVE_LANGINFO_T_FMT_AMPM is 0.
10119         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10120         HAVE_LANGINFO_YESEXPR is 0.
10121         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10122         NOEXPR.
10123         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10124         * doc/posix-functions/nl_langinfo.texi: Likewise.
10125         Reported by Eric Blake.
10126
10127 2010-09-10  Bruno Haible  <bruno@clisp.org>
10128
10129         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10130         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10131         on FreeBSD 8.0 and OpenBSD 4.6.
10132         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10133         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10134         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10135         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10136         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10137         ac_includes_default.
10138         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10139
10140 2010-09-09  Eric Blake  <eblake@redhat.com>
10141
10142         strsignal: work around NetBSD bug
10143         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10144         * lib/string.in.h (includes): Likewise.
10145         * doc/posix-functions/strsignal.texi (strsignal): Document the
10146         bug.
10147         Reported by Nelson H. F. Beebe.
10148
10149         gnulib-tool: work with NetBSD /bin/sh
10150         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10151         (func_get_description, func_get_comment, func_get_status)
10152         (func_get_notice, func_get_applicability, func_get_filelist)
10153         (func_get_dependencies, func_get_autoconf_early_snippet)
10154         (func_get_autoconf_snippet, func_get_automake_snippet)
10155         (func_get_include_directive, func_get_link_directive)
10156         (func_get_license, func_get_maintainer, func_import): Avoid
10157         shell syntax errors from parsing syntax extensions.
10158
10159 2010-09-09  Bruno Haible  <bruno@clisp.org>
10160
10161         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10162         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10163         a reliable way to determine whether the 'alias' command works.
10164
10165 2010-09-08  Jim Meyering  <meyering@redhat.com>
10166
10167         init.sh: penalize a set-x-impaired shell; don't disqualify it
10168         * tests/init.sh: Too many shells corrupt application stderr when
10169         you set -x, so we can't afford to disqualify them, since at least
10170         on Irix-6.5, that would disqualify all bourne shells.
10171         Instead, use a two-pass approach.
10172         On the first pass, try to find a shell that meets the stricter
10173         condition that set -x does not corrupt stderr.
10174         If no shell meets the stricter condition, retest each candidate
10175         shell, but without that extra condition.  Finally, when
10176         VERBOSE=yes is requested and set -x might cause trouble, simply
10177         issue a warning and refrain from enabling debug output.
10178
10179 2010-09-08  Eric Blake  <eblake@redhat.com>
10180
10181         unsetenv: fix OpenBSD bug
10182         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10183         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10184         documentation.
10185         Reported by Jim Meyering.
10186
10187         strtod: work around IRIX 6.5 bug
10188         * lib/strtod.c (strtod): Reparse number on shorter string if
10189         exponent parse was invalid.
10190         * tests/test-strtod.c (main): Add check for "0x1p 2".
10191         Reported by Tom G. Christensen.
10192
10193         getopt: optimize previous patch
10194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10195         empty variable.  Speed up awk script.
10196         Reported by Paolo Bonzini.
10197
10198 2010-09-08  Jim Meyering  <meyering@redhat.com>
10199
10200         test.sh: disqualify shells for which set -x corrupts stderr
10201         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10202         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10203         appear in stderr output.  For example, this command:
10204             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10205         prints "P=1" on those two systems:
10206
10207 2010-09-08  Bruno Haible  <bruno@clisp.org>
10208
10209         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10210         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10211         commands, because some shells ignore redirections when there is an
10212         error in the command lookup.
10213         Reported by Eric Blake.
10214
10215 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10216
10217         * lib/regex.h: Fix a mention of `regex_compile' (should be
10218         `re_compile_pattern').
10219         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10220         (re_set_registers): Correct name of parameter in comment.
10221
10222         * doc/regex.texi: Add documentation for missing syntax flags.
10223         Remove commented-out documentation of defunct syntax option
10224         RE_NO_EMPTY_ALTS.
10225         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10226         Add documentation of re_set_registers.
10227         Document trick to re-use a pattern buffer by setting fastmap manually.
10228         Update documentation of struct re_pattern_buffer per public members.
10229         Uncomment documentation of equivalence class operators and
10230         collating symbol operators, since they are now implemented,
10231         Explain leftmost-longest matching in relation to alternatives.
10232         Tidy documentation of substring matching.
10233         Remove POSIX documentation, which is done better in
10234         glibc, and refer the reader there. Keep BSD API documentation, as
10235         that is not readily available elsewhere.
10236
10237 2010-09-07  Eric Blake  <eblake@redhat.com>
10238
10239         getopt: handle POSIXLY_CORRECT set but not exported
10240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10241         export state of POSIXLY_CORRECT, due to bash set -o posix.
10242         Reported by Dustin J. Mitchell.
10243
10244 2010-09-05  Bruno Haible  <bruno@clisp.org>
10245
10246         gnulib-tool: Highlight the changed options.
10247         * gnulib-tool (func_usage): Display the --import, --add-import,
10248         --remove-import explanations in bold font.
10249
10250 2010-09-06  Karl Berry  <karl@gnu.org>
10251
10252         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10253
10254 2010-09-05  Bruno Haible  <bruno@clisp.org>
10255
10256         uniwidth/width: Update comment.
10257         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10258         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10259
10260 2010-09-05  Bruno Haible  <bruno@clisp.org>
10261
10262         isinf, isnan: Relax license.
10263         * modules/isinf (License): Change from GPL to LGPL, with consent from
10264         Ben Pfaff.
10265         * modules/isnan (License): Likewise.
10266         Requested by Ludovic Courtès.
10267
10268 2010-09-04  Bruno Haible  <bruno@clisp.org>
10269
10270         gnulib-tool: Help migration from --import to --add-import or --update.
10271         * gnulib-tool: Emit a verbose error message when --import is used
10272         without any module name.
10273
10274 2010-09-04  Bruno Haible  <bruno@clisp.org>
10275
10276         Update doc about gnulib-tool.
10277         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10278         'gnulib-tool --update' in more detail.
10279         Reported by Eric Blake.
10280
10281 2010-09-04  Bruno Haible  <bruno@clisp.org>
10282
10283         gnulib-tool: Change --import. New options --add/remove-import.
10284         * gnulib-tool: New options --add-import, --remove-import.
10285         (func_usage): Document them.
10286         (have_associative): Define always.
10287         (func_import): In import mode, don't merge the specified settings with
10288         the cached settings. Implement remove-import mode.
10289         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10290         Explain when to use them versus --import.
10291         (Simple update): Use --add-import instead of --import.
10292         * NEWS: Mention the change.
10293
10294 2010-09-04  Bruno Haible  <bruno@clisp.org>
10295
10296         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10297         separate gnulib.mk.
10298
10299 2010-09-04  Bruno Haible  <bruno@clisp.org>
10300
10301         gnulib-tool: Don't talk about CVS any more.
10302         * gnulib-tool (func_usage, func_import): Write "version control"
10303         instead of CVS.
10304
10305 2010-09-04  Jim Meyering  <meyering@redhat.com>
10306
10307         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10308         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10309         false positives (whose names may be ill-chosen) when searching
10310         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10311         would cause a false-positive.
10312
10313         avoid coreutils "make distcheck" failure
10314         Coreutils tests with an absolute build directory name that contains
10315         a space.  Not quoting this directory name caused a failure.
10316         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10317         * tests/test-vc-list-files-cvs.sh: Likewise.
10318
10319 2010-09-04  Bruno Haible  <bruno@clisp.org>
10320
10321         gnulib-tool: Avoid error when run in a package without Makefile.am.
10322         * gnulib-tool: When collecting the m4dirs in a package that does not
10323         have a Makefile.am, eliminate those directories that contain no
10324         gnulib-cache.m4. Fix expression that counts these directories.
10325
10326 2010-09-04  Bruno Haible  <bruno@clisp.org>
10327
10328         update-copyright test: Improve output when perl is missing or too old.
10329         * tests/test-update-copyright.sh: Move test of Perl version down after
10330         the test whether Perl exists. Provide an explanation relating Perl's
10331         error message to Automake's SKIP: message.
10332
10333 2010-09-04  Bruno Haible  <bruno@clisp.org>
10334
10335         Don't augment PATH in TESTS_ENVIRONMENT.
10336         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10337         set abs_aux_dir instead of augmenting PATH.
10338         * modules/vc-list-files-tests (Makefile.am): Likewise.
10339         * tests/test-update-copyright.sh: Augment PATH here.
10340         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10341         path_prepend_.
10342         * tests/test-vc-list-files-git.sh: Likewise.
10343
10344 2010-09-04  Jim Meyering  <meyering@redhat.com>
10345
10346         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10347         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10348
10349 2010-09-04  Bruno Haible  <bruno@clisp.org>
10350
10351         strdup: Fix compilation error in C++ mode.
10352         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10353         the macro.
10354
10355 2010-09-04  Bruno Haible  <bruno@clisp.org>
10356
10357         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10358         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10359         macro into a function.
10360         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10361
10362 2010-09-04  Bruno Haible  <bruno@clisp.org>
10363
10364         Set PATH_SEPARATOR the same way autoconf does.
10365         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10366         the value of PATH_SEPARATOR the same way autoconf-generated configure
10367         scripts do.
10368         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10369         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10370
10371 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10372
10373         Set PATH_SEPARATOR the same way autoconf does.
10374         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10375         the same way autoconf-generated configure scripts do.
10376         * posix-modules: Likewise.
10377
10378 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10379
10380         hash: fix safe_hasher const typo
10381         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10382         const; otherwise, there is a type error later.
10383
10384 2010-09-02  Jim Meyering  <meyering@redhat.com>
10385
10386         test-update-copyright.sh: require perl 5.8.0
10387         * tests/test-update-copyright.sh: Require 5.8.0,
10388         which Tom G. Christensen has confirmed is adequate,
10389         while 5.6.1 is not.
10390
10391 2010-09-02  Eric Blake  <eblake@redhat.com>
10392
10393         tests: init.sh improvements for re-exec'ing with zsh
10394         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10395         -vx through shell re-exec.
10396         Reported by Tom G. Christensen.
10397
10398         wctype: fix typo in previous commit
10399         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10400         Reported by Ludovic Courtès.
10401
10402 2010-09-02  Jim Meyering  <meyering@redhat.com>
10403
10404         test-update-copyright.sh: skip test if Perl is too old
10405         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10406         Reported by Tom G. Christensen.
10407
10408 2010-09-02  Bruno Haible  <bruno@clisp.org>
10409
10410         wctype: Avoid compilation error on IRIX 6.5.30.
10411         * lib/wctype.in.h (iswblank): Declare with a replacement if
10412         REPLACE_ISWBLANK is set.
10413         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10414         declared. Set REPLACE_ISWBLANK.
10415         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10416         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10417         * doc/posix-headers/wctype.texi: Likewise.
10418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10419
10420 2010-09-01  Bruno Haible  <bruno@clisp.org>
10421
10422         New module 'socketlib'.
10423         * modules/socketlib: New file.
10424         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10425         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10426         * modules/sockets (Depends-on): Add socketlib.
10427         Suggested by Sam Steingold <sds@gnu.org>.
10428
10429 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10430
10431         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10432
10433         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10434         when one needs search access to a directory but not read access.
10435         On systems where it is available, it works in some cases where
10436         O_RDONLY does not, namely on directories that are searchable but
10437         not readable, and which need only to be searchable.  If O_SEARCH
10438         is not available, fall back to the traditional method of using
10439         O_RDONLY.
10440
10441         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10442         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10443         when opening a directory that needs only to be searchable.
10444         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10445         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10446         * lib/openat-proc.c (openat_proc_name): Likewise.
10447         * lib/openat.c (openat_needs_fchdir): Likewise.
10448         * lib/save-cwd.c (save_cwd): Likewise.
10449         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10450
10451 2010-08-28  Bruno Haible  <bruno@clisp.org>
10452
10453         New module 'host-cpu-c-abi'.
10454         * modules/host-cpu-c-abi: New file.
10455         * m4/host-cpu-c-abi.m4: New file, based on part of
10456         clisp/src/m4/general.m4.
10457         Requested by Sam Steingold <sds@gnu.org>.
10458
10459 2010-08-31  Eric Blake  <eblake@redhat.com>
10460         and Jim Meyering  <meyering@redhat.com>
10461
10462         hash: factor, and guard against misbehaving hasher function
10463         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10464         of table->hasher's return value.  Also protect against a hash value
10465         so large that adding it to table->bucket results in a NULL pointer.
10466         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10467         Use it in place of open-coded check-and-abort.
10468
10469 2010-08-30  Bruno Haible  <bruno@clisp.org>
10470
10471         hash: silence spurious clang warning
10472         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10473         Reported by Eric Blake.
10474
10475 2010-08-30  Eric Blake  <eblake@redhat.com>
10476
10477         strstr, memmem, strcasestr: avoid leaked shell message
10478         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10479         FreeBSD.
10480         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10482
10483         tests: silence clang warning
10484         * tests/test-malloca.c (do_allocation): Avoid dead store.
10485
10486 2010-08-29  Bruno Haible  <bruno@clisp.org>
10487
10488         gettext: Fix recent mistake.
10489         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10490
10491 2010-08-29  Bruno Haible  <bruno@clisp.org>
10492
10493         selinux-h: Offer a --without-selinux option.
10494         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10495         --without-selinux was specified, skip all tests and define
10496         HAVE_SELINUX_SELINUX_H to 0.
10497         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10498         set LIB_SELINUX to empty.
10499         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10500         gl_LIBSELINUX. If --without-selinux was specified, replace
10501         selinux/context.h.
10502         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10503
10504 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10505             Bruno Haible  <bruno@clisp.org>
10506
10507         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10508         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10509         of HAVE_REALLOC.
10510         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10511         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10512         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10513         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10514
10515 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10516             Bruno Haible  <bruno@clisp.org>
10517
10518         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10519         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10520         HAVE_CALLOC.
10521         * lib/xmalloc.c: Update accordingly.
10522         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10523         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10524         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10525
10526 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10527             Bruno Haible  <bruno@clisp.org>
10528
10529         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10530         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10531         HAVE_MALLOC.
10532         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10533         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10534         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10535
10536 2010-08-29  Bruno Haible  <bruno@clisp.org>
10537
10538         Update modules list.
10539         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10540         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10541         (String handling <string.h>): Add astrxfrm.
10542         (File system functions): Add readlinkat.
10543
10544 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10545
10546         Tests for module 'realloc-gnu'.
10547         * modules/realloc-gnu-tests: New file.
10548         * tests/test-realloc-gnu.c: New file.
10549
10550         Tests for module 'calloc-gnu'.
10551         * modules/calloc-gnu-tests: New file.
10552         * tests/test-calloc-gnu.c: New file.
10553
10554         Tests for module 'malloc-gnu'.
10555         * modules/malloc-gnu-tests: New file.
10556         * tests/test-malloc-gnu.c: New file.
10557
10558 2010-08-28  Bruno Haible  <bruno@clisp.org>
10559
10560         Rename module 'realloc' -> 'realloc-gnu'.
10561         * modules/realloc-gnu: New file, copied from modules/realloc.
10562         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10563         obsolete.
10564         * modules/mgetgroups (Depends-on): Update.
10565         * doc/posix-functions/realloc.texi: Update.
10566         * NEWS: Mention the change.
10567
10568         Rename module 'calloc' -> 'calloc-gnu'.
10569         * modules/calloc-gnu: New file, copied from modules/calloc.
10570         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10571         obsolete.
10572         * doc/posix-functions/calloc.texi: Update.
10573         * NEWS: Mention the change.
10574
10575         Rename module 'malloc' -> 'malloc-gnu'.
10576         * modules/malloc-gnu: New file, copied from modules/malloc.
10577         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10578         obsolete.
10579         * modules/argp (Depends-on): Update.
10580         * modules/regex (Depends-on): Update.
10581         * doc/posix-functions/malloc.texi: Update.
10582         * NEWS: Mention the change.
10583
10584 2010-08-28  Eric Blake  <eblake@redhat.com>
10585
10586         pread, pwrite: add missing dependency
10587         * modules/pread (Depends-on): Add extensions.
10588         * modules/pwrite (Depends-on): Likewise.
10589
10590 2010-08-28  Bruno Haible  <bruno@clisp.org>
10591
10592         unistr/u*-strchr: Fix tests dependencies.
10593         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10594         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10595         Reported by Ian Beckwith <ianb@erislabs.net>.
10596
10597 2010-08-28  Bruno Haible  <bruno@clisp.org>
10598
10599         read-file: Don't occupy too much unused memory.
10600         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10601
10602 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10603             Eric Blake  <eblake@redhat.com>
10604             Bruno Haible  <bruno@clisp.org>
10605
10606         read-file: Avoid memory reallocations with regular files.
10607         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10608         (fread_file): With regular files, use the remaining length as the
10609         initial buffer size.  Check against overflow.
10610         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10611         sys_stat.
10612
10613 2010-08-28  Bruno Haible  <bruno@clisp.org>
10614
10615         ftello: Relax license.
10616         * modules/ftello (License): Relax to LGPLv2+.
10617         Reported by Eric Blake.
10618
10619 2010-08-28  Bruno Haible  <bruno@clisp.org>
10620
10621         Avoid relocwrapper link errors due to gnulib replacement functions.
10622         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10623         function.
10624         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10625
10626 2010-08-28  Bruno Haible  <bruno@clisp.org>
10627
10628         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10629         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10630         defined.
10631         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10632         Suggested by Eric Blake.
10633
10634 2010-08-28  Bruno Haible  <bruno@clisp.org>
10635
10636         sys_socket, netdb: Ensure socklen_t gets defined.
10637         * modules/sys_socket (Depends-on): Add socklen.
10638         * modules/netdb (Depends-on): Likewise.
10639         * modules/getaddrinfo (Depends-on): Remove socklen.
10640         * modules/getsockopt (Depends-on): Likewise.
10641         * modules/setsockopt (Depends-on): Likewise.
10642         * tests/test-sys_socket.c: Check that socklen_t is defined.
10643         * tests/test-netdb.c: Likewise.
10644         * m4/socklen.m4: Update comments.
10645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10646
10647 2010-08-27  Eric Blake  <eblake@redhat.com>
10648
10649         login_tty: add missing dependency
10650         * modules/login_tty (Depends-on): Add pty.
10651
10652 2010-08-26  Eric Blake  <eblake@redhat.com>
10653
10654         lib-symbol-versions: fix m4 quoting
10655         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10656         format for AC_LINK_IFELSE.
10657
10658         glob: fix compile test
10659         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10660
10661         btowc: fix missing file
10662         * modules/btowc (Files): Also ship locale-fr.m4.
10663
10664         lseek: fix link test
10665         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10666         AC_LINK_IFELSE.
10667
10668         include_next: silence autoconf 2.68 warning
10669         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10670         AC_COMPILE_IFELSE as special.
10671         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10672         autoconf < 2.68.
10673
10674         acl: fix compilation test
10675         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10676         AC_COMPILE_IFELSE.
10677
10678 2010-08-26  Bruno Haible  <bruno@clisp.org>
10679
10680         Modernize AC_TRY_RUN invocations.
10681         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10682         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10683         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10684         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10685         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10686         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10687         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10689         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10690         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10691         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10692         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10693         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10694         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10696         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10697         gl_MBRLEN_NUL_RETVAL): Likewise.
10698         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10699         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10700         Likewise.
10701         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10702         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10703         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10704         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10705         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10706         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10707         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10708         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10709         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10710         Likewise.
10711         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10712         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10714         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10715         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10716         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10717         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10718         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10719         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10721
10722 2010-08-26  Bruno Haible  <bruno@clisp.org>
10723
10724         Modernize AC_TRY_LINK invocations.
10725         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10726         AC_TRY_LINK.
10727         * m4/argp.m4 (gl_ARGP): Likewise.
10728         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10729         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10730         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10731         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10733         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10734         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10735         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10736         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10737         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10738         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10739         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10740         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10741         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10742         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10743         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10744         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10745         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10746         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10747         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10748         Likewise.
10749         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10750         Likewise.
10751         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10752         Likewise.
10753         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10755         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10756         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10757         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10758         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10759         * m4/servent.m4 (gl_SERVENT): Likewise.
10760         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10761         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10762         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10763         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10764         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10765         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10766         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10767         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10768         * modules/tsearch-tests (configure.ac): Likewise.
10769
10770 2010-08-26  Bruno Haible  <bruno@clisp.org>
10771
10772         Modernize AC_TRY_COMPILE invocations.
10773         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10774         AC_TRY_COMPILE.
10775         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10776         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10777         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10778         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10779         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10780         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10781         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10782         * m4/lock.m4 (gl_LOCK): Likewise.
10783         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10784         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10785         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10786         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10787         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10788         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10789         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10790         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10791         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10792         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10793         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10794         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10795         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10796         extraneous semicolon.
10797
10798 2010-08-26  Jim Meyering  <meyering@redhat.com>
10799
10800         stat-time: relax license LGPL
10801         * modules/stat-time (License): Change from GPL to LGPL,
10802         with consent from all contributors, for use in libguile.
10803         Requested by Ludovic Courtès.
10804
10805 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10806
10807         poll: return immediately on POLLHUP.
10808         * lib/poll.c (poll): Always set timeout before wait_timeout is
10809         computed.
10810
10811 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10812
10813         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10814         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10815         rmdir ("dir/.//"), unlinkat.
10816
10817 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10818
10819         stdbool: avoid spurious failure with modern xlc
10820         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10821
10822 2010-08-24  Bruno Haible  <bruno@clisp.org>
10823
10824         getloadavg: simplify code
10825         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10826         gl_have_func. Update comments.
10827
10828 2010-08-24  Eric Blake  <eblake@redhat.com>
10829
10830         getloadavg: don't define SVR4 on cygwin
10831         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10832         only define SVR4 when -lkvm is required.
10833         Reported by Yaakov Selkowitz.
10834
10835 2010-08-24  Bruno Haible  <bruno@clisp.org>
10836
10837         priv-set: fix comment
10838         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10839
10840 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10841
10842         priv-set: fix comments
10843         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10844         to match code, as suggested by David Bartley in:
10845         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10846
10847 2010-08-23  Eric Blake  <eblake@redhat.com>
10848
10849         stdbool: avoid rejecting clang
10850         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10851         * tests/test-stdbool.c: Enable more tests if using the system
10852         <stdbool.h> instead of the gnulib replacement.
10853         (main): Move xlc bug test to a runtime test for all compilers.
10854         Reported by Anders Kaseorg.
10855
10856         argz: fix shell quoting issue
10857         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10858         Reported by Charles Wilson.
10859
10860 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10861             Erik Faye-Lund <kusmabite@gmail.com>
10862
10863         poll, select: handle ERROR_BROKEN_PIPE.
10864         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10865         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10866         * lib/select.c (win32_compute_revents): Do not mark a pipe
10867         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10868
10869 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10870
10871         fts: allow compilation with C++
10872         * lib/fts_.h: Specify extern "C" linkage with C++.
10873
10874 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10875
10876         Fix gnulib-tool sed script de-commentation for AIX sed.
10877         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10878         sed.
10879
10880 2010-08-17  Eric Blake  <eblake@redhat.com>
10881
10882         test-stddef: test for (some) offsetof bugs
10883         * tests/test-stddef.c: Enhance test to ensure correct type of
10884         offsetof.
10885         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10886         that we are not fixing at this time.
10887
10888 2010-08-15  Bruno Haible  <bruno@clisp.org>
10889
10890         stpncpy: Allow stpncpy to be defined as a macro.
10891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10892         if it's already correctly declared.
10893         * lib/string.in.h (stpncpy): Undefine before redefining.
10894         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10895
10896 2010-08-14  Bruno Haible  <bruno@clisp.org>
10897
10898         Rename module 'memxfrm' to 'amemxfrm'.
10899         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10900         (amemxfrm): Renamed from memxfrm.
10901         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10902         (amemxfrm): Renamed from memxfrm.
10903         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10904         * NEWS: Mention the change.
10905         * MODULES.html.sh (String handling <string.h>): Update.
10906         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10907         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10908         * lib/unicase/u16-casexfrm.c: Likewise.
10909         * lib/unicase/u32-casexfrm.c: Likewise.
10910         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10911         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10912         * lib/uninorm/u16-normxfrm.c: Likewise.
10913         * lib/uninorm/u32-normxfrm.c: Likewise.
10914         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10915         memxfrm.
10916         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10917         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10918         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10919         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10920         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10921         Suggested by Paul Eggert.
10922
10923 2010-08-14  Bruno Haible  <bruno@clisp.org>
10924
10925         Tests for module 'astrxfrm'.
10926         * modules/astrxfrm-tests: New file.
10927         * tests/test-astrxfrm.c: New file.
10928
10929         New module 'astrxfrm'.
10930         * lib/astrxfrm.h: New file.
10931         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10932         * modules/astrxfrm: New file.
10933
10934 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10935
10936         regex: Tweak doc.
10937         * doc/regex.texi (Overview): Don't mention regex.c.
10938         (GNU Regular Expression Compiling): Likewise.
10939         (Match-end-of-line Operator): Mention 'not_eol'.
10940
10941 2010-08-14  Brian Gough  <bjg@gnu.org>
10942             Bruno Haible  <bruno@clisp.org>
10943
10944         git-merge-changelog: add doc relating to use with bzr and hg.
10945         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10946
10947 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10948
10949         pthread: fix pthread.h creation for srcdir != builddir
10950         * modules/pthread (Makefile.am): Fix the rule to work also in a
10951         non-srcdir build.
10952
10953 2010-08-13  Karl Berry  <karl@gnu.org>
10954
10955         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10956         * doc/posix-*/*: force line break before @url of POSIX
10957         specifications.
10958         Suggested by Werner Lemberg.
10959
10960 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         strtod: fix const diagnostic
10963         * lib/strtod.c (strtod): Don't assign const char * to char *,
10964         as this elicits a warning from GCC when warnings are enabled.
10965
10966 2010-08-10  Pádraig Brady <P@draigbrady.com>
10967         and Eric Blake  <eblake@redhat.com>
10968
10969         copy-acl: ignore ENOTSUP on HP-UX
10970         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10971         so that it is available for HP-UX.
10972         * lib/copy-acl.c (qcopy_acl): Use it.
10973         Reported by Patrick M. Callahan.
10974
10975 2010-08-10  Eric Blake  <eblake@redhat.com>
10976
10977         open, chown: relax license
10978         * modules/open (License): Change to LGPLv2+, with consent by all
10979         authors, for use in augeas.
10980         * modules/chown (License): Likewise.
10981         * modules/lchown (Likewise): Likewise.
10982         Requested by Adam Stokes.
10983
10984 2010-08-09  Karl Berry  <karl@gnu.org>
10985
10986         * build-aux/ar-lib: new file, import from Automake.
10987         * config/srclist.txt: autocheck for updates.
10988
10989 2010-08-09  Eric Blake  <eblake@redhat.com>
10990
10991         readlinkat: adjust client modules
10992         * modules/areadlinkat (Depends-on): Use readlinkat, not
10993         symlinkat.
10994         * modules/areadlinkat-with-size (Depends-on): Likewise.
10995
10996         mknod: be more vocal about danger of running tests as root
10997         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10998         root, since that is just asking for problems.
10999         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11000
11001         readlinkat: split into its own module
11002         * modules/symlinkat: Split readlinkat...
11003         * modules/readlinkat: ...into separate module.
11004         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11005         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11006         * lib/symlinkat.c (readlinkat): Move...
11007         * lib/readlinkat.c: ...into new file.
11008         * modules/symlinkat-tests: Split readlinkat test...
11009         * modules/readlinkat-tests: ...into separate module.
11010         * tests/test-symlinkat.c: Split...
11011         * tests/test-readlinkat.c: ...into new file.
11012         * NEWS: Document the split.
11013         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11014         * lib/unistd.in.h (readlinkat): Likewise.
11015         Suggested by Bruno Haible.
11016
11017 2010-08-08  Bruno Haible  <bruno@clisp.org>
11018
11019         memxfrm: Speed up.
11020         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11021         that usually only one call to strxfrm is necessary for each string
11022         part.
11023         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11024
11025 2010-08-07  Karl Berry  <karl@gnu.org>
11026
11027         * doc/posix-headers/limits.texi,
11028         * doc/posix-functions/malloc.texi,
11029         * doc/posix-functions/strsignal.texi: missing @item.
11030         * doc/ld-version-script.texi: spurious leading i.
11031         * doc/regex.texi (Interval Operators): no commas inside @var.
11032
11033 2010-08-01  Bruno Haible  <bruno@clisp.org>
11034
11035         Integrate the regex documentation.
11036         * doc/gnulib.texi: Define 'cn' index.
11037         (Regular expressions): New a chapter that includes regex.texi and
11038         regexprops-generic.texi.
11039         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11040         syntax.
11041
11042         Whitespace cleanup.
11043         * doc/regex.texi: Remove trailing spaces.
11044
11045         Add regex documentation.
11046         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11047         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11048         Written by Kathy A. Hargreaves and Karl Berry.
11049
11050 2010-08-01  Bruno Haible  <bruno@clisp.org>
11051
11052         link: Update documentation.
11053         * doc/posix-functions/link.texi: Update regarding Solaris.
11054
11055 2010-07-31  Bruno Haible  <bruno@clisp.org>
11056
11057         Update modules list.
11058         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11059         (String handling <string.h>): Add memcmp2, memxfrm.
11060         (Container data structures): Add xlist, xsublist, xoset.
11061         (Core language properties): Add alignof, unused-parameter.
11062         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11063         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11064         (Unibyte characters <ctype.h>): New section.
11065         (String handling <string.h>): New section.
11066         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11067         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11068         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11069         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11070         tan, tanh, tanl, y0, y1, yn.
11071         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11072         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11073         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11074         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11075         unlockpt, vdprintf, vdprintf-posix.
11076         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11077         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11078         xconcat-filename.
11079         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11080         getdtablesize, pipe2, pipe2-safer.
11081         (Security): New section.
11082         (Networking functions): Add accept4.
11083         (Signal handling): Add sigpipe.
11084         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11085         mbmemcasecoll.
11086         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11087         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11088         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11089         pipe-filter-ii.
11090         (Misc): Add argp-version-etc, login_tty, parse-duration.
11091
11092 2010-07-31  Bruno Haible  <bruno@clisp.org>
11093
11094         Improve doc in MODULES.html.
11095         * modules/linkat (Description): Add the word "function".
11096         * modules/mkfifo (Description): Likewise.
11097         * modules/mknod (Description): Likewise.
11098         * modules/remove (Description): Likewise.
11099         * modules/renameat (Description): Likewise.
11100         * modules/stat (Description): Likewise.
11101         * modules/symlink (Description): Likewise.
11102         * modules/unlink (Description): Likewise.
11103
11104 2010-07-31  Bruno Haible  <bruno@clisp.org>
11105
11106         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11107         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11108         option --enable/disable-c++ instead of --enable/disable-cxx.
11109         * NEWS: Mention the change.
11110
11111 2010-07-31  Bruno Haible  <bruno@clisp.org>
11112
11113         readlink, areadlink: Relax test a bit.
11114         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11115         alternative to ENOTDIR.
11116         * tests/test-areadlink.h (test_areadlink): Likewise.
11117         Reported by Rainer Tammer.
11118
11119 2010-07-31  Bruno Haible  <bruno@clisp.org>
11120
11121         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11122         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11123         character, perform the search using U_STRCHR.
11124         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11125         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11126         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11127         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11128         Suggested by Paolo Bonzini.
11129
11130 2010-07-31  Bruno Haible  <bruno@clisp.org>
11131
11132         unistr/u*-strstr: Fix dependencies.
11133         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11134         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11135         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11136
11137 2010-07-31  Bruno Haible  <bruno@clisp.org>
11138
11139         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11140         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11141         the beginning of the loop.
11142         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11143         cases in 'switch' statement.
11144
11145         unistr/u8-strchr: Fix several bugs.
11146         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11147         the string. When not found, return NULL, not a pointer near the end.
11148
11149         More tests for unistr/u8-strchr.
11150         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11151         that the function does not read past the first occurrence of the byte
11152         being searched.
11153         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11154         * tests/unistr/test-u16-strchr.c (main): New function.
11155         * tests/unistr/test-u32-strchr.c (main): New function.
11156
11157 2010-07-31  Bruno Haible  <bruno@clisp.org>
11158
11159         posix-modules: Ignore backup files of documentation files.
11160         * posix-modules: grep only through files named *.texi.
11161
11162 2010-07-31  Bruno Haible  <bruno@clisp.org>
11163
11164         symlinkat: Fix documentation.
11165         * doc/posix-functions/readlinkat.texi: Fix module name.
11166
11167 2010-07-31  Bruno Haible  <bruno@clisp.org>
11168
11169         fchownat: Replace also when chown has the trailing slash bug.
11170         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11171         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11172         introduced on 2010-04-10.
11173         Reported by Rainer Tammer.
11174
11175 2010-07-31  Bruno Haible  <bruno@clisp.org>
11176
11177         linkat: Work around AIX 7.1 bug.
11178         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11179         whether linkat handles trailing slash correctly. If not, replace linkat
11180         and define LINKAT_TRAILING_SLASH_BUG.
11181         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11182         check whether (fd1,file1) points to a directory if file1 or file2 ends
11183         in a slash. Code taken from lib/link.c.
11184         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11185         Reported by Rainer Tammer.
11186
11187 2010-07-31  Bruno Haible  <bruno@clisp.org>
11188
11189         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11190         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11191         This disables an xlc optimization that was causing wrong test results.
11192         Reported by Rainer Tammer.
11193
11194 2010-07-31  Bruno Haible  <bruno@clisp.org>
11195
11196         iconv: Work around AIX 6.1..7.1 bug.
11197         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11198         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11199         cross-compiling, guess no on all versions of AIX.
11200         Reported by Rainer Tammer.
11201
11202 2010-07-31  Bruno Haible  <bruno@clisp.org>
11203
11204         readlink: Relax test a bit.
11205         * tests/test-readlink.h (test_readlink): Allow different errno value
11206         when readlink is called with a file name that ends in / and refers to
11207         a file.
11208         Suggested by Eric Blake.
11209         Reported by Rainer Tammer.
11210
11211 2010-07-31  Bruno Haible  <bruno@clisp.org>
11212
11213         copysign: Does not require -lm on glibc systems.
11214         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11215         gl_COMMON_DOUBLE_MATHFUNC.
11216         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11217
11218 2010-07-31  Bruno Haible  <bruno@clisp.org>
11219
11220         duplocale: Work around AIX 7.1 bug.
11221         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11222         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11223         * lib/duplocale.c (rpl_duplocale): Update comment.
11224         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11225         Reported by Rainer Tammer.
11226
11227 2010-07-30  Bruno Haible  <bruno@clisp.org>
11228
11229         dirfd: Avoid link error on AIX 7.1.
11230         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11231         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11232         exist, set REPLACE_DIRFD.
11233         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11234         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11235         * doc/posix-functions/dirfd.texi: Update.
11236         Reported by Rainer Tammer.
11237
11238 2010-07-30  Eric Blake  <eblake@redhat.com>
11239
11240         strtod: next round of AIX fixes
11241         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11242         exponent.
11243         * tests/test-strtod.c (main): Enhance tests.
11244         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11245         Reported by Rainer Tammer.
11246
11247         futimens: fix configure check
11248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11249         Reported by Bruno Haible.
11250
11251 2010-07-30  Bruno Haible  <bruno@clisp.org>
11252
11253         getline: Update regarding AIX.
11254         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11255         Reported by Rainer Tammer.
11256
11257 2010-07-30  Bruno Haible  <bruno@clisp.org>
11258
11259         wcwidth: Drop replacement on AIX 7.
11260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11261         AIX 7.
11262         Reported by Rainer Tammer.
11263
11264 2010-07-30  Bruno Haible  <bruno@clisp.org>
11265
11266         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11267         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11268         a 'char *'.
11269         Reported by Rainer Tammer.
11270
11271 2010-07-30  Bruno Haible  <bruno@clisp.org>
11272
11273         unlink: Update regarding AIX.
11274         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11275         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11276         Reported by Rainer Tammer.
11277
11278 2010-07-30  Bruno Haible  <bruno@clisp.org>
11279
11280         symlink: Update regarding AIX.
11281         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11282         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11283         Reported by Rainer Tammer.
11284
11285 2010-07-30  Bruno Haible  <bruno@clisp.org>
11286
11287         strndup: Update regarding AIX.
11288         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11289         AIX 7.
11290         Reported by Rainer Tammer.
11291
11292 2010-07-30  Bruno Haible  <bruno@clisp.org>
11293
11294         stat: Update regarding AIX.
11295         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11296         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11297         Reported by Rainer Tammer.
11298
11299 2010-07-30  Bruno Haible  <bruno@clisp.org>
11300
11301         truncl: Fix autoconf test.
11302         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11303         whether truncl works.
11304         Reported by Rainer Tammer.
11305
11306 2010-07-30  Bruno Haible  <bruno@clisp.org>
11307
11308         round: Update regarding AIX.
11309         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11310         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11311         Reported by Rainer Tammer.
11312
11313 2010-07-30  Bruno Haible  <bruno@clisp.org>
11314
11315         rename: Update regarding AIX.
11316         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11317         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11318         Reported by Rainer Tammer.
11319
11320 2010-07-30  Bruno Haible  <bruno@clisp.org>
11321
11322         printf.m4: Update regarding AIX.
11323         * m4/printf.m4: Update comments regarding AIX.
11324         Reported by Rainer Tammer.
11325
11326 2010-07-30  Bruno Haible  <bruno@clisp.org>
11327
11328         iconv: Update regarding AIX.
11329         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11330         AIX 7.
11331         Reported by Rainer Tammer.
11332
11333 2010-07-30  Bruno Haible  <bruno@clisp.org>
11334
11335         getopt: Update regarding AIX.
11336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11337         no on AIX.
11338         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11339         Reported by Rainer Tammer.
11340
11341 2010-07-30  Bruno Haible  <bruno@clisp.org>
11342
11343         ldexpl; Update regarding AIX.
11344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11345         on AIX 7.
11346         Reported by Rainer Tammer.
11347
11348 2010-07-30  Bruno Haible  <bruno@clisp.org>
11349
11350         frexpl: Update regarding AIX.
11351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11352         on AIX 7.
11353         Reported by Rainer Tammer.
11354
11355 2010-07-30  Bruno Haible  <bruno@clisp.org>
11356
11357         open, fopen: Update regarding AIX.
11358         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11359         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11360         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11361         * doc/posix-functions/fopen.texi: Likewise.
11362         Reported by Rainer Tammer.
11363
11364 2010-07-30  Bruno Haible  <bruno@clisp.org>
11365
11366         chown: Update doc regarding AIX.
11367         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11368         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11369         Reported by Rainer Tammer.
11370
11371 2010-07-30  Eric Blake  <eblake@redhat.com>
11372
11373         strtod: fix bug in replacement function on AIX
11374         * lib/strtod.c (strtod): Special case broken "0x" parse in
11375         underlying strtod.
11376         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11377         * doc/posix-functions/strtod.texi (strtod): Likewise.
11378         Reported by Rainer Tammer.
11379
11380 2010-07-30  Bruno Haible  <bruno@clisp.org>
11381
11382         mbrlen: Fix cross-compilation guess for AIX.
11383         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11384         guess. Leftover from 2008-12-22.
11385
11386 2010-07-30  Bruno Haible  <bruno@clisp.org>
11387
11388         mbrtowc: Fix cross-compilation guess for AIX.
11389         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11390         guess. Leftover from 2008-12-21.
11391
11392 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11393
11394         init.sh: work around trap limitation of some shells
11395         * tests/init.sh (setup_): Move exit trap outside of shell function.
11396
11397 2010-07-29  Eric Blake  <eblake@redhat.com>
11398
11399         strtod: aid debugging
11400         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11401         understanding why strtod is rejected.
11402
11403 2010-07-28  Bruno Haible  <bruno@clisp.org>
11404
11405         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11406         * lib/unistr/u8-chr.c: Include <string.h>.
11407         * tests/unistr/test-u8-chr.c: Likewise.
11408         * tests/unistr/test-u16-chr.c: Likewise.
11409         * tests/unistr/test-u32-chr.c: Likewise.
11410         * tests/unistr/test-u8-strchr.c: Likewise.
11411         * tests/unistr/test-u16-strchr.c: Likewise.
11412         * tests/unistr/test-u32-strchr.c: Likewise.
11413         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11414         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11415         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11416         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11417
11418 2010-07-28  Bruno Haible  <bruno@clisp.org>
11419
11420         Use spaces for indentation, not tabs.
11421         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11422
11423 2010-07-27  Bruno Haible  <bruno@clisp.org>
11424
11425         mbspcasecmp: Fix function specification.
11426         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11427         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11428         Reported by Eric Blake <eblake@redhat.com>.
11429
11430 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11431
11432         timespec: use cast and not conditional, as truncation isn't possible
11433         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11434         instead of a conditional.  Comment about the situation in more detail.
11435         This undoes most of the 2009-10-29 patch.
11436
11437 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11438
11439         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11440         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11441         * lib/unistr/u8-strchr.c: Likewise.
11442         * modules/unistr/u8-chr: Depend on memchr.
11443
11444         unistr/u*-strchr: add tests
11445         * modules/unistr/u8-strchr-tests: New file.
11446         * modules/unistr/u16-strchr-tests: New file.
11447         * modules/unistr/u32-strchr-tests: New file.
11448         * tests/unistr/test-strchr.h: New file.
11449         * tests/unistr/test-u8-strchr.c: New file.
11450         * tests/unistr/test-u16-strchr.c: New file.
11451         * tests/unistr/test-u32-strchr.c: New file.
11452
11453         unistr/u*-chr: test multibyte sequences more
11454         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11455         test vector.
11456         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11457         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11458         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11459
11460         unistr/u*-chr: test multibyte sequences
11461         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11462
11463         unistr/u*-chr: prepare for multibyte tests
11464         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11465         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11466         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11467         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11468         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11469         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11470
11471 2010-07-18  Bruno Haible  <bruno@clisp.org>
11472
11473         unistr/u8-strchr: Optimize non-ASCII argument case.
11474         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11475         because the first byte often matches anyway.
11476         Reported by Pádraig Brady <P@draigbrady.com>.
11477
11478 2010-07-15  Karl Berry  <karl@gnu.org>
11479
11480         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11481
11482 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11483
11484         getcwd: on Solaris, work better if ancestors are inaccessible
11485         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11486         buffer and size, try again with a large buffer.  This works better
11487         on Solaris, since its getcwd succeeds even if the path to the root
11488         is inaccessible, and this is helpful in common cases such as .zfs
11489         hidden directories.  Problem reported by J Chapman Flack in
11490         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11491         Use system getcwd if it's declared, not merely if it's partly
11492         working; use the partly-working test only to avoid needless effort
11493         if the system getcwd fails.
11494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11495         comment that was already obsolete and is now even more obsolete.
11496         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11497         now might call strdup.
11498
11499 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11500
11501         pthread: Add enough so that coreutils/src/sort.c compiles.
11502         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11503         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11504         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11505         Include <sys/types.h>, in case it defines pthread_t.
11506         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11507         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11508         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11509         (pthread_rwlockattr_t, pthread_spinlock_t):
11510         New typedefs, if HAVE_PTHREAD_T is not defined.
11511         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11512         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11513         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11514         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11515         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11516         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11517         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11518         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11519         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11520         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11521         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11522         New macros.
11523         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11524         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11525         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11526         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11527         (pthread_spin_unlock): New dummy functions.
11528         (pthread_create): Return EAGAIN; don't set errno.
11529         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11530         require AC_C_INLINE.
11531         * modules/pthread (Depends-on): Add sched, time.
11532         (pthread.h): Use AM_V_GEN.
11533
11534 2010-07-13  Bruno Haible  <bruno@clisp.org>
11535
11536         striconveh: Don't malloc memory if the result buffer is sufficient.
11537         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11538         buffer if its size is sufficient.
11539         Reported by Ludovic Courtès <ludo@gnu.org>.
11540
11541 2010-07-13  Bruno Haible  <bruno@clisp.org>
11542
11543         strtod: Add safety check.
11544         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11545
11546 2010-07-12  Bruno Haible  <bruno@clisp.org>
11547
11548         Unify tests that set gl_cv_func_ldexpl_no_libm.
11549         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11550         gl_FUNC_LDEXPL.
11551         (gl_FUNC_LDEXPL): Invoke it.
11552         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11553
11554 2010-07-12  Bruno Haible  <bruno@clisp.org>
11555
11556         Unify tests that set gl_cv_func_ldexp_no_libm.
11557         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11558         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11559         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11560         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11561         * modules/strtod (Files): Add m4/ldexp.m4.
11562
11563 2010-07-12  Bruno Haible  <bruno@clisp.org>
11564
11565         Unify tests that set gl_cv_func_frexpl_no_libm.
11566         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11567         gl_FUNC_FREXPL_NO_LIBM.
11568         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11570
11571 2010-07-12  Bruno Haible  <bruno@clisp.org>
11572
11573         Unify tests that set gl_cv_func_frexp_no_libm.
11574         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11575         gl_FUNC_FREXP_NO_LIBM.
11576         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11577         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11578
11579 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11580
11581         memcoll: clarify sizes versus lengths, document better, and tweak perf
11582         * lib/memcoll.c (strcoll_loop, memcoll0):
11583         Improve quality of descriptive comments.  Name variables
11584         consistently as to whether they are lengths (which do not include
11585         terminating null) versus sizes (which do).
11586         * lib/xmemcoll.c (xmemcoll0): Likewise.
11587         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11588         returned when s1size == 0; this is easier to compile and saves
11589         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11590
11591 2010-07-12  Bruno Haible  <bruno@clisp.org>
11592
11593         Tests for module '_Exit'.
11594         * modules/_Exit-tests: New file.
11595         * tests/test-_Exit.sh: New file.
11596         * tests/test-_Exit.c: New file.
11597
11598         New module '_Exit'.
11599         * lib/stdlib.in.h (__attribute__): New macro.
11600         (_Exit): New declaration.
11601         * lib/_Exit.c: New file.
11602         * m4/_Exit.m4: New file.
11603         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11604         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11605         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11606         * modules/_Exit: New file.
11607         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11608         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11609
11610 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11611
11612         strtod: make it more-accurate typically, and don't require libm
11613         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11614         Include limits.h.  Don't include string.h.
11615         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11616         (locale_isspace): New function, so that no casts are needed to
11617         check whether *s is a space.
11618         (ldexp): Provide an unused dummy if not available.
11619         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11620         (strtod): Use them.  This implementation prefers to use the
11621         underlying strtod if available, falling back on our own code
11622         only to fix known bugs.  This is more likely to produce an
11623         accurate result.  Also, it avoids the use of libm functions.
11624         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11625         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11626         was absent, but it caused a test failure with coreutils.
11627         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11628         with libm.
11629         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11630         * modules/strtod-tests (Makefile.am): Likewise.
11631
11632 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11633             Bruno Haible  <bruno@clisp.org>
11634
11635         unistr/u8-strchr: Optimize ASCII argument case.
11636         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11637
11638 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11639
11640         (x)memcoll: minor tweaks
11641         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11642         is after the type that it qualifies.
11643         (memcoll0): Likewise.
11644         * lib/memcoll.h (memcoll0): Likewise.
11645         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11646         * lib/xmemcoll.h (xmemcoll0): Likewise.
11647         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11648         differs from memcoll in that the NUL byte is part of the argument.
11649         Omit the abort-checks, as performance is a real issue here.  Plus,
11650         the checks were wrong anyway (an off-by-one error).  Omit local
11651         variable 'diff', as it's a bit clearer that way.
11652         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11653         no longer needed.
11654
11655 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11656
11657         (x)memcoll: speedup when input is known to be NUL delimited
11658         * lib/memcoll.c: Include stdlib.
11659         (memcoll0): New function.
11660         (strcoll_loop): New function, refactored for use in both memcoll
11661         and memcoll0.
11662         * lib/memcoll.h (memcoll0): Add prototype.
11663         * lib/xmemcoll.c (xmemcoll0): New function.
11664         (collate_error): New function, refactored for use in both xmemcoll
11665         and xmemcoll0.
11666         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11667         * m4/memcoll.m4: add inline invocation.
11668
11669 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11670
11671         * build-aux/bootstrap: Remove any local translations
11672         from the translation project synchronization directory,
11673         so that local only translations are not distributed.
11674
11675 2010-07-04  Bruno Haible  <bruno@clisp.org>
11676
11677         fsusage: Clarify which code applies to which platforms.
11678         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11679         platform.
11680         * lib/fsusage.c (get_fs_usage): Likewise.
11681
11682 2010-07-04  Bruno Haible  <bruno@clisp.org>
11683
11684         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11685         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11686         Reported by Martin Lambers <marlam@marlam.de>.
11687
11688 2010-07-04  Jim Meyering  <meyering@redhat.com>
11689
11690         hash: once again explicitly disallow insertion of NULL
11691         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11692         inserting a NULL pointer cannot work with these functions.
11693         Add a comment with details.
11694         This reverts part of the 2010-07-01 commit, 5bef1a35
11695         "hash: extend module to deal with non-pointer keys".
11696
11697 2010-07-01  Bruno Haible  <bruno@clisp.org>
11698
11699         stdbool: Update doc.
11700         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11701         Info from Christian Weisgerber <naddy@mips.inka.de>.
11702
11703 2010-07-01  Jim Meyering  <meyering@redhat.com>
11704
11705         hash: extend module to deal with non-pointer keys
11706         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11707         but that allows insertion of non-pointer entries.
11708         Do not disallow an ENTRY value of NULL.
11709         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11710         * lib/hash.h (hash_insert0): Declare.
11711
11712 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11713
11714         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11715         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11716         not present (i.e. with autoconf 2.59 and when using gettextize, not
11717         gnulib), require AC_GNU_SOURCE instead.
11718
11719 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11720
11721         idpriv-drop: Fix tests.
11722         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11723         not to the test-idpriv-droptemp program.
11724
11725 2010-06-29  Bruno Haible  <bruno@clisp.org>
11726
11727         string: Fix syntax error with g++ 2.96.
11728         * lib/string.in.h (__pure__): Remove definition.
11729         (_GL_ATTRIBUTE_PURE): New macro.
11730         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11731         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11732         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11733
11734 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11735
11736         unitypes: Fix bug introduced on 2010-05-18.
11737         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11738
11739 2010-06-22  Eric Blake  <eblake@redhat.com>
11740
11741         memmem: slight optimization
11742         * lib/str-two-way.h (critical_factorization): Update comments.
11743         Reduce work during factorization phase.
11744         Reported by Carlos Bueno <carlos@bueno.org>.
11745
11746 2010-06-21  Bruno Haible  <bruno@clisp.org>
11747
11748         Fix HAVE_CALLOC_POSIX misnomer.
11749         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11750         !HAVE_CALLOC_POSIX.
11751         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11752         HAVE_CALLOC_POSIX.
11753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11754         instead of HAVE_CALLOC_POSIX.
11755         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11756         HAVE_CALLOC_POSIX.
11757
11758         Use modern idiom for calloc() replacement.
11759         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11760         AC_FUNC_CALLOC.
11761         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11762         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11763         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11764         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11765         (gl_REPLACE_CALLOC): New macro.
11766
11767 2010-06-21  Bruno Haible  <bruno@clisp.org>
11768
11769         Fix HAVE_REALLOC_POSIX misnomer.
11770         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11771         !HAVE_REALLOC_POSIX.
11772         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11773         HAVE_REALLOC_POSIX.
11774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11775         instead of HAVE_REALLOC_POSIX.
11776         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11777         HAVE_REALLOC_POSIX.
11778
11779         Use modern idiom for realloc() replacement.
11780         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11781         AC_FUNC_REALLOC.
11782         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11783         Autoconf's AC_FUNC_REALLOC.
11784         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11785         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11786         (gl_REPLACE_REALLOC): New macro.
11787         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11788
11789 2010-06-21  Bruno Haible  <bruno@clisp.org>
11790
11791         Fix HAVE_MALLOC_POSIX misnomer.
11792         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11793         !HAVE_MALLOC_POSIX.
11794         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11795         HAVE_MALLOC_POSIX.
11796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11797         instead of HAVE_MALLOC_POSIX.
11798         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11799         HAVE_MALLOC_POSIX.
11800
11801         Use modern idiom for malloc() replacement.
11802         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11803         AC_FUNC_MALLOC.
11804         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11805         Autoconf's AC_FUNC_MALLOC.
11806         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11807         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11808         (gl_REPLACE_MALLOC): New macro.
11809         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11810
11811 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11812
11813         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11814         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11815         This macro takes 3 arguments, not 4.
11816
11817 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11818
11819         ipv6: fix detection under mingw
11820         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11821         in6_addr.
11822
11823 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11824
11825         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11826         that strtod() works when cross-compiling to a glibc version known
11827         to work.
11828
11829 2010-06-15  Bruno Haible  <bruno@clisp.org>
11830
11831         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11832
11833 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11834
11835         select: Correct timeout.
11836         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11837
11838 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11839
11840         git-version-gen: init shell var to avoid env var influence
11841         * build-aux/git-version-gen (v): Init shell var to empty.
11842
11843 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11844
11845         priv-set: Don't assume that priv.h exists merely because getppriv does.
11846         See Jan Andersen's bug report about AIX 5L in
11847         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11848         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11849         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11850         * lib/priv-set.h: Likewise.
11851         * tests/test-priv-set.c: Likewise.
11852
11853 2010-06-13  Bruno Haible  <bruno@clisp.org>
11854
11855         relocatable: Make it easier to test whether to install wrappers.
11856         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11857         RELOCATABLE_VIA_WRAPPER.
11858
11859 2010-06-13  Bruno Haible  <bruno@clisp.org>
11860
11861         gnulib-tool: Display specified modules and dependencies differently.
11862         * gnulib-tool (func_show_module_list): New function.
11863         (func_import, func_create_testdir): Invoke it.
11864         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11865
11866 2010-06-13  Bruno Haible  <bruno@clisp.org>
11867
11868         gnulib-tool: Align code of func_import and func_create_testdir.
11869         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11870         specified_modules.
11871
11872 2010-06-12  Jim Meyering  <meyering@redhat.com>
11873
11874         test-inttostr: avoid spurious failure on Solaris 9
11875         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11876         to accept "%ju".  Reported by Bruno Haible.
11877
11878 2010-06-11  Jim Meyering  <meyering@redhat.com>
11879
11880         test-sys_socket: mark variables as used more readably
11881         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11882         as "used" explicitly via (void) statement casts.  This is more
11883         readable than using them in an artificial return expression.
11884         Suggestion from Bruno Haible.
11885
11886 2010-06-11  Bruno Haible  <bruno@clisp.org>
11887
11888         Avoid some more warnings from "gcc -Wwrite-strings".
11889         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11890         to 'const char *'.
11891         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11892         * tests/test-c-strcasestr.c (main): Likewise.
11893         * tests/test-mbscasestr1.c (main): Likewise.
11894         * tests/test-mbscasestr2.c (main): Likewise.
11895         * tests/test-memmem.c (main): Likewise.
11896         * tests/test-strstr.c (main): Likewise.
11897         * tests/test-strcasestr.c (main): Likewise.
11898
11899 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11900
11901         init.sh: change framework_failure_ to fail with status 99, not 1
11902         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11903         automake's parallel-tests rule that this is an unexpected failure,
11904         even if the test is listed in XFAIL_TESTS.
11905
11906 2010-06-11  Jim Meyering  <meyering@redhat.com>
11907
11908         test-inttostr: avoid warnings about 4-6KB literal strings
11909         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11910         Include "macros.h", for its definition of ASSERT.
11911         (CK): s/assert/ASSERT/
11912         * modules/inttostr-tests (Files): Add macros.h.
11913
11914         init.sh: don't use $ME_ or skip_ before they are defined
11915         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11916         their first uses.  Also hoist their companions: warn_, fail_,
11917         framework_failure_, $stderr_fileno.  Prompted by a patch from
11918         Stefano Lattarini.
11919
11920         test-sys_socket: avoid set-but-not-used warnings from gcc
11921         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11922         avoid warning about set-but-not-used variables.
11923
11924         test-xvasprintf: avoid 'const' discard warnings
11925         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11926         "const" when assigning from literal strings.
11927         (test_xasprintf): Add "void" in function argument list to placate
11928         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11929
11930         tests: avoid compilation warnings in argmatch and exclude tests...
11931         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11932         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11933         Since it always exits, declare with the "noreturn" attribute.
11934         * tests/test-argmatch.c: Likewise.
11935
11936         tests: avoid 'const' discard warnings in mbsstr tests
11937         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11938         * tests/test-mbsstr2.c (main): Likewise.
11939
11940         test-verify: avoid warning from gcc's -Wmissing-declarations
11941         * tests/test-verify.c (function): Declare to be static.
11942
11943         test-inttostr.c: include <string.h> for use of strcmp
11944         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11945
11946         test-linkat: avoid failed assertion on "other" architectures
11947         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11948         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11949         sparc: https://bugs.launchpad.net/bugs/591968
11950
11951 2010-06-11  Jim Meyering  <meyering@redhat.com>
11952
11953         printf.m4: avoid autoconf's "Expanded Before Required" warning
11954         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11955         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11956         autoconf warning.
11957
11958 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11959
11960         Replacement header templates are now named with ".in", not "_".
11961         * doc/gnulib-intro.texi: Correct.
11962
11963 2010-06-10  Jim Meyering  <meyering@redhat.com>
11964
11965         inttostr-tests: depend on snprintf, not snprintf-posix
11966         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11967         snprintf-posix, to avoid this aclocal failure:
11968           missing file gnulib-tests/vasnprintf.c
11969           configure.ac:45: error: expected source file, required through \
11970           AC_LIBSOURCES, not found
11971
11972 2010-06-10  Jim Meyering  <meyering@redhat.com>
11973
11974         inttostr: add a new function, inttostr, and tests
11975         The namesake function was not available.  The existence of the
11976         template file, inttostr.c makes its addition nontrivial.
11977         * lib/anytostr.c: Rename from inttostr.c.
11978         (anytostr): Rename from inttostr.
11979         * lib/inttostr.c: New file.
11980         * modules/inttostr (Files): Add anytostr.c.
11981         (Makefile.am): Set lib_SOURCES instead of ...
11982         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11983         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11984         * lib/offtostr.c: Likewise.
11985         * lib/uinttostr.c: Likewise.
11986         * lib/umaxtostr.c: Likewise.
11987         * modules/inttostr-tests: New file.
11988         * tests/test-inttostr.c: New file.  Test these functions.
11989
11990 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11991             Bruno Haible  <bruno@clisp.org>
11992
11993         Add "Extending Gnulib" chapter to manual.
11994         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11995         chapter.
11996         (Extending Gnulib): New chapter.
11997         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11998         chapter.
11999
12000 2010-06-09  Bruno Haible  <bruno@clisp.org>
12001
12002         Avoid relocwrapper link errors due to gnulib replacement functions.
12003         * lib/areadlink.c: Use the system's malloc, realloc functions.
12004         (areadlink): Set errno to ENOMEM explicitly.
12005         * modules/areadlink (Depends-on): Remove malloc-posix.
12006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12007
12008 2010-06-09  Bruno Haible  <bruno@clisp.org>
12009
12010         Avoid relocwrapper link errors due to gnulib replacement functions.
12011         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12012         * lib/malloca.c: Likewise.
12013         * lib/relocatable.c: Likewise.
12014         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12015         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12016         * lib/setenv.c: Use the system's malloc, realloc functions.
12017         * lib/strerror.c: Use the system's sprintf function.
12018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12019
12020 2010-06-04  Bruno Haible  <bruno@clisp.org>
12021
12022         Prefer documented low-level autoconf macro names.
12023         * m4/lib-link.m4: Use m4_translit instead of translit.
12024         * m4/environ.m4: Likewise.
12025         * m4/mathfunc.m4: Likewise.
12026         * m4/onceonly.m4: Likewise.
12027         * m4/stdint.m4: Likewise.
12028         Suggested by Eric Blake.
12029
12030 2010-06-04  Martin Lambers  <marlam@marlam.de>
12031             Bruno Haible  <bruno@clisp.org>
12032
12033         havelib: Allow library names with '+' characters.
12034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12035         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12036
12037 2010-06-09  Bruno Haible  <bruno@clisp.org>
12038
12039         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12040         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12041         realloc failed.
12042
12043 2010-06-08  Peter Simons  <simons@cryp.to>
12044
12045         maint.mk: make the news-check rule more configurable
12046         * top/maint.mk (news-check-lines-spec): New variable.
12047         (news-check): Use "sed -n 1,10p" in place of "head".
12048
12049 2010-06-07  Jim Meyering  <meyering@redhat.com>
12050
12051         do-release-commit-and-tag: fix typo in --help
12052         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12053
12054         regex: avoid new dead-code warning with gcc-4.6.0
12055         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12056         if-block containing a while-loop.  It's been unused for at least
12057         5 years.
12058
12059 2010-06-05  Bruno Haible  <bruno@clisp.org>
12060
12061         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12062         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12063
12064 2010-06-04  Bruno Haible  <bruno@clisp.org>
12065
12066         Update to GNU gettext 0.18.1.
12067         * modules/gettext (configure.ac): Require gettext infrastructure from
12068         version 0.18.1.
12069
12070 2010-06-03  Bruno Haible  <bruno@clisp.org>
12071
12072         Don't use AC_LIBOBJ with file names in subdirectories.
12073         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12074         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12075         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12076         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12077         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12078         gl_LIBUNISTRING_LIBSOURCE.
12079         (Makefile.am): Augment lib_SOURCES here, conditionally.
12080         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12081
12082 2010-06-03  Bruno Haible  <bruno@clisp.org>
12083
12084         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12085         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12086         expansion does not end with a newline.
12087         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12088         unnecessary newline.
12089
12090 2010-06-03  Bruno Haible  <bruno@clisp.org>
12091
12092         Reduce dependencies.
12093         * tests/test-quotearg.h: New file, extracted from
12094         tests/test-quotearg.c.
12095         * tests/test-quotearg-simple.c: New file, extracted from
12096         tests/test-quotearg.c.
12097         * tests/test-quotearg.c: Don't include <ctype.h>.
12098         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12099         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12100         use_quote_double_quotes, use_quotearg_colon): Moved to
12101         tests/test-quotearg.h.
12102         (results_g, flag_results, custom_quotes, custom_results): Moved
12103         to tests/test-quotearg-simple.c.
12104         (main): Moved the part that does not depend on gettext to
12105         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12106         performed.
12107         * modules/quotearg-simple: New file.
12108         * modules/quotearg-simple-tests: New file.
12109         * modules/quotearg (Depends-on): Add quotearg-simple.
12110         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12111         (Files): Add tests/test-quotearg.h.
12112         Reported by Paolo Bonzini.
12113
12114 2010-06-03  Bruno Haible  <bruno@clisp.org>
12115
12116         Reduce dependencies.
12117         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12118
12119 2010-06-03  Bruno Haible  <bruno@clisp.org>
12120
12121         time: Undefine more broken macros.
12122         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12123         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12124         Reported by Eric Blake.
12125
12126 2010-06-03  Bruno Haible  <bruno@clisp.org>
12127
12128         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12129         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12130         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12131         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12132         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12133         Reported by Ludovic Courtès <ludo@gnu.org>.
12134
12135 2010-06-02  Eric Blake  <eblake@redhat.com>
12136
12137         time: work with mingw + pthreads-win32 library
12138         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12139         if timespec is defined only in pthread.h.
12140         * modules/time (Makefile.am): Substitute it.
12141         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12142         <pthread.h>, when needed.
12143         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12144         from the library.
12145
12146 2010-05-31  Bruno Haible  <bruno@clisp.org>
12147
12148         Avoid expanding two macros in the wrong order.
12149         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12150         gl_LIBUNISTRING if it is defined.
12151         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12152         autoconf >= 2.64.
12153         Reported by Ludovic Courtès <ludo@gnu.org>.
12154
12155 2010-05-27  Jim Meyering  <meyering@redhat.com>
12156
12157         maint.mk: also prohibit "#undef" of always-defined symbols
12158         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12159         Allow more than one space before the symbol name.
12160         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12161         the regexp uses alternation.
12162
12163 2010-05-26  Eric Blake  <eblake@redhat.com>
12164
12165         maint.mk: avoid echo -e
12166         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12167         Convert all uses of echo -* to printf.
12168         Reported by Matthias Bolte.
12169
12170 2010-05-25  Bruno Haible  <bruno@clisp.org>
12171
12172         Update to GNU gettext 0.18, part 2.
12173         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12174         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12175
12176 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12177
12178         Add missing include in test-pwrite.c.
12179         * tests/test-pwrite.c: Include string.h, for strcmp.
12180
12181 2010-05-24  Bruno Haible  <bruno@clisp.org>
12182
12183         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12184
12185 2010-05-24  Bruno Haible  <bruno@clisp.org>
12186
12187         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12188         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12189         iconveh_error argument.
12190         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12191         U_STRCONV_TO_LOCALE.
12192         * lib/unistr/u16-strcoll.c: Likewise.
12193         * lib/unistr/u32-strcoll.c: Likewise.
12194         * modules/unistr/u8-strcoll (Depends-on): Add
12195         uniconv/u8-strconv-to-enc, localcharset. Remove
12196         uniconv/u8-strconv-to-locale.
12197         (configure.ac): Bump version number.
12198         * modules/unistr/u16-strcoll (Depends-on): Add
12199         uniconv/u16-strconv-to-enc, localcharset. Remove
12200         uniconv/u16-strconv-to-locale.
12201         (configure.ac): Bump version number.
12202         * modules/unistr/u32-strcoll (Depends-on): Add
12203         uniconv/u32-strconv-to-enc, localcharset. Remove
12204         uniconv/u32-strconv-to-locale.
12205         (configure.ac): Bump version number.
12206
12207 2010-05-24  Bruno Haible  <bruno@clisp.org>
12208
12209         Avoid a test failure on NetBSD 5.0.
12210         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12211         an iconv() bug.
12212
12213 2010-05-24  Bruno Haible  <bruno@clisp.org>
12214
12215         Adjust #include directive style.
12216         * modules/regex (Includes): Recommend to write <regex.h>.
12217
12218 2010-05-24  Bruno Haible  <bruno@clisp.org>
12219
12220         regex: Don't require alloca.
12221         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12222         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12223         only inside if (0).
12224
12225 2010-05-23  Jim Meyering  <meyering@redhat.com>
12226
12227         test-renameat.c: include <sys/stat.h>
12228         * tests/test-renameat.c: Include <sys/stat.h>; required for
12229         definition of S_IS* macros.
12230
12231 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12232
12233         Update maintainer documentation for 'relocatable-prog' module.
12234         * doc/relocatable-maint.texi: Update.
12235         Comments by Bruno Haible.
12236
12237 2010-05-23  Bruno Haible  <bruno@clisp.org>
12238
12239         git-merge-changelog: Enable --split-merged-entry by default.
12240         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12241         (usage): Don't mention this option any more.
12242         Reported by Ralf Wildenhues.
12243
12244 2010-05-23  Jim Meyering  <meyering@redhat.com>
12245
12246         test-pwrite: do not leave behind a test file named "out"
12247         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12248         The trivial-looking use of init.sh is really necessary.
12249         It ensures that the temporary file, "out", is created in
12250         a temporary directory, and removed upon termination.
12251         * tests/test-pwrite.sh: Re-add file.
12252         * modules/pwrite-tests: Reference it.
12253
12254 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12255
12256         Fix output redirection buglet in init.sh.
12257         * tests/init.sh: Fix redirection of stderr.
12258
12259 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12260
12261         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12262
12263 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12264
12265         * modules/valgrind-tests: New file.
12266         * m4/valgrind-tests.m4: New file.
12267         * doc/valgrind-tests.texi: New file.
12268         * doc/gnulib.texi (Running self-tests under valgrind): New
12269         section.
12270
12271 2010-05-19  Bruno Haible  <bruno@clisp.org>
12272
12273         Clean up dead code in recent commit.
12274         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12275         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12276         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12277         Suggested by Paolo Bonzini.
12278
12279 2010-05-19  Bruno Haible  <bruno@clisp.org>
12280
12281         Avoid valgrind error reports from libunistring.
12282         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12283         * modules/libunistring (Files): Add it.
12284         * modules/libunistring-optional (Files): Likewise.
12285
12286 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12287             Bruno Haible  <bruno@clisp.org>
12288
12289         New module 'libunistring-optional'.
12290         * modules/libunistring-optional: New file.
12291         * m4/libunistring-base.m4: New file.
12292         * m4/libunistring-optional.m4: New file.
12293         * lib/unicase.in.h: Renamed from lib/unicase.h.
12294         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12295         * lib/unictype.in.h: Renamed from lib/unictype.h.
12296         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12297         * lib/uniname.in.h: Renamed from lib/uniname.h.
12298         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12299         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12300         * lib/unistr.in.h: Renamed from lib/unistr.h.
12301         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12302         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12303         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12304         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12305         gl_LIBUNISTRING. If the library was found, determine the installed
12306         version and set LIBUNISTRING_VERSION.
12307         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12308         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12309         handle a configuration option --with-included-libunistring.
12310         * modules/libunistring (Files): Add m4/absolute-header.m4.
12311         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12312         Add m4/libunistring-base.m4.
12313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12314         (Makefile.am): Build unicase.h from unicase.in.h.
12315         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12316         Add m4/libunistring-base.m4.
12317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12318         (Makefile.am): Build uniconv.h from uniconv.in.h.
12319         * modules/unictype/base (Files): Use unictype.in.h instead of
12320         unictype.h. Add m4/libunistring-base.m4.
12321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12322         (Makefile.am): Build unictype.h from unictype.in.h.
12323         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12324         Add m4/libunistring-base.m4.
12325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12326         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12327         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12328         Add m4/libunistring-base.m4.
12329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12330         (Makefile.am): Build uniname.h from uniname.in.h.
12331         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12332         Add m4/libunistring-base.m4.
12333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12334         (Makefile.am): Build uninorm.h from uninorm.in.h.
12335         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12336         unistdio.h. Add m4/libunistring-base.m4.
12337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12338         (Makefile.am): Build unistdio.h from unistdio.in.h.
12339         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12340         Add m4/libunistring-base.m4.
12341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12342         (Makefile.am): Build unistr.h from unistr.in.h.
12343         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12344         Add m4/libunistring-base.m4.
12345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12346         (Makefile.am): Build unitypes.h from unitypes.in.h.
12347         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12348         Add m4/libunistring-base.m4.
12349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12350         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12351         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12352         uniwidth.h. Add m4/libunistring-base.m4.
12353         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12354         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12355         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12356         instead of augmenting lib_SOURCES.
12357         * modules/unicase/empty-suffix-context: Likewise.
12358         * modules/unicase/locale-language: Likewise.
12359         * modules/unicase/tolower: Likewise.
12360         * modules/unicase/totitle: Likewise.
12361         * modules/unicase/toupper: Likewise.
12362         * modules/unicase/u8-casecmp: Likewise.
12363         * modules/unicase/u8-casecoll: Likewise.
12364         * modules/unicase/u8-casefold: Likewise.
12365         * modules/unicase/u8-casexfrm: Likewise.
12366         * modules/unicase/u8-ct-casefold: Likewise.
12367         * modules/unicase/u8-ct-tolower: Likewise.
12368         * modules/unicase/u8-ct-totitle: Likewise.
12369         * modules/unicase/u8-ct-toupper: Likewise.
12370         * modules/unicase/u8-is-cased: Likewise.
12371         * modules/unicase/u8-is-casefolded: Likewise.
12372         * modules/unicase/u8-is-lowercase: Likewise.
12373         * modules/unicase/u8-is-titlecase: Likewise.
12374         * modules/unicase/u8-is-uppercase: Likewise.
12375         * modules/unicase/u8-prefix-context: Likewise.
12376         * modules/unicase/u8-suffix-context: Likewise.
12377         * modules/unicase/u8-tolower: Likewise.
12378         * modules/unicase/u8-totitle: Likewise.
12379         * modules/unicase/u8-toupper: Likewise.
12380         * modules/unicase/u16-casecmp: Likewise.
12381         * modules/unicase/u16-casecoll: Likewise.
12382         * modules/unicase/u16-casefold: Likewise.
12383         * modules/unicase/u16-casexfrm: Likewise.
12384         * modules/unicase/u16-ct-casefold: Likewise.
12385         * modules/unicase/u16-ct-tolower: Likewise.
12386         * modules/unicase/u16-ct-totitle: Likewise.
12387         * modules/unicase/u16-ct-toupper: Likewise.
12388         * modules/unicase/u16-is-cased: Likewise.
12389         * modules/unicase/u16-is-casefolded: Likewise.
12390         * modules/unicase/u16-is-lowercase: Likewise.
12391         * modules/unicase/u16-is-titlecase: Likewise.
12392         * modules/unicase/u16-is-uppercase: Likewise.
12393         * modules/unicase/u16-prefix-context: Likewise.
12394         * modules/unicase/u16-suffix-context: Likewise.
12395         * modules/unicase/u16-tolower: Likewise.
12396         * modules/unicase/u16-totitle: Likewise.
12397         * modules/unicase/u16-toupper: Likewise.
12398         * modules/unicase/u32-casecmp: Likewise.
12399         * modules/unicase/u32-casecoll: Likewise.
12400         * modules/unicase/u32-casefold: Likewise.
12401         * modules/unicase/u32-casexfrm: Likewise.
12402         * modules/unicase/u32-ct-casefold: Likewise.
12403         * modules/unicase/u32-ct-tolower: Likewise.
12404         * modules/unicase/u32-ct-totitle: Likewise.
12405         * modules/unicase/u32-ct-toupper: Likewise.
12406         * modules/unicase/u32-is-cased: Likewise.
12407         * modules/unicase/u32-is-casefolded: Likewise.
12408         * modules/unicase/u32-is-lowercase: Likewise.
12409         * modules/unicase/u32-is-titlecase: Likewise.
12410         * modules/unicase/u32-is-uppercase: Likewise.
12411         * modules/unicase/u32-prefix-context: Likewise.
12412         * modules/unicase/u32-suffix-context: Likewise.
12413         * modules/unicase/u32-tolower: Likewise.
12414         * modules/unicase/u32-totitle: Likewise.
12415         * modules/unicase/u32-toupper: Likewise.
12416         * modules/unicase/ulc-casecmp: Likewise.
12417         * modules/unicase/ulc-casecoll: Likewise.
12418         * modules/unicase/ulc-casexfrm: Likewise.
12419         * modules/uniconv/u8-conv-from-enc: Likewise.
12420         * modules/uniconv/u8-conv-to-enc: Likewise.
12421         * modules/uniconv/u8-strconv-from-enc: Likewise.
12422         * modules/uniconv/u8-strconv-from-locale: Likewise.
12423         * modules/uniconv/u8-strconv-to-enc: Likewise.
12424         * modules/uniconv/u8-strconv-to-locale: Likewise.
12425         * modules/uniconv/u16-conv-from-enc: Likewise.
12426         * modules/uniconv/u16-conv-to-enc: Likewise.
12427         * modules/uniconv/u16-strconv-from-enc: Likewise.
12428         * modules/uniconv/u16-strconv-from-locale: Likewise.
12429         * modules/uniconv/u16-strconv-to-enc: Likewise.
12430         * modules/uniconv/u16-strconv-to-locale: Likewise.
12431         * modules/uniconv/u32-conv-from-enc: Likewise.
12432         * modules/uniconv/u32-conv-to-enc: Likewise.
12433         * modules/uniconv/u32-strconv-from-enc: Likewise.
12434         * modules/uniconv/u32-strconv-from-locale: Likewise.
12435         * modules/uniconv/u32-strconv-to-enc: Likewise.
12436         * modules/uniconv/u32-strconv-to-locale: Likewise.
12437         * modules/unictype/bidicategory-byname: Likewise.
12438         * modules/unictype/bidicategory-name: Likewise.
12439         * modules/unictype/bidicategory-of: Likewise.
12440         * modules/unictype/bidicategory-test: Likewise.
12441         * modules/unictype/block-list: Likewise.
12442         * modules/unictype/block-test: Likewise.
12443         * modules/unictype/category-C: Likewise.
12444         * modules/unictype/category-Cc: Likewise.
12445         * modules/unictype/category-Cf: Likewise.
12446         * modules/unictype/category-Cn: Likewise.
12447         * modules/unictype/category-Co: Likewise.
12448         * modules/unictype/category-Cs: Likewise.
12449         * modules/unictype/category-L: Likewise.
12450         * modules/unictype/category-Ll: Likewise.
12451         * modules/unictype/category-Lm: Likewise.
12452         * modules/unictype/category-Lo: Likewise.
12453         * modules/unictype/category-Lt: Likewise.
12454         * modules/unictype/category-Lu: Likewise.
12455         * modules/unictype/category-M: Likewise.
12456         * modules/unictype/category-Mc: Likewise.
12457         * modules/unictype/category-Me: Likewise.
12458         * modules/unictype/category-Mn: Likewise.
12459         * modules/unictype/category-N: Likewise.
12460         * modules/unictype/category-Nd: Likewise.
12461         * modules/unictype/category-Nl: Likewise.
12462         * modules/unictype/category-No: Likewise.
12463         * modules/unictype/category-P: Likewise.
12464         * modules/unictype/category-Pc: Likewise.
12465         * modules/unictype/category-Pd: Likewise.
12466         * modules/unictype/category-Pe: Likewise.
12467         * modules/unictype/category-Pf: Likewise.
12468         * modules/unictype/category-Pi: Likewise.
12469         * modules/unictype/category-Po: Likewise.
12470         * modules/unictype/category-Ps: Likewise.
12471         * modules/unictype/category-S: Likewise.
12472         * modules/unictype/category-Sc: Likewise.
12473         * modules/unictype/category-Sk: Likewise.
12474         * modules/unictype/category-Sm: Likewise.
12475         * modules/unictype/category-So: Likewise.
12476         * modules/unictype/category-Z: Likewise.
12477         * modules/unictype/category-Zl: Likewise.
12478         * modules/unictype/category-Zp: Likewise.
12479         * modules/unictype/category-Zs: Likewise.
12480         * modules/unictype/category-and: Likewise.
12481         * modules/unictype/category-and-not: Likewise.
12482         * modules/unictype/category-byname: Likewise.
12483         * modules/unictype/category-name: Likewise.
12484         * modules/unictype/category-none: Likewise.
12485         * modules/unictype/category-of: Likewise.
12486         * modules/unictype/category-or: Likewise.
12487         * modules/unictype/category-test: Likewise.
12488         * modules/unictype/combining-class: Likewise.
12489         * modules/unictype/ctype-alnum: Likewise.
12490         * modules/unictype/ctype-alpha: Likewise.
12491         * modules/unictype/ctype-blank: Likewise.
12492         * modules/unictype/ctype-cntrl: Likewise.
12493         * modules/unictype/ctype-digit: Likewise.
12494         * modules/unictype/ctype-graph: Likewise.
12495         * modules/unictype/ctype-lower: Likewise.
12496         * modules/unictype/ctype-print: Likewise.
12497         * modules/unictype/ctype-punct: Likewise.
12498         * modules/unictype/ctype-space: Likewise.
12499         * modules/unictype/ctype-upper: Likewise.
12500         * modules/unictype/ctype-xdigit: Likewise.
12501         * modules/unictype/decimal-digit: Likewise.
12502         * modules/unictype/digit: Likewise.
12503         * modules/unictype/mirror: Likewise.
12504         * modules/unictype/numeric: Likewise.
12505         * modules/unictype/property-alphabetic: Likewise.
12506         * modules/unictype/property-ascii-hex-digit: Likewise.
12507         * modules/unictype/property-bidi-arabic-digit: Likewise.
12508         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12509         * modules/unictype/property-bidi-block-separator: Likewise.
12510         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12511         * modules/unictype/property-bidi-common-separator: Likewise.
12512         * modules/unictype/property-bidi-control: Likewise.
12513         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12514         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12515         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12516         * modules/unictype/property-bidi-european-digit: Likewise.
12517         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12518         * modules/unictype/property-bidi-left-to-right: Likewise.
12519         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12520         * modules/unictype/property-bidi-other-neutral: Likewise.
12521         * modules/unictype/property-bidi-pdf: Likewise.
12522         * modules/unictype/property-bidi-segment-separator: Likewise.
12523         * modules/unictype/property-bidi-whitespace: Likewise.
12524         * modules/unictype/property-byname: Likewise.
12525         * modules/unictype/property-combining: Likewise.
12526         * modules/unictype/property-composite: Likewise.
12527         * modules/unictype/property-currency-symbol: Likewise.
12528         * modules/unictype/property-dash: Likewise.
12529         * modules/unictype/property-decimal-digit: Likewise.
12530         * modules/unictype/property-default-ignorable-code-point: Likewise.
12531         * modules/unictype/property-deprecated: Likewise.
12532         * modules/unictype/property-diacritic: Likewise.
12533         * modules/unictype/property-extender: Likewise.
12534         * modules/unictype/property-format-control: Likewise.
12535         * modules/unictype/property-grapheme-base: Likewise.
12536         * modules/unictype/property-grapheme-extend: Likewise.
12537         * modules/unictype/property-grapheme-link: Likewise.
12538         * modules/unictype/property-hex-digit: Likewise.
12539         * modules/unictype/property-hyphen: Likewise.
12540         * modules/unictype/property-id-continue: Likewise.
12541         * modules/unictype/property-id-start: Likewise.
12542         * modules/unictype/property-ideographic: Likewise.
12543         * modules/unictype/property-ids-binary-operator: Likewise.
12544         * modules/unictype/property-ids-trinary-operator: Likewise.
12545         * modules/unictype/property-ignorable-control: Likewise.
12546         * modules/unictype/property-iso-control: Likewise.
12547         * modules/unictype/property-join-control: Likewise.
12548         * modules/unictype/property-left-of-pair: Likewise.
12549         * modules/unictype/property-line-separator: Likewise.
12550         * modules/unictype/property-logical-order-exception: Likewise.
12551         * modules/unictype/property-lowercase: Likewise.
12552         * modules/unictype/property-math: Likewise.
12553         * modules/unictype/property-non-break: Likewise.
12554         * modules/unictype/property-not-a-character: Likewise.
12555         * modules/unictype/property-numeric: Likewise.
12556         * modules/unictype/property-other-alphabetic: Likewise.
12557         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12558         * modules/unictype/property-other-grapheme-extend: Likewise.
12559         * modules/unictype/property-other-id-continue: Likewise.
12560         * modules/unictype/property-other-id-start: Likewise.
12561         * modules/unictype/property-other-lowercase: Likewise.
12562         * modules/unictype/property-other-math: Likewise.
12563         * modules/unictype/property-other-uppercase: Likewise.
12564         * modules/unictype/property-paired-punctuation: Likewise.
12565         * modules/unictype/property-paragraph-separator: Likewise.
12566         * modules/unictype/property-pattern-syntax: Likewise.
12567         * modules/unictype/property-pattern-white-space: Likewise.
12568         * modules/unictype/property-private-use: Likewise.
12569         * modules/unictype/property-punctuation: Likewise.
12570         * modules/unictype/property-quotation-mark: Likewise.
12571         * modules/unictype/property-radical: Likewise.
12572         * modules/unictype/property-sentence-terminal: Likewise.
12573         * modules/unictype/property-soft-dotted: Likewise.
12574         * modules/unictype/property-space: Likewise.
12575         * modules/unictype/property-terminal-punctuation: Likewise.
12576         * modules/unictype/property-test: Likewise.
12577         * modules/unictype/property-titlecase: Likewise.
12578         * modules/unictype/property-unassigned-code-value: Likewise.
12579         * modules/unictype/property-unified-ideograph: Likewise.
12580         * modules/unictype/property-uppercase: Likewise.
12581         * modules/unictype/property-variation-selector: Likewise.
12582         * modules/unictype/property-white-space: Likewise.
12583         * modules/unictype/property-xid-continue: Likewise.
12584         * modules/unictype/property-xid-start: Likewise.
12585         * modules/unictype/property-zero-width: Likewise.
12586         * modules/unictype/scripts: Likewise.
12587         * modules/unictype/syntax-c-ident: Likewise.
12588         * modules/unictype/syntax-c-whitespace: Likewise.
12589         * modules/unictype/syntax-java-ident: Likewise.
12590         * modules/unictype/syntax-java-whitespace: Likewise.
12591         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12592         * modules/unilbrk/u8-width-linebreaks: Likewise.
12593         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12594         * modules/unilbrk/u16-width-linebreaks: Likewise.
12595         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12596         * modules/unilbrk/u32-width-linebreaks: Likewise.
12597         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12598         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12599         * modules/uniname/uniname: Likewise.
12600         * modules/uninorm/canonical-decomposition: Likewise.
12601         * modules/uninorm/composition: Likewise.
12602         * modules/uninorm/decomposing-form: Likewise.
12603         * modules/uninorm/decomposition: Likewise.
12604         * modules/uninorm/filter: Likewise.
12605         * modules/uninorm/nfc: Likewise.
12606         * modules/uninorm/nfd: Likewise.
12607         * modules/uninorm/nfkc: Likewise.
12608         * modules/uninorm/nfkd: Likewise.
12609         * modules/uninorm/u8-normalize: Likewise.
12610         * modules/uninorm/u8-normcmp: Likewise.
12611         * modules/uninorm/u8-normcoll: Likewise.
12612         * modules/uninorm/u8-normxfrm: Likewise.
12613         * modules/uninorm/u16-normalize: Likewise.
12614         * modules/uninorm/u16-normcmp: Likewise.
12615         * modules/uninorm/u16-normcoll: Likewise.
12616         * modules/uninorm/u16-normxfrm: Likewise.
12617         * modules/uninorm/u32-normalize: Likewise.
12618         * modules/uninorm/u32-normcmp: Likewise.
12619         * modules/uninorm/u32-normcoll: Likewise.
12620         * modules/uninorm/u32-normxfrm: Likewise.
12621         * modules/unistdio/u8-asnprintf: Likewise.
12622         * modules/unistdio/u8-asprintf: Likewise.
12623         * modules/unistdio/u8-snprintf: Likewise.
12624         * modules/unistdio/u8-sprintf: Likewise.
12625         * modules/unistdio/u8-u8-asnprintf: Likewise.
12626         * modules/unistdio/u8-u8-asprintf: Likewise.
12627         * modules/unistdio/u8-u8-snprintf: Likewise.
12628         * modules/unistdio/u8-u8-sprintf: Likewise.
12629         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12630         * modules/unistdio/u8-u8-vasprintf: Likewise.
12631         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12632         * modules/unistdio/u8-u8-vsprintf: Likewise.
12633         * modules/unistdio/u8-vasnprintf: Likewise.
12634         * modules/unistdio/u8-vasprintf: Likewise.
12635         * modules/unistdio/u8-vsnprintf: Likewise.
12636         * modules/unistdio/u8-vsprintf: Likewise.
12637         * modules/unistdio/u16-asnprintf: Likewise.
12638         * modules/unistdio/u16-asprintf: Likewise.
12639         * modules/unistdio/u16-snprintf: Likewise.
12640         * modules/unistdio/u16-sprintf: Likewise.
12641         * modules/unistdio/u16-u16-asnprintf: Likewise.
12642         * modules/unistdio/u16-u16-asprintf: Likewise.
12643         * modules/unistdio/u16-u16-snprintf: Likewise.
12644         * modules/unistdio/u16-u16-sprintf: Likewise.
12645         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12646         * modules/unistdio/u16-u16-vasprintf: Likewise.
12647         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12648         * modules/unistdio/u16-u16-vsprintf: Likewise.
12649         * modules/unistdio/u16-vasnprintf: Likewise.
12650         * modules/unistdio/u16-vasprintf: Likewise.
12651         * modules/unistdio/u16-vsnprintf: Likewise.
12652         * modules/unistdio/u16-vsprintf: Likewise.
12653         * modules/unistdio/u32-asnprintf: Likewise.
12654         * modules/unistdio/u32-asprintf: Likewise.
12655         * modules/unistdio/u32-snprintf: Likewise.
12656         * modules/unistdio/u32-sprintf: Likewise.
12657         * modules/unistdio/u32-u32-asnprintf: Likewise.
12658         * modules/unistdio/u32-u32-asprintf: Likewise.
12659         * modules/unistdio/u32-u32-snprintf: Likewise.
12660         * modules/unistdio/u32-u32-sprintf: Likewise.
12661         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12662         * modules/unistdio/u32-u32-vasprintf: Likewise.
12663         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12664         * modules/unistdio/u32-u32-vsprintf: Likewise.
12665         * modules/unistdio/u32-vasnprintf: Likewise.
12666         * modules/unistdio/u32-vasprintf: Likewise.
12667         * modules/unistdio/u32-vsnprintf: Likewise.
12668         * modules/unistdio/u32-vsprintf: Likewise.
12669         * modules/unistdio/ulc-asnprintf: Likewise.
12670         * modules/unistdio/ulc-asprintf: Likewise.
12671         * modules/unistdio/ulc-fprintf: Likewise.
12672         * modules/unistdio/ulc-snprintf: Likewise.
12673         * modules/unistdio/ulc-sprintf: Likewise.
12674         * modules/unistdio/ulc-vasnprintf: Likewise.
12675         * modules/unistdio/ulc-vasprintf: Likewise.
12676         * modules/unistdio/ulc-vfprintf: Likewise.
12677         * modules/unistdio/ulc-vsnprintf: Likewise.
12678         * modules/unistdio/ulc-vsprintf: Likewise.
12679         * modules/unistr/u8-check: Likewise.
12680         * modules/unistr/u8-chr: Likewise.
12681         * modules/unistr/u8-cmp: Likewise.
12682         * modules/unistr/u8-cmp2: Likewise.
12683         * modules/unistr/u8-cpy: Likewise.
12684         * modules/unistr/u8-cpy-alloc: Likewise.
12685         * modules/unistr/u8-endswith: Likewise.
12686         * modules/unistr/u8-mblen: Likewise.
12687         * modules/unistr/u8-mbsnlen: Likewise.
12688         * modules/unistr/u8-mbtouc: Likewise.
12689         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12690         * modules/unistr/u8-mbtoucr: Likewise.
12691         * modules/unistr/u8-move: Likewise.
12692         * modules/unistr/u8-next: Likewise.
12693         * modules/unistr/u8-prev: Likewise.
12694         * modules/unistr/u8-set: Likewise.
12695         * modules/unistr/u8-startswith: Likewise.
12696         * modules/unistr/u8-stpcpy: Likewise.
12697         * modules/unistr/u8-stpncpy: Likewise.
12698         * modules/unistr/u8-strcat: Likewise.
12699         * modules/unistr/u8-strchr: Likewise.
12700         * modules/unistr/u8-strcmp: Likewise.
12701         * modules/unistr/u8-strcoll: Likewise.
12702         * modules/unistr/u8-strcpy: Likewise.
12703         * modules/unistr/u8-strcspn: Likewise.
12704         * modules/unistr/u8-strdup: Likewise.
12705         * modules/unistr/u8-strlen: Likewise.
12706         * modules/unistr/u8-strmblen: Likewise.
12707         * modules/unistr/u8-strmbtouc: Likewise.
12708         * modules/unistr/u8-strncat: Likewise.
12709         * modules/unistr/u8-strncmp: Likewise.
12710         * modules/unistr/u8-strncpy: Likewise.
12711         * modules/unistr/u8-strnlen: Likewise.
12712         * modules/unistr/u8-strpbrk: Likewise.
12713         * modules/unistr/u8-strrchr: Likewise.
12714         * modules/unistr/u8-strspn: Likewise.
12715         * modules/unistr/u8-strstr: Likewise.
12716         * modules/unistr/u8-strtok: Likewise.
12717         * modules/unistr/u8-to-u16: Likewise.
12718         * modules/unistr/u8-to-u32: Likewise.
12719         * modules/unistr/u8-uctomb: Likewise.
12720         * modules/unistr/u16-check: Likewise.
12721         * modules/unistr/u16-chr: Likewise.
12722         * modules/unistr/u16-cmp: Likewise.
12723         * modules/unistr/u16-cmp2: Likewise.
12724         * modules/unistr/u16-cpy: Likewise.
12725         * modules/unistr/u16-cpy-alloc: Likewise.
12726         * modules/unistr/u16-endswith: Likewise.
12727         * modules/unistr/u16-mblen: Likewise.
12728         * modules/unistr/u16-mbsnlen: Likewise.
12729         * modules/unistr/u16-mbtouc: Likewise.
12730         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12731         * modules/unistr/u16-mbtoucr: Likewise.
12732         * modules/unistr/u16-move: Likewise.
12733         * modules/unistr/u16-next: Likewise.
12734         * modules/unistr/u16-prev: Likewise.
12735         * modules/unistr/u16-set: Likewise.
12736         * modules/unistr/u16-startswith: Likewise.
12737         * modules/unistr/u16-stpcpy: Likewise.
12738         * modules/unistr/u16-stpncpy: Likewise.
12739         * modules/unistr/u16-strcat: Likewise.
12740         * modules/unistr/u16-strchr: Likewise.
12741         * modules/unistr/u16-strcmp: Likewise.
12742         * modules/unistr/u16-strcoll: Likewise.
12743         * modules/unistr/u16-strcpy: Likewise.
12744         * modules/unistr/u16-strcspn: Likewise.
12745         * modules/unistr/u16-strdup: Likewise.
12746         * modules/unistr/u16-strlen: Likewise.
12747         * modules/unistr/u16-strmblen: Likewise.
12748         * modules/unistr/u16-strmbtouc: Likewise.
12749         * modules/unistr/u16-strncat: Likewise.
12750         * modules/unistr/u16-strncmp: Likewise.
12751         * modules/unistr/u16-strncpy: Likewise.
12752         * modules/unistr/u16-strnlen: Likewise.
12753         * modules/unistr/u16-strpbrk: Likewise.
12754         * modules/unistr/u16-strrchr: Likewise.
12755         * modules/unistr/u16-strspn: Likewise.
12756         * modules/unistr/u16-strstr: Likewise.
12757         * modules/unistr/u16-strtok: Likewise.
12758         * modules/unistr/u16-to-u32: Likewise.
12759         * modules/unistr/u16-to-u8: Likewise.
12760         * modules/unistr/u16-uctomb: Likewise.
12761         * modules/unistr/u32-check: Likewise.
12762         * modules/unistr/u32-chr: Likewise.
12763         * modules/unistr/u32-cmp: Likewise.
12764         * modules/unistr/u32-cmp2: Likewise.
12765         * modules/unistr/u32-cpy: Likewise.
12766         * modules/unistr/u32-cpy-alloc: Likewise.
12767         * modules/unistr/u32-endswith: Likewise.
12768         * modules/unistr/u32-mblen: Likewise.
12769         * modules/unistr/u32-mbsnlen: Likewise.
12770         * modules/unistr/u32-mbtouc: Likewise.
12771         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12772         * modules/unistr/u32-mbtoucr: Likewise.
12773         * modules/unistr/u32-move: Likewise.
12774         * modules/unistr/u32-next: Likewise.
12775         * modules/unistr/u32-prev: Likewise.
12776         * modules/unistr/u32-set: Likewise.
12777         * modules/unistr/u32-startswith: Likewise.
12778         * modules/unistr/u32-stpcpy: Likewise.
12779         * modules/unistr/u32-stpncpy: Likewise.
12780         * modules/unistr/u32-strcat: Likewise.
12781         * modules/unistr/u32-strchr: Likewise.
12782         * modules/unistr/u32-strcmp: Likewise.
12783         * modules/unistr/u32-strcoll: Likewise.
12784         * modules/unistr/u32-strcpy: Likewise.
12785         * modules/unistr/u32-strcspn: Likewise.
12786         * modules/unistr/u32-strdup: Likewise.
12787         * modules/unistr/u32-strlen: Likewise.
12788         * modules/unistr/u32-strmblen: Likewise.
12789         * modules/unistr/u32-strmbtouc: Likewise.
12790         * modules/unistr/u32-strncat: Likewise.
12791         * modules/unistr/u32-strncmp: Likewise.
12792         * modules/unistr/u32-strncpy: Likewise.
12793         * modules/unistr/u32-strnlen: Likewise.
12794         * modules/unistr/u32-strpbrk: Likewise.
12795         * modules/unistr/u32-strrchr: Likewise.
12796         * modules/unistr/u32-strspn: Likewise.
12797         * modules/unistr/u32-strstr: Likewise.
12798         * modules/unistr/u32-strtok: Likewise.
12799         * modules/unistr/u32-to-u16: Likewise.
12800         * modules/unistr/u32-to-u8: Likewise.
12801         * modules/unistr/u32-uctomb: Likewise.
12802         * modules/uniwbrk/u8-wordbreaks: Likewise.
12803         * modules/uniwbrk/u16-wordbreaks: Likewise.
12804         * modules/uniwbrk/u32-wordbreaks: Likewise.
12805         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12806         * modules/uniwbrk/wordbreak-property: Likewise.
12807         * modules/uniwidth/u8-strwidth: Likewise.
12808         * modules/uniwidth/u8-width: Likewise.
12809         * modules/uniwidth/u16-strwidth: Likewise.
12810         * modules/uniwidth/u16-width: Likewise.
12811         * modules/uniwidth/u32-strwidth: Likewise.
12812         * modules/uniwidth/u32-width: Likewise.
12813         * modules/uniwidth/width: Likewise.
12814         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12815         with $(LIBUNISTRING).
12816         * modules/unicase/ignorable-tests: Likewise.
12817         * modules/unicase/locale-language-tests: Likewise.
12818         * modules/unicase/tolower-tests: Likewise.
12819         * modules/unicase/totitle-tests: Likewise.
12820         * modules/unicase/toupper-tests: Likewise.
12821         * modules/unicase/u8-casecmp-tests: Likewise.
12822         * modules/unicase/u8-casecoll-tests: Likewise.
12823         * modules/unicase/u8-casefold-tests: Likewise.
12824         * modules/unicase/u8-is-cased-tests: Likewise.
12825         * modules/unicase/u8-is-casefolded-tests: Likewise.
12826         * modules/unicase/u8-is-lowercase-tests: Likewise.
12827         * modules/unicase/u8-is-titlecase-tests: Likewise.
12828         * modules/unicase/u8-is-uppercase-tests: Likewise.
12829         * modules/unicase/u8-tolower-tests: Likewise.
12830         * modules/unicase/u8-totitle-tests: Likewise.
12831         * modules/unicase/u8-toupper-tests: Likewise.
12832         * modules/unicase/u16-casecmp-tests: Likewise.
12833         * modules/unicase/u16-casecoll-tests: Likewise.
12834         * modules/unicase/u16-casefold-tests: Likewise.
12835         * modules/unicase/u16-is-cased-tests: Likewise.
12836         * modules/unicase/u16-is-casefolded-tests: Likewise.
12837         * modules/unicase/u16-is-lowercase-tests: Likewise.
12838         * modules/unicase/u16-is-titlecase-tests: Likewise.
12839         * modules/unicase/u16-is-uppercase-tests: Likewise.
12840         * modules/unicase/u16-tolower-tests: Likewise.
12841         * modules/unicase/u16-totitle-tests: Likewise.
12842         * modules/unicase/u16-toupper-tests: Likewise.
12843         * modules/unicase/u32-casecmp-tests: Likewise.
12844         * modules/unicase/u32-casecoll-tests: Likewise.
12845         * modules/unicase/u32-casefold-tests: Likewise.
12846         * modules/unicase/u32-is-cased-tests: Likewise.
12847         * modules/unicase/u32-is-casefolded-tests: Likewise.
12848         * modules/unicase/u32-is-lowercase-tests: Likewise.
12849         * modules/unicase/u32-is-titlecase-tests: Likewise.
12850         * modules/unicase/u32-is-uppercase-tests: Likewise.
12851         * modules/unicase/u32-tolower-tests: Likewise.
12852         * modules/unicase/u32-totitle-tests: Likewise.
12853         * modules/unicase/u32-toupper-tests: Likewise.
12854         * modules/unicase/ulc-casecmp-tests: Likewise.
12855         * modules/unicase/ulc-casecoll-tests: Likewise.
12856         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12857         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12858         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12859         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12860         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12861         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12862         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12863         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12864         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12865         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12866         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12867         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12868         * modules/unictype/bidicategory-byname-tests: Likewise.
12869         * modules/unictype/bidicategory-name-tests: Likewise.
12870         * modules/unictype/bidicategory-of-tests: Likewise.
12871         * modules/unictype/bidicategory-test-tests: Likewise.
12872         * modules/unictype/block-list-tests: Likewise.
12873         * modules/unictype/block-of-tests: Likewise.
12874         * modules/unictype/block-test-tests: Likewise.
12875         * modules/unictype/category-C-tests: Likewise.
12876         * modules/unictype/category-Cc-tests: Likewise.
12877         * modules/unictype/category-Cf-tests: Likewise.
12878         * modules/unictype/category-Cn-tests: Likewise.
12879         * modules/unictype/category-Co-tests: Likewise.
12880         * modules/unictype/category-Cs-tests: Likewise.
12881         * modules/unictype/category-L-tests: Likewise.
12882         * modules/unictype/category-Ll-tests: Likewise.
12883         * modules/unictype/category-Lm-tests: Likewise.
12884         * modules/unictype/category-Lo-tests: Likewise.
12885         * modules/unictype/category-Lt-tests: Likewise.
12886         * modules/unictype/category-Lu-tests: Likewise.
12887         * modules/unictype/category-M-tests: Likewise.
12888         * modules/unictype/category-Mc-tests: Likewise.
12889         * modules/unictype/category-Me-tests: Likewise.
12890         * modules/unictype/category-Mn-tests: Likewise.
12891         * modules/unictype/category-N-tests: Likewise.
12892         * modules/unictype/category-Nd-tests: Likewise.
12893         * modules/unictype/category-Nl-tests: Likewise.
12894         * modules/unictype/category-No-tests: Likewise.
12895         * modules/unictype/category-P-tests: Likewise.
12896         * modules/unictype/category-Pc-tests: Likewise.
12897         * modules/unictype/category-Pd-tests: Likewise.
12898         * modules/unictype/category-Pe-tests: Likewise.
12899         * modules/unictype/category-Pf-tests: Likewise.
12900         * modules/unictype/category-Pi-tests: Likewise.
12901         * modules/unictype/category-Po-tests: Likewise.
12902         * modules/unictype/category-Ps-tests: Likewise.
12903         * modules/unictype/category-S-tests: Likewise.
12904         * modules/unictype/category-Sc-tests: Likewise.
12905         * modules/unictype/category-Sk-tests: Likewise.
12906         * modules/unictype/category-Sm-tests: Likewise.
12907         * modules/unictype/category-So-tests: Likewise.
12908         * modules/unictype/category-Z-tests: Likewise.
12909         * modules/unictype/category-Zl-tests: Likewise.
12910         * modules/unictype/category-Zp-tests: Likewise.
12911         * modules/unictype/category-Zs-tests: Likewise.
12912         * modules/unictype/category-and-not-tests: Likewise.
12913         * modules/unictype/category-and-tests: Likewise.
12914         * modules/unictype/category-byname-tests: Likewise.
12915         * modules/unictype/category-name-tests: Likewise.
12916         * modules/unictype/category-none-tests: Likewise.
12917         * modules/unictype/category-of-tests: Likewise.
12918         * modules/unictype/category-or-tests: Likewise.
12919         * modules/unictype/category-test-withtable-tests: Likewise.
12920         * modules/unictype/combining-class-tests: Likewise.
12921         * modules/unictype/ctype-alnum-tests: Likewise.
12922         * modules/unictype/ctype-alpha-tests: Likewise.
12923         * modules/unictype/ctype-blank-tests: Likewise.
12924         * modules/unictype/ctype-cntrl-tests: Likewise.
12925         * modules/unictype/ctype-digit-tests: Likewise.
12926         * modules/unictype/ctype-graph-tests: Likewise.
12927         * modules/unictype/ctype-lower-tests: Likewise.
12928         * modules/unictype/ctype-print-tests: Likewise.
12929         * modules/unictype/ctype-punct-tests: Likewise.
12930         * modules/unictype/ctype-space-tests: Likewise.
12931         * modules/unictype/ctype-upper-tests: Likewise.
12932         * modules/unictype/ctype-xdigit-tests: Likewise.
12933         * modules/unictype/decimal-digit-tests: Likewise.
12934         * modules/unictype/digit-tests: Likewise.
12935         * modules/unictype/mirror-tests: Likewise.
12936         * modules/unictype/numeric-tests: Likewise.
12937         * modules/unictype/property-alphabetic-tests: Likewise.
12938         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12939         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12940         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12941         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12942         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12943         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12944         * modules/unictype/property-bidi-control-tests: Likewise.
12945         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12946         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12947         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12948         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12949         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12950         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12951         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12952         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12953         * modules/unictype/property-bidi-pdf-tests: Likewise.
12954         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12955         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12956         * modules/unictype/property-byname-tests: Likewise.
12957         * modules/unictype/property-combining-tests: Likewise.
12958         * modules/unictype/property-composite-tests: Likewise.
12959         * modules/unictype/property-currency-symbol-tests: Likewise.
12960         * modules/unictype/property-dash-tests: Likewise.
12961         * modules/unictype/property-decimal-digit-tests: Likewise.
12962         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12963         * modules/unictype/property-deprecated-tests: Likewise.
12964         * modules/unictype/property-diacritic-tests: Likewise.
12965         * modules/unictype/property-extender-tests: Likewise.
12966         * modules/unictype/property-format-control-tests: Likewise.
12967         * modules/unictype/property-grapheme-base-tests: Likewise.
12968         * modules/unictype/property-grapheme-extend-tests: Likewise.
12969         * modules/unictype/property-grapheme-link-tests: Likewise.
12970         * modules/unictype/property-hex-digit-tests: Likewise.
12971         * modules/unictype/property-hyphen-tests: Likewise.
12972         * modules/unictype/property-id-continue-tests: Likewise.
12973         * modules/unictype/property-id-start-tests: Likewise.
12974         * modules/unictype/property-ideographic-tests: Likewise.
12975         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12976         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12977         * modules/unictype/property-ignorable-control-tests: Likewise.
12978         * modules/unictype/property-iso-control-tests: Likewise.
12979         * modules/unictype/property-join-control-tests: Likewise.
12980         * modules/unictype/property-left-of-pair-tests: Likewise.
12981         * modules/unictype/property-line-separator-tests: Likewise.
12982         * modules/unictype/property-logical-order-exception-tests: Likewise.
12983         * modules/unictype/property-lowercase-tests: Likewise.
12984         * modules/unictype/property-math-tests: Likewise.
12985         * modules/unictype/property-non-break-tests: Likewise.
12986         * modules/unictype/property-not-a-character-tests: Likewise.
12987         * modules/unictype/property-numeric-tests: Likewise.
12988         * modules/unictype/property-other-alphabetic-tests: Likewise.
12989         * modules/unictype/property-other-default-ignorable-code-point-tests:
12990         Likewise.
12991         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12992         * modules/unictype/property-other-id-continue-tests: Likewise.
12993         * modules/unictype/property-other-id-start-tests: Likewise.
12994         * modules/unictype/property-other-lowercase-tests: Likewise.
12995         * modules/unictype/property-other-math-tests: Likewise.
12996         * modules/unictype/property-other-uppercase-tests: Likewise.
12997         * modules/unictype/property-paired-punctuation-tests: Likewise.
12998         * modules/unictype/property-paragraph-separator-tests: Likewise.
12999         * modules/unictype/property-pattern-syntax-tests: Likewise.
13000         * modules/unictype/property-pattern-white-space-tests: Likewise.
13001         * modules/unictype/property-private-use-tests: Likewise.
13002         * modules/unictype/property-punctuation-tests: Likewise.
13003         * modules/unictype/property-quotation-mark-tests: Likewise.
13004         * modules/unictype/property-radical-tests: Likewise.
13005         * modules/unictype/property-sentence-terminal-tests: Likewise.
13006         * modules/unictype/property-soft-dotted-tests: Likewise.
13007         * modules/unictype/property-space-tests: Likewise.
13008         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13009         * modules/unictype/property-test-tests: Likewise.
13010         * modules/unictype/property-titlecase-tests: Likewise.
13011         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13012         * modules/unictype/property-unified-ideograph-tests: Likewise.
13013         * modules/unictype/property-uppercase-tests: Likewise.
13014         * modules/unictype/property-variation-selector-tests: Likewise.
13015         * modules/unictype/property-white-space-tests: Likewise.
13016         * modules/unictype/property-xid-continue-tests: Likewise.
13017         * modules/unictype/property-xid-start-tests: Likewise.
13018         * modules/unictype/property-zero-width-tests: Likewise.
13019         * modules/unictype/scripts-tests: Likewise.
13020         * modules/unictype/syntax-c-ident-tests: Likewise.
13021         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13022         * modules/unictype/syntax-java-ident-tests: Likewise.
13023         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13024         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13025         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13026         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13027         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13028         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13029         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13030         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13031         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13032         * modules/uniname/uniname-tests: Likewise.
13033         * modules/uninorm/canonical-decomposition-tests: Likewise.
13034         * modules/uninorm/compat-decomposition-tests: Likewise.
13035         * modules/uninorm/composition-tests: Likewise.
13036         * modules/uninorm/decomposing-form-tests: Likewise.
13037         * modules/uninorm/decomposition-tests: Likewise.
13038         * modules/uninorm/filter-tests: Likewise.
13039         * modules/uninorm/nfc-tests: Likewise.
13040         * modules/uninorm/nfd-tests: Likewise.
13041         * modules/uninorm/nfkc-tests: Likewise.
13042         * modules/uninorm/nfkd-tests: Likewise.
13043         * modules/uninorm/u8-normcmp-tests: Likewise.
13044         * modules/uninorm/u8-normcoll-tests: Likewise.
13045         * modules/uninorm/u16-normcmp-tests: Likewise.
13046         * modules/uninorm/u16-normcoll-tests: Likewise.
13047         * modules/uninorm/u32-normcmp-tests: Likewise.
13048         * modules/uninorm/u32-normcoll-tests: Likewise.
13049         * modules/unistdio/u8-asnprintf-tests: Likewise.
13050         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13051         * modules/unistdio/u8-vasprintf-tests: Likewise.
13052         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13053         * modules/unistdio/u8-vsprintf-tests: Likewise.
13054         * modules/unistdio/u16-asnprintf-tests: Likewise.
13055         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13056         * modules/unistdio/u16-vasprintf-tests: Likewise.
13057         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13058         * modules/unistdio/u16-vsprintf-tests: Likewise.
13059         * modules/unistdio/u32-asnprintf-tests: Likewise.
13060         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13061         * modules/unistdio/u32-vasprintf-tests: Likewise.
13062         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13063         * modules/unistdio/u32-vsprintf-tests: Likewise.
13064         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13065         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13066         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13067         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13068         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13069         * modules/unistr/u8-check-tests: Likewise.
13070         * modules/unistr/u8-chr-tests: Likewise.
13071         * modules/unistr/u8-cmp-tests: Likewise.
13072         * modules/unistr/u8-cmp2-tests: Likewise.
13073         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13074         * modules/unistr/u8-cpy-tests: Likewise.
13075         * modules/unistr/u8-mblen-tests: Likewise.
13076         * modules/unistr/u8-mbsnlen-tests: Likewise.
13077         * modules/unistr/u8-mbtouc-tests: Likewise.
13078         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13079         * modules/unistr/u8-mbtoucr-tests: Likewise.
13080         * modules/unistr/u8-move-tests: Likewise.
13081         * modules/unistr/u8-next-tests: Likewise.
13082         * modules/unistr/u8-prev-tests: Likewise.
13083         * modules/unistr/u8-set-tests: Likewise.
13084         * modules/unistr/u8-stpcpy-tests: Likewise.
13085         * modules/unistr/u8-stpncpy-tests: Likewise.
13086         * modules/unistr/u8-strcat-tests: Likewise.
13087         * modules/unistr/u8-strcmp-tests: Likewise.
13088         * modules/unistr/u8-strcoll-tests: Likewise.
13089         * modules/unistr/u8-strcpy-tests: Likewise.
13090         * modules/unistr/u8-strdup-tests: Likewise.
13091         * modules/unistr/u8-strlen-tests: Likewise.
13092         * modules/unistr/u8-strmblen-tests: Likewise.
13093         * modules/unistr/u8-strmbtouc-tests: Likewise.
13094         * modules/unistr/u8-strncat-tests: Likewise.
13095         * modules/unistr/u8-strncmp-tests: Likewise.
13096         * modules/unistr/u8-strncpy-tests: Likewise.
13097         * modules/unistr/u8-strnlen-tests: Likewise.
13098         * modules/unistr/u8-to-u16-tests: Likewise.
13099         * modules/unistr/u8-to-u32-tests: Likewise.
13100         * modules/unistr/u8-uctomb-tests: Likewise.
13101         * modules/unistr/u16-check-tests: Likewise.
13102         * modules/unistr/u16-chr-tests: Likewise.
13103         * modules/unistr/u16-cmp-tests: Likewise.
13104         * modules/unistr/u16-cmp2-tests: Likewise.
13105         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13106         * modules/unistr/u16-cpy-tests: Likewise.
13107         * modules/unistr/u16-mblen-tests: Likewise.
13108         * modules/unistr/u16-mbsnlen-tests: Likewise.
13109         * modules/unistr/u16-mbtouc-tests: Likewise.
13110         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13111         * modules/unistr/u16-mbtoucr-tests: Likewise.
13112         * modules/unistr/u16-move-tests: Likewise.
13113         * modules/unistr/u16-next-tests: Likewise.
13114         * modules/unistr/u16-prev-tests: Likewise.
13115         * modules/unistr/u16-set-tests: Likewise.
13116         * modules/unistr/u16-stpcpy-tests: Likewise.
13117         * modules/unistr/u16-stpncpy-tests: Likewise.
13118         * modules/unistr/u16-strcat-tests: Likewise.
13119         * modules/unistr/u16-strcmp-tests: Likewise.
13120         * modules/unistr/u16-strcoll-tests: Likewise.
13121         * modules/unistr/u16-strcpy-tests: Likewise.
13122         * modules/unistr/u16-strdup-tests: Likewise.
13123         * modules/unistr/u16-strlen-tests: Likewise.
13124         * modules/unistr/u16-strmblen-tests: Likewise.
13125         * modules/unistr/u16-strmbtouc-tests: Likewise.
13126         * modules/unistr/u16-strncat-tests: Likewise.
13127         * modules/unistr/u16-strncmp-tests: Likewise.
13128         * modules/unistr/u16-strncpy-tests: Likewise.
13129         * modules/unistr/u16-strnlen-tests: Likewise.
13130         * modules/unistr/u16-to-u32-tests: Likewise.
13131         * modules/unistr/u16-to-u8-tests: Likewise.
13132         * modules/unistr/u16-uctomb-tests: Likewise.
13133         * modules/unistr/u32-check-tests: Likewise.
13134         * modules/unistr/u32-chr-tests: Likewise.
13135         * modules/unistr/u32-cmp-tests: Likewise.
13136         * modules/unistr/u32-cmp2-tests: Likewise.
13137         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13138         * modules/unistr/u32-cpy-tests: Likewise.
13139         * modules/unistr/u32-mblen-tests: Likewise.
13140         * modules/unistr/u32-mbsnlen-tests: Likewise.
13141         * modules/unistr/u32-mbtouc-tests: Likewise.
13142         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13143         * modules/unistr/u32-mbtoucr-tests: Likewise.
13144         * modules/unistr/u32-move-tests: Likewise.
13145         * modules/unistr/u32-next-tests: Likewise.
13146         * modules/unistr/u32-prev-tests: Likewise.
13147         * modules/unistr/u32-set-tests: Likewise.
13148         * modules/unistr/u32-stpcpy-tests: Likewise.
13149         * modules/unistr/u32-stpncpy-tests: Likewise.
13150         * modules/unistr/u32-strcat-tests: Likewise.
13151         * modules/unistr/u32-strcmp-tests: Likewise.
13152         * modules/unistr/u32-strcoll-tests: Likewise.
13153         * modules/unistr/u32-strcpy-tests: Likewise.
13154         * modules/unistr/u32-strdup-tests: Likewise.
13155         * modules/unistr/u32-strlen-tests: Likewise.
13156         * modules/unistr/u32-strmblen-tests: Likewise.
13157         * modules/unistr/u32-strmbtouc-tests: Likewise.
13158         * modules/unistr/u32-strncat-tests: Likewise.
13159         * modules/unistr/u32-strncmp-tests: Likewise.
13160         * modules/unistr/u32-strncpy-tests: Likewise.
13161         * modules/unistr/u32-strnlen-tests: Likewise.
13162         * modules/unistr/u32-to-u16-tests: Likewise.
13163         * modules/unistr/u32-to-u8-tests: Likewise.
13164         * modules/unistr/u32-uctomb-tests: Likewise.
13165         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13166         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13167         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13168         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13169         * modules/uniwidth/u8-strwidth-tests: Likewise.
13170         * modules/uniwidth/u8-width-tests: Likewise.
13171         * modules/uniwidth/u16-strwidth-tests: Likewise.
13172         * modules/uniwidth/u16-width-tests: Likewise.
13173         * modules/uniwidth/u32-strwidth-tests: Likewise.
13174         * modules/uniwidth/u32-width-tests: Likewise.
13175         * modules/uniwidth/width-tests: Likewise.
13176
13177 2010-05-18  Richard Jones  <rjones@redhat.com>
13178
13179         doc: users.txt: list hivex
13180         * users.txt: Add hivex.
13181
13182 2010-05-18  Richard Jones  <rjones@redhat.com>
13183
13184         doc: users.txt: list febootstrap
13185         * users.txt: Add febootstrap.
13186
13187 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13188
13189         bootstrap: fix an error when gnulib is not used as a git submodule
13190         * build-aux/bootstrap (gnulib_path): If its length is zero then
13191         assign "gnulib" to it.
13192         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13193
13194 2010-05-16  Bruno Haible  <bruno@clisp.org>
13195
13196         Avoid autoconf warnings about AM_ICONV.
13197         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13198         2.64.
13199
13200 2010-05-16  Bruno Haible  <bruno@clisp.org>
13201
13202         absolute-header: Make the macro usable in more situations.
13203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13204         from gl_ABSOLUTE_HEADER.
13205         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13206
13207 2010-05-16  James Youngman  <jay@gnu.org>
13208
13209         doc: update users.txt
13210         * users.txt: Add CSSC.
13211
13212 2010-05-16  Jim Meyering  <meyering@redhat.com>
13213
13214         init.sh: fix an error in the previous change; add more comments
13215         * tests/init.sh: Compare exit code in loop against 9, not 2.
13216         Patch by Bruno Haible.
13217         Make the two tests more similar by adding an empty "then" clause.
13218         Add comments.
13219
13220         init.sh: avoid unnecessary shell re-exec
13221         * tests/init.sh: Improve the re-exec-required check to first test the
13222         current shell.  If it passes the test, do not search for a shell that
13223         does pass, and do not re-exec.  This test is particularly contorted to
13224         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13225         of $(...) evokes a syntax error and causes immediate shell exit with
13226         status 2.  Bruno Haible reported that the re-exec made it impossible
13227         to single-step through any init.sh-using script.
13228
13229 2010-05-16  Bruno Haible  <bruno@clisp.org>
13230
13231         Fix collision between gnulib's and libintl's printf replacements.
13232         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13233         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13234         (printf): When using GNU C, map the __printf__ function to rpl_printf
13235         via __asm__. When not using GNU C, define rpl_printf instead of
13236         __printf__.
13237         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13238         commit.
13239         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13240         commit.
13241         * m4/asm-underscore.m4: New file.
13242         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13243         * modules/stdio (Files): Add m4/asm-underscore.m4.
13244         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13245         Reported by Ben Pfaff.
13246
13247 2010-05-16  Bruno Haible  <bruno@clisp.org>
13248
13249         verify: Avoid skipping the test on openSUSE 11.0.
13250         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13251
13252 2010-05-13  Bruno Haible  <bruno@clisp.org>
13253
13254         Avoid useless warnings from G++.
13255         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13256         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13257         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13258
13259 2010-05-11  Jim Meyering  <meyering@redhat.com>
13260
13261         maint.mk: tweak preceding change
13262         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13263         regexps tighter by anchoring at EOL, and make the new group "shy"
13264         for slightly decreased overhead.
13265
13266 2010-05-11  Eric Blake  <eblake@redhat.com>
13267
13268         maint.mk: gnulib doesn't guarantee NSIG
13269         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13270
13271 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13272
13273         test-pwrite.c: Remove unused variable declaration.
13274         * tests/test-pwrite.c (main): Remove read_buf declaration.
13275
13276         Remove useless test-pwrite.sh file.
13277         * tests/test-pwrite.sh: Delete file.
13278         * modules/pwrite-tests: Remove references.
13279         Reported by Bruno Haible.
13280
13281 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13282
13283         init.sh: fix a typo
13284         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13285
13286 2010-05-10  Jim Meyering  <meyering@redhat.com>
13287
13288         maint.mk: avoid using a temporary file in the always-defined-macros check
13289         * top/maint.mk (.re-defmac): Remove rule.
13290         (gl_trap_): Remove definition.
13291         (sc_prohibit_always-defined_macros): Rewrite not to create and
13292         depend on a temporary file.  Instead, depend on GNU grep's ability
13293         to read a list of regular expressions from stdin when given "-f -".
13294
13295 2010-05-09  Bruno Haible  <bruno@clisp.org>
13296
13297         Update to GNU gettext 0.18, part 1.
13298         * m4/gettext.m4: Update to GNU gettext 0.18.
13299         * m4/intl.m4: Likewise.
13300         * m4/po.m4: Likewise.
13301         * modules/gettext (Files): Add m4/fcntl-o.m4.
13302         (configure.ac): Require gettext infrastructure from version 0.18.
13303
13304 2010-05-09  Jim Meyering  <meyering@redhat.com>
13305
13306         init.sh: enable MALLOC_PERTURB_
13307         * tests/init.sh: Enable glibc's malloc-perturbing option.
13308
13309         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13310         With my recent change in init.sh from the two-line form:
13311             -#   : ${srcdir=.}
13312             -#   . "$srcdir/init.sh"; path_prepend_ .
13313             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13314         I noticed that using the one-line form would cause this test
13315         to fail with a false-positive, or to stop working altogether,
13316         depending on whether help-version changed or all the tests did.
13317         * top/maint.mk (_hv_regex): Remove this definition.
13318         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13319         (_hv_regex_strong): Use a stronger regex to check for conformance.
13320         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13321         Give a separate diagnostic for lack of conforming use.
13322
13323         maint.mk: prohibit definition of symbols defined by gnulib
13324         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13325         definition of symbols defined by gnulib.
13326
13327 2010-05-09  Bruno Haible  <bruno@clisp.org>
13328
13329         acl: Avoid test failure on Cygwin-hosted mingw.
13330         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13331
13332 2010-05-09  Bruno Haible  <bruno@clisp.org>
13333
13334         error: Use system's fcntl function.
13335         * lib/error.c (fcntl): Undefine.
13336
13337 2010-05-09  Jim Meyering  <meyering@redhat.com>
13338
13339         verify: adjust formatting to be more consistent
13340         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13341         argument-list '('s, and after one comma.
13342
13343 2010-05-09  Bruno Haible  <bruno@clisp.org>
13344
13345         error: More reliable output on mingw.
13346         * lib/error.c: Include <windows.h>.
13347         (is_open): New function.
13348         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13349         defined.
13350
13351 2010-05-09  Bruno Haible  <bruno@clisp.org>
13352
13353         vasnprintf: Fix syntax errors in libintl build on mingw.
13354         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13355         pad_ourselves and prec_ourselves after use.
13356
13357 2010-05-08  Bruno Haible  <bruno@clisp.org>
13358
13359         * lib/config.charset: Update comments for Cygwin 1.7.
13360         * lib/localcharset.c: Likewise.
13361
13362 2010-05-07  Jim Meyering  <meyering@redhat.com>
13363
13364         init.sh: improve comments
13365         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13366         . "${srcdir=.}/init.sh"; path_prepend_ .
13367         Add a note about path_prepend_ and the alternative of using
13368         TESTS_ENVIRONMENT.
13369
13370 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13371
13372         exclude: Unescape hashed patterns in wildcard mode.
13373         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13374         to the hash list.
13375         * tests/test-exclude8.sh: New test case.
13376         * modules/exclude-tests: Add new test.
13377
13378 2010-05-05  Eric Blake  <eblake@redhat.com>
13379
13380         verify: automate tests
13381         * modules/verify-tests: New module.
13382         * tests/test-verify.sh: New file.
13383         * tests/test-verify.c: Guard each negative test with a unique id.
13384         Also avoid warning about unused left hand of comma expressions.
13385
13386 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13387
13388         Further improvements to verify.h, suggested by Eric Blake.
13389         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13390         the GL_* versions, to avoid collision with OpenGL.
13391         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13392         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13393         than testing merely whether it's defined.
13394
13395         Modify verify.h to pacify gcc -Wredundant_decls.
13396         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13397         These use the prefix "GL_" since they're likely to be useful elsewhere.
13398         We may need to break them out into a different .h file.
13399         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13400         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13401         of verify_function__.
13402
13403 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13404
13405         Tests for module pwrite.
13406         * modules/pwrite-tests: New file.
13407         * tests/test-pwrite.sh: New file.
13408         * tests/test-pwrite.c: New file.
13409
13410         New module pwrite.
13411         * lib/unistd.in.h (pwrite): New declaration.
13412         * lib/pwrite.c: New file, from glibc with modifications.
13413         * m4/pwrite.m4: New file.
13414         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13415         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13416         REPLACE_PWRITE.
13417         * modules/pwrite: New file.
13418         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13419         REPLACE_PWRITE.
13420         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13421         * doc/posix-functions/pwrite.texi: Mention the new module.
13422
13423 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13424
13425         pread: Update documentation.
13426         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13427
13428 2010-05-04  Eric Blake  <eblake@redhat.com>
13429
13430         docs: update cygwin progress
13431         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13432         this bug.
13433         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13434         Added in cygwin 1.7.2.
13435         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13436         Likewise.
13437         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13438         Likewise.
13439         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13440         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13441         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13442         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13443         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13444         Mention nproc module.
13445         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13446         bug in cygwin 1.7.5 addition.
13447         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13448         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13449         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13450         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13451         1.7.5.
13452         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13453         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13454         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13455         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13456         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13457         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13458         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13459         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13460         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13461         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13462         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13463         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13464         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13465         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13466         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13467         Likewise.
13468         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13469         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13470         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13471         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13472         Likewise.
13473         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13474         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13475         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13476         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13477         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13478         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13479         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13480         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13481         Likewise.
13482         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13483         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13484         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13485         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13486         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13487         Likewise.
13488         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13489         Likewise.
13490         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13491         Likewise.
13492         * doc/glibc-functions/xdrrec_endofrecord.texi
13493         (xdrrec_endofrecord): Likewise.
13494         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13495         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13496         Likewise.
13497         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13498         Likewise.
13499
13500 2010-05-04  Jim Meyering  <meyering@redhat.com>
13501
13502         gendocs.sh: make its "-s FILE" option more useful
13503         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13504         $PACKAGE to reflect the probably-different basename of "FILE".
13505
13506 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13507
13508         bootstrap: don't ignore download_po_files failure
13509         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13510         failure.
13511
13512 2010-05-03  Jim Meyering  <meyering@redhat.com>
13513
13514         maint.mk: allow to pass options to gendocs.sh
13515         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13516         (gendocs_options_): New overridable variable.
13517
13518         gnu-web-doc-update: don't ignore configure or build failure
13519         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13520
13521         announce-gen: backslash-escape '@'s in --help output
13522         * build-aux/announce-gen: Fix syntax errors.
13523
13524         maint.mk, announce-gen: allow project-specific announcement mail headers
13525         * top/maint.mk (translation_project_): Define default.
13526         (announcement_Cc_, announcement_mail_headers_): Likewise.
13527         (announcement): Invoke announce-gen with new --mail-headers option.
13528         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13529
13530         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13531         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13532         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13533         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13534         line in the "err2" output file when running "make check" in verbose
13535         mode (i.e., with set -x enabled).
13536
13537 2010-05-03  Bruno Haible  <bruno@clisp.org>
13538
13539         wctob: Fix for weird platforms.
13540         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13541         argument value.
13542
13543 2010-05-03  Jim Meyering  <meyering@redhat.com>
13544
13545         maint.mk: prohibit unwarranted use of <strings.h>
13546         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13547         strings.h in a file that does not also use strcasecmp, strncasecmp,
13548         ffs or ffsll.
13549
13550         maint.mk: remove obsolete comments
13551         * top/maint.mk: Remove stale, commented-out rules.
13552
13553 2010-05-02  Bruno Haible  <bruno@clisp.org>
13554
13555         wcwidth: Declare also when it's aliased.
13556         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13557         macro.
13558
13559 2010-05-02  Bruno Haible  <bruno@clisp.org>
13560
13561         Fix regression from 2010-04-25.
13562         * gnulib-tool (func_modules_transitive_closure): Check the status of
13563         all modules, not only of the tests that are of the form foo-tests where
13564         foo is a module.
13565
13566 2010-05-02  Bruno Haible  <bruno@clisp.org>
13567
13568         wctob: Work around nasty Cygwin 1.7.2 bug.
13569         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13570         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13571
13572 2010-05-01  Bruno Haible  <bruno@clisp.org>
13573
13574         fpurge: Sharper test.
13575         * tests/test-fpurge.c (main): Add one more ftell check.
13576         * modules/fpurge-tests (Depends-on): Add ftell.
13577         Suggested by Eric Blake.
13578
13579 2010-05-01  Bruno Haible  <bruno@clisp.org>
13580
13581         ftello: Another test.
13582         * tests/test-ftello3.c: New file.
13583         * modules/ftello-tests (Files): Add it.
13584         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13585         MOSTLYCLEANFILES.
13586
13587         ftell: Another test.
13588         * tests/test-ftell3.c: New file.
13589         * modules/ftell-tests (Files): Add it.
13590         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13591         MOSTLYCLEANFILES.
13592
13593 2010-05-01  Bruno Haible  <bruno@clisp.org>
13594
13595         ftell, ftello: Work around Solaris bug.
13596         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13597         * lib/ftello.c: Include stdio-impl.h.
13598         (ftello): On Solaris, when _IOWRT is set, compute the result without
13599         looking at _IOREAD.
13600         * modules/ftello (Files): Add lib/stdio-impl.h.
13601         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13602         * doc/posix-functions/ftello.texi: Likewise.
13603         Reported by Eric Blake.
13604
13605 2010-05-01  Bruno Haible  <bruno@clisp.org>
13606
13607         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13608         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13609         the _IOWRT flag is also set.
13610
13611 2010-05-01  Bruno Haible  <bruno@clisp.org>
13612
13613         Fix doc about a HP-UX stdio bug.
13614         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13615         * doc/posix-functions/ftello.texi: Likewise.
13616
13617 2010-05-01  Bruno Haible  <bruno@clisp.org>
13618
13619         lseek test: Fix failure on Solaris.
13620         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13621         output.
13622
13623 2010-04-30  Jim Meyering  <meyering@redhat.com>
13624
13625         bootstrap: don't ignore failure to generate po*/Makevars
13626         * build-aux/bootstrap (with_gettext): Don't ignore failure
13627         to create po/Makevars or runtime-po/Makevars.
13628
13629 2010-04-29  Eric Blake  <eblake@redhat.com>
13630
13631         headers: relax license to LGPLv2+
13632         * modules/fcntl-h (License): Relax license.
13633         * modules/getopt-posix (License): Likewise.
13634         * modules/locale (License): Likewise.
13635         * modules/math (License): Likewise.
13636         * modules/pty (License): Likewise.
13637         * modules/sched (License): Likewise.
13638         * modules/search (License): Likewise.
13639         * modules/spawn (License): Likewise.
13640         * modules/stdarg (License): Likewise.
13641         * modules/sysexits (License): Likewise.
13642
13643 2010-04-29  Jim Meyering  <meyering@redhat.com>
13644
13645         inttypes: relax license to LGPLv2+
13646         * modules/inttypes (License): Relax license.
13647
13648 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13649
13650         * top/maint.mk (indent): Run twice to produce idempotent results.
13651
13652 2010-04-28  Bruno Haible  <bruno@clisp.org>
13653
13654         getdate: Generate getdate.c in the source directory.
13655         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13656         MOSTLYCLEANFILES.
13657         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13658
13659 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13660
13661         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13662         is not declared as a const *; avoid warnings in that case.
13663
13664 2010-04-28  Eric Blake  <eblake@redhat.com>
13665
13666         canonicalize-lgpl: avoid compiler warning
13667         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13668         declaration' / 'extraneous semicolon' warning with some compilers.
13669         Reported by Andreas Gruenbacher.
13670
13671 2010-04-28  Jim Meyering  <meyering@redhat.com>
13672
13673         init.sh: ensure a more reliable exit status when exiting via trap
13674         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13675         Inspired by patches from Dmitry V. Levin.
13676         Also trap on signal 3 (SIGQUIT).
13677
13678 2010-04-27  Bruno Haible  <bruno@clisp.org>
13679
13680         Update doc about utimes().
13681         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13682         'utimens' module.
13683         Reported by Andreas Gruenbacher <agruen@suse.de>.
13684
13685 2010-04-27  Eric Blake  <eblake@redhat.com>
13686
13687         full-read, full-write: relax license
13688         * modules/full-read (License): Drop to LGPLv2+.
13689         * modules/full-write (License): Likewise.
13690         * modules/safe-read (License): Likewise.
13691         * modules/safe-write (License): Likewise.
13692
13693         pthread: mention library for linking
13694         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13695
13696 2010-04-27  Jim Meyering  <meyering@redhat.com>
13697
13698         maint.mk: fix a bug introduced in last change
13699         * top/maint.mk (gl_assured_headers_): Now that all names are on
13700         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13701         is not anchored to end of word, it should be adequate.
13702
13703         maint.mk: avoid side-effect in latest syntax-check
13704         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13705         to run commands via $(shell...), and hence to incur cost only when
13706         the new rule is actually run.
13707
13708         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13709         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13710         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13711         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13712         (gl_assured_headers_, az_, AZ_): Define.
13713         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13714
13715 2010-04-26  Jim Meyering  <jim@meyering.net>
13716             Bruno Haible  <bruno@clisp.org>
13717
13718         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13719         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13720         Prompted by an exchange with Gilles Espinasse.
13721
13722 2010-04-26  Jim Meyering  <meyering@redhat.com>
13723
13724         git-version-gen: aesthetic tweak
13725         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13726         so that the command remains on a single line.
13727
13728 2010-04-26  Eric Blake  <eblake@redhat.com>
13729
13730         git-version-gen: allow use on EBCDIC hosts
13731         * build-aux/git-version-gen (dirty): Use literal rather than tying
13732         ourselves to ascii.
13733         Reported by Steve Goetze.
13734
13735 2010-04-25  Bruno Haible  <bruno@clisp.org>
13736
13737         netdb: Add support for GNULIB_POSIXCHECK.
13738         * lib/netdb.in.h: Include warn-on-use.h.
13739         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13740         functions are used when GNULIB_POSIXCHECK is defined and the
13741         getaddrinfo module is not in use.
13742         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13743         freeaddrinfo, gai_strerror, getnameinfo are declared.
13744         * modules/netdb (Depends-on): Add warn-on-use.
13745         (Makefile.am): Include warn-on-use.h in netdb.h.
13746
13747 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13748
13749         build: avoid "make check" failure without .git/ directory
13750         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13751         there is no .git/ directory.
13752
13753 2010-04-25  Bruno Haible  <bruno@clisp.org>
13754
13755         ptsname: Fix misuse of ttyname_r.
13756         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13757         of errno.
13758
13759 2010-04-25  Bruno Haible  <bruno@clisp.org>
13760
13761         ttyname_r: Make it work on Solaris 10.
13762         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13763         if the system function has the POSIX declaration. Test whether the
13764         function fails if the buffer is less than 128 bytes large.
13765         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13766         system's ttyname_r function. Provide a reasonably large buffer.
13767         * modules/ttyname_r (Depends-on): Add extensions.
13768         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13769
13770 2010-04-25  Bruno Haible  <bruno@clisp.org>
13771
13772         Use the 'extensions' module for some more functions on Solaris.
13773         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13774         module.
13775         * doc/posix-functions/ctime_r.texi: Likewise.
13776         * doc/posix-functions/getgrgid_r.texi: Likewise.
13777         * doc/posix-functions/getgrnam_r.texi: Likewise.
13778         * doc/posix-functions/getpwnam_r.texi: Likewise.
13779         * doc/posix-functions/getpwuid_r.texi: Likewise.
13780         * doc/posix-functions/readdir_r.texi: Likewise.
13781         * doc/posix-functions/sigwait.texi: Likewise.
13782         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13783         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13784
13785 2010-04-25  Bruno Haible  <bruno@clisp.org>
13786
13787         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13788         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13789         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13790         * lib/ttyname_r.c: Include <limits.h>.
13791         (ttyname_r): Define using the system's ttyname_r function, if it exists
13792         and not on Solaris.
13793         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13794         set.
13795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13796         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13797         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13798         Reported by Simon Josefsson.
13799
13800 2010-04-25  Bruno Haible  <bruno@clisp.org>
13801
13802         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13803         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13804         * doc/posix-functions/ctime_r.texi: Likewise.
13805         * doc/posix-functions/getgrgid_r.texi: Likewise.
13806         * doc/posix-functions/getgrnam_r.texi: Likewise.
13807         * doc/posix-functions/getlogin_r.texi: Likewise.
13808         * doc/posix-functions/getpwnam_r.texi: Likewise.
13809         * doc/posix-functions/getpwuid_r.texi: Likewise.
13810         * doc/posix-functions/readdir_r.texi: Likewise.
13811         * doc/posix-functions/sigwait.texi: Likewise.
13812         * doc/posix-functions/ttyname_r.texi: Likewise.
13813         Reported by Simon Josefsson.
13814
13815 2010-04-25  Bruno Haible  <bruno@clisp.org>
13816
13817         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13818         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13819         also to --create-testdir.
13820         (func_acceptable): Don't consider the status of *-tests modules here.
13821         (func_modules_transitive_closure): Consider it here, before including a
13822         test module.
13823         (func_import, func_create_testdir): Set inc_all_direct_tests,
13824         inc_all_indirect_tests.
13825         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13826         --create-testdir and --create-megatestdir.
13827
13828 2010-04-25  Bruno Haible  <bruno@clisp.org>
13829
13830         gnulib-tool: Add --without-*-tests options.
13831         * gnulib-tool (func_usage): Document the --without-*-tests options.
13832         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13833         excl_unportable_tests): New variables.
13834         Fail if they are specified with --import or --update.
13835         (func_acceptable): Respect the excl_*_tests variables.
13836         (func_import): Set the excl_*_tests variables to empty.
13837
13838 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13839             Bruno Haible  <bruno@clisp.org>
13840
13841         Work around a MacOS X 10.4 bug with openpty.
13842         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13843         * tests/test-openpty.c (main): Close the master side explicitly.
13844
13845 2010-04-25  Bruno Haible  <bruno@clisp.org>
13846
13847         strnlen: Fix a C++ test error on MacOS X and Solaris.
13848         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13849         the function is not declared.
13850         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13851         Simon Josefsson.
13852
13853 2010-04-24  Bruno Haible  <bruno@clisp.org>
13854
13855         Avoid a gcc warning.
13856         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13857         of correct type for %08lx directive.
13858         Reported by Eric Blake.
13859
13860 2010-04-24  Bruno Haible  <bruno@clisp.org>
13861
13862         vasnprintf: Correct errno value in case of out-of-memory.
13863         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13864         or sprintf. Use the errno value from SNPRINTF or sprintf.
13865         Reported by Ian Beckwith <ianb@erislabs.net>.
13866
13867 2010-04-24  Bruno Haible  <bruno@clisp.org>
13868
13869         ansi-c++-opt: Find correct compiler when cross-compiling.
13870         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13871         AC_CHECK_PROGS.
13872         Reported by Simon Josefsson.
13873
13874 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13875
13876         vc-list-files: Add support for subversion
13877         * build-aux/vc-list-files: Use "svn list" to generate the list of
13878         files controlled by subversion.
13879
13880 2010-04-23  Jim Meyering  <meyering@redhat.com>
13881
13882         vc-list-files tests: convert to use init.sh
13883         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13884         path_prepend_.
13885         Use Exit, not exit.
13886         Use skip_ rather than open coding it.
13887         Remove trap set-up and compare definitions.
13888         * tests/test-vc-list-files-git.sh: Likewise.
13889         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13890
13891 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13892
13893         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13894         backup files.
13895
13896 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13897
13898         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13899
13900 2010-04-20  Eric Blake  <eblake@redhat.com>
13901
13902         tests: be robust to ignored SIGPIPE
13903         * tests/test-select-in.sh: Consume all output.
13904         * tests/test-lseek.sh: Check correct exit status, while avoiding
13905         EPIPE.
13906
13907 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13908             Bruno Haible  <bruno@clisp.org>
13909
13910         visibility: Don't use -fvisibility if it leads to a warning.
13911         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13912         yes, don't pretend that visibility works if it leads to a warning.
13913         Reported by Mike Gran <spk121@yahoo.com>.
13914
13915 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13916
13917         * build-aux/bootstrap: Use "git -h" for testing for supported options
13918         instead of "git --help".  The short-form option only shows a summary,
13919         and doesn't layout the full man page.  Grep for the full option name
13920         in the summary, too.
13921
13922 2010-04-19  Bruno Haible  <bruno@clisp.org>
13923
13924         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13926         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13927         mention of RELOCATABLE_STRIP.
13928         Reported by Sylvain Beucler <beuc@beuc.net>.
13929
13930 2010-04-19  Bruno Haible  <bruno@clisp.org>
13931
13932         * lib/diffseq.h: Fix typo in comment.
13933         Reported by Eric Blake.
13934
13935 2010-04-19  Bruno Haible  <bruno@clisp.org>
13936
13937         ioctl: Move autoconf macro to a .m4 file.
13938         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13939         * modules/ioctl (Files): Add it.
13940         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13941         Reported by Ian Beckwith <ianb@erislabs.net>.
13942
13943 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13944             Bruno Haible  <bruno@clisp.org>
13945
13946         diffseq: Accommodate use-case with abstract arrays.
13947         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13948         is not defined.
13949         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13950         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13951
13952 2010-04-18  Bruno Haible  <bruno@clisp.org>
13953
13954         * doc/posix-headers/stdbool.texi: More precise wording.
13955
13956 2010-04-17  Jim Meyering  <meyering@redhat.com>
13957
13958         maint.mk: use gnu-style indentation in an embedded perl script
13959         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13960         Rename variable: s/two/last_two_bytes/
13961
13962 2010-04-16  Eric Blake  <eblake@redhat.com>
13963
13964         test-stdbool: skip test that fails with Solaris CC
13965         * tests/test-stdbool.c (f): Skip test that causes compilation
13966         error under buggy C++ compiler.
13967         * lib/stdbool.in.h: Document the limitation.
13968         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13969
13970         setenv: allow compilation with C++
13971         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13972         register keyword.
13973
13974         stdint: allow test to pass with C++
13975         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13976
13977         getopt: allow compilation with C++
13978         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13979         struct.
13980         * lib/getopt.c (_getopt_internal_r): Use correct type.
13981         Reported by Dagobert Michelson, via Joel E. Denny.
13982
13983 2010-04-16  Bruno Haible  <bruno@clisp.org>
13984
13985         Override netdb.h always.
13986         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13987         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13988         Reported by Ludovic Courtès <ludo@gnu.org>.
13989
13990 2010-04-15  Bruno Haible  <bruno@clisp.org>
13991
13992         openpty: Fix mistake from 2010-03-21.
13993         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13994         Reported by Simon Josefsson.
13995
13996 2010-04-15  Eric Blake  <eblake@redhat.com>
13997
13998         test-forkpty: fix expected signature
13999         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14000         Reported by Simon Josefsson.
14001
14002 2010-04-15  Jim Meyering  <meyering@redhat.com>
14003
14004         maint.mk: texinfo_suffix_re_: correct the default regexp
14005         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14006
14007         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14008         make it configurable via texinfo_suffix_re_.
14009
14010 2010-04-14  Eric Blake  <eblake@redhat.com>
14011
14012         strtok_r: relax license to LGPLv2+
14013         * modules/strtok_r (License): Relax license.
14014         Reported by Matthias Bolte.
14015
14016 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14017
14018         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14019         version 1.4.4 by default instead of requiring the libgcrypt
14020         version used during build.  This makes it possible to use the
14021         application with older but still binary compatible libgcrypt
14022         versions.
14023
14024 2010-04-13  Eric Blake  <eblake@redhat.com>
14025
14026         getopt-gnu: match recent glibc fixes and posix ruling
14027         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14028         '+' handling, when requesting extensions.
14029         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14030         'W;' handling.
14031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14032         * doc/posix-functions/getopt.texi (getopt): Document this.
14033         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14034         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14035         Likewise.
14036
14037         getopt: merge bug fixes from glibc
14038         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14039         diagnostics.  Honor '+:' correctly.  Reject ';'.
14040
14041         getopt-posix: detect MacOS bug
14042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14043         optind when missing a required argument.
14044         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14045         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14046         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14047         Likewise.
14048
14049         getopt-posix: avoid spurious failure on Solaris
14050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14051         an indicator that setting optind=1 is sufficient for reset.
14052
14053         getopt-posix: avoid spurious failure on FreeBSD
14054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14055         in POSIX mode, since the m4 test uses it.
14056
14057         gnulib-tool: silence warning on BSD sh
14058         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14059
14060 2010-04-13  Jim Meyering  <meyering@redhat.com>
14061
14062         doc: users.txt: GNU patch now uses gnulib
14063         * users.txt: Add patch.
14064
14065 2010-04-12  Jim Meyering  <meyering@redhat.com>
14066
14067         maint.mk: generate more concise timing data for syntax-check rules
14068         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14069         " done" from each line that reports a syntax-check test duration.
14070
14071 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14072
14073         git-version-gen: use "git update-index..." rather than "git status"
14074         * build-aux/git-version-gen: Use git update-index --refresh, not
14075         "git status".  With some versions of git, "git status" would fail
14076         to update the index and result in an unwarranted "-dirty" suffix.
14077
14078 2010-04-11  Jim Meyering  <meyering@redhat.com>
14079
14080         openat: correct formatting (no semantic change)
14081         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14082         Suggested by Bruno Haible.
14083
14084 2010-04-11  Bruno Haible  <bruno@clisp.org>
14085
14086         Stricter declaration checking in testdirs.
14087         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14088         If for_tests is true, augment AM_CPPFLAGS to define
14089         GNULIB_STRICT_CHECKING.
14090         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14091         GNULIB_STRICT_CHECKING is defined, verify that the function is
14092         declared.
14093
14094 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14095             Bruno Haible  <bruno@clisp.org>
14096
14097         libunistring: Improve configure output.
14098         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14099         Don't say "consider installing GNU libunistring" when checking again
14100         with libiconv.
14101
14102 2010-04-11  Bruno Haible  <bruno@clisp.org>
14103
14104         libunistring: Correct value of $LTLIBUNISTRING.
14105         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14106         correct the value of $LTLIBUNISTRING.
14107
14108 2010-04-11  Bruno Haible  <bruno@clisp.org>
14109
14110         havelib: Add static libraries to LIBS in the right order.
14111         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14112         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14113
14114 2010-04-11  Bruno Haible  <bruno@clisp.org>
14115
14116         libunistring: Detect libunistring also when it depends on libiconv.
14117         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14118         the second AC_LIB_HAVE_LINKFLAGS invocation.
14119
14120 2010-04-11  James Youngman  <jay@gnu.org>
14121
14122         close-stream: declare local scalars to be "const"
14123         * lib/close-stream.c (close_stream): Make boolean variables const
14124         to document the fact that we set but do not change them.
14125
14126 2010-04-11  Bruno Haible  <bruno@clisp.org>
14127
14128         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14129
14130 2010-04-11  Jim Meyering  <meyering@redhat.com>
14131
14132         maint.mk: don't include dist-check.mk
14133         * top/maint.mk: Remove bogus include directive.
14134
14135         maint.mk: improve empty-line-at-EOF check
14136         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14137         solution, rather than tail+Perl-based one.  The latter would read
14138         a few kilobytes from the end of each file, and did not handle empty
14139         files properly.
14140
14141         maint.mk: print the elapsed time for each syntax-check rule
14142         * top/maint.mk (sc_m_rules_): Save start time in a file.
14143         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14144         (local-check): Interpose the .z rules
14145
14146 2010-04-11  Jim Meyering  <meyering@redhat.com>
14147
14148         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14149         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14150         empty file with one that ends in an empty line.
14151
14152 2010-04-10  Bruno Haible  <bruno@clisp.org>
14153
14154         mkdir: Make it work on mingw64.
14155         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14156         * lib/mkdir.c: Update comment.
14157         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14158
14159 2010-04-10  Bruno Haible  <bruno@clisp.org>
14160
14161         Don't override improved macro from newer autoconf.
14162         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14163         autoconf >= 2.62.
14164         Reported by Joel E. Denny <jdenny@clemson.edu>.
14165
14166 2010-04-10  Jim Meyering  <meyering@redhat.com>
14167
14168         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14169         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14170
14171         maint.mk: correct a diagnostic
14172         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14173         in diagnostic; now use $prohibit.
14174
14175 2010-04-10  Bruno Haible  <address@hidden>
14176
14177         fchownat: Fix a C++ test error on Solaris 8.
14178         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14179         the function does not exist.
14180
14181 2010-04-10  Bruno Haible  <bruno@clisp.org>
14182
14183         vasnprintf: Add more tests.
14184         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14185         (test_function): Test converting an invalid wide string.
14186
14187         vasnprintf: Correct handling of unconvertible wide string arguments.
14188         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14189         VASNPRINTF.
14190         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14191         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14192         smaller than the expected maximum need for the directive. Set errno to
14193         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14194         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14196         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14197         * modules/vasnprintf (Files): Add m4/printf.m4.
14198         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14199
14200 2010-04-10  Bruno Haible  <bruno@clisp.org>
14201
14202         vasnprintf: Fix crash in %ls directive.
14203         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14204         string is passed as argument to %ls, with no precision and no width.
14205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14206
14207 2010-04-10  Bruno Haible  <bruno@clisp.org>
14208
14209         vasnprintf: Fix multiple test failures on mingw.
14210         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14211         _snprintf, or snwprintf, not _snwprintf.
14212
14213 2010-04-10  Bruno Haible  <bruno@clisp.org>
14214
14215         write: Fix a C++ test error on mingw.
14216         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14217
14218 2010-04-10  Bruno Haible  <bruno@clisp.org>
14219
14220         vasnprintf test: Reduce code duplication.
14221         * tests/test-vasnprintf.c (test_function): New function, extracted from
14222         test_vasnprintf.
14223         (test_vasnprintf, test_asnprintf): Invoke it.
14224
14225 2010-04-10  Bruno Haible  <bruno@clisp.org>
14226
14227         strnlen: Fix warning in C++ mode on MacOS X.
14228         * lib/string.in.h (strnlen): Use the modern idiom.
14229         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14230         defining strnlen as a macro already in <config.h>.
14231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14232         REPLACE_STRNLEN.
14233         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14234         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14235
14236 2010-04-08  James Youngman  <jay@gnu.org>
14237
14238         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14239         the example.
14240
14241 2010-04-09  Jim Meyering  <meyering@redhat.com>
14242
14243         maint.mk: print better diagnostic when there is no $(_hv_file)
14244         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14245         announce that when $(_hv_file) (aka help-version) does not exist.
14246
14247         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14248         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14249         not try to interpret its random input bytes.  Jarno Rajahalme reported
14250         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14251         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14252         (mktempd_): Likewise, just in case.
14253
14254         ftruncate: add two years to projected module removal date: 2012
14255         * m4/ftruncate.m4: Adjust comments.
14256
14257         ftruncate: mark module as obsolete; even MinGW provides it, now
14258         * modules/ftruncate (Status): Obsolete.
14259         (Notice): Say that.
14260         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14261         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14262
14263 2010-04-08  Bruno Haible  <bruno@clisp.org>
14264
14265         Fix side effects from tests-related modules.
14266         * modules/dprintf-posix (Comment): New section.
14267         * modules/fprintf-posix (Comment): Likewise.
14268         * modules/obstack-printf-posix (Comment): Likewise.
14269         * modules/printf-posix (Comment): Likewise.
14270         * modules/snprintf-posix (Comment): Likewise.
14271         * modules/sprintf-posix (Comment): Likewise.
14272         * modules/vasnprintf-posix (Comment): Likewise.
14273         * modules/vasprintf-posix (Comment): Likewise.
14274         * modules/vdprintf-posix (Comment): Likewise.
14275         * modules/vfprintf-posix (Comment): Likewise.
14276         * modules/vprintf-posix (Comment): Likewise.
14277         * modules/vsnprintf-posix (Comment): Likewise.
14278         * modules/vsprintf-posix (Comment): Likewise.
14279         * modules/xprintf-posix (Comment): Likewise.
14280         * modules/xvasprintf-posix (Comment): Likewise.
14281         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14282         * modules/floorf-tests (Depends-on): Likewise.
14283         * modules/round-tests (Depends-on): Likewise.
14284         * modules/roundf-tests (Depends-on): Likewise.
14285         * modules/trunc-tests (Depends-on): Likewise.
14286         * modules/truncf-tests (Depends-on): Likewise.
14287         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14288         'fprintf-posix' module is not present.
14289         * tests/test-floorf2.c (check): Likewise.
14290         * tests/test-trunc2.c (check): Likewise.
14291         * tests/test-truncf2.c (check): Likewise.
14292         * tests/test-round2.c (equal): Likewise.
14293         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14294
14295 2010-04-07  Karl Berry  <karl@gnu.org>
14296
14297         * config/srclist.txt,
14298         * config/srclistvars.sh,
14299         * config/srclist-update: doc fixes.
14300
14301 2010-04-07  Jim Meyering  <meyering@redhat.com>
14302
14303         maint.mk: add a PATH crosschecking syntax-check rule
14304         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14305         Useful if you use a test like the one in help-version (coreutils,
14306         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14307         printed by prog --version.
14308
14309 2010-04-06  Bruno Haible  <bruno@clisp.org>
14310
14311         Fix link error on mingw.
14312         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14313         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14314
14315 2010-04-06  Bruno Haible  <bruno@clisp.org>
14316
14317         Assume rmdir exists.
14318         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14319
14320 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14321
14322         doc: update users.txt
14323         * users.txt: Add gcal.
14324
14325 2010-04-06  Jim Meyering  <meyering@redhat.com>
14326
14327         init.sh: simply unset TMPDIR rather than risking env -i
14328         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14329         although it probably works fine on all Unix-based systems, some
14330         systems (Cygwin?) cannot tolerate a totally cleared environment.
14331         Suggestion from Eric Blake.
14332
14333 2010-04-06  Jim Meyering  <meyering@redhat.com>
14334
14335         init.sh: portability fix: use env's POSIX-specified -i option not -u
14336         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14337         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14338
14339 2010-04-05  Bruno Haible  <bruno@clisp.org>
14340
14341         btowc: Work around Cygwin 1.7.2 bug.
14342         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14343         does not map NUL to 0.
14344         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14345
14346 2010-04-05  Bruno Haible  <bruno@clisp.org>
14347
14348         Make the multithread modules work on Cygwin 1.7.2.
14349         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14350         imported symbols can be declared weak, so that it returns "no" on
14351         Cygwin 1.7.2.
14352
14353 2010-04-05  Bruno Haible  <bruno@clisp.org>
14354
14355         Use the module 'strncat'.
14356         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14357
14358         Tests for module 'strncat'.
14359         * modules/strncat-tests: New file.
14360         * tests/test-strncat.c: New file.
14361
14362         New module 'strncat'.
14363         * lib/string.in.h (strncat): New declaration.
14364         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14365         * m4/strncat.m4: New file, based on m4/memchr.m4.
14366         * modules/strncat: New file.
14367         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14368         is declared.
14369         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14370         REPLACE_STRNCAT.
14371         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14372         REPLACE_STRNCAT.
14373         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14374         module.
14375         * tests/test-string-c++.cc: Check signature of strncat.
14376
14377 2010-04-05  Jim Meyering  <meyering@redhat.com>
14378
14379         xstrtoumax-tests: convert to use init.sh
14380         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14381         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14382         Use Exit, not exit.
14383         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14384
14385         xstrtoimax-tests: convert to use init.sh
14386         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14387         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14388         Use Exit, not exit.
14389         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14390
14391 2010-04-05  Bruno Haible  <bruno@clisp.org>
14392
14393         sys_socket: Avoid #define replacements in C++ mode.
14394         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14395         warning to the function if possible, rather than #defining the symbol
14396         to a dysfunctional alias.
14397
14398 2010-04-05  Bruno Haible  <bruno@clisp.org>
14399
14400         fseeko: Fix C++ test error on mingw.
14401         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14402         gl_FUNC_FSEEKO.
14403         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14404         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14405         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14406         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14407
14408 2010-04-05  Bruno Haible  <bruno@clisp.org>
14409
14410         duplocale: Improve test output.
14411         * tests/test-duplocale.c (main): Print reason for skipped test.
14412
14413 2010-04-05  Bruno Haible  <bruno@clisp.org>
14414
14415         Assume rmdir exists.
14416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14417         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14418
14419 2010-04-05  Bruno Haible  <bruno@clisp.org>
14420
14421         Fix link error on Solaris 8 with cc.
14422         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14423
14424 2010-04-05  Bruno Haible  <bruno@clisp.org>
14425
14426         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14427         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14428
14429 2010-04-05  Bruno Haible  <bruno@clisp.org>
14430
14431         vasprintf: Update documentation.
14432         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14433
14434 2010-04-05  Bruno Haible  <bruno@clisp.org>
14435
14436         ptsname: Improve test.
14437         * tests/test-ptsname.c (main): Also try the various master names of BSD
14438         systems.
14439
14440 2010-04-05  Bruno Haible  <bruno@clisp.org>
14441
14442         memchr: Avoid a possible C++ test error.
14443         * lib/string.in.h (memchr): Provide declaration if function is missing.
14444         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14445         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14447         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14448
14449 2010-04-05  Bruno Haible  <bruno@clisp.org>
14450
14451         strtok_r: Improve idiom.
14452         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14453         AC_LIBOBJ is used.
14454
14455 2010-04-05  Bruno Haible  <bruno@clisp.org>
14456
14457         strdup: Improve idiom.
14458         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14459         AC_LIBOBJ is used.
14460         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14461         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14462         when AC_LIBOBJ is used.
14463
14464 2010-04-05  Bruno Haible  <bruno@clisp.org>
14465
14466         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14467         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14468         don't set REPLACE_MBSINIT to 1.
14469         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14470         don't set REPLACE_MBRTOWC to 1.
14471         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14472         exist, don't set REPLACE_MBSRTOWCS to 1.
14473         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14474         exist, don't set REPLACE_MBSNRTOWCS to 1.
14475         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14476         don't set REPLACE_WCRTOMB to 1.
14477         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14478         exist, don't set REPLACE_WCSRTOMBS to 1.
14479         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14480         exist, don't set REPLACE_WCSNRTOMBS to 1.
14481
14482 2010-04-05  Bruno Haible  <bruno@clisp.org>
14483
14484         ldexpl: Improve idiom.
14485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14486         make sure to set HAVE_DECL_LDEXPL to 0.
14487
14488 2010-04-05  Jim Meyering  <meyering@redhat.com>
14489
14490         xstrtol-tests: convert to use init.sh
14491         * modules/xstrtol-tests (Files): Add tests/init.sh.
14492         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14493         Use Exit, not exit.
14494         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14495
14496         atexit-tests: convert to use init.sh
14497         * modules/atexit-tests (Files): Add tests/init.sh.
14498         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14499         Use Exit, not exit.
14500         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14501
14502         init.sh: fix typo
14503         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14504
14505         init.sh: make it easier for a test script to write to the tty, ...
14506         when using automake's parallel-tests mode.
14507         * tests/init.sh (stderr_fileno_): Define overridable variable.
14508         (warn_): New function, to use it.
14509         (fail_, skip_, framework_failure_): Use warn_.
14510
14511 2010-04-04  Bruno Haible  <bruno@clisp.org>
14512
14513         btowc: Avoid warning.
14514         * lib/btowc.c: Include <stdlib.h>.
14515         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14516
14517 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14518             Bruno Haible  <bruno@clisp.org>
14519
14520         wchar: Port to NetBSD 1.5.
14521         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14522         * lib/wctype.in.h (WEOF): Likewise.
14523
14524 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14525             Bruno Haible  <bruno@clisp.org>
14526
14527         Port extended stdio to NetBSD 1.5.
14528         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14529         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14530         older.
14531
14532 2010-04-04  Bruno Haible  <bruno@clisp.org>
14533
14534         string: Remove unused substitution.
14535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14536         HAVE_DECL_STRERROR.
14537         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14538
14539 2010-04-04  Bruno Haible  <bruno@clisp.org>
14540
14541         strtod: Avoid a possible C++ test error.
14542         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14543         set REPLACE_STRTOD.
14544
14545 2010-04-04  Bruno Haible  <bruno@clisp.org>
14546
14547         strerror: Update documentation.
14548         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14549
14550 2010-04-04  Bruno Haible  <bruno@clisp.org>
14551
14552         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14553         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14554         _GL_CXXALIAS_SYS_CAST.
14555
14556 2010-04-04  Bruno Haible  <bruno@clisp.org>
14557
14558         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14559         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14560         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14561         REPLACE_FREXPL to 1.
14562         * doc/posix-functions/frexpl.texi: Update documentation.
14563
14564 2010-04-04  Bruno Haible  <bruno@clisp.org>
14565
14566         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14567         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14568
14569 2010-04-04  Bruno Haible  <bruno@clisp.org>
14570
14571         Implement nanosleep for native Windows.
14572         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14573
14574 2010-04-04  Bruno Haible  <bruno@clisp.org>
14575
14576         math: Fix some C++ test errors on Solaris 8.
14577         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14578
14579 2010-04-04  Bruno Haible  <bruno@clisp.org>
14580
14581         math: Fix some C++ test errors on Cygwin.
14582         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14583         truncl): Provide declaration if the system does not have it.
14584         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14585         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14586         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14587         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14588         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14589         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14590         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14591         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14592         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14593         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14594         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14595         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14596         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14597         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14598         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14599         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14601         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14602         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14603         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14604         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14605         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14606
14607 2010-04-04  Bruno Haible  <bruno@clisp.org>
14608
14609         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14610         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14611         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14612         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14613         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14614         * m4/isinf.m4 (gl_ISINF): Likewise.
14615         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14616
14617 2010-04-04  Bruno Haible  <bruno@clisp.org>
14618
14619         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14620         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14621
14622 2010-04-04  Bruno Haible  <bruno@clisp.org>
14623
14624         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14625         * modules/tmpfile (configure.ac): Update.
14626
14627         tmpfile: Fix C++ test error on mingw.
14628         * lib/stdio.in.h (tmpfile): New declaration.
14629         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14630         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14631         * modules/tmpfile (Depends-on): Add stdio.
14632         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14633         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14634         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14635         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14636         REPLACE_TMPFILE.
14637         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14638
14639 2010-04-04  Bruno Haible  <bruno@clisp.org>
14640
14641         ioctl: Fix C++ test error on mingw.
14642         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14643         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14644         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14645
14646 2010-04-03  Bruno Haible  <bruno@clisp.org>
14647
14648         wcwidth: Fix C++ test error on mingw.
14649         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14651         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14652
14653 2010-04-03  Bruno Haible  <bruno@clisp.org>
14654
14655         nanosleep: Fix C++ test error on mingw.
14656         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14657         * lib/time.in.h (nanosleep): Use modern idiom.
14658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14659         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14660         REPLACE_NANOSLEEP to 1.
14661         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14662         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14663
14664 2010-04-03  Bruno Haible  <bruno@clisp.org>
14665
14666         strptime: Fix C++ test error on mingw.
14667         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14668         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14669         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14670         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14672         not REPLACE_STRPTIME.
14673         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14674         REPLACE_STRPTIME.
14675
14676 2010-04-03  Bruno Haible  <bruno@clisp.org>
14677
14678         timegm: Fix C++ test error on mingw.
14679         * lib/time.in.h (timegm): Use modern idiom.
14680         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14681         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14682         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14683         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14684
14685 2010-04-03  Bruno Haible  <bruno@clisp.org>
14686
14687         timegm: Assume declaration if function exists.
14688         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14689         if it exists. Don't clobber ac_cv_func_timegm.
14690
14691 2010-04-03  Bruno Haible  <bruno@clisp.org>
14692
14693         time_r: Fix C++ test error on mingw.
14694         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14695         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14696         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14697         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14698         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14699
14700 2010-04-03  Bruno Haible  <bruno@clisp.org>
14701
14702         time_r: Minor updates.
14703         * modules/time_r (Description): Mention the provided functions.
14704         * lib/time_r.c: Don't include <string.h>.
14705         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14706         * doc/posix-functions/localtime_r.texi: Likewise.
14707
14708 2010-04-03  Bruno Haible  <bruno@clisp.org>
14709
14710         time: Fix regression introduced on 2010-03-08.
14711         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14712         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14713
14714 2010-04-03  Jim Meyering  <meyering@redhat.com>
14715
14716         maint.mk: don't silently disable project-specific syntax-check rules
14717         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14718         that they need to convert their project-specific syntax-check rules
14719         to use the new _sc_search_regexp.
14720
14721 2010-04-03  Bruno Haible  <bruno@clisp.org>
14722
14723         fchdir: Fix regression introduced on 2010-03-08.
14724         * lib/unistd.in.h (fchdir): Fix declaration.
14725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14727         REPLACE_FCHDIR.
14728         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14729         REPLACE_FCHDIR.
14730
14731 2010-04-03  Bruno Haible  <bruno@clisp.org>
14732
14733         getpagesize: Fix C++ test error on mingw.
14734         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14735         system does not declare the function.
14736         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14737         declared.
14738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14739         HAVE_DECL_GETPAGESIZE.
14740         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14741
14742 2010-04-03  Bruno Haible  <bruno@clisp.org>
14743
14744         stdio: Make C++ tests work on mingw.
14745         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14746         does not declare the function.
14747
14748 2010-04-03  Bruno Haible  <bruno@clisp.org>
14749
14750         ftello: Fix C++ test error on mingw.
14751         * lib/stdio.in.h (ftello): Use modern idiom.
14752         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14753         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14754         is missing and that it needs to be replaced.
14755         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14757         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14758
14759 2010-04-03  Bruno Haible  <bruno@clisp.org>
14760
14761         fseeko: Fix C++ test error on mingw.
14762         * lib/stdio.in.h (fseeko): Use modern idiom.
14763         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14764         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14765         is missing and that it needs to be replaced.
14766         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14768         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14769
14770 2010-04-03  Bruno Haible  <bruno@clisp.org>
14771
14772         mkstemp: Fix C++ test error on mingw.
14773         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14774         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14775         function is missing and that it needs to be replaced.
14776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14777         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14778
14779 2010-04-03  Bruno Haible  <bruno@clisp.org>
14780
14781         stpncpy: Fix C++ test error on mingw.
14782         * lib/string.in.h (stpncpy): Use modern idiom.
14783         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14784         function is missing and that it needs to be replaced.
14785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14786         REPLACE_STPNCPY.
14787         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14788
14789 2010-04-03  Bruno Haible  <bruno@clisp.org>
14790
14791         sys_stat: Fix C++ test error on mingw.
14792         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14793         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14794
14795 2010-04-03  Bruno Haible  <bruno@clisp.org>
14796
14797         pty: Update doc.
14798         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14799
14800 2010-04-03  Bruno Haible  <bruno@clisp.org>
14801
14802         unistd: Fix C++ test error on mingw.
14803         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14804
14805 2010-04-03  Bruno Haible  <bruno@clisp.org>
14806
14807         Update doc regarding mingw.
14808         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14809         * doc/glibc-functions/login_tty.texi: Likewise.
14810         * doc/glibc-functions/forkpty.texi: Likewise.
14811
14812 2010-04-03  Bruno Haible  <bruno@clisp.org>
14813
14814         stdlib: Avoid compilation failure of c-strtold on mingw.
14815         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14816
14817 2010-04-03  Bruno Haible  <bruno@clisp.org>
14818
14819         locale: Make C++ tests work on Cygwin and mingw.
14820         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14821         cannot provide the function.
14822         Reported by Simon Josefsson.
14823
14824 2010-04-03  Bruno Haible  <bruno@clisp.org>
14825
14826         localename: Port to MacOS X 10.6.
14827         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14828         memory layout of the locales in MacOS X 10.6 as well.
14829         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14830
14831 2010-04-02  Bruno Haible  <bruno@clisp.org>
14832
14833         gnulib-tool: Ensure that long-running tests are executed last.
14834         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14835         running tests after the one for the other tests.
14836
14837 2010-04-02  Bruno Haible  <bruno@clisp.org>
14838
14839         gnulib-tool: Ensure the tests in the main directory are executed first.
14840         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14841         start with the current directory.
14842
14843 2010-04-02  Bruno Haible  <bruno@clisp.org>
14844
14845         Tests for module 'havelib', moved here from GNU gettext.
14846         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14847         modifications.
14848         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14849         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14850         with modifications.
14851         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14852         modifications.
14853         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14854         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14855         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14856         with modifications.
14857         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14858         with modifications.
14859         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14860         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14861         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14862         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14863         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14864         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14865         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14866         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14867         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14868         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14869         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14870         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14871         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14872         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14873         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14874         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14875         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14876         with modifications.
14877         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14878         with modifications.
14879         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14880         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14881         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14882         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14883         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14884         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14885         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14886         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14887         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14888         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14889         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14890         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14891         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14892         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14893         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14894         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14895         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14896         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14897         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14898         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14899         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14900         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14901         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14902         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14903         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14904         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14905         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14906         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14907         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14908         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14909         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14910         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14911         * tests/havelib/rpathx/rpathx.c: New file, from
14912         gettext/autoconf-lib-link.
14913         * tests/havelib/rpathx/Makefile.am: New file, from
14914         gettext/autoconf-lib-link.
14915         * tests/havelib/rpathx/configure.ac: New file, from
14916         gettext/autoconf-lib-link with modifications.
14917         * tests/havelib/rpathy/rpathy.c: New file, from
14918         gettext/autoconf-lib-link.
14919         * tests/havelib/rpathy/Makefile.am: New file, from
14920         gettext/autoconf-lib-link.
14921         * tests/havelib/rpathy/configure.ac: New file, from
14922         gettext/autoconf-lib-link with modifications.
14923         * tests/havelib/rpathz/rpathz.c: New file, from
14924         gettext/autoconf-lib-link.
14925         * tests/havelib/rpathz/Makefile.am: New file, from
14926         gettext/autoconf-lib-link.
14927         * tests/havelib/rpathz/configure.ac: New file, from
14928         gettext/autoconf-lib-link with modifications.
14929         * tests/havelib/rpathlx/usex.c: New file, from
14930         gettext/autoconf-lib-link.
14931         * tests/havelib/rpathlx/Makefile.am: New file, from
14932         gettext/autoconf-lib-link.
14933         * tests/havelib/rpathlx/configure.ac: New file, from
14934         gettext/autoconf-lib-link with modifications.
14935         * tests/havelib/rpathly/usey.c: New file, from
14936         gettext/autoconf-lib-link.
14937         * tests/havelib/rpathly/Makefile.am: New file, from
14938         gettext/autoconf-lib-link.
14939         * tests/havelib/rpathly/configure.ac: New file, from
14940         gettext/autoconf-lib-link with modifications.
14941         * tests/havelib/rpathlz/usez.c: New file, from
14942         gettext/autoconf-lib-link.
14943         * tests/havelib/rpathlz/Makefile.am: New file, from
14944         gettext/autoconf-lib-link.
14945         * tests/havelib/rpathlz/configure.ac: New file, from
14946         gettext/autoconf-lib-link with modifications.
14947         * tests/havelib/rpathlyx/usey.c: New file, from
14948         gettext/autoconf-lib-link.
14949         * tests/havelib/rpathlyx/Makefile.am: New file, from
14950         gettext/autoconf-lib-link.
14951         * tests/havelib/rpathlyx/configure.ac: New file, from
14952         gettext/autoconf-lib-link with modifications.
14953         * tests/havelib/rpathlzyx/usez.c: New file, from
14954         gettext/autoconf-lib-link.
14955         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14956         gettext/autoconf-lib-link.
14957         * tests/havelib/rpathlzyx/configure.ac: New file, from
14958         gettext/autoconf-lib-link with modifications.
14959         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14960         with modifications.
14961
14962 2010-04-02  Bruno Haible  <bruno@clisp.org>
14963
14964         gnulib-tool: Create distributed built sources also for the tests.
14965         * gnulib-tool (func_create_testdir): Also generate distributed built
14966         sources in the tests directory.
14967
14968 2010-04-02  Bruno Haible  <bruno@clisp.org>
14969
14970         gnulib-tool: Obey user's environment variables.
14971         * gnulib-tool (func_create_testdir): When creating built sources,
14972         respect the environment variables for autoconf, automake, etc. given by
14973         the user.
14974
14975 2010-04-02  Bruno Haible  <bruno@clisp.org>
14976
14977         gnulib-tool: Provide the value of --m4-base to modules.
14978         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14979         of gl_m4_base.
14980
14981 2010-04-02  Eric Blake  <eblake@redhat.com>
14982
14983         maint.mk: fix some fallout
14984         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14985         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14986
14987 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14988
14989         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14990         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14991         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14992         (sc_cast_of_x_alloc_return_value): Likewise.
14993         (sc_cast_of_alloca_return_value): Likewise.
14994         (sc_space_tab): Likewise.
14995         (sc_prohibit_atoi_atof): Likewise.
14996         (sc_prohibit_magic_number_exit): Likewise.
14997         (sc_error_exit_success): Likewise.
14998         (sc_file_system): Likewise.
14999         (sc_prohibit_have_config_h): Likewise.
15000         (sc_require_config_h): Likewise.
15001         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15002         (sc_obsolete_symbols): Likewise.
15003         (sc_changelog): Likewise.
15004         (sc_program_name): Likewise.
15005         (sc_the_the): Likewise.
15006         (sc_trailing_blank): Likewise.
15007         (sc_two_space_separator_in_usage): Likewise.
15008         (sc_useless_cpp_parens): Likewise.
15009         (sc_GPL_version): Likewise.
15010         (sc_GFDL_version): Likewise.
15011         (sc_texinfo_acronym): Likewise.
15012         (sc_prohibit_cvs_keyword): Likewise.
15013         (sc_prohibit_stat_st_blocks): Likewise.
15014         (sc_prohibit_S_IS_definition): Likewise.
15015         (sc_redundant_const): Likewise.
15016         (sc_makefile_TAB_only_indentation): Likewise.
15017         (sc_m4_quote_check): Likewise.
15018         (sc_makefile_path_separator_check): Likewise.
15019         (sc_copyright_check): Likewise.
15020         (sc_Wundef_boolean): Likewise.
15021         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15022
15023         maint.mk: match 0 or more whitespace-before-function-call '('
15024         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15025         that have zero or two-and-more spaces between the function name
15026         and the open parenthesis.
15027         (sc_error_message_warn_fatal): Likewise.
15028         (sc_error_message_uppercase): Likewise.
15029         (sc_error_message_period): Likewise.
15030
15031 2010-03-31  Eric Blake  <eblake@redhat.com>
15032
15033         maint.mk: check for [ as well as test
15034         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15035         Based on a libvirt report by Matthias Bolte.
15036
15037         gnumakefile: don't squelch _version output
15038         * top/GNUmakefile (_version): Create one-shot dependency rather
15039         than using $(shell) when version must be regenerated.
15040         (_autoreconf): Run verbosely, by default.
15041
15042         sys_time: avoid compiler warnings
15043         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15044         unconditional, fixing regression from 2010-03-29.
15045         Reported by Simon Josefsson.
15046
15047 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15048
15049         maint.mk: s/_header_without_use/_sc_header_without_use/
15050         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15051         (sc_prohibit_assert_without_use): Use the new name.
15052         (sc_prohibit_close_stream_without_use): Likewise.
15053         (sc_prohibit_getopt_without_use): Likewise.
15054         (sc_prohibit_quotearg_without_use): Likewise.
15055         (sc_prohibit_quote_without_use): Likewise.
15056         (sc_prohibit_long_options_without_use): Likewise.
15057         (sc_prohibit_inttostr_without_use): Likewise.
15058         (sc_prohibit_ignore_value_without_use): Likewise.
15059         (sc_prohibit_error_without_use): Likewise.
15060         (sc_prohibit_xalloc_without_use): Likewise.
15061         (sc_prohibit_hash_without_use): Likewise.
15062         (sc_prohibit_hash_pjw_without_use): Likewise.
15063         (sc_prohibit_safe_read_without_use): Likewise.
15064         (sc_prohibit_argmatch_without_use): Likewise.
15065         (sc_prohibit_canonicalize_without_use): Likewise.
15066         (sc_prohibit_root_dev_ino_without_use): Likewise.
15067         (sc_prohibit_openat_without_use): Likewise.
15068         (sc_prohibit_c_ctype_without_use): Likewise.
15069         (sc_prohibit_signal_without_use): Likewise.
15070         (sc_prohibit_intprops_without_use): Likewise.
15071
15072 2010-03-30  Eric Blake  <eblake@redhat.com>
15073
15074         maint: improve module indicators
15075         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15076         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15077         columns, and avoid extra macro expansion.
15078
15079         fdopendir: work around FreeBSD bug
15080         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15081         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15082         * modules/dirent (Makefile.am): Substitute it.
15083         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15084         declaration.
15085         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15086         fix.
15087         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15088
15089 2010-03-29  Bruno Haible  <bruno@clisp.org>
15090
15091         Emit #pragma system_header after the inclusion guard, not before.
15092         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15093         guard that spans the entire file, not before. This enables an
15094         optimization in GCC's preprocessor.
15095         * lib/ctype.in.h: Likewise.
15096         * lib/dirent.in.h: Likewise.
15097         * lib/errno.in.h: Likewise.
15098         * lib/float.in.h: Likewise.
15099         * lib/getopt.in.h: Likewise.
15100         * lib/iconv.in.h: Likewise.
15101         * lib/langinfo.in.h: Likewise.
15102         * lib/locale.in.h: Likewise.
15103         * lib/math.in.h: Likewise.
15104         * lib/netdb.in.h: Likewise.
15105         * lib/netinet_in.in.h: Likewise.
15106         * lib/pty.in.h: Likewise.
15107         * lib/sched.in.h: Likewise.
15108         * lib/se-selinux.in.h: Likewise.
15109         * lib/search.in.h: Likewise.
15110         * lib/spawn.in.h: Likewise.
15111         * lib/stdarg.in.h: Likewise.
15112         * lib/stdint.in.h: Likewise.
15113         * lib/string.in.h: Likewise.
15114         * lib/strings.in.h: Likewise.
15115         * lib/sys_file.in.h: Likewise.
15116         * lib/sys_ioctl.in.h: Likewise.
15117         * lib/sys_time.in.h: Likewise.
15118         * lib/sys_times.in.h: Likewise.
15119         * lib/sys_utsname.in.h: Likewise.
15120         * lib/sys_wait.in.h: Likewise.
15121         * lib/sysexits.in.h: Likewise.
15122         * lib/wctype.in.h: Likewise.
15123
15124 2010-03-28  James Youngman  <jay@gnu.org>
15125
15126         save-cwd: don't leak a file descriptor when the caller execs.
15127         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15128         saved file descriptor.
15129         * modules/save-cwd (Depends-on): Depend on cloexec.
15130
15131 2010-03-29  Bruno Haible  <bruno@clisp.org>
15132
15133         Remove vestiges of fts-lgpl module.
15134         * lib/fts_.h: Assume GNULIB_FTS is 1.
15135         * lib/fts.c: Likewise.
15136         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15137
15138 2010-03-28  Bruno Haible  <bruno@clisp.org>
15139
15140         Fix definition of tests witness macro.
15141         * gnulib-tool (func_import): Fix definition of witness macro.
15142
15143 2010-03-28  Bruno Haible  <bruno@clisp.org>
15144
15145         Fix ioctl's protoype on glibc systems.
15146         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15147         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15148         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15149         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15150         signature. If not, arrange to replace the ioctl function.
15151         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15152         REPLACE_IOCTL.
15153         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15154         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15155         Reported by Ludovic Courtès <ludo@gnu.org>.
15156
15157 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15158
15159         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15160         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15161         made it so grep -r --include=GLOB* ... did not work.
15162
15163 2010-03-26  Jim Meyering  <meyering@redhat.com>
15164             Eric Blake  <eblake@redhat.com>
15165
15166         maint.mk: prohibit use of test's -o and -a operators
15167         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15168
15169 2010-03-28  Bruno Haible  <bruno@clisp.org>
15170
15171         Remove unused GNULIB_XYZ macro definitions.
15172         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15173         invocation.
15174
15175 2010-03-28  Bruno Haible  <bruno@clisp.org>
15176
15177         Mark privileged tests modules.
15178         * modules/idpriv-drop-tests (Status): New section.
15179         * modules/idpriv-droptemp-tests (Status): New section.
15180
15181 2010-03-28  Bruno Haible  <bruno@clisp.org>
15182
15183         Split C++ tests into separate tests modules.
15184         * modules/dirent-c++-tests: New file, extracted from
15185         modules/dirent-tests.
15186         * modules/dirent-tests: Depend on it.
15187         * modules/fcntl-h-c++-tests: New file, extracted from
15188         modules/fcntl-h-tests.
15189         * modules/fcntl-h-tests: Depend on it.
15190         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15191         * modules/glob-tests: Depend on it.
15192         * modules/iconv-h-c++-tests: New file, extracted from
15193         modules/iconv-h-tests.
15194         * modules/iconv-h-tests: Depend on it.
15195         * modules/langinfo-c++-tests: New file, extracted from
15196         modules/langinfo-tests.
15197         * modules/langinfo-tests: Depend on it.
15198         * modules/locale-c++-tests: New file, extracted from
15199         modules/locale-tests.
15200         * modules/locale-tests: Depend on it.
15201         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15202         * modules/math-tests: Depend on it.
15203         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15204         * modules/pty-tests: Depend on it.
15205         * modules/search-c++-tests: New file, extracted from
15206         modules/search-tests.
15207         * modules/search-tests: Depend on it.
15208         * modules/signal-c++-tests: New file, extracted from
15209         modules/signal-tests.
15210         * modules/signal-tests: Depend on it.
15211         * modules/spawn-c++-tests: New file, extracted from
15212         modules/spawn-tests.
15213         * modules/spawn-tests: Depend on it.
15214         * modules/stdio-c++-tests: New file, extracted from
15215         modules/stdio-tests.
15216         * modules/stdio-tests: Depend on it.
15217         * modules/stdlib-c++-tests: New file, extracted from
15218         modules/stdlib-tests.
15219         * modules/stdlib-tests: Depend on it.
15220         * modules/string-c++-tests: New file, extracted from
15221         modules/string-tests.
15222         * modules/string-tests: Depend on it.
15223         * modules/sys_ioctl-c++-tests: New file, extracted from
15224         modules/sys_ioctl-tests.
15225         * modules/sys_ioctl-tests: Depend on it.
15226         * modules/sys_select-c++-tests: New file, extracted from
15227         modules/sys_select-tests.
15228         * modules/sys_select-tests: Depend on it.
15229         * modules/sys_socket-c++-tests: New file, extracted from
15230         modules/sys_socket-tests.
15231         * modules/sys_socket-tests: Depend on it.
15232         * modules/sys_stat-c++-tests: New file, extracted from
15233         modules/sys_stat-tests.
15234         * modules/sys_stat-tests: Depend on it.
15235         * modules/sys_time-c++-tests: New file, extracted from
15236         modules/sys_time-tests.
15237         * modules/sys_time-tests: Depend on it.
15238         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15239         * modules/time-tests: Depend on it.
15240         * modules/unistd-c++-tests: New file, extracted from
15241         modules/unistd-tests.
15242         * modules/unistd-tests: Depend on it.
15243         * modules/wchar-c++-tests: New file, extracted from
15244         modules/wchar-tests.
15245         * modules/wchar-tests: Depend on it.
15246         * modules/wctype-c++-tests: New file, extracted from
15247         modules/wctype-tests.
15248         * modules/wctype-tests: Depend on it.
15249         Reported by Simon Josefsson.
15250
15251 2010-03-28  Bruno Haible  <bruno@clisp.org>
15252
15253         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15254         * gnulib-tool (func_exists_module): New function, extracted from
15255         func_verify_module.
15256         (func_verify_module): Use it.
15257         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15258         'foo' only if 'foo' exists.
15259         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15260         module.
15261
15262 2010-03-28  Bruno Haible  <bruno@clisp.org>
15263
15264         gnulib-tool: Add support for special categories of tests.
15265         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15266         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15267         (func_usage): Document them.
15268         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15269         inc_unportable_tests, inc_all_tests): New variables.
15270         (func_acceptable): Consider these variables.
15271         (func_modules_transitive_closure): Make it work when the 'Status' field
15272         consists of multiple words.
15273         (func_import): Store and restore the values of inc_cxx_tests,
15274         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15275         inc_all_tests in gnulib-comp.m4.
15276         (func_create_testdir): Set inc_all_tests to true.
15277         * doc/gnulib.texi (Extra tests modules): New section.
15278         Suggested by Jim Meyering.
15279
15280 2010-03-28  Bruno Haible  <bruno@clisp.org>
15281
15282         ansi-c++-opt: Allow turning off the C++ build by default.
15283         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15284         gl_CXX_CHOICE_DEFAULT_NO is defined.
15285         Requested by Eric Blake.
15286
15287 2010-03-28  Bruno Haible  <bruno@clisp.org>
15288
15289         unistd: Avoid #define replacements in C++ mode.
15290         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15291         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15292         setsockopt, shutdown, select): In C++, attach a warning to the function
15293         if possible, rather than #defining the symbol to a dysfunctional alias.
15294         Reported by John W. Eaton <jwe@gnu.org>.
15295
15296 2010-03-28  Bruno Haible  <bruno@clisp.org>
15297
15298         Fix link errors on mingw.
15299         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15300         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15301         $(LIBSOCKET).
15302         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15303         $(LIBSOCKET).
15304
15305 2010-03-28  Bruno Haible  <bruno@clisp.org>
15306             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15307
15308         lib-ignore: Determine different options for different compilers.
15309         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15310         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15311         Add comments.
15312         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15313         * NEWS: Mention the change.
15314
15315 2010-03-27  Bruno Haible  <bruno@clisp.org>
15316
15317         Remove unused GNULIB_XYZ macro definitions.
15318         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15319         * modules/fseek (configure.ac): Likewise.
15320         * modules/ioctl (configure.ac): Likewise.
15321         * modules/open (configure.ac): Likewise.
15322         * modules/stdlib-safer (configure.ac): Likewise.
15323
15324 2010-03-27  Bruno Haible  <bruno@clisp.org>
15325
15326         Add a remark about certain modules.
15327         * modules/malloc (Comment): New section.
15328         * modules/realloc (Comment): Likewise.
15329         * modules/sigpipe (Comment): Likewise.
15330
15331 2010-03-27  Bruno Haible  <bruno@clisp.org>
15332
15333         Resolve conflict between the two kinds of module indicators.
15334         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15335         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15336         * modules/canonicalize (configure.ac): Invoke
15337         gl_MODULE_INDICATOR_FOR_TESTS.
15338         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15339         GNULIB_XYZ.
15340         * tests/test-dirent-c++.cc: Likewise.
15341         * tests/test-dirent-safer.c: Likewise.
15342         * tests/test-dup2.c: Likewise.
15343         * tests/test-fchdir.c: Likewise.
15344         * tests/test-fcntl-h-c++.cc: Likewise.
15345         * tests/test-getopt.c: Likewise.
15346         * tests/test-getopt.h: Likewise.
15347         * tests/test-langinfo-c++.cc: Likewise.
15348         * tests/test-locale-c++.cc: Likewise.
15349         * tests/test-math-c++.cc: Likewise.
15350         * tests/test-pty-c++.cc: Likewise.
15351         * tests/test-search-c++.cc: Likewise.
15352         * tests/test-signal-c++.cc: Likewise.
15353         * tests/test-spawn-c++.cc: Likewise.
15354         * tests/test-stdio-c++.cc: Likewise.
15355         * tests/test-stdlib-c++.cc: Likewise.
15356         * tests/test-string-c++.cc: Likewise.
15357         * tests/test-sys_ioctl-c++.cc: Likewise.
15358         * tests/test-sys_select-c++.cc: Likewise.
15359         * tests/test-sys_socket-c++.cc: Likewise.
15360         * tests/test-sys_stat-c++.cc: Likewise.
15361         * tests/test-sys_time-c++.cc: Likewise.
15362         * tests/test-time-c++.cc: Likewise.
15363         * tests/test-unistd-c++.cc: Likewise.
15364         * tests/test-wchar-c++.cc: Likewise.
15365         * tests/uninorm/test-u8-nfc.c: Likewise.
15366         * tests/uninorm/test-u8-nfd.c: Likewise.
15367         * tests/uninorm/test-u8-nfkc.c: Likewise.
15368         * tests/uninorm/test-u8-nfkd.c: Likewise.
15369         * tests/uninorm/test-u16-nfc.c: Likewise.
15370         * tests/uninorm/test-u16-nfd.c: Likewise.
15371         * tests/uninorm/test-u16-nfkc.c: Likewise.
15372         * tests/uninorm/test-u16-nfkd.c: Likewise.
15373         * tests/uninorm/test-u32-nfc.c: Likewise.
15374         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15375         * tests/uninorm/test-u32-nfd.c: Likewise.
15376         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15377         * tests/uninorm/test-u32-nfkc.c: Likewise.
15378         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15379         * tests/uninorm/test-u32-nfkd.c: Likewise.
15380         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15381         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15382
15383 2010-03-27  Bruno Haible  <bruno@clisp.org>
15384
15385         Distinguish two kinds of module indicators.
15386         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15387         gl_MODULE_INDICATOR.
15388         (gl_MODULE_INDICATOR): New macro.
15389         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15390         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15391         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15392         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15393         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15394         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15395         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15396         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15397         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15398         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15399         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15400         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15403         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15405         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15406         * m4/sys_time_h.m4 (gl_SYS_TIME_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         * modules/cloexec (configure.ac): Likewise.
15411         * modules/getopt-gnu (configure.ac): Likewise.
15412         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15413         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15414         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15415         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15416
15417 2010-03-27  Bruno Haible  <bruno@clisp.org>
15418
15419         New module description field 'Comment'.
15420         * gnulib-tool: New option --extract-comment.
15421         (func_usage): Document it.
15422         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15423         (func_get_comment): New function.
15424         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15425
15426 2010-03-27  Bruno Haible  <bruno@clisp.org>
15427
15428         Addendum to 2010-02-07 commit.
15429         * gnulib-tool (func_usage): Document --extract-applicability option.
15430
15431 2010-03-27  Bruno Haible  <bruno@clisp.org>
15432
15433         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15434         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15435         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15436         rather than link errors.
15437
15438 2010-03-27  Bruno Haible  <bruno@clisp.org>
15439
15440         Avoid side effects from tests-related modules on the compilation of lib.
15441         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15442         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15443         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15444         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15445         macro.
15446         (func_import): Define a witness macro. Assign it a value that depends
15447         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15448         tests-related modules.
15449         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15450         Reported by Jim Meyering.
15451
15452 2010-03-27  Bruno Haible  <bruno@clisp.org>
15453
15454         Factorize common .m4 code.
15455         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15456         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15457         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15458         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15459         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15460         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15461         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15462         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15463         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15464         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15465         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15466         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15467         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15468         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15469         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15470         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15471         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15472         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15474         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15475         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15477         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15478         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15479         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15480         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15481         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15482         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15483         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15484         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15485         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15486         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15487
15488 2010-03-27  Bruno Haible  <bruno@clisp.org>
15489
15490         Fix a compilation error on Cygwin with g++ >= 4.3.
15491         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15492         if it is undefined or if we alias it to chmod.
15493         (lstat): Don't warn about the use of this function if it is undefined
15494         or if we alias it to stat.
15495         Reported by Simon Josefsson.
15496
15497 2010-03-27  Bruno Haible  <bruno@clisp.org>
15498
15499         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15500         * modules/getlogin (configure.ac): Update.
15501
15502         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15503         * modules/getlogin_r (configure.ac): Update.
15504
15505         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15507         * modules/inet_ntop (configure.ac): Update.
15508
15509         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15510         * modules/inet_pton (configure.ac): Update.
15511
15512         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15513         * modules/mbslen (configure.ac): Update.
15514
15515         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15516         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15517         * modules/forkpty (configure.ac): Update.
15518         * modules/openpty (configure.ac): Update.
15519
15520 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15521
15522         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15523         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15524
15525 2010-03-25  Eric Blake  <eblake@redhat.com>
15526
15527         maint: use pragma consistently across replacement headers
15528         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15529         * lib/dirent.in.h (system_header): Likewise.
15530         * lib/errno.in.h (system_header): Likewise.
15531         * lib/float.in.h (system_header): Likewise.
15532         * lib/getopt.in.h (system_header): Likewise.
15533         * lib/iconv.in.h (system_header): Likewise.
15534         * lib/inttypes.in.h (system_header): Likewise.
15535         * lib/langinfo.in.h (system_header): Likewise.
15536         * lib/locale.in.h (system_header): Likewise.
15537         * lib/math.in.h (system_header): Likewise.
15538         * lib/netdb.in.h (system_header): Likewise.
15539         * lib/netinet_in.in.h (system_header): Likewise.
15540         * lib/pty.in.h (system_header): Likewise.
15541         * lib/sched.in.h (system_header): Likewise.
15542         * lib/se-selinux.in.h (system_header): Likewise.
15543         * lib/search.in.h (system_header): Likewise.
15544         * lib/spawn.in.h (system_header): Likewise.
15545         * lib/stdarg.in.h (system_header): Likewise.
15546         * lib/stdint.in.h (system_header): Likewise.
15547         * lib/string.in.h (system_header): Likewise.
15548         * lib/strings.in.h (system_header): Likewise.
15549         * lib/sys_file.in.h (system_header): Likewise.
15550         * lib/sys_ioctl.in.h (system_header): Likewise.
15551         * lib/sys_socket.in.h (system_header): Likewise.
15552         * lib/sys_times.in.h (system_header): Likewise.
15553         * lib/sys_utsname.in.h (system_header): Likewise.
15554         * lib/sys_wait.in.h (system_header): Likewise.
15555         * lib/sysexits.in.h (system_header): Likewise.
15556         * lib/unistd.in.h (system_header): Likewise.
15557         * lib/wctype.in.h (system_header): Likewise.
15558
15559         arpa/inet: fix mingw compilation warning
15560         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15561         Reported by Matthew Bolte.
15562
15563 2010-03-25  Bruno Haible  <bruno@clisp.org>
15564
15565         Avoid collision between gnulib wrapper and libintl wrapper.
15566         * lib/printf.c (printf): Don't define if a printf wrapper is already
15567         defined in intl/printf.c.
15568         Reported by Michel Boaventura <michel@michelboaventura.com>.
15569
15570 2010-03-25  Bruno Haible  <bruno@clisp.org>
15571
15572         Use ANSI C.
15573         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15574
15575 2010-03-25  Bruno Haible  <bruno@clisp.org>
15576
15577         Minor formatting changes.
15578         * lib/acosl.c: Insert space before function argument list.
15579         * lib/argz.c: Likewise.
15580         * lib/asinl.c: Likewise.
15581         * lib/expl.c: Likewise.
15582         * lib/gen-uni-tables.c: Likewise.
15583         * lib/gettext.h: Likewise.
15584         * lib/glthread/lock.h: Likewise.
15585         * lib/tanl.c: Likewise.
15586         * lib/uniname/uniname.c: Likewise.
15587         * tests/test-idpriv-drop.c: Likewise.
15588         * tests/test-idpriv-droptemp.c: Likewise.
15589         * tests/test-lock.c: Likewise.
15590         * tests/test-tls.c: Likewise.
15591         * lib/argp-help.c: Insert space before function-like macro argument
15592         list.
15593         * lib/memcmp.c: Likewise.
15594         * tests/test-base64.c: Likewise.
15595         * lib/localename.c: Insert space before sizeof's argument list.
15596         * lib/safe-alloc.h: Likewise.
15597         * lib/file-set.h: Insert space before macro argument list.
15598         * tests/test-argp.c: Likewise.
15599         * lib/argp-namefrob.h: Insert space before function parameter list.
15600         * lib/getaddrinfo.c: Likewise.
15601         * lib/netdb.in.h: Likewise.
15602         * lib/parse-duration.h: Likewise.
15603         * lib/parse-duration.c: Likewise.
15604         * lib/poll.c: Likewise.
15605         * lib/select.c: Likewise.
15606         * lib/trim.h: Likewise.
15607         * tests/test-usleep.c: Likewise.
15608         * lib/ldexpl.c: Insert space before function parameter list and before
15609         function argument list.
15610         * lib/logl.c: Likewise.
15611         * lib/sqrtl.c: Likewise.
15612         * lib/trim.c: Likewise.
15613         * lib/cosl.c: Use GNU style indentation. Insert space before function
15614         argument list.
15615         * lib/sinl.c: Likewise.
15616         * lib/tsearch.c: Insert space after 'for'.
15617         Reported by Jim Meyering.
15618
15619 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15620
15621         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15622         config header before grepping, as it's not present before
15623         autoreconf/configure are run.  Reported by Simon Josefsson.
15624
15625 2010-03-23  Bruno Haible  <bruno@clisp.org>
15626
15627         pt_chown: Make it work with automake < 1.11.
15628         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15629         Reported by Simon Josefsson.
15630
15631 2010-03-23  Bruno Haible  <bruno@clisp.org>
15632
15633         pt_chown: Don't depend on GPLed modules.
15634         * lib/pt_chown.c: Don't include idpriv.h.
15635         (main): Don't drop privileges.
15636         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15637         Reported by Simon Josefsson.
15638
15639 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15640
15641         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15642         suggestions from karl@freefriends.org (Karl Berry).
15643
15644 2010-03-22  Eric Blake  <eblake@redhat.com>
15645
15646         gethostname: further tweaks
15647         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15648         are overriding gethostname.
15649         Suggested by Bruno Haible.
15650
15651 2010-03-21  Bruno Haible  <bruno@clisp.org>
15652
15653         Fix comments.
15654         * lib/forkpty.c (rpl_forkpty): Fix comment.
15655         * lib/openpty.c (rpl_openpty): Likewise.
15656         Reported by Eric Blake.
15657
15658 2010-03-22  Eric Blake  <eblake@redhat.com>
15659
15660         gethostname: fix build on mingw
15661         * lib/unistd.in.h (includes): Work around fact that mingw
15662         <winsock2.h> re-includes <unistd.h>, by avoiding any
15663         redeclarations if we are being included by <winsock2.h>.
15664         Reported by Matthias Bolte.
15665
15666 2010-03-21  Bruno Haible  <bruno@clisp.org>
15667
15668         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15669         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15670         modifications.
15671         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15672         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15673         provide the replacement.
15674         * modules/forkpty (Depends-on): Add openpty, login_tty.
15675         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15676         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15677         * doc/glibc-functions/forkpty.texi: More supported platforms.
15678         * config/srclist.txt: Add forkpty.c (commented).
15679
15680 2010-03-21  Bruno Haible  <bruno@clisp.org>
15681
15682         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15683         (Makefile.am): Verify that PTY_LIB is defined.
15684
15685         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15686
15687 2010-03-21  Bruno Haible  <bruno@clisp.org>
15688
15689         Tests for module 'login_tty'.
15690         * modules/login_tty-tests: New file.
15691         * tests/test-login_tty.c: New file.
15692
15693         New module 'login_tty'.
15694         * lib/login_tty.c: New file.
15695         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15696         * modules/login_tty: New file.
15697         * doc/glibc-functions/login_tty.texi: Mention the new module.
15698
15699 2010-03-21  Bruno Haible  <bruno@clisp.org>
15700
15701         login_tty: Documentation.
15702         * doc/glibc-functions/login_tty.texi: New file.
15703         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15704
15705 2010-03-21  Bruno Haible  <bruno@clisp.org>
15706
15707         pty: Consistent macro naming.
15708         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15709         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15710         * modules/pty (configure.ac): Update.
15711
15712 2010-03-21  Bruno Haible  <bruno@clisp.org>
15713
15714         Tests for openpty: Make stricter.
15715         * tests/test-openpty.c (main): Add test of canonical processing and
15716         erase.
15717         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15718
15719         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15720         * lib/openpty.c (openpty): New replacement function.
15721         * lib/pty.in.h: Include <termios.h>.
15722         (openpty): Update declaration. Add comments.
15723         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15724         is not declared, arrange to provide the replacement. Check for _getpty
15725         and posix_openpt.
15726         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15727         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15728         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15729         * modules/pty-tests (test_pty_c___LDADD): New variable.
15730         * doc/glibc-functions/openpty.texi: More supported platforms.
15731
15732 2010-03-21  Bruno Haible  <bruno@clisp.org>
15733
15734         setenv: Tweaks.
15735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15736         the test program.
15737         * doc/posix-functions/setenv.texi: Update platforms list.
15738
15739 2010-03-21  Bruno Haible  <bruno@clisp.org>
15740
15741         New module 'unlockpt'.
15742         * lib/unlockpt.c: New file, from glibc with modifications.
15743         * m4/unlockpt.m4: New file.
15744         * modules/unlockpt: New file.
15745         * lib/stdlib.in.h (unlockpt): New declaration.
15746         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15747         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15748         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15749         HAVE_UNLOCKPT.
15750         * doc/posix-functions/unlockpt.texi: Mention the new module.
15751         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15752         * config/srclist.txt: Add unlockpt.c (commented).
15753
15754 2010-03-21  Jim Meyering  <meyering@redhat.com>
15755
15756         maint.mk: prohibit inclusion of "intprops.h" without use
15757         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15758
15759 2010-03-21  Bruno Haible  <bruno@clisp.org>
15760
15761         New module 'grantpt'.
15762         * lib/grantpt.c: New file, from glibc with modifications.
15763         * m4/grantpt.m4: New file.
15764         * modules/grantpt: New file.
15765         * lib/stdlib.in.h (grantpt): New declaration.
15766         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15767         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15768         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15769         HAVE_GRANTPT.
15770         * doc/posix-functions/grantpt.texi: Mention the new module.
15771         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15772         * config/srclist.txt: Add grantpt.c (commented).
15773
15774 2010-03-21  Bruno Haible  <bruno@clisp.org>
15775
15776         New module 'pt_chown'.
15777         * lib/pt_chown.c: New file, from glibc with modifications.
15778         * lib/pty-private.h: New file, from glibc with modifications.
15779         * modules/pt_chown: New file.
15780         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15781
15782 2010-03-21  Bruno Haible  <bruno@clisp.org>
15783
15784         Tests for module 'ptsname'.
15785         * modules/ptsname-tests: New file.
15786         * tests/test-ptsname.c: New file.
15787
15788         New module 'ptsname'.
15789         * lib/ptsname.c: New file, from glibc with modifications.
15790         * m4/ptsname.m4: New file.
15791         * modules/ptsname: New file.
15792         * lib/stdlib.in.h (ptsname): New declaration.
15793         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15794         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15795         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15796         HAVE_PTSNAME.
15797         * doc/posix-functions/ptsname.texi: Mention the new module.
15798         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15799         * config/srclist.txt: Add ptsname.c (commented).
15800
15801 2010-03-21  Bruno Haible  <bruno@clisp.org>
15802
15803         Tests for module 'ttyname_r'.
15804         * modules/ttyname_r-tests: New file.
15805         * tests/test-ttyname_r.c: New file.
15806
15807         New module 'ttyname_r'.
15808         * lib/ttyname_r.c: New file.
15809         * m4/ttyname_r.m4: New file.
15810         * modules/ttyname_r: New file.
15811         * lib/unistd.in.h (ttyname_r): New declaration.
15812         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15813         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15814         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15815         HAVE_TTYNAME_R.
15816         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15817         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15818
15819 2010-03-20  Bruno Haible  <bruno@clisp.org>
15820
15821         signal: Undefine macro definitions in C++ mode.
15822         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15823         sigfillset): Undefine macro definitions from the system header in C++
15824         mode.
15825         Reported by John W. Eaton <jwe@gnu.org>.
15826
15827 2010-03-20  Bruno Haible  <bruno@clisp.org>
15828
15829         Ensure no #include statements inside extern "C" { ... }.
15830         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15831         contain #include statements.
15832         * lib/time.in.h: Likewise.
15833
15834 2010-03-20  Bruno Haible  <bruno@clisp.org>
15835
15836         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15837         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15838         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15839         Reported by John W. Eaton <jwe@gnu.org>.
15840
15841 2010-03-20  Bruno Haible  <bruno@clisp.org>
15842
15843         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15844         Reported by Jim Meyering.
15845
15846 2010-03-20  Bruno Haible  <bruno@clisp.org>
15847
15848         pipe: Set errno upon failure.
15849         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15850         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15851         errno value in error message.
15852
15853 2010-03-20  Bruno Haible  <bruno@clisp.org>
15854             Jim Meyering  <meyering@redhat.com>
15855
15856         lchown: Avoid "unused variable" warning.
15857         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15858
15859 2010-03-20  Bruno Haible  <bruno@clisp.org>
15860
15861         Work around unlink() bug on MacOS X 10.5.6.
15862         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15863         attempting to unlink a parent directory.
15864         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15865         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15866         activate for the replacement function.
15867         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15868
15869 2010-03-20  Bruno Haible  <bruno@clisp.org>
15870
15871         Fix link errors on Solaris 8.
15872         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15873         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15874
15875 2010-03-19  Jim Meyering  <meyering@redhat.com>
15876
15877         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15878         The _LIBC implementation of build_range_exp correctly honors the
15879         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15880         However, the non-_LIBC implementation would ignore that syntax-bit
15881         flag and return REG_ERANGE unconditionally.
15882         This change makes it honor that flag.
15883         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15884         Make two pointer parameters "const".
15885         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15886         (parse_bracket_exp): Update caller.
15887
15888         regex.m4: correct the reversed range endpoint ([b-a]) test
15889         * m4/regex.m4: When requiring that [b-a] evoke failure,
15890         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15891         test pass once again for x86-based systems.
15892
15893 2010-03-19  Bruno Haible  <bruno@clisp.org>
15894
15895         scandir: Fix link error on Solaris 8.
15896         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15897         macros.
15898
15899 2010-03-19  Bruno Haible  <bruno@clisp.org>
15900
15901         getusershell: Fix documentation.
15902         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15903         module.
15904         * doc/glibc-functions/setusershell.texi: Likewise.
15905
15906         getusershell: Provide declaration, missing on Solaris 9.
15907         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15908         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15909         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15910         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15912         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15913         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15914         HAVE_GETUSERSHELL.
15915         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15916
15917 2010-03-19  Bruno Haible  <bruno@clisp.org>
15918
15919         wctype: Provide iswblank function.
15920         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15921         exists and is fine.
15922         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15923         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15924         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15925         * doc/posix-functions/iswblank.texi: Update.
15926
15927 2010-03-19  Bruno Haible  <bruno@clisp.org>
15928
15929         Tests of module 'pty' in C++ mode.
15930         * modules/pty-tests: New file.
15931         * tests/test-pty-c++.cc: New file.
15932         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15933
15934 2010-03-19  Eric Blake  <eblake@redhat.com>
15935
15936         logb: fix documentation
15937         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15938         1.5 declaration bug.
15939
15940         forkpty, openpty: prefer glibc's const-safe prototype
15941         * lib/forkpty.c (rpl_forkpty): New file.
15942         * lib/openpty.c (rpl_openpty): Likewise.
15943         * modules/forkpty (Files): Distribute it.
15944         * modules/openpty (Files): Likewise.
15945         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15946         check...
15947         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15948         replacement for for non-const BSD signature.
15949         * modules/pty (Makefile.am): Substitute witnesses.
15950         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15951         * tests/test-forkpty.c: Update signature check.
15952         * tests/test-openpty.c: Likewise.
15953         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15954         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15955
15956         forkpty, openpty: split functions into new modules
15957         * modules/pty (Makefile.am): Substitute new witnesses.
15958         (Libraries): Move library detection...
15959         * modules/forkpty: ...into new module.
15960         * modules/openpty: Another new module.
15961         * modules/pty-tests: Rename and split...
15962         * modules/forkpty-tests: ...to this...
15963         * modules/openpty-tests: ...and this.
15964         * tests/test-pty.c: Rename and split...
15965         * tests/test-forkpty.c: ...to this...
15966         * tests/test-openpty.c: ...and this.
15967         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15968         (gl_PTY): Split library searching...
15969         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15970         (gl_FORKPTY, gl_OPENPTY): New macros.
15971         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15972         * NEWS: Mention the split.
15973         * MODULES.html.sh (Misc): Document the modules.
15974         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15975         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15976
15977         pty: improve replacement header
15978         * lib/pty.in.h: New file.
15979         * modules/pty (Files): Ship it.
15980         (Makefile.am): Always build replacement.
15981         * m4/pty.m4: Rename...
15982         * m4/pty_h.m4: ...to this.
15983         (gl_PTY): Modernize setting of witness macros; update check of
15984         forkpty to take proper advantage of cache.
15985         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15986
15987         getopt: avoid compiler warning
15988         * lib/getopt.c (attribute_hidden): Remove unused macro.
15989
15990 2010-03-18  Bruno Haible  <bruno@clisp.org>
15991
15992         Fix link errors on Solaris 8.
15993         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15994         * modules/search-tests (test_search_c___LDADD): Likewise.
15995         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15996         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15997         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15998         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15999         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16000         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16001         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16002
16003 2010-03-18  Bruno Haible  <bruno@clisp.org>
16004
16005         Fix bug introduced on 2010-03-14.
16006         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16007         (gl_SPAWN_H): Require it.
16008         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16009         Reported by Simon Josefsson.
16010
16011 2010-03-18  Bruno Haible  <bruno@clisp.org>
16012
16013         Fix typo introduced on 2009-12-31.
16014         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16015         posix_spawn_file_actions_adddup2.
16016
16017 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16018         and Eric Blake  <eblake@redhat.com>
16019
16020         test-vc-list-files-git: make more robust
16021         * tests/test-vc-list-files-git.sh: Unset problematic environment
16022         variables.  Chain commands together.
16023
16024 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16025
16026         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16027         `AC_CHECK_DECL' invocation.
16028
16029 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16030
16031         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16032         appears before executable statements. Suggested by Petr Sumbera
16033         <Petr.Sumbera@Sun.COM>.
16034
16035 2010-03-14  Bruno Haible  <bruno@clisp.org>
16036
16037         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16038         portability problems. Instead use a simpler test.
16039         (main): Check that invalid arguments are rejected only on Linux.
16040
16041 2010-03-14  Bruno Haible  <bruno@clisp.org>
16042
16043         Fix bug introduced on 2009-12-31.
16044         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16045         gl_PREREQ_SYS_H_WINSOCK2 always.
16046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16047         SYS_SOCKET_H variable.
16048         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16049         Update comments.
16050         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16051         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16052         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16053         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16054         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16055
16056 2010-03-14  Bruno Haible  <bruno@clisp.org>
16057
16058         Fix values returned by sinl, cosl.
16059         * lib/trigl.h: Add specification comments.
16060         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16061         that combines the values from the precomputed table with the values of
16062         the Chebyshev polynomials.
16063
16064 2010-03-14  Bruno Haible  <bruno@clisp.org>
16065
16066         Fix compilation error when modules 'posix_spawn[p]' are not used.
16067         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16068         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16069
16070 2010-03-14  Bruno Haible  <bruno@clisp.org>
16071
16072         Fix compilation error on mingw when module 'time_r' is not used.
16073         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16074         is 1.
16075         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16076         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16077         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16078         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16079
16080 2010-03-14  Bruno Haible  <bruno@clisp.org>
16081
16082         Fix compilation error with Sun C.
16083         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16084         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16085         instead of GCC specific ULONG_LONG_MAX.
16086         * lib/xstrtoll.c: Likewise.
16087         * lib/xstrtoull.c: Likewise.
16088
16089 2010-03-13  Bruno Haible  <bruno@clisp.org>
16090
16091         Allow the user to disable C++ code and tests.
16092         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16093         (gl_PROG_ANSI_CXX): Require it.
16094
16095 2010-03-13  Bruno Haible  <bruno@clisp.org>
16096
16097         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16098         cases.
16099
16100 2010-03-13  Bruno Haible  <bruno@clisp.org>
16101
16102         Test that gnulib does not break the standard C++ headers.
16103         * tests/test-locale-c++2.cc: New file.
16104         * modules/locale-tests (Files): Add it.
16105         (Makefile.am): Compile it for test-locale-c++.
16106         * tests/test-math-c++2.cc: New file.
16107         * modules/math-tests (Files): Add it.
16108         (Makefile.am): Compile it for test-math-c++.
16109         * tests/test-signal-c++2.cc: New file.
16110         * modules/signal-tests (Files): Add it.
16111         (Makefile.am): Compile it for test-signal-c++.
16112         * tests/test-stdio-c++2.cc: New file.
16113         * modules/stdio-tests (Files): Add it.
16114         (Makefile.am): Compile it for test-stdio-c++.
16115         * tests/test-stdlib-c++2.cc: New file.
16116         * modules/stdlib-tests (Files): Add it.
16117         (Makefile.am): Compile it for test-stdlib-c++.
16118         * tests/test-string-c++2.cc: New file.
16119         * modules/string-tests (Files): Add it.
16120         (Makefile.am): Compile it for test-string-c++.
16121         * tests/test-time-c++2.cc: New file.
16122         * modules/time-tests (Files): Add it.
16123         (Makefile.am): Compile it for test-time-c++.
16124         Reported by John W. Eaton <jwe@gnu.org>.
16125
16126 2010-03-13  Bruno Haible  <bruno@clisp.org>
16127
16128         * gnulib-tool (func_usage): Clarify which options are available for
16129         --create-testdir and --create-megatestdir.
16130
16131 2010-03-13  Bruno Haible  <bruno@clisp.org>
16132
16133         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16134         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16135         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16136         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16137         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16138         when appropriate.
16139         Reported by Jim Meyering.
16140
16141 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16142
16143         * gnulib-tool (func_import): Explain origin of code.
16144
16145 2010-03-12  Bruno Haible  <bruno@clisp.org>
16146
16147         Fix problem with automake's definition of CXXLINK.
16148         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16149         Reported by Simon Josefsson and Ludovic Courtès.
16150
16151 2010-03-12  Bruno Haible  <bruno@clisp.org>
16152
16153         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16154         stable releases.
16155
16156 2010-03-11  Bruno Haible  <bruno@clisp.org>
16157
16158         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16159         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16160         whether the system provides one variant or multiple variants of the
16161         function.
16162         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16163         C++ compilers.
16164         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16165         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16166         Reported by Jim Meyering.
16167
16168 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16169
16170         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16171
16172 2010-03-08  Bruno Haible  <bruno@clisp.org>
16173
16174         gnulib-tool: Add support for --libtool in --create-testdir.
16175         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16176         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16177
16178 2010-03-08  Eric Blake  <eblake@redhat.com>
16179
16180         gnulib-tool.texi: mention possibility of git submodule
16181         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16182         submodules.
16183         * doc/.gitignore: Ignore another generated file.
16184
16185 2010-03-08  Karl Berry  <karl@gnu.org>
16186
16187         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16188         of committing gnulib files while skipping others.
16189
16190 2010-03-07  Bruno Haible  <bruno@clisp.org>
16191
16192         Tests of module 'wctype' in C++ mode.
16193         * tests/test-wctype-c++.cc: New file.
16194         * modules/wctype-tests (Files): Add it and tests/signature.h.
16195         (Depends-on): Add ansi-c++-opt.
16196         (Makefile.am): Arrange to compile and run test-wctype-c++.
16197
16198         Tests of module 'wchar' in C++ mode.
16199         * tests/test-wchar-c++.cc: New file.
16200         * modules/wchar-tests (Files): Add it and tests/signature.h.
16201         (Depends-on): Add ansi-c++-opt.
16202         (Makefile.am): Arrange to compile and run test-wchar-c++.
16203         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16204         gl_MODULE_INDICATOR.
16205
16206         Tests of module 'unistd' in C++ mode.
16207         * tests/test-unistd-c++.cc: New file.
16208         * modules/unistd-tests (Files): Add it and tests/signature.h.
16209         (Depends-on): Add ansi-c++-opt.
16210         (Makefile.am): Arrange to compile and run test-unistd-c++.
16211         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16212         gl_MODULE_INDICATOR.
16213
16214         Tests of module 'time' in C++ mode.
16215         * tests/test-time-c++.cc: New file.
16216         * modules/time-tests (Files): Add it and tests/signature.h.
16217         (Depends-on): Add ansi-c++-opt.
16218         (Makefile.am): Arrange to compile and run test-time-c++.
16219         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16220
16221         Tests of module 'sys_time' in C++ mode.
16222         * tests/test-sys_time-c++.cc: New file.
16223         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16224         (Depends-on): Add ansi-c++-opt.
16225         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16226         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16227         gl_MODULE_INDICATOR.
16228
16229         Tests of module 'sys_stat' in C++ mode.
16230         * tests/test-sys_stat-c++.cc: New file.
16231         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16232         (Depends-on): Add ansi-c++-opt.
16233         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16234         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16235         gl_MODULE_INDICATOR.
16236
16237         Tests of module 'sys_socket' in C++ mode.
16238         * tests/test-sys_socket-c++.cc: New file.
16239         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16240         (Depends-on): Add ansi-c++-opt.
16241         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16242         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16243         gl_MODULE_INDICATOR.
16244
16245         Tests of module 'sys_select' in C++ mode.
16246         * tests/test-sys_select-c++.cc: New file.
16247         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16248         (Depends-on): Add ansi-c++-opt.
16249         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16250         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16251         gl_MODULE_INDICATOR.
16252
16253         Tests of module 'sys_ioctl' in C++ mode.
16254         * tests/test-sys_ioctl-c++.cc: New file.
16255         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16256         (Depends-on): Add ansi-c++-opt.
16257         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16258         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16259         gl_MODULE_INDICATOR.
16260
16261         Tests of module 'string' in C++ mode.
16262         * tests/test-string-c++.cc: New file.
16263         * modules/string-tests (Files): Add it and tests/signature.h.
16264         (Depends-on): Add ansi-c++-opt.
16265         (Makefile.am): Arrange to compile and run test-string-c++.
16266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16267         gl_MODULE_INDICATOR.
16268
16269         Tests of module 'stdlib' in C++ mode.
16270         * tests/test-stdlib-c++.cc: New file.
16271         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16272         (Depends-on): Add ansi-c++-opt.
16273         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16274         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16275         gl_MODULE_INDICATOR.
16276
16277         Tests of module 'stdio' in C++ mode.
16278         * tests/test-stdio-c++.cc: New file.
16279         * modules/stdio-tests (Files): Add it and tests/signature.h.
16280         (Depends-on): Add ansi-c++-opt.
16281         (Makefile.am): Arrange to compile and run test-stdio-c++.
16282         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16283         gl_MODULE_INDICATOR.
16284
16285         Tests of module 'spawn' in C++ mode.
16286         * tests/test-spawn-c++.cc: New file.
16287         * modules/spawn-tests (Files): Add it and tests/signature.h.
16288         (Depends-on): Add ansi-c++-opt.
16289         (Makefile.am): Arrange to compile and run test-spawn-c++.
16290         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16291         gl_MODULE_INDICATOR.
16292
16293         Tests of module 'signal' in C++ mode.
16294         * tests/test-signal-c++.cc: New file.
16295         * modules/signal-tests (Files): Add it and tests/signature.h.
16296         (Depends-on): Add ansi-c++-opt.
16297         (Makefile.am): Arrange to compile and run test-signal-c++.
16298         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16299         gl_MODULE_INDICATOR.
16300
16301         Tests of module 'search' in C++ mode.
16302         * tests/test-search-c++.cc: New file.
16303         * modules/search-tests (Files): Add it and tests/signature.h.
16304         (Depends-on): Add ansi-c++-opt.
16305         (Makefile.am): Arrange to compile and run test-search-c++.
16306         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16307         gl_MODULE_INDICATOR.
16308
16309         Tests of module 'math' in C++ mode.
16310         * tests/test-math-c++.cc: New file.
16311         * modules/math-tests (Files): Add it and tests/signature.h.
16312         (Depends-on): Add ansi-c++-opt.
16313         (Makefile.am): Arrange to compile and run test-math-c++.
16314         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16315
16316         Tests of module 'locale' in C++ mode.
16317         * tests/test-locale-c++.cc: New file.
16318         * modules/locale-tests (Files): Add it and tests/signature.h.
16319         (Depends-on): Add ansi-c++-opt.
16320         (Makefile.am): Arrange to compile and run test-locale-c++.
16321         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16322         gl_MODULE_INDICATOR.
16323
16324         Tests of module 'langinfo' in C++ mode.
16325         * tests/test-langinfo-c++.cc: New file.
16326         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16327         (Depends-on): Add ansi-c++-opt.
16328         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16329         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16330         gl_MODULE_INDICATOR.
16331
16332         Tests of module 'iconv-h' in C++ mode.
16333         * tests/test-iconv-h-c++.cc: New file.
16334         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16335         (Depends-on): Add ansi-c++-opt.
16336         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16337
16338         Tests of module 'glob' in C++ mode.
16339         * tests/test-glob-c++.cc: New file.
16340         * modules/glob-tests (Files): Add it.
16341         (Depends-on): Add ansi-c++-opt.
16342         (Makefile.am): Arrange to compile and run test-glob-c++.
16343
16344         Tests of module 'fcntl-h' in C++ mode.
16345         * tests/test-fcntl-h-c++.cc: New file.
16346         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16347         (Depends-on): Add ansi-c++-opt.
16348         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16349         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16350         gl_MODULE_INDICATOR.
16351
16352         Tests of module 'dirent' in C++ mode.
16353         * tests/test-dirent-c++.cc: New file.
16354         * modules/dirent-tests (Files): Add it and tests/signature.h.
16355         (Depends-on): Add ansi-c++-opt.
16356         (Makefile.am): Arrange to compile and run test-dirent-c++.
16357         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16358         gl_MODULE_INDICATOR.
16359
16360         New module 'ansi-c++-opt'.
16361         * modules/ansi-c++-opt: New file.
16362         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16363
16364         Document C++ namespace mode.
16365         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16366
16367         wctype: Avoid #define replacements in C++ mode.
16368         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16369         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16370         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16371         In C++, define a namespaced alias symbol.
16372         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16373         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16374         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16375         rule.
16376
16377         wchar: Avoid #define replacements in C++ mode.
16378         * lib/wchar.in.h: Include c++defs.h.
16379         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16380         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16381         symbol.
16382         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16383         * modules/wchar (Depends-on): Add c++defs.
16384         (Makefile.am): Update wchar.h rule.
16385
16386         unistd: Avoid #define replacements in C++ mode.
16387         * lib/unistd.in.h: Include c++defs.h.
16388         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16389         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16390         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16391         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16392         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16393         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16394         symbol.
16395         (environ): Update.
16396         * modules/unistd (Depends-on): Add c++defs.
16397         (Makefile.am): Update unistd.h rule.
16398
16399         time: Avoid #define replacements in C++ mode.
16400         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16401         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16402         define a namespaced alias symbol.
16403         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16404         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16405         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16406         * modules/time (Depends-on): Add c++defs, warn-on-use.
16407         (Makefile.am): Update time.h rule.
16408         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16409         * modules/nanosleep (configure.ac): Likewise.
16410         * modules/strptime (configure.ac): Likewise.
16411         * modules/timegm (configure.ac): Likewise.
16412
16413         sys_time: Avoid #define replacements in C++ mode.
16414         * lib/sys_time.in.h: Include c++defs.h.
16415         (gettimeofday): In C++, define a namespaced alias symbol.
16416         * modules/sys_time (Depends-on): Add c++defs.
16417         (Makefile.am): Update sys/time.h rule.
16418
16419         sys_stat: Avoid #define replacements in C++ mode.
16420         * lib/sys_stat.in.h: Include c++defs.h.
16421         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16422         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16423         namespaced alias symbol.
16424         In C++, define a namespaced alias symbol.
16425         * modules/sys_stat (Depends-on): Add c++defs.
16426         (Makefile.am): Update sys/stat.h rule.
16427
16428         sys_socket: Avoid #define replacements in C++ mode.
16429         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16430         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16431         definitions also when the system has a <sys/socket.h>.
16432         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16433         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16434         In C++, define a namespaced alias symbol.
16435         * modules/sys_socket (Depends-on): Add c++defs.
16436         (Makefile.am): Update sys/socket.h rule.
16437
16438         sys_select: Avoid #define replacements in C++ mode.
16439         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16440         definitions also when the system has a <sys/select.h>.
16441         (select): In C++, define a namespaced alias symbol.
16442         * modules/sys_select (Depends-on): Add c++defs.
16443         (Makefile.am): Update sys/select.h rule.
16444
16445         sys_ioctl: Avoid #define replacements in C++ mode.
16446         * lib/sys_ioctl.in.h: Include c++defs.h.
16447         (ioctl): In C++, define a namespaced alias symbol.
16448         * modules/sys_ioctl (Depends-on): Add c++defs.
16449         (Makefile.am): Update sys/ioctl.h rule.
16450
16451         string: Avoid #define replacements in C++ mode.
16452         * lib/string.in.h: Include c++defs.h.
16453         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16454         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16455         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16456         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16457         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16458         * modules/string (Depends-on): Add c++defs.
16459         (Makefile.am): Update string.h rule.
16460
16461         stdlib: Avoid #define replacements in C++ mode.
16462         * lib/stdlib.in.h: Include c++defs.h.
16463         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16464         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16465         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16466         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16467         symbol.
16468         * modules/stdlib (Depends-on): Add c++defs.
16469         (Makefile.am): Update stdlib.h rule.
16470
16471         stdio: Avoid #define replacements in C++ mode.
16472         * lib/stdio.in.h: Include c++defs.h.
16473         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16474         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16475         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16476         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16477         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16478         namespaced alias symbol.
16479         * modules/stdio (Depends-on): Add c++defs.
16480         (Makefile.am): Update stdio.h rule.
16481
16482         spawn: Avoid #define replacements in C++ mode.
16483         * lib/spawn.in.h: Include c++defs.h.
16484         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16485         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16486         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16487         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16488         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16489         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16490         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16491         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16492         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16493         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16494         In C++, define a namespaced alias symbol.
16495         * modules/spawn (Depends-on): Add c++defs.
16496         (Makefile.am): Update spawn.h rule.
16497
16498         signal: Avoid #define replacements in C++ mode.
16499         * lib/signal.in.h: Include c++defs.h.
16500         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16501         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16502         namespaced alias symbol.
16503         * modules/signal (Depends-on): Add c++defs.
16504         (Makefile.am): Update signal.h rule.
16505
16506         search: Avoid #define replacements in C++ mode.
16507         * lib/search.in.h: Include c++defs.h.
16508         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16509         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16510         symbol.
16511         * modules/search (Depends-on): Add c++defs.
16512         (Makefile.am): Update search.h rule.
16513
16514         math: Avoid #define replacements in C++ mode.
16515         * lib/math.in.h: Include c++defs.h.
16516         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16517         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16518         trunc, truncl): In C++, define a namespaced alias symbol.
16519         * modules/math (Depends-on): Add c++defs.
16520         (Makefile.am): Update math.h rule.
16521
16522         locale: Avoid #define replacements in C++ mode.
16523         * lib/locale.in.h: Include c++defs.h.
16524         (duplocale): In C++, define a namespaced alias symbol.
16525         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16526         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16527         * modules/locale (Depends-on): Add c++defs.
16528         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16529
16530         langinfo: Avoid #define replacements in C++ mode.
16531         * lib/langinfo.in.h: Include c++defs.h.
16532         (nl_langinfo): In C++, define a namespaced alias symbol.
16533         * modules/langinfo (Depends-on): Add c++defs.
16534         (Makefile.am): Update langinfo.h rule.
16535
16536         iconv-h: Avoid #define replacements in C++ mode.
16537         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16538         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16539         symbol.
16540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16541         whenever iconv is present.
16542         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16543         (Makefile.am): Update iconv.h rule.
16544
16545         glob: Avoid #define replacements in C++ mode.
16546         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16547         (_gl_glob_errfunc_fn): New type.
16548         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16549         symbol.
16550         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16551         (Makefile.am): Update glob.h rule.
16552
16553         fcntl-h: Avoid #define replacements in C++ mode.
16554         * lib/fcntl.in.h: Include c++defs.h.
16555         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16556         * modules/fcntl-h (Depends-on): Add c++defs.
16557         (Makefile.am): Update fcntl.h rule.
16558
16559         dirent: Avoid #define replacements in C++ mode.
16560         * lib/dirent.in.h: Include c++defs.h.
16561         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16562         namespaced alias symbol.
16563         (dirfd): Update declaration.
16564         * modules/dirent (Depends-on): Add c++defs.
16565         (Makefile.am): Update dirent.h rule.
16566
16567         ctype: Make it usable in C++ code.
16568         * lib/ctype.in.h: Include c++defs.h.
16569         (isblank): Declare as extern "C".
16570         * modules/ctype (Depends-on): Add c++defs.
16571         (Makefile.am): Update ctype.h rule.
16572
16573         New module 'c++defs'.
16574         * modules/c++defs: New file.
16575         * build-aux/c++defs.h: New file.
16576         Reported by John W. Eaton <jwe@gnu.org>.
16577
16578 2010-03-07  Bruno Haible  <bruno@clisp.org>
16579
16580         logb: Provide missing declaration for Cygwin.
16581         * lib/math.in.h (logb): New declaration.
16582         * m4/logb.m4: New file.
16583         * modules/logb (Files): Add m4/logb.m4.
16584         (Depends-on): Add math.
16585         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16586         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16588         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16589         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16590
16591 2010-03-07  Bruno Haible  <bruno@clisp.org>
16592
16593         Fix test-cond link error.
16594         * tests/test-cond.c: Include <stdio.h>.
16595
16596 2010-03-07  Bruno Haible  <bruno@clisp.org>
16597
16598         Fix test-dirent-safer link error.
16599         * modules/dirent-safer-tests (Makefile.am): Define
16600         test_dirent_safer_LDADD.
16601
16602 2010-03-07  Bruno Haible  <bruno@clisp.org>
16603
16604         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16605         among default module list.
16606
16607 2010-03-07  Bruno Haible  <bruno@clisp.org>
16608
16609         Fix link error on platforms with GNU libiconv.
16610         * modules/unistr/u8-strcoll-tests (Makefile): Define
16611         test_u8_strcoll_LDADD.
16612         * modules/unistr/u16-strcoll-tests (Makefile): Define
16613         test_u16_strcoll_LDADD.
16614         * modules/unistr/u32-strcoll-tests (Makefile): Define
16615         test_u32_strcoll_LDADD.
16616
16617 2010-03-07  Bruno Haible  <bruno@clisp.org>
16618
16619         Use POSIX declarations for socket functions.
16620         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16621         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16622         rpl_sendto): Change declaration to match POSIX.
16623         * lib/connect.c (rpl_connect): Likewise.
16624         * lib/accept.c (rpl_accept): Likewise.
16625         * lib/bind.c (rpl_bind): Likewise.
16626         * lib/getpeername.c (rpl_getpeername): Likewise.
16627         * lib/getsockname.c (rpl_getsockname): Likewise.
16628         * lib/recv.c (rpl_recv): Likewise.
16629         * lib/send.c (rpl_send): Likewise.
16630         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16631         * lib/sendto.c (rpl_sendto): Likewise.
16632
16633 2010-03-06  Bruno Haible  <bruno@clisp.org>
16634
16635         Clarify access, euidaccess, faccessat.
16636         * doc/posix-functions/faccessat.texi: Mention security problem under
16637         "Other problems", not "Portability problems".
16638         * doc/posix-functions/access.texi: Likewise. Mention a related security
16639         problem.
16640         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16641         * lib/euidaccess.c: Add comments about platforms.
16642         * lib/unistd.in.h (access, euidaccess): Add warnings.
16643
16644 2010-03-07  Bruno Haible  <bruno@clisp.org>
16645
16646         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16647         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16648         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16649         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16650         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16651         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16652         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16653         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16654         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16656         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16657         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16658         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16659         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16660         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16661         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16662         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16663         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16664         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16665         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16666         Likewise.
16667         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16668         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16669         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16670         Likewise.
16671         * tests/test-spawn.c (main): Make it work when
16672         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16673
16674 2010-03-07  Bruno Haible  <bruno@clisp.org>
16675
16676         Fix incorrect Makefile.am generation in German locale.
16677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16678         Execute sed command with character range in C locale.
16679
16680 2010-03-06  Bruno Haible  <bruno@clisp.org>
16681
16682         Tests for module 'iconv-h'.
16683         * modules/iconv-h-tests: New file.
16684         * tests/test-iconv-h.c: New file.
16685
16686         New module 'iconv-h'.
16687         * modules/iconv-h: New file.
16688         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16689         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16690         (configure.ac): Remove gl_ICONV_H.
16691         (Makefile.am): Remove rule for iconv.h.
16692
16693 2010-03-06  Bruno Haible  <bruno@clisp.org>
16694
16695         More consistent naming of *.m4 files.
16696         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16697         * modules/wctype (Files): Update.
16698
16699         More consistent naming of *.m4 files.
16700         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16701         * modules/wchar (Files): Update.
16702
16703 2010-03-06  Jim Meyering  <meyering@redhat.com>
16704
16705         euidaccess: relax license to LGPLv2+
16706         * modules/euidaccess (License): Relax to LGPLv2+.
16707
16708 2010-03-06  Bruno Haible  <bruno@clisp.org>
16709
16710         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16711         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16712         (Makefile.am): Augment lib_SOURCES instead.
16713
16714 2010-03-04  Jim Meyering  <meyering@redhat.com>
16715
16716         utime: remove obsolete module
16717         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16718         unnecessary for years, and has been marked as obsolete for 10 months.
16719         * modules/utime: Remove file.
16720         * lib/utime.c: Remove file.
16721         * m4/utime.m4: Remove file.
16722         * m4/utimes-null.m4: Remove file.
16723         * doc/posix-functions/utime.texi (utime): Remove reference to
16724         the module.  Move the sole "fixed by gnulib" item into the
16725         "problems not fixed by Gnulib" list.
16726         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16727
16728 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16729
16730         * modules/exit (License): Relax license to LGPLv2+.
16731         (Status): Mark as obsolete.
16732         * NEWS: Mention deprecated 'exit' module.
16733         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16734         of now obsolete 'exit'.
16735
16736 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16737
16738         fts-lgpl: remove unused module
16739         * modules/fts-lgpl: Remove.
16740         * MODULES.html.sh (func_all_modules): Adjust.
16741         * check-module (find_included_lib_files): Adjust.
16742         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16743
16744 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16745
16746         copy-acl: enhance Solaris ACL error handling
16747         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16748         * lib/set-mode-acl.c (qset_acl): Likewise.
16749
16750 2010-03-02  Bruno Haible  <bruno@clisp.org>
16751
16752         spawn: Don't override the system defined values on FreeBSD 8.
16753         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16754         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16755         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16756         if HAVE_POSIX_SPAWN is 1.
16757         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16758
16759 2010-03-01  Bruno Haible  <bruno@clisp.org>
16760
16761         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16762         regarding Automake.
16763
16764 2010-02-25  Bruno Haible  <bruno@clisp.org>
16765
16766         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16767         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16768         setting, not afterwards.
16769         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16770
16771 2010-02-24  Eric Blake  <eblake@redhat.com>
16772
16773         bootstrap, git-version-gen: use timestamp
16774         * build-aux/git-version-gen (scriptversion): Force UTC.
16775         * build-aux/bootstrap (scriptversion): New variable.
16776
16777         bootstrap: allow older git
16778         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16779         older than 1.6.4.  Requested by the libvirt project.
16780
16781 2010-02-23  Eric Blake  <eblake@redhat.com>
16782
16783         warn-on-use: work with old autoconf
16784         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16785         AS_VAR semantics of autoconf 2.60.
16786         Reported by Bruno Haible.
16787
16788         bootstrap: improve some comments
16789         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16790         clarification comments.
16791
16792         gettimeofday: provide correct function
16793         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16794         when replacement is declared, otherwise provide gettimeofday.
16795         Reported by Michael Goffioul.
16796
16797 2010-02-23  Jim Meyering  <meyering@redhat.com>
16798
16799         lib-ignore: relax license to "unlimited", not LGPLv2+
16800         * modules/lib-ignore (License): Relax to "unlimited".
16801
16802 2010-02-23  Jim Meyering  <meyering@redhat.com>
16803
16804         lib-ignore: relax license to LGPLv2+
16805         * modules/lib-ignore (License): Relax to LGPLv2+.
16806
16807 2010-02-22  Eric Blake  <eblake@redhat.com>
16808
16809         lseek: avoid bash 3.2 broken pipe bug
16810         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16811         warning from bash 3.2.
16812         Reported by Ben Pfaff, with analysis from Bruno Haible.
16813
16814         bootstrap: support non-FSF copyright holder
16815         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16816         bootstrap.conf override of COPYRIGHT_HOLDER.
16817         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16818
16819         bootstrap: interoperate with gettext 0.14.1
16820         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16821
16822         bootstrap: allow for alternate submodule location
16823         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16824         hardcoding submodule location.
16825         (gnulib_mk): Allow direct use of Makefile.am.
16826
16827         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16828         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16829         rather than reconfiguring where the submodule points.
16830
16831         gettimeofday: restore support for platforms that lack function
16832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16833         replacement if function is missing.
16834         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16835         * modules/sys_time (Makefile.am): Substitute it.
16836         * lib/sys_time.in.h (gettimeofday): Check it.
16837         Reported by Michael Goffioul.
16838
16839 2010-02-21  Bruno Haible  <bruno@clisp.org>
16840
16841         * lib/stdio.in.h (obstack_printf): Fix typo.
16842
16843 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16844
16845         vc-list-files: use bzr ls's -R option
16846         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16847         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16848
16849 2010-02-21  Jim Meyering  <meyering@redhat.com>
16850
16851         init.sh: fix EXEEXT shims to work also for names like test-prog
16852         * tests/init.sh: Re-exec a better shell, when needed.
16853         If the current shell lacks support for posix $(...), an init.sh-using
16854         test will now try to find a shell that supports that.  If EXEEXT is
16855         nonempty, we also require support for hyphen-in-alias-name and shell
16856         substitutions like ${var#glob}.  Failure to find such a shell results
16857         in a skipped test.
16858
16859 2010-02-21  Bruno Haible  <bruno@clisp.org>
16860
16861         Really work around around "broken pipe" error message from bash 3.2.
16862         * gnulib-tool (func_reset_sigpipe): Remove function.
16863         (echo): In bash 3.2, define to a function that uses printf.
16864         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16865
16866 2010-02-20  Bruno Haible  <bruno@clisp.org>
16867
16868         Restore support for automake 1.9.6 with autoconf 2.61.
16869         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16870         Reported by James Youngman <jay@gnu.org>.
16871
16872 2010-02-20  Bruno Haible  <bruno@clisp.org>
16873
16874         Improve *printf warning condition.
16875         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16876         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16877         and the function is overridden due to SIGPIPE emulation.
16878
16879 2010-02-20  Bruno Haible  <bruno@clisp.org>
16880
16881         * lib/stdio.in.h: Tweak comments.
16882
16883 2010-02-19  Bruno Haible  <bruno@clisp.org>
16884
16885         Make it easier to find modules. New gnulib-tool option '--find'.
16886         * gnulib-tool: New option --find.
16887         (func_usage): Document it.
16888         (func_sanitize_modulelist): New function, extracted from
16889         func_all_modules.
16890         (func_all_modules): Invoke it.
16891         * doc/gnulib-tool.texi (Which modules?): New node.
16892
16893 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16894
16895         * lib/sys_select.in.h: Provide select replacement even if
16896         sys/select.h exists on a system, for Interix.
16897
16898 2010-02-18  Jim Meyering  <meyering@redhat.com>
16899
16900         init.sh: don't use $(...) just yet
16901         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16902         to accommodate e.g., Solaris' /bin/sh.
16903
16904 2010-02-17  Bruno Haible  <bruno@clisp.org>
16905
16906         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16907         Reported by Ludovic Courtès <ludo@gnu.org>.
16908
16909 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16910
16911         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16912         linking with -lintl.
16913
16914 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16915
16916         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16917         if not provided by the system's netdb.h.  Reported by
16918         ludo@gnu.org (Ludovic Courtès).
16919
16920 2010-02-15  Jim Meyering  <meyering@redhat.com>
16921
16922         init.sh: improve portability and efficiency
16923         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16924         "dummy" in a for loop.
16925         Use '!', not '^' to select the complement of a character set used
16926         in a "case" statement.
16927         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16928         Suggestions from Eric Blake.
16929
16930         init.sh: automatically accommodate programs with the .exe suffix
16931         Automatically arrange for an invocation of "prog" to execute the
16932         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16933         may use the simpler "prog", yet still work when built on a system
16934         that requires specifying the added suffix.
16935         Do this by constructing a function named "prog" that invokes
16936         "prog.exe" for each .exe file in selected directories.
16937         * tests/init.sh (find_exe_basenames_): New function.
16938         (create_exe_shim_functions_): New function.
16939         (path_prepend_): Use it.
16940
16941         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16942         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16943         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16944
16945 2010-02-14  Jim Meyering  <meyering@redhat.com>
16946
16947         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16948         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16949         (sc_prohibit_hash_pjw_without_use): New rule.
16950
16951         maint.mk: allow the default upload destination dir to be overridden
16952         * top/maint.mk (upload_dest_dir_): Define with a default that
16953         preserves the status quo.
16954         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16955         Reported by Peter Simons.
16956
16957         maint.mk: prohibit inclusion of "hash.h" without_use
16958         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16959
16960 2010-02-10  Jim Meyering  <meyering@redhat.com>
16961
16962         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16963         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16964
16965 2010-02-09  Eric Blake  <ebb9@byu.net>
16966         and Bruno Haible  <bruno@clisp.org>
16967
16968         obstack-printf-posix: ensure declaration
16969         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16970         extracted from gl_FUNC_OBSTACK_PRINTF.
16971         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16972         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16973         Likewise.
16974         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16975         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16976         0.
16977
16978 2010-02-08  Bruno Haible  <bruno@clisp.org>
16979
16980         gnulib-tool: Fix typo in 2010-02-07 commit.
16981         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16982         Reported by Eric Blake.
16983
16984 2010-02-07  Bruno Haible  <bruno@clisp.org>
16985
16986         gnulib-tool: Fix up caching patches.
16987         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16988         option --no-cache. Use associative arrays when supported by the shell.
16989         (sed_comments): New variable.
16990         (modcache): Renamed from do_cache.
16991         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16992         abbreviate unnecessarily.
16993         (have_associative): New variable.
16994         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16995         way also for ksh and zsh.
16996         (func_init_sed_convert_to_cache_statements): New function, extracted
16997         from func_cache_lookup_module. Add support for associative arrays.
16998         Don't set the c_MODULE_cached variable here. Ignore all lines before
16999         the first field header. Remove only the final newline, not all trailing
17000         newlines. Support empty fields correctly. Limit the use of 'eval' to
17001         assignments.
17002         (func_get_description, func_get_status, func_get_notice,
17003         func_get_applicability, func_get_filelist, func_get_dependencies,
17004         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17005         func_get_automake_snippet, func_get_include_directive,
17006         func_get_link_directive, func_get_license, func_get_maintainer):
17007         Update documentation. List the unoptimized code first. Add support for
17008         associative arrays. Limit the use of 'eval' to assignments.
17009         (func_get_applicability): Undo stylistic pessimisations.
17010         (func_get_automake_snippet, func_get_include_directive): Reduce code
17011         duplication.
17012         (func_modules_transitive_closure, func_modules_add_dummy,
17013         func_modules_notice, func_modules_to_filelist, func_add_file,
17014         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17015         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17016         func_create_testdir, func_create_megatestdir): Update documentation.
17017
17018 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17019
17020         * gnulib-tool (func_cache_lookup_module): Store the module name
17021         belonging to the cache variable; error out if two different
17022         module names map to the same cache variable name.
17023
17024 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17025
17026         gnulib-tool: Make caching optional.
17027         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17028         Update matching short versions of --no-changelog.
17029         (func_usage): Update.
17030         (sed_extract_cache_prog): Renamed from ...
17031         (sed_extract_prog): ... this; revert to old extraction script.
17032         (func_get_description, func_get_status)
17033         (func_get_notice, func_get_applicability, func_get_filelist)
17034         (func_get_dependencies, func_get_autoconf_early_snippet)
17035         (func_get_autoconf_snippet, func_get_automake_snippet)
17036         (func_get_include_directive, func_get_link_directive)
17037         (func_get_license, func_get_maintainer): If $do_cache is false,
17038         use old, non-caching extraction scripts.
17039         Suggestion by Bruno Haible.
17040
17041 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17042
17043         gnulib-tool: cache module metainformation.
17044         * gnulib-tool (sed_extract_prog): Match newline before each
17045         header, and rewrite header to a shell variable suffix.
17046         (func_cache_var, func_cache_lookup_module): New functions,
17047         to turn a module name into a cache variable prefix, and to
17048         look up and cache module metainformation.
17049         (func_get_description, func_get_status)
17050         (func_get_notice, func_get_applicability, func_get_filelist)
17051         (func_get_dependencies, func_get_autoconf_early_snippet)
17052         (func_get_autoconf_snippet, func_get_automake_snippet)
17053         (func_get_include_directive, func_get_link_directive)
17054         (func_get_license, func_get_maintainer): Use
17055         func_cache_lookup_module.
17056
17057 2010-02-07  Bruno Haible  <bruno@clisp.org>
17058
17059         fnctl: Fix missing dependency.
17060         * modules/fcntl (Depends-on): Add getdtablesize.
17061         Reported by John W. Eaton <jwe@gnu.org>.
17062
17063 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17064
17065         Argp: fix recognition of short alias options.
17066
17067         * lib/argp-parse.c (convert_options): Fix improper use of
17068         `|' between character values.
17069         * tests/test-argp.c (group1_option): New alias option
17070         --read (-r).
17071         (group1_parser): Special handling for 'r'.
17072         (test15): New test case.
17073         (test_fun): Add test15.
17074         * tests/test-argp-2.sh: Update expected --help and --usage
17075         outputs.
17076
17077 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17078
17079         * tests/test-argp.c: Fix indentation.
17080
17081 2010-02-04  Eric Blake  <ebb9@byu.net>
17082
17083         gettimeofday: expose type of second argument
17084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17085         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17086         * tests/test-gettimeofday.c: Use it to silence warning.
17087         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17088         the issue.
17089
17090 2010-02-03  Jim Meyering  <meyering@redhat.com>
17091
17092         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17093         * lib/regcomp.c (TYPE_SIGNED): Define.
17094         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17095
17096         regcomp.c: avoid a new -Wshadow warning
17097         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17098
17099 2010-02-01  Jim Meyering  <meyering@redhat.com>
17100
17101         removing useless parentheses in cpp #define directives
17102         For motivation, see commit c0221df4, "define STREQ(a,b)
17103         consistently, removing useless parentheses"
17104         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17105         * lib/mountlist.c (MNT_IGNORE): Likewise.
17106         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17107
17108 2010-02-01  Eric Blake  <ebb9@byu.net>
17109
17110         sys_time: use link-warning
17111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17112         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17113         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17114         * modules/sys_time (Depends-on): Add warn-on-use.
17115         (Makefile.am): Always build replacement.
17116         (configure.ac): Update substitutions.
17117         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17118         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17119         bother with SYS_TIME_H.
17120         * modules/gettimeofday (configure.ac): Declare indicator.
17121         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17122         in use.
17123
17124         closein-tests: silence compiler warning
17125         * tests/test-closein.c (main): Ignore fread result.
17126         * modules/closein-tests (Depends-on): Add ignore-value.
17127
17128         tests: silence warning about system return
17129         * tests/test-areadlink-with-size.c (main): Ignore system result.
17130         * tests/test-areadlink.c (main): Likewise.
17131         * tests/test-areadlinkat-with-size.c (main): Likewise.
17132         * tests/test-areadlinkat.c (main): Likewise.
17133         * tests/test-canonicalize-lgpl.c (main): Likewise.
17134         * tests/test-canonicalize.c (main): Likewise.
17135         * tests/test-chown.c (main): Likewise.
17136         * tests/test-fchownat.c (main): Likewise.
17137         * tests/test-fdutimensat.c (main): Likewise.
17138         * tests/test-fstatat.c (main): Likewise.
17139         * tests/test-futimens.c (main): Likewise.
17140         * tests/test-lchown.c (main): Likewise.
17141         * tests/test-link.c (main): Likewise.
17142         * tests/test-linkat.c (main): Likewise.
17143         * tests/test-lstat.c (main): Likewise.
17144         * tests/test-mkdir.c (main): Likewise.
17145         * tests/test-mkdirat.c (main): Likewise.
17146         * tests/test-mkfifo.c (main): Likewise.
17147         * tests/test-mkfifoat.c (main): Likewise.
17148         * tests/test-mknod.c (main): Likewise.
17149         * tests/test-readlink.c (main): Likewise.
17150         * tests/test-remove.c (main): Likewise.
17151         * tests/test-rename.c (main): Likewise.
17152         * tests/test-renameat.c (main): Likewise.
17153         * tests/test-rmdir.c (main): Likewise.
17154         * tests/test-symlink.c (main): Likewise.
17155         * tests/test-symlinkat.c (main): Likewise.
17156         * tests/test-unlink.c (main): Likewise.
17157         * tests/test-unlinkat.c (main): Likewise.
17158         * tests/test-utimens.c (main): Likewise.
17159         * tests/test-utimensat.c (main): Likewise.
17160         * modules/areadlink-tests (Depends-on): Add ignore-value.
17161         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17162         * modules/areadlinkat-tests (Depends-on): Likewise.
17163         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17164         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17165         * modules/canonicalize-tests (Depends-on): Likewise.
17166         * modules/chown-tests (Depends-on): Likewise.
17167         * modules/fdutimensat-tests (Depends-on): Likewise.
17168         * modules/futimens-tests (Depends-on): Likewise.
17169         * modules/lchown-tests (Depends-on): Likewise.
17170         * modules/link-tests (Depends-on): Likewise.
17171         * modules/linkat-tests (Depends-on): Likewise.
17172         * modules/lstat-tests (Depends-on): Likewise.
17173         * modules/mkdir-tests (Depends-on): Likewise.
17174         * modules/mkfifo-tests (Depends-on): Likewise.
17175         * modules/mkfifoat-tests (Depends-on): Likewise.
17176         * modules/mknod-tests (Depends-on): Likewise.
17177         * modules/openat-tests (Depends-on): Likewise.
17178         * modules/readlink-tests (Depends-on): Likewise.
17179         * modules/remove-tests (Depends-on): Likewise.
17180         * modules/rename-tests (Depends-on): Likewise.
17181         * modules/renameat-tests (Depends-on): Likewise.
17182         * modules/rmdir-tests (Depends-on): Likewise.
17183         * modules/symlink-tests (Depends-on): Likewise.
17184         * modules/symlinkat-tests (Depends-on): Likewise.
17185         * modules/unlink-tests (Depends-on): Likewise.
17186         * modules/utimens-tests (Depends-on): Likewise.
17187         * modules/utimensat-tests (Depends-on): Likewise.
17188
17189 2010-01-31  Bruno Haible  <bruno@clisp.org>
17190
17191         Perform the same test for many <math.h> functions.
17192         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17193         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17194         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17195         of gl_MATHFUNC.
17196         * modules/acos (configure.ac): Likewise.
17197         * modules/asin (configure.ac): Likewise.
17198         * modules/atan (configure.ac): Likewise.
17199         * modules/atan2 (configure.ac): Likewise.
17200         * modules/cbrt (configure.ac): Likewise.
17201         * modules/copysign (configure.ac): Likewise.
17202         * modules/cos (configure.ac): Likewise.
17203         * modules/cosh (configure.ac): Likewise.
17204         * modules/erf (configure.ac): Likewise.
17205         * modules/erfc (configure.ac): Likewise.
17206         * modules/exp (configure.ac): Likewise.
17207         * modules/fmod (configure.ac): Likewise.
17208         * modules/hypot (configure.ac): Likewise.
17209         * modules/j0 (configure.ac): Likewise.
17210         * modules/j1 (configure.ac): Likewise.
17211         * modules/jn (configure.ac): Likewise.
17212         * modules/lgamma (configure.ac): Likewise.
17213         * modules/log (configure.ac): Likewise.
17214         * modules/log10 (configure.ac): Likewise.
17215         * modules/log1p (configure.ac): Likewise.
17216         * modules/pow (configure.ac): Likewise.
17217         * modules/remainder (configure.ac): Likewise.
17218         * modules/sin (configure.ac): Likewise.
17219         * modules/sinh (configure.ac): Likewise.
17220         * modules/tan (configure.ac): Likewise.
17221         * modules/tanh (configure.ac): Likewise.
17222         * modules/y0 (configure.ac): Likewise.
17223         * modules/y1 (configure.ac): Likewise.
17224         * modules/yn (configure.ac): Likewise.
17225         Suggested by Paolo Bonzini.
17226
17227 2010-01-31  Bruno Haible  <bruno@clisp.org>
17228
17229         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17230
17231 2010-01-31  Bruno Haible  <bruno@clisp.org>
17232
17233         Work around getdelim() bug on FreeBSD 8.0.
17234         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17235         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17236         not work.
17237         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17238         is 1.
17239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17240         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17241         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17242         a non-zero size.
17243         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17244
17245 2010-01-31  Bruno Haible  <bruno@clisp.org>
17246
17247         Work around getline() bug on FreeBSD 8.0.
17248         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17249         and a non-zero size.
17250         * tests/test-getline.c (main): Likewise.
17251         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17252         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17253
17254 2010-01-28  Eric Blake  <ebb9@byu.net>
17255
17256         regex: fix build failure
17257         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17258         platforms.
17259
17260 2010-01-28  Jim Meyering  <meyering@redhat.com>
17261
17262         regex: do not ignore memory allocation failure
17263         * lib/regex_internal.c (create_cd_newstate): Detect
17264         re_node_set_init_copy failure.   Extracted from glibc commit
17265         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17266
17267         regex: sync more white-space changes from libc
17268         * lib/regex_internal.c: White-space only changes.
17269         * lib/regexec.c: Likewise.
17270
17271         regex: add many uses of __attribute_warn_unused_result__
17272         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17273         * lib/regexec.c: Likewise.
17274         Extracted from a messy glibc commit.
17275
17276         regcomp.c: spelling and merge-artifact from glibc
17277         * lib/regcomp.c: Merge remainder of glibc's
17278         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17279
17280         regcomp.c: sync white-space changes from glibc
17281         * lib/regcomp.c: Merge to accommodate white space
17282         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17283
17284         regcomp.c: do not ignore internal return values
17285         * lib/regcomp.c: Do not ignore internal return values.
17286         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17287         but without its white-space changes and spelling fixes.
17288
17289         regex_internal.h: define __attribute_warn_unused_result__
17290         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17291
17292         maint: add a syntax-check rule to check for vulnerable Makefile.in
17293         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17294
17295 2010-01-27  Jim Meyering  <meyering@redhat.com>
17296
17297         ncftpput-ftp: clean up spaces
17298         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17299         Remove trailing blanks.
17300
17301 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17302
17303         * build-aux/git-version-gen: Fix copyright statement.
17304         * build-aux/gnupload: Likewise.
17305         * tests/test-arcfour.c: Likewise.
17306         * tests/test-arctwo.c: Likewise.
17307         * tests/test-count-one-bits.c: Likewise.
17308         * tests/test-crc.c: Likewise.
17309         * tests/test-des.c: Likewise.
17310         * tests/test-gc-arcfour.c: Likewise.
17311         * tests/test-gc-arctwo.c: Likewise.
17312         * tests/test-gc-des.c: Likewise.
17313         * tests/test-gc-hmac-md5.c: Likewise.
17314         * tests/test-gc-hmac-sha1.c: Likewise.
17315         * tests/test-gc-md2.c: Likewise.
17316         * tests/test-gc-md4.c: Likewise.
17317         * tests/test-gc-md5.c: Likewise.
17318         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17319         * tests/test-gc-rijndael.c: Likewise.
17320         * tests/test-gc-sha1.c: Likewise.
17321         * tests/test-gc.c: Likewise.
17322         * tests/test-gethostname.c: Likewise.
17323         * tests/test-gettimeofday.c: Likewise.
17324         * tests/test-hash.c: Likewise.
17325         * tests/test-hmac-md5.c: Likewise.
17326         * tests/test-hmac-sha1.c: Likewise.
17327         * tests/test-md2.c: Likewise.
17328         * tests/test-md4.c: Likewise.
17329         * tests/test-md5.c: Likewise.
17330         * tests/test-memchr.c: Likewise.
17331         * tests/test-memchr2.c: Likewise.
17332         * tests/test-memcmp.c: Likewise.
17333         * tests/test-memmem.c: Likewise.
17334         * tests/test-memrchr.c: Likewise.
17335         * tests/test-rawmemchr.c: Likewise.
17336         * tests/test-read-file.c: Likewise.
17337         * tests/test-rijndael.c: Likewise.
17338         * tests/test-sockets.c: Likewise.
17339         * tests/test-strchrnul.c: Likewise.
17340         * tests/test-strstr.c: Likewise.
17341         * tests/test-strtod.c: Likewise.
17342         * build-aux/ncftpput-ftp: Likewise.
17343
17344 2010-01-26  Eric Blake  <ebb9@byu.net>
17345
17346         ignore-value: update recommended header name
17347         * modules/ignore-value (Include): Only use <> for headers that
17348         exist in glibc.
17349
17350 2010-01-26  Jim Meyering  <meyering@redhat.com>
17351
17352         test-userspec.c: avoid compiler warnings
17353         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17354         and "initialization discards qualifiers..." warnings.
17355         Put the first "uid" in its own scope, and make char* members "const".
17356
17357 2010-01-25  Bruno Haible  <bruno@clisp.org>
17358
17359         gnulib-tool: Make warning diagnostics consistent.
17360         * gnulib-tool (func_warning): New function.
17361         Use it everywhere where gnulib-tool produces output to stderr and it is
17362         not a fatal error.
17363
17364 2010-01-25  Bruno Haible  <bruno@clisp.org>
17365
17366         Fix test dependencies.
17367         * modules/xstrtol-tests (Depends-on): Add inttypes.
17368         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17369
17370 2010-01-25 Pádraig Brady <P@draigBrady.com>
17371
17372         syntax-check: detect incorrect boolean macro values in config.h
17373         * modules/maintainer-makefile (configure.ac): Parameterize the location
17374         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17375         The logic is from Eric Blake and the location indicated by Jim Meyering.
17376         Note the more natural CONFIG_HEADER name is prohibited by automake
17377         for backwards compatibility reasons.
17378         * top/maint.mk (sc_Wundef_boolean): New rule.
17379
17380 2010-01-25  Jim Meyering  <meyering@redhat.com>
17381
17382         bootstrap: detect MacOS 10.6's shasum, too
17383         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17384         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17385
17386 2010-01-23  Jim Meyering  <meyering@redhat.com>
17387
17388         xstrtoll: new module
17389         * modules/xstrtoll: New file.
17390         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17391         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17392         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17393         ./configure fails if you use this module and lack "long long".
17394         * modules/xstrtoll-tests: New module.
17395         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17396         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17397         new init.sh-based test framework.
17398
17399 2010-01-24  Bruno Haible  <bruno@clisp.org>
17400
17401         Tests for module 'yn'.
17402         * modules/yn-tests: New file.
17403         * tests/test-yn.c: New file.
17404
17405         Tests for module 'y1'.
17406         * modules/y1-tests: New file.
17407         * tests/test-y1.c: New file.
17408
17409         Tests for module 'y0'.
17410         * modules/y0-tests: New file.
17411         * tests/test-y0.c: New file.
17412
17413         Tests for module 'tanh'.
17414         * modules/tanh-tests: New file.
17415         * tests/test-tanh.c: New file.
17416
17417         Tests for module 'tan'.
17418         * modules/tan-tests: New file.
17419         * tests/test-tan.c: New file.
17420
17421         Tests for module 'sqrt'.
17422         * modules/sqrt-tests: New file.
17423         * tests/test-sqrt.c: New file.
17424
17425         Tests for module 'sinh'.
17426         * modules/sinh-tests: New file.
17427         * tests/test-sinh.c: New file.
17428
17429         Tests for module 'sin'.
17430         * modules/sin-tests: New file.
17431         * tests/test-sin.c: New file.
17432
17433         Tests for module 'rint'.
17434         * modules/rint-tests: New file.
17435         * tests/test-rint.c: New file.
17436
17437         Tests for module 'remainder'.
17438         * modules/remainder-tests: New file.
17439         * tests/test-remainder.c: New file.
17440
17441         Tests for module 'pow'.
17442         * modules/pow-tests: New file.
17443         * tests/test-pow.c: New file.
17444
17445         Tests for module 'nextafter'.
17446         * modules/nextafter-tests: New file.
17447         * tests/test-nextafter.c: New file.
17448
17449         Tests for module 'modf'.
17450         * modules/modf-tests: New file.
17451         * tests/test-modf.c: New file.
17452
17453         Tests for module 'logb'.
17454         * modules/logb-tests: New file.
17455         * tests/test-logb.c: New file.
17456
17457         Tests for module 'log1p'.
17458         * modules/log1p-tests: New file.
17459         * tests/test-log1p.c: New file.
17460
17461         Tests for module 'log10'.
17462         * modules/log10-tests: New file.
17463         * tests/test-log10.c: New file.
17464
17465         Tests for module 'log'.
17466         * modules/log-tests: New file.
17467         * tests/test-log.c: New file.
17468
17469         Tests for module 'lgamma'.
17470         * modules/lgamma-tests: New file.
17471         * tests/test-lgamma.c: New file.
17472
17473         Tests for module 'ldexp'.
17474         * modules/ldexp-tests: New file.
17475         * tests/test-ldexp.c: New file.
17476
17477         Tests for module 'jn'.
17478         * modules/jn-tests: New file.
17479         * tests/test-jn.c: New file.
17480
17481         Tests for module 'j1'.
17482         * modules/j1-tests: New file.
17483         * tests/test-j1.c: New file.
17484
17485         Tests for module 'j0'.
17486         * modules/j0-tests: New file.
17487         * tests/test-j0.c: New file.
17488
17489         Tests for module 'hypot'.
17490         * modules/hypot-tests: New file.
17491         * tests/test-hypot.c: New file.
17492
17493         Tests for module 'fmod'.
17494         * modules/fmod-tests: New file.
17495         * tests/test-fmod.c: New file.
17496
17497         Tests for module 'fabs'.
17498         * modules/fabs-tests: New file.
17499         * tests/test-fabs.c: New file.
17500
17501         Tests for module 'exp'.
17502         * modules/exp-tests: New file.
17503         * tests/test-exp.c: New file.
17504
17505         Tests for module 'erfc'.
17506         * modules/erfc-tests: New file.
17507         * tests/test-erfc.c: New file.
17508
17509         Tests for module 'erf'.
17510         * modules/erf-tests: New file.
17511         * tests/test-erf.c: New file.
17512
17513         Tests for module 'cosh'.
17514         * modules/cosh-tests: New file.
17515         * tests/test-cosh.c: New file.
17516
17517         Tests for module 'cos'.
17518         * modules/cos-tests: New file.
17519         * tests/test-cos.c: New file.
17520
17521         Tests for module 'copysign'.
17522         * modules/copysign-tests: New file.
17523         * tests/test-copysign.c: New file.
17524
17525         Tests for module 'cbrt'.
17526         * modules/cbrt-tests: New file.
17527         * tests/test-cbrt.c: New file.
17528
17529         Tests for module 'atan2'.
17530         * modules/atan2-tests: New file.
17531         * tests/test-atan2.c: New file.
17532
17533         Tests for module 'atan'.
17534         * modules/atan-tests: New file.
17535         * tests/test-atan.c: New file.
17536
17537         Tests for module 'asin'.
17538         * modules/asin-tests: New file.
17539         * tests/test-asin.c: New file.
17540
17541         Tests for module 'acos'.
17542         * modules/acos-tests: New file.
17543         * tests/test-acos.c: New file.
17544
17545 2010-01-24  Bruno Haible  <bruno@clisp.org>
17546
17547         Fix tests for common <math.h> functions.
17548         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17549         code snippet that references the function pointer, rather than merely
17550         calling the function. Substitute the FUNC_LIBM variable.
17551         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17552         * modules/acos (configure.ac): Likewise.
17553         * modules/asin (configure.ac): Likewise.
17554         * modules/atan (configure.ac): Likewise.
17555         * modules/atan2 (configure.ac): Likewise.
17556         * modules/cbrt (configure.ac): Likewise.
17557         * modules/copysign (configure.ac): Likewise.
17558         * modules/cos (configure.ac): Likewise.
17559         * modules/cosh (configure.ac): Likewise.
17560         * modules/erf (configure.ac): Likewise.
17561         * modules/erfc (configure.ac): Likewise.
17562         * modules/exp (configure.ac): Likewise.
17563         * modules/fabs (configure.ac): Likewise.
17564         * modules/fmod (configure.ac): Likewise.
17565         * modules/hypot (configure.ac): Likewise.
17566         * modules/j0 (configure.ac): Likewise.
17567         * modules/j1 (configure.ac): Likewise.
17568         * modules/jn (configure.ac): Likewise.
17569         * modules/ldexp (configure.ac): Likewise.
17570         * modules/lgamma (configure.ac): Likewise.
17571         * modules/log (configure.ac): Likewise.
17572         * modules/log10 (configure.ac): Likewise.
17573         * modules/log1p (configure.ac): Likewise.
17574         * modules/logb (configure.ac): Likewise.
17575         * modules/modf (configure.ac): Likewise.
17576         * modules/nextafter (configure.ac): Likewise.
17577         * modules/pow (configure.ac): Likewise.
17578         * modules/remainder (configure.ac): Likewise.
17579         * modules/rint (configure.ac): Likewise.
17580         * modules/sin (configure.ac): Likewise.
17581         * modules/sinh (configure.ac): Likewise.
17582         * modules/tan (configure.ac): Likewise.
17583         * modules/tanh (configure.ac): Likewise.
17584         * modules/y0 (configure.ac): Likewise.
17585         * modules/y1 (configure.ac): Likewise.
17586         * modules/yn (configure.ac): Likewise.
17587
17588 2010-01-24  Bruno Haible  <bruno@clisp.org>
17589
17590         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17591         * tests/test-acosl.c (x): New variable.
17592         (main): Store argument in x and fetch it from x.
17593         * tests/test-asinl.c (x): New variable.
17594         (main): Store argument in x and fetch it from x.
17595         * tests/test-atanl.c (x): New variable.
17596         (main): Store argument in x and fetch it from x.
17597         * tests/test-cosl.c (x): New variable.
17598         (main): Store argument in x and fetch it from x.
17599         * tests/test-expl.c (x): New variable.
17600         (main): Store argument in x and fetch it from x.
17601         * tests/test-logl.c (x): New variable.
17602         (main): Store argument in x and fetch it from x.
17603         * tests/test-sinl.c (x): New variable.
17604         (main): Store argument in x and fetch it from x.
17605         * tests/test-sqrtl.c (x): New variable.
17606         (main): Store argument in x and fetch it from x.
17607         * tests/test-tanl.c (x): New variable.
17608         (main): Store argument in x and fetch it from x.
17609
17610 2010-01-24  Bruno Haible  <bruno@clisp.org>
17611
17612         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17613         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17614         assignments to the initial TESTS_ENVIRONMENT.
17615         * doc/gnulib.texi (Unit test modules): Document it.
17616         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17617         TESTS_ENVIRONMENT.
17618         * modules/btowc-tests (Makefile.am): Likewise.
17619         * modules/c-stack-tests (Makefile.am): Likewise.
17620         * modules/c-strcase-tests (Makefile.am): Likewise.
17621         * modules/copy-file-tests (Makefile.am): Likewise.
17622         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17623         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17624         * modules/mbrtowc-tests (Makefile.am): Likewise.
17625         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17626         * modules/mbscasestr-tests (Makefile.am): Likewise.
17627         * modules/mbschr-tests (Makefile.am): Likewise.
17628         * modules/mbscspn-tests (Makefile.am): Likewise.
17629         * modules/mbsinit-tests (Makefile.am): Likewise.
17630         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17631         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17632         * modules/mbspbrk-tests (Makefile.am): Likewise.
17633         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17634         * modules/mbsrchr-tests (Makefile.am): Likewise.
17635         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17636         * modules/mbsspn-tests (Makefile.am): Likewise.
17637         * modules/mbsstr-tests (Makefile.am): Likewise.
17638         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17639         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17640         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17641         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17642         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17643         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17644         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17645         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17646         * modules/wcrtomb-tests (Makefile.am): Likewise.
17647         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17648         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17649         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17650         assignments from TESTS_ENVIRONMENT.
17651         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17652         augmentation.
17653         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17654         * modules/atexit-tests (Makefile.am): Likewise.
17655         * modules/binary-io-tests (Makefile.am): Likewise.
17656         * modules/closein-tests (Makefile.am): Likewise.
17657         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17658         * modules/exclude-tests (Makefile.am): Likewise.
17659         * modules/fflush-tests (Makefile.am): Likewise.
17660         * modules/fpending-tests (Makefile.am): Likewise.
17661         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17662         * modules/freadahead-tests (Makefile.am): Likewise.
17663         * modules/freadptr-tests (Makefile.am): Likewise.
17664         * modules/freadseek-tests (Makefile.am): Likewise.
17665         * modules/fseek-tests (Makefile.am): Likewise.
17666         * modules/fseeko-tests (Makefile.am): Likewise.
17667         * modules/ftell-tests (Makefile.am): Likewise.
17668         * modules/ftello-tests (Makefile.am): Likewise.
17669         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17670         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17671         * modules/lseek-tests (Makefile.am): Likewise.
17672         * modules/parse-duration-tests (Makefile.am): Likewise.
17673         * modules/perror-tests (Makefile.am): Likewise.
17674         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17675         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17676         * modules/pipe-tests (Makefile.am): Likewise.
17677         * modules/pread-tests (Makefile.am): Likewise.
17678         * modules/printf-posix-tests (Makefile.am): Likewise.
17679         * modules/select-tests (Makefile.am): Likewise.
17680         * modules/sigpipe-tests (Makefile.am): Likewise.
17681         * modules/tsearch-tests (Makefile.am): Likewise.
17682         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17683         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17684         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17685         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17686         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17687         * modules/version-etc-tests (Makefile.am): Likewise.
17688         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17689         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17690         * modules/xalloc-die-tests (Makefile.am): Likewise.
17691         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17692         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17693         * modules/xstrtol-tests (Makefile.am): Likewise.
17694         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17695         * modules/yesno-tests (Makefile.am): Likewise.
17696         Suggested by Jim Meyering.
17697
17698 2010-01-24  Bruno Haible  <bruno@clisp.org>
17699
17700         More documentation.
17701         * doc/gnulib.texi (Writing modules): New chapter.
17702         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17703         the new chapter.
17704
17705 2010-01-24  Jim Meyering  <meyering@redhat.com>
17706
17707         maint.mk: do not prepend "./" after filtering
17708         * top/maint.mk (_prepend_srcdir_prefix): New variable
17709         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17710         "./" when $(srcdir) is ".".
17711
17712         define STREQ(a,b) consistently, removing useless parentheses
17713         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17714         since the only risk is that "a" or "b" contains an unparenthesized
17715         comma, but if either did that, STREQ would have 3 or more arguments.
17716         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17717         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17718         * lib/hash-triple.c (STREQ): Likewise.
17719         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17720         * lib/getugroups.c (STREQ): Likewise.
17721
17722 2010-01-23  Jim Meyering  <meyering@redhat.com>
17723
17724         maint.mk: fix syntax-check in a non-srcdir build directory
17725         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17726         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17727
17728 2010-01-22  Jim Meyering  <meyering@redhat.com>
17729
17730         userspec: add unit tests
17731         * tests/test-userspec.c: New file.
17732         * modules/userspec-tests: Likewise.
17733
17734 2010-01-21  Jim Meyering  <meyering@redhat.com>
17735
17736         maint.mk: handle source file names containing "." robustly
17737         * top/maint.mk (_dot_escaped_srcdir): Define.
17738         (VC_LIST): Use it in LHS of sed substitution.
17739
17740 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17741
17742         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17743         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17744         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17745         from a non-srcdir build.
17746
17747 2010-01-20  Eric Blake  <ebb9@byu.net>
17748
17749         warn-on-use: use instead of link-warning
17750         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17751         * modules/unistd (Depends-on, Makefile.am): Likewise.
17752         * modules/arpa_inet (Depends-on): Replace link-warning with
17753         warn-on-use.
17754         (Makefile.am): Update rules accordingly.
17755         * modules/ctype (Depends-on, Makefile.am): Likewise.
17756         * modules/dirent (Depends-on, Makefile.am): Likewise.
17757         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17758         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17759         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17760         * modules/locale (Depends-on, Makefile.am): Likewise.
17761         * modules/math (Depends-on, Makefile.am): Likewise.
17762         * modules/search (Depends-on, Makefile.am): Likewise.
17763         * modules/signal (Depends-on, Makefile.am): Likewise.
17764         * modules/spawn (Depends-on, Makefile.am): Likewise.
17765         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17766         * modules/string (Depends-on, Makefile.am): Likewise.
17767         * modules/strings (Depends-on, Makefile.am): Likewise.
17768         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17769         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17770         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17771         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17772         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17773         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17774         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17775         * modules/wchar (Depends-on, Makefile.am): Likewise.
17776         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17777         should be poisoned.
17778         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17779         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17780         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17781         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17782         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17783         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17784         * m4/math_h.m4 (gl_MATH_H): Likewise.
17785         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17786         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17787         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17788         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17789         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17790         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17791         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17792         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17793         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17794         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17795         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17797         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17798         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17799         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17800         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17801         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17802         GL_LINK_WARNING.
17803         * lib/ctype.in.h: Likewise.
17804         * lib/dirent.in.h: Likewise.
17805         * lib/fcntl.in.h: Likewise.
17806         * lib/inttypes.in.h: Likewise.
17807         * lib/langinfo.in.h: Likewise.
17808         * lib/locale.in.h: Likewise.
17809         * lib/math.in.h: Likewise.
17810         * lib/search.in.h: Likewise.
17811         * lib/signal.in.h: Likewise.
17812         * lib/spawn.in.h: Likewise.
17813         * lib/stdio.in.h: Likewise.
17814         * lib/stdlib.in.h: Likewise.
17815         * lib/string.in.h: Likewise.
17816         * lib/strings.in.h: Likewise.
17817         * lib/sys_file.in.h: Likewise.
17818         * lib/sys_ioctl.in.h: Likewise.
17819         * lib/sys_select.in.h: Likewise.
17820         * lib/sys_socket.in.h: Likewise.
17821         * lib/sys_stat.in.h: Likewise.
17822         * lib/sys_times.in.h: Likewise.
17823         * lib/sys_utsname.in.h: Likewise.
17824         * lib/unistd.in.h: Likewise.
17825         * lib/wchar.in.h: Likewise.
17826
17827 2010-01-20  Bruno Haible  <bruno@clisp.org>
17828
17829         Avoid duplicate -lm.
17830         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17831         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17832         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17833         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17834         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17835         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17836         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17837         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17838         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17839         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17840         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17841         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17842         Reported by Paolo Bonzini.
17843
17844 2010-01-19  Bruno Haible  <bruno@clisp.org>
17845
17846         langinfo, nl_langinfo: Relicense under LGPLv2+.
17847         * modules/langinfo (License): Change to LGPLv2+.
17848         * modules/nl_langinfo (License): Likewise.
17849         Patch by David Lutterkort <lutter@redhat.com>.
17850
17851 2010-01-19  Bruno Haible  <bruno@clisp.org>
17852
17853         Avoid compilation error with cc on OSF/1 5.1.
17854         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17855         statement, not before.
17856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17857
17858 2010-01-18  Bruno Haible  <bruno@clisp.org>
17859
17860         Avoid a link error due to the __printf__ symbol.
17861         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17862         and 2.6.x.
17863         (__format__, __printf__): Remove definitions.
17864         * lib/argp-fmtstream.h: Likewise.
17865         * lib/argp.h: Likewise.
17866         * lib/error.h: Likewise.
17867         * lib/vasnprintf.h: Likewise.
17868         * lib/xprintf.h: Likewise.
17869         * lib/xvasprintf.h: Likewise.
17870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17871
17872 2010-01-18  Bruno Haible  <bruno@clisp.org>
17873
17874         Tests for module 'tanl'.
17875         * modules/tanl-tests: New file.
17876         * tests/test-tanl.c: New file.
17877
17878         Tests for module 'sqrtl'.
17879         * modules/sqrtl-tests: New file.
17880         * tests/test-sqrtl.c: New file.
17881
17882         Tests for module 'sinl'.
17883         * modules/sinl-tests: New file.
17884         * tests/test-sinl.c: New file.
17885
17886         Tests for module 'logl'.
17887         * modules/logl-tests: New file.
17888         * tests/test-logl.c: New file.
17889
17890         Tests for module 'expl'.
17891         * modules/expl-tests: New file.
17892         * tests/test-expl.c: New file.
17893
17894         Tests for module 'cosl'.
17895         * modules/cosl-tests: New file.
17896         * tests/test-cosl.c: New file.
17897
17898         Tests for module 'atanl'.
17899         * modules/atanl-tests: New file.
17900         * tests/test-atanl.c: New file.
17901
17902         Tests for module 'asinl'.
17903         * modules/asinl-tests: New file.
17904         * tests/test-asinl.c: New file.
17905
17906         Tests for module 'acosl'.
17907         * modules/acosl-tests: New file.
17908         * tests/test-acosl.c: New file.
17909
17910         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17911         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17912         tanl): Use the standard gnulib idiom.
17913         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17914         * lib/sinl.c: Likewise.
17915         * lib/tanl.c: Don't include trigl.c.
17916         (kernel_tanl): Make static.
17917         * lib/sincosl.c: Include trigl.h first.
17918         * lib/trigl.c: Likewise.
17919         * m4/acosl.m4: New file.
17920         * m4/asinl.m4: New file.
17921         * m4/atanl.m4: New file.
17922         * m4/cosl.m4: New file.
17923         * m4/expl.m4: New file.
17924         * m4/logl.m4: New file.
17925         * m4/sinl.m4: New file.
17926         * m4/sqrtl.m4: New file.
17927         * m4/tanl.m4: New file.
17928         * m4/mathl.m4: Remove file.
17929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17930         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17931         Don't initialize GNULIB_MATHL.
17932         * modules/acosl: New file.
17933         * modules/asinl: New file.
17934         * modules/atanl: New file.
17935         * modules/cosl: New file.
17936         * modules/expl: New file.
17937         * modules/logl: New file.
17938         * modules/sinl: New file.
17939         * modules/sqrtl: New file.
17940         * modules/tanl: New file.
17941         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17942         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17943         substitute GNULIB_MATHL.
17944         * modules/mathl: Rewritten.
17945         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17946         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17947         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17948         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17949         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17950         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17951         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17952         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17953         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17954
17955 2010-01-18  Bruno Haible  <bruno@clisp.org>
17956
17957         sqrt: Make gl_FUNC_SQRT requirable.
17958         * m4/sqrt.m4: New file.
17959         * modules/sqrt (Files): Add it.
17960         (configure.ac): Invoke gl_FUNC_SQRT.
17961
17962 2010-01-18  Bruno Haible  <bruno@clisp.org>
17963
17964         New modules for common <math.h> functions.
17965         * m4/mathfunc.m4: New file.
17966         * modules/acos: New file.
17967         * modules/asin: New file.
17968         * modules/atan: New file.
17969         * modules/atan2: New file.
17970         * modules/cbrt: New file.
17971         * modules/copysign: New file.
17972         * modules/cos: New file.
17973         * modules/cosh: New file.
17974         * modules/erf: New file.
17975         * modules/erfc: New file.
17976         * modules/exp: New file.
17977         * modules/fabs: New file.
17978         * modules/fmod: New file.
17979         * modules/hypot: New file.
17980         * modules/j0: New file.
17981         * modules/j1: New file.
17982         * modules/jn: New file.
17983         * modules/ldexp: New file.
17984         * modules/lgamma: New file.
17985         * modules/log: New file.
17986         * modules/log10: New file.
17987         * modules/log1p: New file.
17988         * modules/logb: New file.
17989         * modules/modf: New file.
17990         * modules/nextafter: New file.
17991         * modules/pow: New file.
17992         * modules/remainder: New file.
17993         * modules/rint: New file.
17994         * modules/sin: New file.
17995         * modules/sinh: New file.
17996         * modules/sqrt: New file.
17997         * modules/tan: New file.
17998         * modules/tanh: New file.
17999         * modules/y0: New file.
18000         * modules/y1: New file.
18001         * modules/yn: New file.
18002         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18003         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18004         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18005         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18006         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18007         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18008         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18009         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18010         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18011         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18012         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18013         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18014         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18015         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18016         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18017         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18018         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18019         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18020         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18021         * doc/posix-functions/log.texi: Mention the 'log' module.
18022         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18023         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18024         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18025         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18026         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18027         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18028         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18029         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18030         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18031         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18032         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18033         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18034         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18035         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18036         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18037         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18038
18039 2010-01-18  Jim Meyering  <meyering@redhat.com>
18040
18041         ignore-value: relax license to LGPLv2+
18042         * modules/ignore-value (License): Relax to LGPLv2+.
18043
18044         getdate: don't leak when TZ contains two or more '"'s
18045         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18046         double quote in TZ after the first one.
18047
18048         readtokens: do not leak internal token_lengths buffer
18049         * lib/readtokens.c (readtokens): Free the local, lengths,
18050         when the supplied "token_lengths" parameter is NULL.
18051
18052 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18053
18054         Fix a couple of missing LIBTHREAD link failures on AIX.
18055         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18056         $(LIBTHREAD).
18057         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18058
18059         Link test-poll against INET_PTON_LIB.
18060         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18061         for inet_pton on Solaris 10.
18062
18063 2010-01-17  Bruno Haible  <bruno@clisp.org>
18064
18065         unistdio/*-sprintf: Fix typo in module description.
18066         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18067         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18068         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18069         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18070         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18071         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18072         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18074
18075 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18076
18077         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18078         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18079         variables in shell case patterns, for AIX and HP-UX ksh.
18080
18081         Split large sed scripts, for HP-UX sed.
18082         * modules/stdio: Split sed scripts around 50 sed commands,
18083         to avoid HP-UX limit of 99 commands, in the near future.
18084         * modules/string: Likewise.
18085         * modules/unistd: Likewise.
18086
18087         gnulib-tool: avoid writing in the current directory.
18088         * gnulib-tool (func_emit_lib_Makefile_am)
18089         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18090         not in the current directory, so concurrent gnulib-tool
18091         instances do not interfere.
18092
18093 2010-01-16  Jim Meyering  <meyering@redhat.com>
18094
18095         doc: update users.txt
18096         * users.txt: Add grep.
18097         (diffutils, gzip): Update URLs.
18098
18099 2010-01-12  Bruno Haible  <bruno@clisp.org>
18100
18101         posix_spawn: Avoid test failure on Cygwin.
18102         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18103         characters.
18104         Reported by Simon Josefsson.
18105
18106 2010-01-12  Bruno Haible  <bruno@clisp.org>
18107
18108         * tests/test-cond.c (main): When skipping the test, show the reason.
18109
18110 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18111
18112         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18113
18114 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18115
18116         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18117         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18118
18119 2010-01-12  Eric Blake  <ebb9@byu.net>
18120
18121         build: guarantee AS_VAR_IF
18122         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18123         (gl_AS_VAR_IF): Move...
18124         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18125         Reported by Simon Josefsson.
18126
18127 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18128
18129         * lib/stdio.in.h: Fix typo.
18130
18131 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18132
18133         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18134         libgpg-error.
18135
18136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18137
18138         * tests/test-xalloc-die.sh: Use $EXEEXT.
18139
18140 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18141             Bruno Haible  <bruno@clisp.org>
18142
18143         getlogin, getlogin_r: Avoid test failure.
18144         * tests/test-getlogin.c: Include <stdio.h>.
18145         (main): Skip the test when the function fails because stdin is not a
18146         tty.
18147         * tests/test-getlogin_r.c: Include <stdio.h>.
18148         (main): Skip the test when the function fails because stdin is not a
18149         tty.
18150
18151 2010-01-11  Eric Blake  <ebb9@byu.net>
18152
18153         tests: avoid more large file warnings
18154         * tests/test-fflush.c: Avoid warning about ftell use.
18155         * tests/test-fseek.c: Avoid warning about fseek use.
18156
18157 2010-01-10  Bruno Haible  <bruno@clisp.org>
18158
18159         nproc: Work better on Linux when /proc and /sys are not mounted.
18160         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18161         as lower bound when, on glibc/Linux systems,
18162         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18163         Suggested by Pádraig Brady <P@draigbrady.com>.
18164         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18165
18166         nproc: Refactor.
18167         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18168         extracted from num_processors.
18169         (num_processors): Call it.
18170
18171 2010-01-11  Jim Meyering  <meyering@redhat.com>
18172
18173         utimecmp: avoid new warning from upcoming gcc-4.5.0
18174         * lib/utimecmp.c (BILLION): Define using #define rather than an
18175         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18176
18177 2010-01-11  Eric Blake  <ebb9@byu.net>
18178
18179         math: add portability warnings for classification macros
18180         * modules/math (Depends-on): Add warn-on-use.
18181         (Makefile.am): Provide new substitutions.
18182         * m4/math_h.m4 (gl_MATH_H): Require inline.
18183         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18184         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18185         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18186         implement warnings.
18187
18188         unistd: warn on use of environ without module
18189         * modules/unistd (Depends-on): Add warn-on-use.
18190         (Makefile.am): Provide new substitutions.
18191         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18192         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18193
18194         stdio: warn on suspicious uses
18195         * modules/stdio (Depends-on): Add warn-on-use.
18196         (Makefile.am): Provide new substitutions.
18197         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18198         fseeko.
18199         * lib/stdio.in.h (gets): Always warn on use.
18200         (fseek, ftell): Adjust when warnings are issued, and honor
18201         _GL_NO_LARGE_FILES as a way to silence the warning.
18202         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18203         any warning about large file offsets.
18204         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18205         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18206         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18207         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18208         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18209         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18210         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18211         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18212
18213         warn-on-use: new module
18214         * modules/warn-on-use: New file.
18215         * build-aux/warn-on-use.h: Likewise.
18216         * m4/warn-on-use.m4: Likewise.
18217         * MODULES.html.sh (Support for building): Mention it.
18218
18219 2010-01-10  Bruno Haible  <bruno@clisp.org>
18220
18221         Tests for module 'unistr/u32-strdup'.
18222         * modules/unistr/u32-strdup-tests: New file.
18223         * tests/unistr/test-u32-strdup.c: New file.
18224
18225         Tests for module 'unistr/u16-strdup'.
18226         * modules/unistr/u16-strdup-tests: New file.
18227         * tests/unistr/test-u16-strdup.c: New file.
18228
18229         Tests for module 'unistr/u8-strdup'.
18230         * modules/unistr/u8-strdup-tests: New file.
18231         * tests/unistr/test-u8-strdup.c: New file.
18232         * tests/unistr/test-strdup.h: New file.
18233
18234         Tests for module 'unistr/u32-strncmp'.
18235         * modules/unistr/u32-strncmp-tests: New file.
18236         * tests/unistr/test-u32-strncmp.c: New file.
18237
18238         Tests for module 'unistr/u16-strncmp'.
18239         * modules/unistr/u16-strncmp-tests: New file.
18240         * tests/unistr/test-u16-strncmp.c: New file.
18241
18242         Tests for module 'unistr/u8-strncmp'.
18243         * modules/unistr/u8-strncmp-tests: New file.
18244         * tests/unistr/test-u8-strncmp.c: New file.
18245         * tests/unistr/test-strncmp.h: New file.
18246
18247         Tests for module 'unistr/u32-strcoll'.
18248         * modules/unistr/u32-strcoll-tests: New file.
18249         * tests/unistr/test-u32-strcoll.c: New file.
18250
18251         Tests for module 'unistr/u16-strcoll'.
18252         * modules/unistr/u16-strcoll-tests: New file.
18253         * tests/unistr/test-u16-strcoll.c: New file.
18254
18255         Tests for module 'unistr/u8-strcoll'.
18256         * modules/unistr/u8-strcoll-tests: New file.
18257         * tests/unistr/test-u8-strcoll.c: New file.
18258
18259         Tests for module 'unistr/u32-strcmp'.
18260         * modules/unistr/u32-strcmp-tests: New file.
18261         * tests/unistr/test-u32-strcmp.c: New file.
18262         * tests/unistr/test-u32-strcmp.h: New file.
18263
18264         Tests for module 'unistr/u16-strcmp'.
18265         * modules/unistr/u16-strcmp-tests: New file.
18266         * tests/unistr/test-u16-strcmp.c: New file.
18267         * tests/unistr/test-u16-strcmp.h: New file.
18268
18269         Tests for module 'unistr/u8-strcmp'.
18270         * modules/unistr/u8-strcmp-tests: New file.
18271         * tests/unistr/test-u8-strcmp.c: New file.
18272         * tests/unistr/test-u8-strcmp.h: New file.
18273         * tests/unistr/test-strcmp.h: New file.
18274
18275         Tests for module 'unistr/u32-strncat'.
18276         * modules/unistr/u32-strncat-tests: New file.
18277         * tests/unistr/test-u32-strncat.c: New file.
18278
18279         Tests for module 'unistr/u16-strncat'.
18280         * modules/unistr/u16-strncat-tests: New file.
18281         * tests/unistr/test-u16-strncat.c: New file.
18282
18283         Tests for module 'unistr/u8-strncat'.
18284         * modules/unistr/u8-strncat-tests: New file.
18285         * tests/unistr/test-u8-strncat.c: New file.
18286         * tests/unistr/test-strncat.h: New file.
18287
18288         Tests for module 'unistr/u32-strcat'.
18289         * modules/unistr/u32-strcat-tests: New file.
18290         * tests/unistr/test-u32-strcat.c: New file.
18291
18292         Tests for module 'unistr/u16-strcat'.
18293         * modules/unistr/u16-strcat-tests: New file.
18294         * tests/unistr/test-u16-strcat.c: New file.
18295
18296         Tests for module 'unistr/u8-strcat'.
18297         * modules/unistr/u8-strcat-tests: New file.
18298         * tests/unistr/test-u8-strcat.c: New file.
18299         * tests/unistr/test-strcat.h: New file.
18300
18301         Tests for module 'unistr/u32-stpncpy'.
18302         * modules/unistr/u32-stpncpy-tests: New file.
18303         * tests/unistr/test-u32-stpncpy.c: New file.
18304
18305         Tests for module 'unistr/u16-stpncpy'.
18306         * modules/unistr/u16-stpncpy-tests: New file.
18307         * tests/unistr/test-u16-stpncpy.c: New file.
18308
18309         Tests for module 'unistr/u8-stpncpy'.
18310         * modules/unistr/u8-stpncpy-tests: New file.
18311         * tests/unistr/test-u8-stpncpy.c: New file.
18312         * tests/unistr/test-stpncpy.h: New file.
18313
18314         Tests for module 'unistr/u32-strncpy'.
18315         * modules/unistr/u32-strncpy-tests: New file.
18316         * tests/unistr/test-u32-strncpy.c: New file.
18317
18318         Tests for module 'unistr/u16-strncpy'.
18319         * modules/unistr/u16-strncpy-tests: New file.
18320         * tests/unistr/test-u16-strncpy.c: New file.
18321
18322         Tests for module 'unistr/u8-strncpy'.
18323         * modules/unistr/u8-strncpy-tests: New file.
18324         * tests/unistr/test-u8-strncpy.c: New file.
18325         * tests/unistr/test-strncpy.h: New file.
18326
18327         Tests for module 'unistr/u32-stpcpy'.
18328         * modules/unistr/u32-stpcpy-tests: New file.
18329         * tests/unistr/test-u32-stpcpy.c: New file.
18330
18331         Tests for module 'unistr/u16-stpcpy'.
18332         * modules/unistr/u16-stpcpy-tests: New file.
18333         * tests/unistr/test-u16-stpcpy.c: New file.
18334
18335         Tests for module 'unistr/u8-stpcpy'.
18336         * modules/unistr/u8-stpcpy-tests: New file.
18337         * tests/unistr/test-u8-stpcpy.c: New file.
18338         * tests/unistr/test-stpcpy.h: New file.
18339
18340         Tests for module 'unistr/u32-strcpy'.
18341         * modules/unistr/u32-strcpy-tests: New file.
18342         * tests/unistr/test-u32-strcpy.c: New file.
18343
18344         Tests for module 'unistr/u16-strcpy'.
18345         * modules/unistr/u16-strcpy-tests: New file.
18346         * tests/unistr/test-u16-strcpy.c: New file.
18347
18348         Tests for module 'unistr/u8-strcpy'.
18349         * modules/unistr/u8-strcpy-tests: New file.
18350         * tests/unistr/test-u8-strcpy.c: New file.
18351         * tests/unistr/test-strcpy.h: New file.
18352
18353         Tests for module 'unistr/u32-strnlen'.
18354         * modules/unistr/u32-strnlen-tests: New file.
18355         * tests/unistr/test-u32-strnlen.c: New file.
18356
18357         Tests for module 'unistr/u16-strnlen'.
18358         * modules/unistr/u16-strnlen-tests: New file.
18359         * tests/unistr/test-u16-strnlen.c: New file.
18360
18361         Tests for module 'unistr/u8-strnlen'.
18362         * modules/unistr/u8-strnlen-tests: New file.
18363         * tests/unistr/test-u8-strnlen.c: New file.
18364         * tests/unistr/test-strnlen.h: New file.
18365
18366         Tests for module 'unistr/u32-strlen'.
18367         * modules/unistr/u32-strlen-tests: New file.
18368         * tests/unistr/test-u32-strlen.c: New file.
18369
18370         Tests for module 'unistr/u16-strlen'.
18371         * modules/unistr/u16-strlen-tests: New file.
18372         * tests/unistr/test-u16-strlen.c: New file.
18373
18374         Tests for module 'unistr/u8-strlen'.
18375         * modules/unistr/u8-strlen-tests: New file.
18376         * tests/unistr/test-u8-strlen.c: New file.
18377
18378         Tests for module 'unistr/u32-prev'.
18379         * modules/unistr/u32-prev-tests: New file.
18380         * tests/unistr/test-u32-prev.c: New file.
18381
18382         Tests for module 'unistr/u16-prev'.
18383         * modules/unistr/u16-prev-tests: New file.
18384         * tests/unistr/test-u16-prev.c: New file.
18385
18386         Tests for module 'unistr/u8-prev'.
18387         * modules/unistr/u8-prev-tests: New file.
18388         * tests/unistr/test-u8-prev.c: New file.
18389
18390         Tests for module 'unistr/u32-next'.
18391         * modules/unistr/u32-next-tests: New file.
18392         * tests/unistr/test-u32-next.c: New file.
18393
18394         Tests for module 'unistr/u16-next'.
18395         * modules/unistr/u16-next-tests: New file.
18396         * tests/unistr/test-u16-next.c: New file.
18397
18398         Tests for module 'unistr/u8-next'.
18399         * modules/unistr/u8-next-tests: New file.
18400         * tests/unistr/test-u8-next.c: New file.
18401
18402         Tests for module 'unistr/u32-strmbtouc'.
18403         * modules/unistr/u32-strmbtouc-tests: New file.
18404         * tests/unistr/test-u32-strmbtouc.c: New file.
18405
18406         Tests for module 'unistr/u16-strmbtouc'.
18407         * modules/unistr/u16-strmbtouc-tests: New file.
18408         * tests/unistr/test-u16-strmbtouc.c: New file.
18409
18410         Tests for module 'unistr/u8-strmbtouc'.
18411         * modules/unistr/u8-strmbtouc-tests: New file.
18412         * tests/unistr/test-u8-strmbtouc.c: New file.
18413
18414         Tests for module 'unistr/u32-strmblen'.
18415         * modules/unistr/u32-strmblen-tests: New file.
18416         * tests/unistr/test-u32-strmblen.c: New file.
18417
18418         Tests for module 'unistr/u16-strmblen'.
18419         * modules/unistr/u16-strmblen-tests: New file.
18420         * tests/unistr/test-u16-strmblen.c: New file.
18421
18422         Tests for module 'unistr/u8-strmblen'.
18423         * modules/unistr/u8-strmblen-tests: New file.
18424         * tests/unistr/test-u8-strmblen.c: New file.
18425
18426         Tests for module 'unistr/u32-cpy-alloc'.
18427         * modules/unistr/u32-cpy-alloc-tests: New file.
18428         * tests/unistr/test-u32-cpy-alloc.c: New file.
18429
18430         Tests for module 'unistr/u16-cpy-alloc'.
18431         * modules/unistr/u16-cpy-alloc-tests: New file.
18432         * tests/unistr/test-u16-cpy-alloc.c: New file.
18433
18434         Tests for module 'unistr/u8-cpy-alloc'.
18435         * modules/unistr/u8-cpy-alloc-tests: New file.
18436         * tests/unistr/test-u8-cpy-alloc.c: New file.
18437         * tests/unistr/test-cpy-alloc.h: New file.
18438
18439         Tests for module 'unistr/u32-mbsnlen'.
18440         * modules/unistr/u32-mbsnlen-tests: New file.
18441         * tests/unistr/test-u32-mbsnlen.c: New file.
18442
18443         Tests for module 'unistr/u16-mbsnlen'.
18444         * modules/unistr/u16-mbsnlen-tests: New file.
18445         * tests/unistr/test-u16-mbsnlen.c: New file.
18446
18447         Tests for module 'unistr/u8-mbsnlen'.
18448         * modules/unistr/u8-mbsnlen-tests: New file.
18449         * tests/unistr/test-u8-mbsnlen.c: New file.
18450
18451         Tests for module 'unistr/u32-chr'.
18452         * modules/unistr/u32-chr-tests: New file.
18453         * tests/unistr/test-u32-chr.c: New file.
18454
18455         Tests for module 'unistr/u16-chr'.
18456         * modules/unistr/u16-chr-tests: New file.
18457         * tests/unistr/test-u16-chr.c: New file.
18458
18459         Tests for module 'unistr/u8-chr'.
18460         * modules/unistr/u8-chr-tests: New file.
18461         * tests/unistr/test-u8-chr.c: New file.
18462         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18463
18464         Tests for module 'unistr/u32-cmp2'.
18465         * modules/unistr/u32-cmp2-tests: New file.
18466         * tests/unistr/test-u32-cmp2.c: New file.
18467
18468         Tests for module 'unistr/u16-cmp2'.
18469         * modules/unistr/u16-cmp2-tests: New file.
18470         * tests/unistr/test-u16-cmp2.c: New file.
18471
18472         Tests for module 'unistr/u8-cmp2'.
18473         * modules/unistr/u8-cmp2-tests: New file.
18474         * tests/unistr/test-u8-cmp2.c: New file.
18475         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18476
18477         Tests for module 'unistr/u32-cmp'.
18478         * modules/unistr/u32-cmp-tests: New file.
18479         * tests/unistr/test-u32-cmp.c: New file.
18480
18481         Tests for module 'unistr/u16-cmp'.
18482         * modules/unistr/u16-cmp-tests: New file.
18483         * tests/unistr/test-u16-cmp.c: New file.
18484
18485         Tests for module 'unistr/u8-cmp'.
18486         * modules/unistr/u8-cmp-tests: New file.
18487         * tests/unistr/test-u8-cmp.c: New file.
18488         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18489
18490         Tests for module 'unistr/u32-set'.
18491         * modules/unistr/u32-set-tests: New file.
18492         * tests/unistr/test-u32-set.c: New file.
18493
18494         Tests for module 'unistr/u16-set'.
18495         * modules/unistr/u16-set-tests: New file.
18496         * tests/unistr/test-u16-set.c: New file.
18497
18498         Tests for module 'unistr/u8-set'.
18499         * modules/unistr/u8-set-tests: New file.
18500         * tests/unistr/test-u8-set.c: New file.
18501         * tests/unistr/test-set.h: New file.
18502
18503         Tests for module 'unistr/u32-move'.
18504         * modules/unistr/u32-move-tests: New file.
18505         * tests/unistr/test-u32-move.c: New file.
18506
18507         Tests for module 'unistr/u16-move'.
18508         * modules/unistr/u16-move-tests: New file.
18509         * tests/unistr/test-u16-move.c: New file.
18510
18511         Tests for module 'unistr/u8-move'.
18512         * modules/unistr/u8-move-tests: New file.
18513         * tests/unistr/test-u8-move.c: New file.
18514         * tests/unistr/test-move.h: New file.
18515
18516         Tests for module 'unistr/u32-cpy'.
18517         * modules/unistr/u32-cpy-tests: New file.
18518         * tests/unistr/test-u32-cpy.c: New file.
18519
18520         Tests for module 'unistr/u16-cpy'.
18521         * modules/unistr/u16-cpy-tests: New file.
18522         * tests/unistr/test-u16-cpy.c: New file.
18523
18524         Tests for module 'unistr/u8-cpy'.
18525         * modules/unistr/u8-cpy-tests: New file.
18526         * tests/unistr/test-u8-cpy.c: New file.
18527         * tests/unistr/test-cpy.h: New file.
18528
18529 2010-01-09  Bruno Haible  <bruno@clisp.org>
18530
18531         Tests for module 'unistr/u32-uctomb'.
18532         * modules/unistr/u32-uctomb-tests: New file.
18533         * tests/unistr/test-u32-uctomb.c: New file.
18534
18535         Tests for module 'unistr/u16-uctomb'.
18536         * modules/unistr/u16-uctomb-tests: New file.
18537         * tests/unistr/test-u16-uctomb.c: New file.
18538
18539         Tests for module 'unistr/u8-uctomb'.
18540         * modules/unistr/u8-uctomb-tests: New file.
18541         * tests/unistr/test-u8-uctomb.c: New file.
18542
18543         Tests for module 'unistr/u32-mbtoucr'.
18544         * modules/unistr/u32-mbtoucr-tests: New file.
18545         * tests/unistr/test-u32-mbtoucr.c: New file.
18546
18547         Tests for module 'unistr/u16-mbtoucr'.
18548         * modules/unistr/u16-mbtoucr-tests: New file.
18549         * tests/unistr/test-u16-mbtoucr.c: New file.
18550
18551         Tests for module 'unistr/u8-mbtoucr'.
18552         * modules/unistr/u8-mbtoucr-tests: New file.
18553         * tests/unistr/test-u8-mbtoucr.c: New file.
18554
18555         Tests for module 'unistr/u32-mbtouc'.
18556         * modules/unistr/u32-mbtouc-tests: New file.
18557         * tests/unistr/test-u32-mbtouc.c: New file.
18558
18559         Tests for module 'unistr/u16-mbtouc'.
18560         * modules/unistr/u16-mbtouc-tests: New file.
18561         * tests/unistr/test-u16-mbtouc.c: New file.
18562
18563         Tests for module 'unistr/u8-mbtouc'.
18564         * modules/unistr/u8-mbtouc-tests: New file.
18565         * tests/unistr/test-u8-mbtouc.c: New file.
18566
18567         Tests for module 'unistr/u32-mbtouc-unsafe'.
18568         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18569         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18570         * tests/unistr/test-u32-mbtouc.h: New file.
18571
18572         Tests for module 'unistr/u16-mbtouc-unsafe'.
18573         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18574         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18575         * tests/unistr/test-u16-mbtouc.h: New file.
18576
18577         Tests for module 'unistr/u8-mbtouc-unsafe'.
18578         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18579         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18580         * tests/unistr/test-u8-mbtouc.h: New file.
18581
18582         Tests for module 'unistr/u32-mblen'.
18583         * modules/unistr/u32-mblen-tests: New file.
18584         * tests/unistr/test-u32-mblen.c: New file.
18585
18586         Tests for module 'unistr/u16-mblen'.
18587         * modules/unistr/u16-mblen-tests: New file.
18588         * tests/unistr/test-u16-mblen.c: New file.
18589
18590         Tests for module 'unistr/u8-mblen'.
18591         * modules/unistr/u8-mblen-tests: New file.
18592         * tests/unistr/test-u8-mblen.c: New file.
18593
18594         Tests for module 'unistr/u32-to-u16'.
18595         * modules/unistr/u32-to-u16-tests: New file.
18596         * tests/unistr/test-u32-to-u16.c: New file.
18597
18598         Tests for module 'unistr/u32-to-u8'.
18599         * modules/unistr/u32-to-u8-tests: New file.
18600         * tests/unistr/test-u32-to-u8.c: New file.
18601
18602         Tests for module 'unistr/u16-to-u32'.
18603         * modules/unistr/u16-to-u32-tests: New file.
18604         * tests/unistr/test-u16-to-u32.c: New file.
18605
18606         Tests for module 'unistr/u16-to-u8'.
18607         * modules/unistr/u16-to-u8-tests: New file.
18608         * tests/unistr/test-u16-to-u8.c: New file.
18609
18610         Tests for module 'unistr/u8-to-u32'.
18611         * modules/unistr/u8-to-u32-tests: New file.
18612         * tests/unistr/test-u8-to-u32.c: New file.
18613
18614         Tests for module 'unistr/u8-to-u16'.
18615         * modules/unistr/u8-to-u16-tests: New file.
18616         * tests/unistr/test-u8-to-u16.c: New file.
18617
18618         Tests for module 'unistr/u32-check'.
18619         * modules/unistr/u32-check-tests: New file.
18620         * tests/unistr/test-u32-check.c: New file.
18621
18622         Tests for module 'unistr/u16-check'.
18623         * modules/unistr/u16-check-tests: New file.
18624         * tests/unistr/test-u16-check.c: New file.
18625
18626         Tests for module 'unistr/u8-check'.
18627         * modules/unistr/u8-check-tests: New file.
18628         * tests/unistr/test-u8-check.c: New file.
18629
18630         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18631         (category_equals): New function.
18632         (main): Add more tests.
18633         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18634
18635         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18636
18637 2010-01-10  Bruno Haible  <bruno@clisp.org>
18638
18639         unistr/u*-strcoll: Try harder to distinguish different strings.
18640         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18641         compare s1 and s2 to see if they are different.
18642
18643 2010-01-10  Bruno Haible  <bruno@clisp.org>
18644
18645         unistr/u*-stpncpy: Fix the return value.
18646         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18647         description of the return value consistent with stpncpy in glibc.
18648         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18649         written non-NUL unit.
18650
18651 2010-01-10  Bruno Haible  <bruno@clisp.org>
18652
18653         unistr/u*-next: Add missing dependencies.
18654         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18655         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18656         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18657
18658 2010-01-10  Bruno Haible  <bruno@clisp.org>
18659
18660         unistr/u8-mbsnlen: Fix return value for incomplete character.
18661         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18662         u8_mblen.
18663         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18664         Remove unistr/u8-mblen.
18665         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18666         u16_mblen.
18667         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18668         Remove unistr/u16-mblen.
18669
18670 2010-01-10  Bruno Haible  <bruno@clisp.org>
18671
18672         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18673         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18674         Reported by Brian Gough <bjg@gnu.org> and
18675         Chris Clayton <chris2553@googlemail.com> via
18676         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18677
18678 2010-01-09  Bruno Haible  <bruno@clisp.org>
18679
18680         unistr/u16-to-u32: Reject invalid input.
18681         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18682         u16_mbtouc.
18683         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18684         Remove unistr/u16-mbtouc.
18685
18686         unistr/u16-to-u8: Reject invalid input.
18687         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18688         u16_mbtouc.
18689         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18690         Remove unistr/u16-mbtouc.
18691
18692         unistr/u8-to-u32: Reject invalid input.
18693         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18694         u8_mbtouc.
18695         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18696         Remove unistr/u8-mbtouc.
18697
18698         unistr/u8-to-u16: Reject invalid input.
18699         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18700         u8_mbtouc.
18701         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18702         Remove unistr/u8-mbtouc.
18703
18704 2010-01-09  Bruno Haible  <bruno@clisp.org>
18705
18706         Tests for module 'getlogin'.
18707         * modules/getlogin-tests: New file.
18708         * tests/test-getlogin.c: New file.
18709
18710         New module 'getlogin'.
18711         * lib/unistd.in.h (getlogin): New declaration.
18712         * lib/getlogin.c: New file.
18713         * m4/getlogin.m4: New file.
18714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18715         HAVE_GETLOGIN.
18716         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18717         HAVE_GETLOGIN.
18718         * modules/getlogin: New file.
18719         * doc/posix-functions/getlogin.texi: Mention the new module.
18720         Reported by John W. Eaton <jwe@gnu.org>.
18721
18722 2010-01-09  Bruno Haible  <bruno@clisp.org>
18723
18724         getlogin_r: Support for native Windows.
18725         * lib/getlogin_r.c: Include <windows.h>
18726         (getlogin_r): Implement for native Windows.
18727         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18728         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18729         via John W. Eaton <jwe@gnu.org>.
18730
18731 2010-01-09  Bruno Haible  <bruno@clisp.org>
18732
18733         getlogin_r: Small fixes.
18734         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18735         succeeds.
18736         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18737         before testing whether getlogin_r is declared. No need to set
18738         HAVE_DECL_GETLOGIN_R to 1.
18739         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18740
18741 2010-01-09  Bruno Haible  <bruno@clisp.org>
18742
18743         * lib/unistd.in.h (getlogin_r): Add comment.
18744
18745 2010-01-09  Bruno Haible  <bruno@clisp.org>
18746
18747         Tests for module 'getlogin_r'.
18748         * modules/getlogin_r-tests: New file.
18749         * tests/test-getlogin_r.c: New file.
18750
18751 2010-01-09  Jim Meyering  <meyering@redhat.com>
18752
18753         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18754         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18755         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18756
18757 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18758
18759         * lib/dup2.c (rpl_dup2): Improve comment.
18760
18761 2010-01-08  Eric Blake  <ebb9@byu.net>
18762
18763         maint.mk: allow packages to add makefile @@ exceptions
18764         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18765         (sc_makefile_check): Rename...
18766         (sc_makefile_at_at_check): ...to this, and use hook.
18767
18768         dup2: work around mingw bug
18769         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18770         Reported by Simon Josefsson.
18771
18772 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18773
18774         glob: Fix C++ compilation.
18775         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18776         C++.
18777
18778 2010-01-07  Bruno Haible  <bruno@clisp.org>
18779
18780         Fix indentation of wctype.in.h, broken since 2007-01-06.
18781         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18782
18783 2010-01-07  Bruno Haible  <bruno@clisp.org>
18784
18785         mbslen: Avoid collision with system function.
18786         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18787         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18788         * m4/mbslen.m4: New file.
18789         * modules/mbslen (Files): Add it.
18790         (configure.ac): Invoke gl_MBSLEN.
18791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18792         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18793         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18794         via Ian Beckwith <ianb@erislabs.net>.
18795
18796 2010-01-07  Bruno Haible  <bruno@clisp.org>
18797
18798         dirent: Document the last fix.
18799         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18800
18801 2010-01-07  Bruno Haible  <bruno@clisp.org>
18802
18803         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18804         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18805         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18806         va_list are defined.
18807         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18808         Reported by Eric Blake.
18809
18810 2010-01-07  Bruno Haible  <bruno@clisp.org>
18811
18812         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18813         * modules/xlist (Depends-on): Add 'list',
18814         * modules/xoset (Depends-on): Add 'oset'.
18815         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18816
18817 2010-01-07  Bruno Haible  <bruno@clisp.org>
18818
18819         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18820         * doc/posix-functions/strncasecmp.texi: Likewise.
18821
18822 2010-01-07  Bruno Haible  <bruno@clisp.org>
18823
18824         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18825
18826 2010-01-07  John W. Eaton  <jwe@octave.org>
18827
18828         wctype: allow C++ use
18829         * lib/wctype.in.h: Add extern "C" block for C++.
18830
18831 2010-01-06  Eric Blake  <ebb9@byu.net>
18832
18833         maint.mk: detect incorrect GFDL usage
18834         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18835
18836 2010-01-06  Jim Meyering  <meyering@redhat.com>
18837         and Eric Blake  <ebb9@byu.net>
18838
18839         maint.mk: ignore multi-line copyright in NEWS
18840         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18841
18842 2010-01-06  Eric Blake  <ebb9@byu.net>
18843
18844         select: add missing dependency
18845         * modules/select-tests (Depends-on): Move sockets dependency...
18846         * modules/select (Depends-on): ...here.
18847         Reported by Ian Beckwith.
18848
18849         doc: regenerate INSTALL
18850         * doc/INSTALL: Reflect recent autoconf update.
18851         * doc/INSTALL.ISO: Likewise.
18852         * doc/INSTALL.UTF-8: Likewise.
18853
18854         pread: fix compilation on glibc
18855         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18856         Reported by Ralf Wildenhues.
18857
18858         dirent: fix test failure
18859         * lib/dirent.in.h (includes): Guarantee ino_t.
18860         Reported by Ralf Wildenhues.
18861
18862 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18863
18864         linkat, renameat: avoid bad free
18865         * lib/at-func2.c (at_func2): Fix typo.
18866         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18867
18868 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18869
18870         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18871         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18872         to avoid failure of symlink test later.
18873
18874 2010-01-06  Eric Blake  <ebb9@byu.net>
18875
18876         stdio, unistd: guarantee ssize_t
18877         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18878         2008 are exposed when needed.
18879         * lib/stdio.in.h (includes): Likewise.
18880         Reported by Ralf Wildenhues.
18881
18882 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18883
18884         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18885         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18886         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18887
18888 2010-01-06  Jim Meyering  <meyering@redhat.com>
18889
18890         readtokens: this module *does* require xalloc.h
18891         It uses only functions that were omitted by the old syntax-check rule.
18892         * lib/readtokens.c: Include "xalloc.h" once again.
18893         * modules/readtokens (Depends-on): Add xalloc.
18894         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18895
18896 2010-01-05  Eric Blake  <ebb9@byu.net>
18897
18898         maint: support 'make announcement' from a VPATH build
18899         * top/maint.mk (announcement): Look for correct NEWS file.
18900
18901 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18902
18903         utimens (fdutimens): ignore a negative FD, per contract
18904         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18905         when we have a valid file descriptor.  Otherwise, using a brand
18906         new glibc (with just-patched futimens that now fails with EBADF)
18907         would cause this function to fail with ENOSYS.
18908         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18909         See also http://bugzilla.redhat.com/552320.
18910
18911 2010-01-05  Eric Blake  <ebb9@byu.net>
18912
18913         strcase: document what it provides
18914         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18915         gnulib module.
18916         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18917         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18918
18919 2010-01-05  Jim Meyering  <meyering@redhat.com>
18920
18921         maint: remove useless inclusions of "xalloc.h"
18922         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18923         * lib/readtokens.c: Likewise.
18924         * lib/same.c: Likewise.
18925         * modules/getloadavg (Depends-on): Remove xalloc.
18926         * modules/readtokens: Likewise.
18927         * modules/same: Likewise.
18928
18929         maint.mk: include 4 more function names in alloca.h-checking regexp
18930         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18931         regexp.  Before, we would give a false-positive (saying alloca.h
18932         is included unnecessarily) when the only uses involved omitted symbols.
18933
18934         xalloc.h: use consistent formatting
18935         * lib/xalloc.h: Move declarations to start in the first column.
18936
18937 2010-01-05  Eric Blake  <ebb9@byu.net>
18938
18939         mkdir: avoid xalloc
18940         * lib/mkdir.c (includes): Drop unused header.
18941         Reported by John W. Eaton.
18942
18943 2010-01-04  Jim Meyering  <meyering@redhat.com>
18944
18945         nl_langinfo: avoid configure-time syntax error
18946         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18947         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18948         the empty string.  Don't let that provoke a shell syntax error.
18949
18950         regcomp, regexec, fnmatch: avoid array bounds read error
18951         * lib/regcomp.c (build_equiv_class): From glibc:
18952         Use only the low 24 bits of a findidx return value as an index
18953         into the weights array.  Patch by Ulrich Drepper:
18954         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18955         * lib/regexec.c (check_node_accept_bytes): Likewise.
18956         * lib/fnmatch_loop.c (FCT): Likewise.
18957
18958         regcomp: skip collseq lookup when there are no rules
18959         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18960         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18961
18962         regcomp: recognize ill-formed { } expressions
18963         * lib/regcomp.c (parse_dup_op): From glibc:
18964         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18965
18966         regcomp: fix typo in comment
18967         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18968         s/satisfy/satisfies/.
18969
18970         regcomp: sync from glibc: remove dead store
18971         * lib/regcomp.c (duplicate_node_closure): Remove useless
18972         search_duplicated_node call and dead store.
18973
18974         regcomp: sync from glibc; always use nl_langinfo
18975         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18976         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18977         * modules/regex (Depends-on): Add nl_langinfo.
18978
18979 2010-01-04  Eric Blake  <ebb9@byu.net>
18980
18981         fdopendir: fix configure test
18982         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18983
18984 2010-01-01  Bruno Haible  <bruno@clisp.org>
18985
18986         wchar: Remove unused configure check.
18987         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18988
18989 2010-01-01  Eric Blake  <ebb9@byu.net>
18990
18991         headers: make check of system header explicit
18992         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18993         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18994         ourselves.
18995         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18997         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18998         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18999         internals.
19000         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19001         missing.
19002         Suggested by Bruno Haible.
19003
19004 2010-01-01  Jim Meyering  <meyering@redhat.com>
19005
19006         ChangeLog: tweak to eliminate unnecessary copyright line
19007         * ChangeLog: Remove a copyright line that was mistakenly updated
19008         by today's update-copyright run.  Reported by Eric Blake.
19009
19010         test-update-copyright: don't let envvar setting cause test failure
19011         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19012
19013 2010-01-01  Bruno Haible  <bruno@clisp.org>
19014
19015         localename: Avoid gcc warning.
19016         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19017         function if it is not used.
19018
19019 2010-01-01  Jim Meyering  <meyering@redhat.com>
19020
19021         update nearly all FSF copyright year lists to include 2010
19022         Use the same procedure as for 2009, outlined in
19023         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19024
19025         version-etc: set COPYRIGHT_YEAR to 2010
19026         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19027
19028 2009-12-31  Eric Blake  <ebb9@byu.net>
19029
19030         doc: correct availability of cygwin 1.5.x getopt
19031         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19032         variables.
19033         * doc/posix-functions/opterr.texi (opterr): Likewise.
19034         * doc/posix-functions/optind.texi (optind): Likewise.
19035         * doc/posix-functions/optopt.texi (optopt): Likewise.
19036         * doc/posix-functions/tzname.texi (tzname): Likewise.
19037
19038         openat: update maintainer
19039         * modules/openat (Maintainer): Add myself.
19040
19041         utimens: avoid shadowing warning
19042         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19043         buffers into one, to avoid shadowing, as well as avoiding a
19044         redundant stat.
19045         Reported by Jim Meyering.
19046
19047         test-dup2: avoid compiler warning
19048         * tests/test-dup2.c (is_inheritable): Only define if used.
19049
19050 2010-01-01  Bruno Haible  <bruno@clisp.org>
19051
19052         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19053         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19054         defined, use wctomb instead of wcrtomb.
19055
19056 2010-01-01  Bruno Haible  <bruno@clisp.org>
19057
19058         iconv: Reject native Solaris iconv.
19059         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19060         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19061
19062 2009-12-31  Bruno Haible  <bruno@clisp.org>
19063
19064         * tests/test-signal.c (main): Remove test of 'SIG'.
19065
19066 2009-12-31  Bruno Haible  <bruno@clisp.org>
19067
19068         spawn: Fix incomplete fix.
19069         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19070         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19071         warnings for GNULIB_POSIXCHECK again.
19072         Reported by Eric Blake.
19073
19074 2009-12-31  Bruno Haible  <bruno@clisp.org>
19075
19076         Avoid namespace pollution on glibc systems.
19077         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19078         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19079         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19080         glibc systems.
19081
19082 2009-12-31  Bruno Haible  <bruno@clisp.org>
19083
19084         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19085         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19086         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19087         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19088         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19089         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19090         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19091
19092 2009-12-31  Bruno Haible  <bruno@clisp.org>
19093
19094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19095         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19096         afterwards.
19097
19098 2009-12-31  Bruno Haible  <bruno@clisp.org>
19099
19100         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19101         SYS_UTSNAME_H.
19102
19103 2009-12-31  Bruno Haible  <bruno@clisp.org>
19104
19105         spawn: Fix misapplied patch.
19106         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19107         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19108         warnings for GNULIB_POSIXCHECK.
19109
19110 2009-12-31  Bruno Haible  <bruno@clisp.org>
19111
19112         times: Update after sys_times changed.
19113         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19114         * modules/times (Files): Add it.
19115         (configure.ac): Invoke gl_FUNC_TIMES.
19116
19117 2009-12-31  Bruno Haible  <bruno@clisp.org>
19118
19119         Use AC_C_INLINE where necessary.
19120         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19121         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19122         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19123         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19124         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19125         * m4/mbiter.m4 (gl_MBITER): Likewise.
19126         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19127         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19128         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19129         * modules/u64 (configure.ac): Likewise.
19130
19131 2009-12-31  Bruno Haible  <bruno@clisp.org>
19132
19133         Use AC_C_INLINE instead of module 'inline' where possible.
19134         * modules/inline (Description): Clarify purpose.
19135         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19136         * modules/count-one-bits (Depends-on): Remove inline.
19137         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19138         * modules/openat (Depends-on): Remove inline.
19139         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19140         instead of depending on module 'inline'.
19141         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19142         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19143         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19144         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19145         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19146         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19147         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19148         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19149         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19150         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19151         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19152         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19153         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19154         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19155         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19156         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19157         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19158         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19159         Likewise.
19160         * modules/unictype/property-ascii-hex-digit (Depends-on,
19161         configure.ac): Likewise.
19162         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19163         configure.ac): Likewise.
19164         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19165         configure.ac): Likewise.
19166         * modules/unictype/property-bidi-block-separator (Depends-on,
19167         configure.ac): Likewise.
19168         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19169         configure.ac): Likewise.
19170         * modules/unictype/property-bidi-common-separator (Depends-on,
19171         configure.ac): Likewise.
19172         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19173         Likewise.
19174         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19175         configure.ac): Likewise.
19176         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19177         configure.ac): Likewise.
19178         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19179         configure.ac): Likewise.
19180         * modules/unictype/property-bidi-european-digit (Depends-on,
19181         configure.ac): Likewise.
19182         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19183         configure.ac): Likewise.
19184         * modules/unictype/property-bidi-left-to-right (Depends-on,
19185         configure.ac): Likewise.
19186         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19187         configure.ac): Likewise.
19188         * modules/unictype/property-bidi-other-neutral (Depends-on,
19189         configure.ac): Likewise.
19190         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19191         Likewise.
19192         * modules/unictype/property-bidi-segment-separator (Depends-on,
19193         configure.ac): Likewise.
19194         * modules/unictype/property-bidi-whitespace (Depends-on,
19195         configure.ac): Likewise.
19196         * modules/unictype/property-combining (Depends-on, configure.ac):
19197         Likewise.
19198         * modules/unictype/property-composite (Depends-on, configure.ac):
19199         Likewise.
19200         * modules/unictype/property-currency-symbol (Depends-on,
19201         configure.ac): Likewise.
19202         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19203         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19204         Likewise.
19205         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19206         configure.ac): Likewise.
19207         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19208         Likewise.
19209         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19210         Likewise.
19211         * modules/unictype/property-extender (Depends-on, configure.ac):
19212         Likewise.
19213         * modules/unictype/property-format-control (Depends-on, configure.ac):
19214         Likewise.
19215         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19216         Likewise.
19217         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19218         Likewise.
19219         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19220         Likewise.
19221         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19222         Likewise.
19223         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19224         Likewise.
19225         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19226         Likewise.
19227         * modules/unictype/property-id-start (Depends-on, configure.ac):
19228         Likewise.
19229         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19230         Likewise.
19231         * modules/unictype/property-ids-binary-operator (Depends-on,
19232         configure.ac): Likewise.
19233         * modules/unictype/property-ids-trinary-operator (Depends-on,
19234         configure.ac): Likewise.
19235         * modules/unictype/property-ignorable-control (Depends-on,
19236         configure.ac): Likewise.
19237         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19238         Likewise.
19239         * modules/unictype/property-join-control (Depends-on, configure.ac):
19240         Likewise.
19241         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19242         Likewise.
19243         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19244         Likewise.
19245         * modules/unictype/property-logical-order-exception (Depends-on,
19246         configure.ac): Likewise.
19247         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19248         Likewise.
19249         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19250         * modules/unictype/property-non-break (Depends-on, configure.ac):
19251         Likewise.
19252         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19253         Likewise.
19254         * modules/unictype/property-numeric (Depends-on, configure.ac):
19255         Likewise.
19256         * modules/unictype/property-other-alphabetic (Depends-on,
19257         configure.ac): Likewise.
19258         * modules/unictype/property-other-default-ignorable-code-point
19259         (Depends-on, configure.ac): Likewise.
19260         * modules/unictype/property-other-grapheme-extend (Depends-on,
19261         configure.ac): Likewise.
19262         * modules/unictype/property-other-id-continue (Depends-on,
19263         configure.ac): Likewise.
19264         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19265         Likewise.
19266         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19267         Likewise.
19268         * modules/unictype/property-other-math (Depends-on, configure.ac):
19269         Likewise.
19270         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19271         Likewise.
19272         * modules/unictype/property-paired-punctuation (Depends-on,
19273         configure.ac): Likewise.
19274         * modules/unictype/property-paragraph-separator (Depends-on,
19275         configure.ac): Likewise.
19276         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19277         Likewise.
19278         * modules/unictype/property-pattern-white-space (Depends-on,
19279         configure.ac): Likewise.
19280         * modules/unictype/property-private-use (Depends-on, configure.ac):
19281         Likewise.
19282         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19283         Likewise.
19284         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19285         Likewise.
19286         * modules/unictype/property-radical (Depends-on, configure.ac):
19287         Likewise.
19288         * modules/unictype/property-sentence-terminal (Depends-on,
19289         configure.ac): Likewise.
19290         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19291         Likewise.
19292         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19293         * modules/unictype/property-terminal-punctuation (Depends-on,
19294         configure.ac): Likewise.
19295         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19296         Likewise.
19297         * modules/unictype/property-unassigned-code-value (Depends-on,
19298         configure.ac): Likewise.
19299         * modules/unictype/property-unified-ideograph (Depends-on,
19300         configure.ac): Likewise.
19301         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19302         Likewise.
19303         * modules/unictype/property-variation-selector (Depends-on,
19304         configure.ac): Likewise.
19305         * modules/unictype/property-white-space (Depends-on, configure.ac):
19306         Likewise.
19307         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19308         Likewise.
19309         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19310         Likewise.
19311         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19312         Likewise.
19313         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19314         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19315         Likewise.
19316
19317 2009-12-31  Bruno Haible  <bruno@clisp.org>
19318
19319         Remove unnecessary AC_C_INLINE invocation.
19320         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19321         since 2009-08-21.
19322
19323 2009-12-31  Jim Meyering  <meyering@redhat.com>
19324
19325         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19326         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19327         With this change, we can all remove the gpg_key_ID = ... definition
19328         from our respective cfg.mk files.
19329
19330         maint.mk: create announcement template in ~/, not in /tmp
19331         * top/maint.mk (emit_upload_commands): Adjust.
19332         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19333         Remove temporary file, .ci-msg.
19334
19335 2009-12-31  Eric Blake  <ebb9@byu.net>
19336
19337         link-warning: always build headers with link warnings
19338         * modules/arpa_inet (Makefile.am): Always build replacement
19339         header.
19340         * modules/ctype (Makefile.am): Likewise.
19341         * modules/dirent (Makefile.am): Likewise.
19342         * modules/inttypes (Makefile.am): Likewise.
19343         * modules/langinfo (Makefile.am): Likewise.
19344         * modules/locale (Makefile.am): Likewise.
19345         * modules/spawn (Makefile.am): Likewise.
19346         * modules/sys_file (Makefile.am): Likewise.
19347         * modules/sys_ioctl (Makefile.am): Likewise.
19348         * modules/sys_select (Makefile.am): Likewise.
19349         * modules/sys_socket (Makefile.am): Likewise.
19350         * modules/sys_times (Makefile.am): Likewise.
19351         * modules/sys_utsname (Makefile.am): Likewise.
19352         * modules/sys_wait (Makefile.am): Likewise.
19353         * modules/wchar (Makefile.am): Likewise.
19354         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19355         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19356         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19357         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19358         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19359         Likewise.
19360         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19361         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19362         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19363         Likewise.
19364         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19365         Likewise.
19366         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19367         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19368         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19370         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19371         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19372         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19373         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19374         (gl_WCHAR_H_DEFAULTS): Likewise.
19375
19376 2009-12-31  Eric Blake  <ebb9@byu.net>
19377
19378         signal, spawn: use link warnings
19379         * lib/signal.in.h (sigset_t): Make unconditional.
19380         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19381         (sigpending, sigprocmask, sigaction): Add link warnings.
19382         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19383         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19384         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19385         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19386         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19387         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19388         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19389         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19390         (posix_spawn_file_actions_destroy)
19391         (posix_spawn_file_actions_addopen)
19392         (posix_spawn_file_actions_addclose)
19393         (posix_spawn_file_actions_adddup2): Likewise.
19394         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19395         * tests/test-signal.c (main): Enhance test.
19396
19397         spawn: improve wrapper support
19398         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19399         (gl_SPAWN_H_DEFAULTS): New defaults.
19400         * modules/spawn (Makefile.am): Substitute them.
19401         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19402         Only declare if missing or broken.
19403
19404         sys_times, sys_utsname: use include_next
19405         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19406         header.
19407         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19408         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19409         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19410         * modules/sys_times (Depends-on): Add include_next.
19411         (Makefile.am): Substitute additional values.
19412         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19413         * lib/sys_times.in.h (includes): Include native header, if
19414         available.
19415         * lib/sys_utsname.in.h (includes): Likewise.
19416         * tests/test-sys_times.c (main): Enhance test.
19417
19418         fdutimensat: revert prior patch
19419         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19420         utimens.h.
19421         Reported by Bruno Haible.
19422
19423 2009-12-30  Eric Blake  <ebb9@byu.net>
19424
19425         sys_wait: drop link-warning dependency
19426         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19427         link-warning efforts.
19428         * lib/sys_wait.in.h: Likewise.
19429
19430         fdutimensat: remove bogus dependency
19431         * modules/fdutimensat (Depends-on): Drop inline.
19432
19433         unistd: fix typo
19434         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19435
19436 2009-12-30  Bruno Haible  <bruno@clisp.org>
19437
19438         Fix compilation error with Solaris cc.
19439         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19440         * lib/unicase/u16-is-invariant.c: Likewise.
19441         * lib/unicase/u32-is-invariant.c: Likewise.
19442         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19443
19444 2009-12-30  Bruno Haible  <bruno@clisp.org>
19445
19446         Fix test crash.
19447         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19448         locales.
19449         Reported by Simon Josefsson <simon@josefsson.org>.
19450
19451 2009-12-30  Bruno Haible  <bruno@clisp.org>
19452
19453         Fix compilation error on most platforms.
19454         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19455         Reported by Simon Josefsson <simon@josefsson.org>
19456         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19457
19458 2009-12-30  Eric Blake  <ebb9@byu.net>
19459
19460         futimens, utimensat: work around ntfs-3g bug
19461         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19462         a ctime bug is present, and expand workaround to cover ntfs-3g.
19463         * lib/utimens.c (fdutimens, lutimens): Likewise.
19464         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19465         (validate_timespec): Adjust return value.
19466         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19467         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19468         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19469
19470 2009-12-29  Eric Blake  <ebb9@byu.net>
19471
19472         link-warning: make usage consistent
19473         * modules/ctype (Depends-on): Add link-warning.
19474         (Makefile.am): Update rules accordingly.
19475         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19476         * modules/locale (Depends-on, Makefile.am): Likewise.
19477         * modules/sys_file (Makefile.am): Likewise.
19478         * modules/getopt-posix (Makefile.am): Delete unused link warning
19479         efforts.
19480         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19481         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19482         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19483         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19484
19485         stdio: remove unused variables
19486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19488         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19489
19490         tests: test more substitute headers
19491         * modules/ctype-tests: New file.
19492         * modules/dirent-tests: Likewise.
19493         * modules/spawn-tests: Likewise.
19494         * modules/sys_file-tests: Likewise.
19495         * modules/sys_ioctl-tests: Likewise.
19496         * modules/sys_wait-tests: Likewise.
19497         * tests/test-ctype.c: Likewise.
19498         * tests/test-dirent.c: Likewise.
19499         * tests/test-spawn.c: Likewise.
19500         * tests/test-sys_file.c: Likewise.
19501         * tests/test-sys_ioctl.c: Likewise.
19502         * tests/test-sys_wait.c: Likewise.
19503         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19504         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19505         whether or not flock is in use.
19506
19507         tests: remove License section from module
19508         * modules/arpa_inet-tests: Remove unneeded section.
19509         * modules/byteswap-tests: Likewise.
19510         * modules/ceilf-tests: Likewise.
19511         * modules/ceill-tests: Likewise.
19512         * modules/crypto/des-tests: Likewise.
19513         * modules/crypto/gc-arcfour-tests: Likewise.
19514         * modules/crypto/gc-arctwo-tests: Likewise.
19515         * modules/crypto/gc-des-tests: Likewise.
19516         * modules/crypto/gc-hmac-md5-tests: Likewise.
19517         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19518         * modules/crypto/gc-md2-tests: Likewise.
19519         * modules/crypto/gc-md4-tests: Likewise.
19520         * modules/crypto/gc-md5-tests: Likewise.
19521         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19522         * modules/crypto/gc-rijndael-tests: Likewise.
19523         * modules/crypto/gc-sha1-tests: Likewise.
19524         * modules/crypto/gc-tests: Likewise.
19525         * modules/crypto/md2-tests: Likewise.
19526         * modules/crypto/md4-tests: Likewise.
19527         * modules/fcntl-h-tests: Likewise.
19528         * modules/floorf-tests: Likewise.
19529         * modules/floorl-tests: Likewise.
19530         * modules/frexp-nolibm-tests: Likewise.
19531         * modules/frexp-tests: Likewise.
19532         * modules/frexpl-nolibm-tests: Likewise.
19533         * modules/frexpl-tests: Likewise.
19534         * modules/getaddrinfo-tests: Likewise.
19535         * modules/inttypes-tests: Likewise.
19536         * modules/isfinite-tests: Likewise.
19537         * modules/isinf-tests: Likewise.
19538         * modules/ldexpl-tests: Likewise.
19539         * modules/locale-tests: Likewise.
19540         * modules/math-tests: Likewise.
19541         * modules/netdb-tests: Likewise.
19542         * modules/netinet_in-tests: Likewise.
19543         * modules/printf-frexp-tests: Likewise.
19544         * modules/printf-frexpl-tests: Likewise.
19545         * modules/priv-set-tests: Likewise.
19546         * modules/random_r-tests: Likewise.
19547         * modules/round-tests: Likewise.
19548         * modules/roundf-tests: Likewise.
19549         * modules/roundl-tests: Likewise.
19550         * modules/search-tests: Likewise.
19551         * modules/select-tests: Likewise.
19552         * modules/signal-tests: Likewise.
19553         * modules/stdbool-tests: Likewise.
19554         * modules/stddef-tests: Likewise.
19555         * modules/stdint-tests: Likewise.
19556         * modules/stdio-tests: Likewise.
19557         * modules/stdlib-tests: Likewise.
19558         * modules/string-tests: Likewise.
19559         * modules/strings-tests: Likewise.
19560         * modules/sys_select-tests: Likewise.
19561         * modules/sys_socket-tests: Likewise.
19562         * modules/sys_stat-tests: Likewise.
19563         * modules/sys_time-tests: Likewise.
19564         * modules/sys_utsname-tests: Likewise.
19565         * modules/sysexits-tests: Likewise.
19566         * modules/time-tests: Likewise.
19567         * modules/trunc-tests: Likewise.
19568         * modules/truncf-tests: Likewise.
19569         * modules/truncl-tests: Likewise.
19570         * modules/tsearch-tests: Likewise.
19571         * modules/unistd-tests: Likewise.
19572         * modules/wchar-tests: Likewise.
19573         * modules/wctype-tests: Likewise.
19574
19575         tests: fix license on several tests
19576         * tests/test-des.c: Update to GPLv3+.
19577         * tests/test-flock.c: Likewise.
19578         * tests/test-fsync.c: Likewise.
19579         * tests/test-futimens.h: Likewise.
19580         * tests/test-gc-arcfour.c: Likewise.
19581         * tests/test-gc-arctwo.c: Likewise.
19582         * tests/test-gc-des.c: Likewise.
19583         * tests/test-gc-hmac-md5.c: Likewise.
19584         * tests/test-gc-hmac-sha1.c: Likewise.
19585         * tests/test-gc-md2.c: Likewise.
19586         * tests/test-gc-md4.c: Likewise.
19587         * tests/test-gc-md5.c: Likewise.
19588         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19589         * tests/test-gc-rijndael.c: Likewise.
19590         * tests/test-gc-sha1.c: Likewise.
19591         * tests/test-gc.c: Likewise.
19592         * tests/test-getcwd.c: Likewise.
19593         * tests/test-link.c: Likewise.
19594         * tests/test-link.h: Likewise.
19595         * tests/test-lutimens.h: Likewise.
19596         * tests/test-md2.c: Likewise.
19597         * tests/test-md4.c: Likewise.
19598         * tests/test-mkdir.h: Likewise.
19599         * tests/test-rename.c: Likewise.
19600         * tests/test-rename.h: Likewise.
19601         * tests/test-safe-alloc.c: Likewise.
19602         * tests/test-utimens-common.h: Likewise.
19603         * tests/test-utimens.h: Likewise.
19604
19605         maint: sync license texts
19606         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19607         * doc/gpl-3.0.texi: Revert copyright year update.
19608         * doc/lgpl-3.0.texi: Likewise.
19609
19610 2009-12-29  Jim Meyering  <meyering@redhat.com>
19611
19612         update nearly all FSF copyright year lists to include 2009
19613         The files named by the following are exempted:
19614             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19615               test -f "$dst" && { echo "$dst"; continue; }
19616               test -d "$dst" || continue
19617               echo "$dst"/$(basename "$src")
19618             done > exempt
19619             git ls-files tests/unictype >> exempt
19620         In the remaining files, convert to all-interval notation if
19621         - there is already at least one year interval like 2000-2003
19622         - the file is maintained by me
19623         - the file is in lib/uni*/, where that style already prevails
19624         Otherwise, use update-copyright's default.
19625
19626 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19627         and Eric Blake  <ebb9@byu.net>
19628
19629         tests: don't require debug system() to pass
19630         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19631         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19632         * tests/test-unlink.h (test_unlink_func): Likewise.
19633         * tests/test-fstatat.c (main): ...into callers.
19634         * tests/test-lstat.c (main): Likewise.
19635         * tests/test-rmdir.c (main): Likewise.
19636         * tests/test-unlink.c (main): Likewise.
19637         * tests/test-unlinkat.c (main): Likewise.
19638         * tests/test-areadlink-with-size.c (main): Don't require a
19639         debug-only system call to pass, aiding cross-testing to mingw.
19640         * tests/test-areadlink.c (main): Likewise.
19641         * tests/test-areadlinkat-with-size.c (main): Likewise.
19642         * tests/test-areadlinkat.c (main): Likewise.
19643         * tests/test-canonicalize-lgpl.c (main): Likewise.
19644         * tests/test-canonicalize.c (main): Likewise.
19645         * tests/test-chown.c (main): Likewise.
19646         * tests/test-fchownat.c (main): Likewise.
19647         * tests/test-lchown.c (main): Likewise.
19648         * tests/test-fdutimensat.c (main): Likewise.
19649         * tests/test-futimens.c (main): Likewise.
19650         * tests/test-link.c (main): Likewise.
19651         * tests/test-linkat.c (main): Likewise.
19652         * tests/test-mkdir.c (main): Likewise.
19653         * tests/test-mkdirat.c (main): Likewise.
19654         * tests/test-mkfifo.c (main): Likewise.
19655         * tests/test-mkfifoat.c (main): Likewise.
19656         * tests/test-mknod.c (main): Likewise.
19657         * tests/test-readlink.c (main): Likewise.
19658         * tests/test-remove.c (main): Likewise.
19659         * tests/test-rename.c (main): Likewise.
19660         * tests/test-renameat.c (main): Likewise.
19661         * tests/test-symlink.c (main): Likewise.
19662         * tests/test-symlinkat.c (main): Likewise.
19663         * tests/test-utimens.c (main): Likewise.
19664         * tests/test-utimensat.c (main): Likewise.
19665
19666 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19667
19668         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19669         on $(UNUSED_PARAMETER_H) to avoid build failure.
19670
19671 2009-12-28  Jim Meyering  <meyering@redhat.com>
19672
19673         update-copyright: you may specify a max. line length other than 72
19674         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19675
19676         maint: use consistent FSF copyright line syntax
19677         * lib/posixtm.c: Add missing comma in FSF copyright line.
19678         * lib/posixtm.h: Likewise.
19679         * lib/getugroups.c: Add missing ", Inc.".
19680
19681         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19682         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19683         FSF copyright line.  Remove trailing blanks.
19684
19685 2009-12-28  Eric Blake  <ebb9@byu.net>
19686
19687         test-dup2: reduce dependencies
19688         * modules/cloexec (Configure.ac): Set witness.
19689         * modules/dup2-tests (Depends-on): Drop cloexec.
19690         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19691         not present.
19692         Suggested by Bruno Haible.
19693
19694 2009-12-26  Bruno Haible  <bruno@clisp.org>
19695
19696         Remove an unneeded dependency.
19697         * modules/fseterr (Depends-on): Remove dup2.
19698
19699 2009-12-26  Eric Blake  <ebb9@byu.net>
19700
19701         tests: use macros.h in more places
19702         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19703         (ASSERT_STREAM): Provide default of stderr.
19704         * tests/test-dirent-safer.c: Include macros.h, using alternate
19705         stream for assertions.
19706         * tests/test-dup-safer.c: Likewise.
19707         * tests/test-freopen-safer.c: Likewise.
19708         * tests/test-getopt.c: Likewise.
19709         * tests/test-openat-safer.c: Likewise.
19710         * tests/test-pipe.c: Likewise.
19711         * tests/test-popen-safer.c: Likewise.
19712         * modules/dirent-safer-tests (Files): Include macros.h.
19713         * modules/unistd-safer-tests (Files): Likewise.
19714         * modules/freopen-safer-tests (Files): Likewise.
19715         * modules/getopt-posix-tests (Files): Likewise.
19716         * modules/openat-safer-tests (Files): Likewise.
19717         * modules/pipe-tests (Files): Likewise.
19718
19719 2009-12-26  Bruno Haible  <bruno@clisp.org>
19720
19721         javacomp: Portability fix.
19722         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19723         that it also works on Solaris.
19724
19725 2009-12-26  Bruno Haible  <bruno@clisp.org>
19726
19727         localename: Fix storage allocation of gl_locale_name_thread's result.
19728         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19729         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19730         all platforms that have 'uselocale'.
19731         (gl_locale_name_thread_unsafe): New function, extracted from
19732         gl_locale_name_thread.
19733         (gl_locale_name_thread): Call struniq on all platforms that have
19734         'uselocale'.
19735         * tests/test-localename.c (test_locale_name_thread): Check that the
19736         resulting strings are permanently allocated.
19737         * modules/localename-tests (Depends-on): Add strdup.
19738
19739 2009-12-26  Bruno Haible  <bruno@clisp.org>
19740
19741         * tests/test-localename.c (categories): Fill in the strings.
19742
19743 2009-12-26  Jim Meyering  <meyering@redhat.com>
19744
19745         isdir: complete the removal of m4/isdir.m4
19746         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19747
19748         isdir: clean up, since at least grep still uses it
19749         * lib/isdir.c: Include "isdir.h".
19750         (S_ISDIR): Remove now-unneeded definition.
19751         * modules/isdir (Files): Add lib/isdir.h.
19752         * lib/isdir.h: New file, with declaration.
19753         * m4/isdir.m4: Remove file -- unneeded.
19754
19755 2009-12-25  Bruno Haible  <bruno@clisp.org>
19756
19757         selinux-h: Make generated .h files standalone.
19758         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19759         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19760         * lib/se-selinux.in.h: Likewise.
19761         * modules/selinux-h (Depends-on): Add unused-parameter.
19762         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19763         selinux/selinux.h and selinux/context.h.
19764         Suggested by Eric Blake.
19765
19766 2009-12-25  Bruno Haible  <bruno@clisp.org>
19767
19768         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19769         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19770         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19771         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19772         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19773
19774 2009-12-24  Bruno Haible  <bruno@clisp.org>
19775
19776         openat: Fix warning.
19777         * lib/openat-proc.c: Include <unistd.h>.
19778
19779 2009-12-24  Bruno Haible  <bruno@clisp.org>
19780
19781         New module 'unused-parameter'.
19782         * build-aux/unused-parameter.h: New file, extracted from earlier
19783         gnulib-common.m4.
19784         * modules/unused-parameter: New file.
19785         * lib/unistr.h: Include unused-parameter.h.
19786         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19787         _GL_UNUSED.
19788         * modules/unistr/base (Depends-on): Add unused-parameter.
19789
19790 2009-12-24  Bruno Haible  <bruno@clisp.org>
19791
19792         Add missing dependencies to 'extensions' module.
19793         * m4/extensions.m4: Add comment.
19794         * modules/accept4 (Depends-on): Add extensions.
19795         * modules/dup3 (Depends-on): Likewise.
19796         * modules/fcntl (Depends-on): Likewise.
19797         * modules/futimens (Depends-on): Likewise.
19798         * modules/mknod (Depends-on): Likewise.
19799         * modules/pipe2 (Depends-on): Likewise.
19800         * modules/stat-time (Depends-on): Likewise.
19801         * modules/strcasestr-simple (Depends-on): Likewise.
19802         * modules/strsignal (Depends-on): Likewise.
19803         * modules/utimensat (Depends-on): Likewise.
19804         * modules/localcharset (Depends-on): Likewise. Needed because of
19805         gl_FCNTL_O_FLAGS.
19806         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19807         AC_TYPE_MBSTATE_T.
19808         * modules/wcsnrtombs (Depends-on): Likewise.
19809         * modules/wcsrtombs (Depends-on): Likewise.
19810
19811 2009-12-24  Bruno Haible  <bruno@clisp.org>
19812
19813         binary-io: Avoid gcc warning due to SET_BINARY.
19814         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19815         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19816
19817 2009-12-24  Bruno Haible  <bruno@clisp.org>
19818
19819         Avoid future namespace pollution on glibc systems.
19820         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19821         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19822         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19823         glibc systems.
19824
19825 2009-12-24  Bruno Haible  <bruno@clisp.org>
19826
19827         Refactor common macros used in tests.
19828         * tests/macros.h: New file.
19829         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19830         and/or <stdlib.h>, if appropriate.
19831         (ASSERT, SIZEOF): Remove macros.
19832         * tests/test-areadlink-with-size.c: Likewise.
19833         * tests/test-areadlinkat.c: Likewise.
19834         * tests/test-areadlinkat-with-size.c: Likewise.
19835         * tests/test-argmatch.c: Likewise.
19836         * tests/test-argv-iter.c: Likewise.
19837         * tests/test-array-mergesort.c: Likewise.
19838         * tests/test-array_list.c: Likewise.
19839         * tests/test-array_oset.c: Likewise.
19840         * tests/test-avltree_list.c: Likewise.
19841         * tests/test-avltree_oset.c: Likewise.
19842         * tests/test-avltreehash_list.c: Likewise.
19843         * tests/test-base64.c: Likewise.
19844         * tests/test-binary-io.c: Likewise.
19845         * tests/test-bitrotate.c: Likewise.
19846         * tests/test-btowc.c: Likewise.
19847         * tests/test-byteswap.c: Likewise.
19848         * tests/test-c-ctype.c: Likewise.
19849         * tests/test-c-stack.c: Likewise.
19850         * tests/test-c-strcasecmp.c: Likewise.
19851         * tests/test-c-strcasestr.c: Likewise.
19852         * tests/test-c-strncasecmp.c: Likewise.
19853         * tests/test-c-strstr.c: Likewise.
19854         * tests/test-canonicalize-lgpl.c: Likewise.
19855         * tests/test-canonicalize.c: Likewise.
19856         * tests/test-carray_list.c: Likewise.
19857         * tests/test-ceilf1.c: Likewise.
19858         * tests/test-ceilf2.c: Likewise.
19859         * tests/test-ceill.c: Likewise.
19860         * tests/test-chown.c: Likewise.
19861         * tests/test-cloexec.c: Likewise.
19862         * tests/test-copy-acl.c: Likewise.
19863         * tests/test-copy-file.c: Likewise.
19864         * tests/test-count-one-bits.c: Likewise.
19865         * tests/test-dprintf-posix.c: Likewise.
19866         * tests/test-dup2.c: Likewise.
19867         * tests/test-dup3.c: Likewise.
19868         * tests/test-duplocale.c: Likewise.
19869         * tests/test-fbufmode.c: Likewise.
19870         * tests/test-fchdir.c: Likewise.
19871         * tests/test-fchownat.c: Likewise.
19872         * tests/test-fcntl-safer.c: Likewise.
19873         * tests/test-fcntl.c: Likewise.
19874         * tests/test-fdopendir.c: Likewise.
19875         * tests/test-fdutimensat.c: Likewise.
19876         * tests/test-fflush2.c: Likewise.
19877         * tests/test-file-has-acl.c: Likewise.
19878         * tests/test-filevercmp.c: Likewise.
19879         * tests/test-flock.c: Likewise.
19880         * tests/test-floorf1.c: Likewise.
19881         * tests/test-floorf2.c: Likewise.
19882         * tests/test-floorl.c: Likewise.
19883         * tests/test-fnmatch.c: Likewise.
19884         * tests/test-fopen.h: Likewise.
19885         * tests/test-fpending.c: Likewise.
19886         * tests/test-fprintf-posix.c: Likewise.
19887         * tests/test-fpurge.c: Likewise.
19888         * tests/test-freadable.c: Likewise.
19889         * tests/test-freadahead.c: Likewise.
19890         * tests/test-freading.c: Likewise.
19891         * tests/test-freadptr.c: Likewise.
19892         * tests/test-freadptr2.c: Likewise.
19893         * tests/test-freadseek.c: Likewise.
19894         * tests/test-freopen.c: Likewise.
19895         * tests/test-frexp.c: Likewise.
19896         * tests/test-frexpl.c: Likewise.
19897         * tests/test-fseek.c: Likewise.
19898         * tests/test-fseeko.c: Likewise.
19899         * tests/test-fstatat.c: Likewise.
19900         * tests/test-fstrcmp.c: Likewise.
19901         * tests/test-fsync.c: Likewise.
19902         * tests/test-ftell.c: Likewise.
19903         * tests/test-ftello.c: Likewise.
19904         * tests/test-func.c: Likewise.
19905         * tests/test-futimens.c: Likewise.
19906         * tests/test-fwritable.c: Likewise.
19907         * tests/test-fwriting.c: Likewise.
19908         * tests/test-getcwd.c: Likewise.
19909         * tests/test-getdate.c: Likewise.
19910         * tests/test-getdelim.c: Likewise.
19911         * tests/test-getdtablesize.c: Likewise.
19912         * tests/test-getgroups.c: Likewise.
19913         * tests/test-getline.c: Likewise.
19914         * tests/test-getndelim2.c: Likewise.
19915         * tests/test-glob.c: Likewise.
19916         * tests/test-hash.c: Likewise.
19917         * tests/test-i-ring.c: Likewise.
19918         * tests/test-iconv-utf.c: Likewise.
19919         * tests/test-iconv.c: Likewise.
19920         * tests/test-idpriv-drop.c: Likewise.
19921         * tests/test-idpriv-droptemp.c: Likewise.
19922         * tests/test-inet_ntop.c: Likewise.
19923         * tests/test-inet_pton.c: Likewise.
19924         * tests/test-isblank.c: Likewise.
19925         * tests/test-isfinite.c: Likewise.
19926         * tests/test-isinf.c: Likewise.
19927         * tests/test-isnan.c: Likewise.
19928         * tests/test-isnand.h: Likewise.
19929         * tests/test-isnanf.h: Likewise.
19930         * tests/test-isnanl.h: Likewise.
19931         * tests/test-lchown.c: Likewise.
19932         * tests/test-ldexpl.c: Likewise.
19933         * tests/test-link.c: Likewise.
19934         * tests/test-linkat.c: Likewise.
19935         * tests/test-linked_list.c: Likewise.
19936         * tests/test-linkedhash_list.c: Likewise.
19937         * tests/test-localename.c: Likewise.
19938         * tests/test-lseek.c: Likewise.
19939         * tests/test-lstat.c: Likewise.
19940         * tests/test-mbmemcasecmp.c: Likewise.
19941         * tests/test-mbmemcasecoll.c: Likewise.
19942         * tests/test-mbrtowc.c: Likewise.
19943         * tests/test-mbscasecmp.c: Likewise.
19944         * tests/test-mbscasestr1.c: Likewise.
19945         * tests/test-mbscasestr2.c: Likewise.
19946         * tests/test-mbscasestr3.c: Likewise.
19947         * tests/test-mbscasestr4.c: Likewise.
19948         * tests/test-mbschr.c: Likewise.
19949         * tests/test-mbscspn.c: Likewise.
19950         * tests/test-mbsinit.c: Likewise.
19951         * tests/test-mbsncasecmp.c: Likewise.
19952         * tests/test-mbsnrtowcs.c: Likewise.
19953         * tests/test-mbspbrk.c: Likewise.
19954         * tests/test-mbspcasecmp.c: Likewise.
19955         * tests/test-mbsrchr.c: Likewise.
19956         * tests/test-mbsrtowcs.c: Likewise.
19957         * tests/test-mbsspn.c: Likewise.
19958         * tests/test-mbsstr1.c: Likewise.
19959         * tests/test-mbsstr2.c: Likewise.
19960         * tests/test-mbsstr3.c: Likewise.
19961         * tests/test-memchr.c: Likewise.
19962         * tests/test-memchr2.c: Likewise.
19963         * tests/test-memcmp.c: Likewise.
19964         * tests/test-memmem.c: Likewise.
19965         * tests/test-memrchr.c: Likewise.
19966         * tests/test-mkdir.c: Likewise.
19967         * tests/test-mkdirat.c: Likewise.
19968         * tests/test-mkfifo.c: Likewise.
19969         * tests/test-mkfifoat.c: Likewise.
19970         * tests/test-mknod.c: Likewise.
19971         * tests/test-nanosleep.c: Likewise.
19972         * tests/test-nl_langinfo.c: Likewise.
19973         * tests/test-obstack-printf.c: Likewise.
19974         * tests/test-open.c: Likewise.
19975         * tests/test-openat.c: Likewise.
19976         * tests/test-pipe-filter-gi1.c: Likewise.
19977         * tests/test-pipe-filter-gi2-main.c: Likewise.
19978         * tests/test-pipe-filter-ii1.c: Likewise.
19979         * tests/test-pipe-filter-ii2-main.c: Likewise.
19980         * tests/test-pipe2.c: Likewise.
19981         * tests/test-popen.h: Likewise.
19982         * tests/test-posixtm.c: Likewise.
19983         * tests/test-pread.c: Likewise.
19984         * tests/test-printf-frexp.c: Likewise.
19985         * tests/test-printf-frexpl.c: Likewise.
19986         * tests/test-printf-posix.c: Likewise.
19987         * tests/test-priv-set.c: Likewise.
19988         * tests/test-quotearg.c: Likewise.
19989         * tests/test-random_r.c: Likewise.
19990         * tests/test-rawmemchr.c: Likewise.
19991         * tests/test-rbtree_list.c: Likewise.
19992         * tests/test-rbtree_oset.c: Likewise.
19993         * tests/test-rbtreehash_list.c: Likewise.
19994         * tests/test-readlink.c: Likewise.
19995         * tests/test-remove.c: Likewise.
19996         * tests/test-rename.c: Likewise.
19997         * tests/test-renameat.c: Likewise.
19998         * tests/test-rmdir.c: Likewise.
19999         * tests/test-round1.c: Likewise.
20000         * tests/test-roundf1.c: Likewise.
20001         * tests/test-roundl.c: Likewise.
20002         * tests/test-safe-alloc.c: Likewise.
20003         * tests/test-sameacls.c: Likewise.
20004         * tests/test-set-mode-acl.c: Likewise.
20005         * tests/test-setenv.c: Likewise.
20006         * tests/test-sigaction.c: Likewise.
20007         * tests/test-signbit.c: Likewise.
20008         * tests/test-sleep.c: Likewise.
20009         * tests/test-snprintf-posix.c: Likewise.
20010         * tests/test-snprintf.c: Likewise.
20011         * tests/test-sprintf-posix.c: Likewise.
20012         * tests/test-stat-time.c: Likewise.
20013         * tests/test-stat.c: Likewise.
20014         * tests/test-strcasestr.c: Likewise.
20015         * tests/test-strchrnul.c: Likewise.
20016         * tests/test-strerror.c: Likewise.
20017         * tests/test-striconv.c: Likewise.
20018         * tests/test-striconveh.c: Likewise.
20019         * tests/test-striconveha.c: Likewise.
20020         * tests/test-strsignal.c: Likewise.
20021         * tests/test-strstr.c: Likewise.
20022         * tests/test-strtod.c: Likewise.
20023         * tests/test-strverscmp.c: Likewise.
20024         * tests/test-symlink.c: Likewise.
20025         * tests/test-symlinkat.c: Likewise.
20026         * tests/test-trunc1.c: Likewise.
20027         * tests/test-trunc2.c: Likewise.
20028         * tests/test-truncf1.c: Likewise.
20029         * tests/test-truncf2.c: Likewise.
20030         * tests/test-truncl.c: Likewise.
20031         * tests/test-uname.c: Likewise.
20032         * tests/test-unlink.c: Likewise.
20033         * tests/test-unlinkat.c: Likewise.
20034         * tests/test-unsetenv.c: Likewise.
20035         * tests/test-usleep.c: Likewise.
20036         * tests/test-utimens.c: Likewise.
20037         * tests/test-utimensat.c: Likewise.
20038         * tests/test-vasnprintf-posix.c: Likewise.
20039         * tests/test-vasnprintf-posix2.c: Likewise.
20040         * tests/test-vasnprintf.c: Likewise.
20041         * tests/test-vasprintf-posix.c: Likewise.
20042         * tests/test-vasprintf.c: Likewise.
20043         * tests/test-vdprintf-posix.c: Likewise.
20044         * tests/test-vfprintf-posix.c: Likewise.
20045         * tests/test-vprintf-posix.c: Likewise.
20046         * tests/test-vsnprintf-posix.c: Likewise.
20047         * tests/test-vsnprintf.c: Likewise.
20048         * tests/test-vsprintf-posix.c: Likewise.
20049         * tests/test-wcrtomb.c: Likewise.
20050         * tests/test-wcsnrtombs.c: Likewise.
20051         * tests/test-wcsrtombs.c: Likewise.
20052         * tests/test-wctype.c: Likewise.
20053         * tests/test-wcwidth.c: Likewise.
20054         * tests/test-xfprintf-posix.c: Likewise.
20055         * tests/test-xmemdup0.c: Likewise.
20056         * tests/test-xprintf-posix.c: Likewise.
20057         * tests/test-xvasprintf.c: Likewise.
20058         * tests/unicase/test-locale-language.c: Likewise.
20059         * tests/unicase/test-mapping-part1.h: Likewise.
20060         * tests/unicase/test-predicate-part1.h: Likewise.
20061         * tests/unicase/test-u8-casecmp.c: Likewise.
20062         * tests/unicase/test-u8-casecoll.c: Likewise.
20063         * tests/unicase/test-u8-casefold.c: Likewise.
20064         * tests/unicase/test-u8-is-cased.c: Likewise.
20065         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20066         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20067         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20068         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20069         * tests/unicase/test-u8-tolower.c: Likewise.
20070         * tests/unicase/test-u8-totitle.c: Likewise.
20071         * tests/unicase/test-u8-toupper.c: Likewise.
20072         * tests/unicase/test-u16-casecmp.c: Likewise.
20073         * tests/unicase/test-u16-casecoll.c: Likewise.
20074         * tests/unicase/test-u16-casefold.c: Likewise.
20075         * tests/unicase/test-u16-is-cased.c: Likewise.
20076         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20077         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20078         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20079         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20080         * tests/unicase/test-u16-tolower.c: Likewise.
20081         * tests/unicase/test-u16-totitle.c: Likewise.
20082         * tests/unicase/test-u16-toupper.c: Likewise.
20083         * tests/unicase/test-u32-casecmp.c: Likewise.
20084         * tests/unicase/test-u32-casecoll.c: Likewise.
20085         * tests/unicase/test-u32-casefold.c: Likewise.
20086         * tests/unicase/test-u32-is-cased.c: Likewise.
20087         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20088         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20089         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20090         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20091         * tests/unicase/test-u32-tolower.c: Likewise.
20092         * tests/unicase/test-u32-totitle.c: Likewise.
20093         * tests/unicase/test-u32-toupper.c: Likewise.
20094         * tests/unicase/test-ulc-casecmp.c: Likewise.
20095         * tests/unicase/test-ulc-casecoll.c: Likewise.
20096         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20097         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20098         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20099         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20100         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20101         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20102         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20103         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20104         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20105         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20106         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20107         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20108         * tests/unictype/test-bidi_byname.c: Likewise.
20109         * tests/unictype/test-bidi_name.c: Likewise.
20110         * tests/unictype/test-bidi_of.c: Likewise.
20111         * tests/unictype/test-bidi_test.c: Likewise.
20112         * tests/unictype/test-block_list.c: Likewise.
20113         * tests/unictype/test-block_of.c: Likewise.
20114         * tests/unictype/test-block_test.c: Likewise.
20115         * tests/unictype/test-categ_and.c: Likewise.
20116         * tests/unictype/test-categ_and_not.c: Likewise.
20117         * tests/unictype/test-categ_byname.c: Likewise.
20118         * tests/unictype/test-categ_name.c: Likewise.
20119         * tests/unictype/test-categ_none.c: Likewise.
20120         * tests/unictype/test-categ_of.c: Likewise.
20121         * tests/unictype/test-categ_or.c: Likewise.
20122         * tests/unictype/test-categ_test_withtable.c: Likewise.
20123         * tests/unictype/test-combining.c: Likewise.
20124         * tests/unictype/test-decdigit.c: Likewise.
20125         * tests/unictype/test-digit.c: Likewise.
20126         * tests/unictype/test-mirror.c: Likewise.
20127         * tests/unictype/test-numeric.c: Likewise.
20128         * tests/unictype/test-pr_byname.c: Likewise.
20129         * tests/unictype/test-pr_test.c: Likewise.
20130         * tests/unictype/test-predicate-part1.h: Likewise.
20131         * tests/unictype/test-scripts.c: Likewise.
20132         * tests/unictype/test-sy_c_ident.c: Likewise.
20133         * tests/unictype/test-sy_java_ident.c: Likewise.
20134         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20135         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20136         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20137         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20138         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20139         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20140         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20141         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20142         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20143         * tests/uninorm/test-compat-decomposition.c: Likewise.
20144         * tests/uninorm/test-composition.c: Likewise.
20145         * tests/uninorm/test-decomposing-form.c: Likewise.
20146         * tests/uninorm/test-decomposition.c: Likewise.
20147         * tests/uninorm/test-u8-nfc.c: Likewise.
20148         * tests/uninorm/test-u8-nfd.c: Likewise.
20149         * tests/uninorm/test-u8-nfkc.c: Likewise.
20150         * tests/uninorm/test-u8-nfkd.c: Likewise.
20151         * tests/uninorm/test-u8-normcmp.c: Likewise.
20152         * tests/uninorm/test-u8-normcoll.c: Likewise.
20153         * tests/uninorm/test-u16-nfc.c: Likewise.
20154         * tests/uninorm/test-u16-nfd.c: Likewise.
20155         * tests/uninorm/test-u16-nfkc.c: Likewise.
20156         * tests/uninorm/test-u16-nfkd.c: Likewise.
20157         * tests/uninorm/test-u16-normcmp.c: Likewise.
20158         * tests/uninorm/test-u16-normcoll.c: Likewise.
20159         * tests/uninorm/test-u32-nfc.c: Likewise.
20160         * tests/uninorm/test-u32-nfd.c: Likewise.
20161         * tests/uninorm/test-u32-nfkc.c: Likewise.
20162         * tests/uninorm/test-u32-nfkd.c: Likewise.
20163         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20164         * tests/uninorm/test-u32-normcmp.c: Likewise.
20165         * tests/uninorm/test-u32-normcoll.c: Likewise.
20166         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20167         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20168         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20169         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20170         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20171         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20172         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20173         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20174         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20175         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20176         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20177         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20178         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20179         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20180         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20181         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20182         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20183         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20184         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20185         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20186         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20187         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20188         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20189         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20190         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20191         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20192         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20193         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20194         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20195         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20196         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20197         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20198         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20199         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20200         * tests/uniwidth/test-u8-width.c: Likewise.
20201         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20202         * tests/uniwidth/test-u16-width.c: Likewise.
20203         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20204         * tests/uniwidth/test-u32-width.c: Likewise.
20205         * tests/uniwidth/test-uc_width.c: Likewise.
20206         * tests/uniwidth/test-uc_width2.c: Likewise.
20207         * modules/acl-tests (Files): Add tests/macros.h.
20208         * modules/areadlink-tests (Files): Likewise.
20209         * modules/areadlink-with-size-tests (Files): Likewise.
20210         * modules/areadlinkat-tests (Files): Likewise.
20211         * modules/areadlinkat-with-size-tests (Files): Likewise.
20212         * modules/argmatch-tests (Files): Likewise.
20213         * modules/argv-iter-tests (Files): Likewise.
20214         * modules/array-list-tests (Files): Likewise.
20215         * modules/array-mergesort-tests (Files): Likewise.
20216         * modules/array-oset-tests (Files): Likewise.
20217         * modules/avltree-list-tests (Files): Likewise.
20218         * modules/avltree-oset-tests (Files): Likewise.
20219         * modules/avltreehash-list-tests (Files): Likewise.
20220         * modules/base64-tests (Files): Likewise.
20221         * modules/binary-io-tests (Files): Likewise.
20222         * modules/bitrotate-tests (Files): Likewise.
20223         * modules/btowc-tests (Files): Likewise.
20224         * modules/byteswap-tests (Files): Likewise.
20225         * modules/c-ctype-tests (Files): Likewise.
20226         * modules/c-stack-tests (Files): Likewise.
20227         * modules/c-strcase-tests (Files): Likewise.
20228         * modules/c-strcasestr-tests (Files): Likewise.
20229         * modules/c-strstr-tests (Files): Likewise.
20230         * modules/canonicalize-lgpl-tests (Files): Likewise.
20231         * modules/canonicalize-tests (Files): Likewise.
20232         * modules/carray-list-tests (Files): Likewise.
20233         * modules/ceilf-tests (Files): Likewise.
20234         * modules/ceill-tests (Files): Likewise.
20235         * modules/chown-tests (Files): Likewise.
20236         * modules/cloexec-tests (Files): Likewise.
20237         * modules/copy-file-tests (Files): Likewise.
20238         * modules/count-one-bits-tests (Files): Likewise.
20239         * modules/dprintf-posix-tests (Files): Likewise.
20240         * modules/dup2-tests (Files): Likewise.
20241         * modules/dup3-tests (Files): Likewise.
20242         * modules/duplocale-tests (Files): Likewise.
20243         * modules/fbufmode-tests (Files): Likewise.
20244         * modules/fchdir-tests (Files): Likewise.
20245         * modules/fcntl-safer-tests (Files): Likewise.
20246         * modules/fcntl-tests (Files): Likewise.
20247         * modules/fdopendir-tests (Files): Likewise.
20248         * modules/fdutimensat-tests (Files): Likewise.
20249         * modules/fflush-tests (Files): Likewise.
20250         * modules/filevercmp-tests (Files): Likewise.
20251         * modules/flock-tests (Files): Likewise.
20252         * modules/floorf-tests (Files): Likewise.
20253         * modules/floorl-tests (Files): Likewise.
20254         * modules/fnmatch-tests (Files): Likewise.
20255         * modules/fopen-safer-tests (Files): Likewise.
20256         * modules/fopen-tests (Files): Likewise.
20257         * modules/fpending-tests (Files): Likewise.
20258         * modules/fprintf-posix-tests (Files): Likewise.
20259         * modules/fpurge-tests (Files): Likewise.
20260         * modules/freadable-tests (Files): Likewise.
20261         * modules/freadahead-tests (Files): Likewise.
20262         * modules/freading-tests (Files): Likewise.
20263         * modules/freadptr-tests (Files): Likewise.
20264         * modules/freadseek-tests (Files): Likewise.
20265         * modules/freopen-tests (Files): Likewise.
20266         * modules/frexp-nolibm-tests (Files): Likewise.
20267         * modules/frexp-tests (Files): Likewise.
20268         * modules/frexpl-nolibm-tests (Files): Likewise.
20269         * modules/frexpl-tests (Files): Likewise.
20270         * modules/fseek-tests (Files): Likewise.
20271         * modules/fseeko-tests (Files): Likewise.
20272         * modules/fstrcmp-tests (Files): Likewise.
20273         * modules/fsync-tests (Files): Likewise.
20274         * modules/ftell-tests (Files): Likewise.
20275         * modules/ftello-tests (Files): Likewise.
20276         * modules/func-tests (Files): Likewise.
20277         * modules/futimens-tests (Files): Likewise.
20278         * modules/fwritable-tests (Files): Likewise.
20279         * modules/fwriting-tests (Files): Likewise.
20280         * modules/getcwd-tests (Files): Likewise.
20281         * modules/getdate-tests (Files): Likewise.
20282         * modules/getdelim-tests (Files): Likewise.
20283         * modules/getdtablesize-tests (Files): Likewise.
20284         * modules/getgroups-tests (Files): Likewise.
20285         * modules/getline-tests (Files): Likewise.
20286         * modules/getndelim2-tests (Files): Likewise.
20287         * modules/glob-tests (Files): Likewise.
20288         * modules/hash-tests (Files): Likewise.
20289         * modules/i-ring-tests (Files): Likewise.
20290         * modules/iconv-tests (Files): Likewise.
20291         * modules/iconv_open-utf-tests (Files): Likewise.
20292         * modules/idpriv-drop-tests (Files): Likewise.
20293         * modules/idpriv-droptemp-tests (Files): Likewise.
20294         * modules/inet_ntop-tests (Files): Likewise.
20295         * modules/inet_pton-tests (Files): Likewise.
20296         * modules/isblank-tests (Files): Likewise.
20297         * modules/isfinite-tests (Files): Likewise.
20298         * modules/isinf-tests (Files): Likewise.
20299         * modules/isnan-tests (Files): Likewise.
20300         * modules/isnand-nolibm-tests (Files): Likewise.
20301         * modules/isnand-tests (Files): Likewise.
20302         * modules/isnanf-nolibm-tests (Files): Likewise.
20303         * modules/isnanf-tests (Files): Likewise.
20304         * modules/isnanl-nolibm-tests (Files): Likewise.
20305         * modules/isnanl-tests (Files): Likewise.
20306         * modules/lchown-tests (Files): Likewise.
20307         * modules/ldexpl-tests (Files): Likewise.
20308         * modules/link-tests (Files): Likewise.
20309         * modules/linkat-tests (Files): Likewise.
20310         * modules/linked-list-tests (Files): Likewise.
20311         * modules/linkedhash-list-tests (Files): Likewise.
20312         * modules/localename-tests (Files): Likewise.
20313         * modules/lseek-tests (Files): Likewise.
20314         * modules/lstat-tests (Files): Likewise.
20315         * modules/mbmemcasecmp-tests (Files): Likewise.
20316         * modules/mbmemcasecoll-tests (Files): Likewise.
20317         * modules/mbrtowc-tests (Files): Likewise.
20318         * modules/mbscasecmp-tests (Files): Likewise.
20319         * modules/mbscasestr-tests (Files): Likewise.
20320         * modules/mbschr-tests (Files): Likewise.
20321         * modules/mbscspn-tests (Files): Likewise.
20322         * modules/mbsinit-tests (Files): Likewise.
20323         * modules/mbsncasecmp-tests (Files): Likewise.
20324         * modules/mbsnrtowcs-tests (Files): Likewise.
20325         * modules/mbspbrk-tests (Files): Likewise.
20326         * modules/mbspcasecmp-tests (Files): Likewise.
20327         * modules/mbsrchr-tests (Files): Likewise.
20328         * modules/mbsrtowcs-tests (Files): Likewise.
20329         * modules/mbsspn-tests (Files): Likewise.
20330         * modules/mbsstr-tests (Files): Likewise.
20331         * modules/memchr-tests (Files): Likewise.
20332         * modules/memchr2-tests (Files): Likewise.
20333         * modules/memcmp-tests (Files): Likewise.
20334         * modules/memmem-tests (Files): Likewise.
20335         * modules/memrchr-tests (Files): Likewise.
20336         * modules/mkdir-tests (Files): Likewise.
20337         * modules/mkfifo-tests (Files): Likewise.
20338         * modules/mkfifoat-tests (Files): Likewise.
20339         * modules/mknod-tests (Files): Likewise.
20340         * modules/nanosleep-tests (Files): Likewise.
20341         * modules/nl_langinfo-tests (Files): Likewise.
20342         * modules/obstack-printf-tests (Files): Likewise.
20343         * modules/open-tests (Files): Likewise.
20344         * modules/openat-tests (Files): Likewise.
20345         * modules/pipe-filter-gi-tests (Files): Likewise.
20346         * modules/pipe-filter-ii-tests (Files): Likewise.
20347         * modules/pipe2-tests (Files): Likewise.
20348         * modules/popen-safer-tests (Files): Likewise.
20349         * modules/popen-tests (Files): Likewise.
20350         * modules/posixtm-tests (Files): Likewise.
20351         * modules/pread-tests (Files): Likewise.
20352         * modules/printf-frexp-tests (Files): Likewise.
20353         * modules/printf-frexpl-tests (Files): Likewise.
20354         * modules/printf-posix-tests (Files): Likewise.
20355         * modules/priv-set-tests (Files): Likewise.
20356         * modules/quotearg-tests (Files): Likewise.
20357         * modules/random_r-tests (Files): Likewise.
20358         * modules/rawmemchr-tests (Files): Likewise.
20359         * modules/rbtree-list-tests (Files): Likewise.
20360         * modules/rbtree-oset-tests (Files): Likewise.
20361         * modules/rbtreehash-list-tests (Files): Likewise.
20362         * modules/readlink-tests (Files): Likewise.
20363         * modules/remove-tests (Files): Likewise.
20364         * modules/rename-tests (Files): Likewise.
20365         * modules/renameat-tests (Files): Likewise.
20366         * modules/rmdir-tests (Files): Likewise.
20367         * modules/round-tests (Files): Likewise.
20368         * modules/roundf-tests (Files): Likewise.
20369         * modules/roundl-tests (Files): Likewise.
20370         * modules/safe-alloc-tests (Files): Likewise.
20371         * modules/setenv-tests (Files): Likewise.
20372         * modules/sigaction-tests (Files): Likewise.
20373         * modules/signbit-tests (Files): Likewise.
20374         * modules/sleep-tests (Files): Likewise.
20375         * modules/snprintf-posix-tests (Files): Likewise.
20376         * modules/snprintf-tests (Files): Likewise.
20377         * modules/sprintf-posix-tests (Files): Likewise.
20378         * modules/stat-tests (Files): Likewise.
20379         * modules/stat-time-tests (Files): Likewise.
20380         * modules/strcasestr-tests (Files): Likewise.
20381         * modules/strchrnul-tests (Files): Likewise.
20382         * modules/strerror-tests (Files): Likewise.
20383         * modules/striconv-tests (Files): Likewise.
20384         * modules/striconveh-tests (Files): Likewise.
20385         * modules/striconveha-tests (Files): Likewise.
20386         * modules/strsignal-tests (Files): Likewise.
20387         * modules/strstr-tests (Files): Likewise.
20388         * modules/strtod-tests (Files): Likewise.
20389         * modules/strverscmp-tests (Files): Likewise.
20390         * modules/symlink-tests (Files): Likewise.
20391         * modules/symlinkat-tests (Files): Likewise.
20392         * modules/trunc-tests (Files): Likewise.
20393         * modules/truncf-tests (Files): Likewise.
20394         * modules/truncl-tests (Files): Likewise.
20395         * modules/uname-tests (Files): Likewise.
20396         * modules/unicase/cased-tests (Files): Likewise.
20397         * modules/unicase/ignorable-tests (Files): Likewise.
20398         * modules/unicase/locale-language-tests (Files): Likewise.
20399         * modules/unicase/tolower-tests (Files): Likewise.
20400         * modules/unicase/totitle-tests (Files): Likewise.
20401         * modules/unicase/toupper-tests (Files): Likewise.
20402         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20403         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20404         * modules/unicase/u8-casefold-tests (Files): Likewise.
20405         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20406         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20407         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20408         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20409         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20410         * modules/unicase/u8-tolower-tests (Files): Likewise.
20411         * modules/unicase/u8-totitle-tests (Files): Likewise.
20412         * modules/unicase/u8-toupper-tests (Files): Likewise.
20413         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20414         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20415         * modules/unicase/u16-casefold-tests (Files): Likewise.
20416         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20417         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20418         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20419         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20420         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20421         * modules/unicase/u16-tolower-tests (Files): Likewise.
20422         * modules/unicase/u16-totitle-tests (Files): Likewise.
20423         * modules/unicase/u16-toupper-tests (Files): Likewise.
20424         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20425         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20426         * modules/unicase/u32-casefold-tests (Files): Likewise.
20427         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20428         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20429         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20430         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20431         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20432         * modules/unicase/u32-tolower-tests (Files): Likewise.
20433         * modules/unicase/u32-totitle-tests (Files): Likewise.
20434         * modules/unicase/u32-toupper-tests (Files): Likewise.
20435         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20436         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20437         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20438         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20439         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20440         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20441         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20442         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20443         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20444         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20445         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20446         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20447         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20448         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20449         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20450         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20451         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20452         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20453         * modules/unictype/block-list-tests (Files): Likewise.
20454         * modules/unictype/block-of-tests (Files): Likewise.
20455         * modules/unictype/block-test-tests (Files): Likewise.
20456         * modules/unictype/category-C-tests (Files): Likewise.
20457         * modules/unictype/category-Cc-tests (Files): Likewise.
20458         * modules/unictype/category-Cf-tests (Files): Likewise.
20459         * modules/unictype/category-Cn-tests (Files): Likewise.
20460         * modules/unictype/category-Co-tests (Files): Likewise.
20461         * modules/unictype/category-Cs-tests (Files): Likewise.
20462         * modules/unictype/category-L-tests (Files): Likewise.
20463         * modules/unictype/category-Ll-tests (Files): Likewise.
20464         * modules/unictype/category-Lm-tests (Files): Likewise.
20465         * modules/unictype/category-Lo-tests (Files): Likewise.
20466         * modules/unictype/category-Lt-tests (Files): Likewise.
20467         * modules/unictype/category-Lu-tests (Files): Likewise.
20468         * modules/unictype/category-M-tests (Files): Likewise.
20469         * modules/unictype/category-Mc-tests (Files): Likewise.
20470         * modules/unictype/category-Me-tests (Files): Likewise.
20471         * modules/unictype/category-Mn-tests (Files): Likewise.
20472         * modules/unictype/category-N-tests (Files): Likewise.
20473         * modules/unictype/category-Nd-tests (Files): Likewise.
20474         * modules/unictype/category-Nl-tests (Files): Likewise.
20475         * modules/unictype/category-No-tests (Files): Likewise.
20476         * modules/unictype/category-P-tests (Files): Likewise.
20477         * modules/unictype/category-Pc-tests (Files): Likewise.
20478         * modules/unictype/category-Pd-tests (Files): Likewise.
20479         * modules/unictype/category-Pe-tests (Files): Likewise.
20480         * modules/unictype/category-Pf-tests (Files): Likewise.
20481         * modules/unictype/category-Pi-tests (Files): Likewise.
20482         * modules/unictype/category-Po-tests (Files): Likewise.
20483         * modules/unictype/category-Ps-tests (Files): Likewise.
20484         * modules/unictype/category-S-tests (Files): Likewise.
20485         * modules/unictype/category-Sc-tests (Files): Likewise.
20486         * modules/unictype/category-Sk-tests (Files): Likewise.
20487         * modules/unictype/category-Sm-tests (Files): Likewise.
20488         * modules/unictype/category-So-tests (Files): Likewise.
20489         * modules/unictype/category-Z-tests (Files): Likewise.
20490         * modules/unictype/category-Zl-tests (Files): Likewise.
20491         * modules/unictype/category-Zp-tests (Files): Likewise.
20492         * modules/unictype/category-Zs-tests (Files): Likewise.
20493         * modules/unictype/category-and-not-tests (Files): Likewise.
20494         * modules/unictype/category-and-tests (Files): Likewise.
20495         * modules/unictype/category-byname-tests (Files): Likewise.
20496         * modules/unictype/category-name-tests (Files): Likewise.
20497         * modules/unictype/category-none-tests (Files): Likewise.
20498         * modules/unictype/category-of-tests (Files): Likewise.
20499         * modules/unictype/category-or-tests (Files): Likewise.
20500         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20501         * modules/unictype/combining-class-tests (Files): Likewise.
20502         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20503         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20504         * modules/unictype/ctype-blank-tests (Files): Likewise.
20505         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20506         * modules/unictype/ctype-digit-tests (Files): Likewise.
20507         * modules/unictype/ctype-graph-tests (Files): Likewise.
20508         * modules/unictype/ctype-lower-tests (Files): Likewise.
20509         * modules/unictype/ctype-print-tests (Files): Likewise.
20510         * modules/unictype/ctype-punct-tests (Files): Likewise.
20511         * modules/unictype/ctype-space-tests (Files): Likewise.
20512         * modules/unictype/ctype-upper-tests (Files): Likewise.
20513         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20514         * modules/unictype/decimal-digit-tests (Files): Likewise.
20515         * modules/unictype/digit-tests (Files): Likewise.
20516         * modules/unictype/mirror-tests (Files): Likewise.
20517         * modules/unictype/numeric-tests (Files): Likewise.
20518         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20519         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20520         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20521         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20522         Likewise.
20523         * modules/unictype/property-bidi-block-separator-tests (Files):
20524         Likewise.
20525         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20526         Likewise.
20527         * modules/unictype/property-bidi-common-separator-tests (Files):
20528         Likewise.
20529         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20530         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20531         Likewise.
20532         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20533         Likewise.
20534         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20535         Likewise.
20536         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20537         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20538         Likewise.
20539         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20540         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20541         Likewise.
20542         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20543         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20544         * modules/unictype/property-bidi-segment-separator-tests (Files):
20545         Likewise.
20546         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20547         * modules/unictype/property-byname-tests (Files): Likewise.
20548         * modules/unictype/property-combining-tests (Files): Likewise.
20549         * modules/unictype/property-composite-tests (Files): Likewise.
20550         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20551         * modules/unictype/property-dash-tests (Files): Likewise.
20552         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20553         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20554         Likewise.
20555         * modules/unictype/property-deprecated-tests (Files): Likewise.
20556         * modules/unictype/property-diacritic-tests (Files): Likewise.
20557         * modules/unictype/property-extender-tests (Files): Likewise.
20558         * modules/unictype/property-format-control-tests (Files): Likewise.
20559         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20560         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20561         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20562         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20563         * modules/unictype/property-hyphen-tests (Files): Likewise.
20564         * modules/unictype/property-id-continue-tests (Files): Likewise.
20565         * modules/unictype/property-id-start-tests (Files): Likewise.
20566         * modules/unictype/property-ideographic-tests (Files): Likewise.
20567         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20568         * modules/unictype/property-ids-trinary-operator-tests (Files):
20569         Likewise.
20570         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20571         * modules/unictype/property-iso-control-tests (Files): Likewise.
20572         * modules/unictype/property-join-control-tests (Files): Likewise.
20573         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20574         * modules/unictype/property-line-separator-tests (Files): Likewise.
20575         * modules/unictype/property-logical-order-exception-tests (Files):
20576         Likewise.
20577         * modules/unictype/property-lowercase-tests (Files): Likewise.
20578         * modules/unictype/property-math-tests (Files): Likewise.
20579         * modules/unictype/property-non-break-tests (Files): Likewise.
20580         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20581         * modules/unictype/property-numeric-tests (Files): Likewise.
20582         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20583         * modules/unictype/property-other-default-ignorable-code-point-tests
20584         (Files): Likewise.
20585         * modules/unictype/property-other-grapheme-extend-tests (Files):
20586         Likewise.
20587         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20588         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20589         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20590         * modules/unictype/property-other-math-tests (Files): Likewise.
20591         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20592         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20593         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20594         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20595         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20596         * modules/unictype/property-private-use-tests (Files): Likewise.
20597         * modules/unictype/property-punctuation-tests (Files): Likewise.
20598         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20599         * modules/unictype/property-radical-tests (Files): Likewise.
20600         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20601         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20602         * modules/unictype/property-space-tests (Files): Likewise.
20603         * modules/unictype/property-terminal-punctuation-tests (Files):
20604         Likewise.
20605         * modules/unictype/property-test-tests (Files): Likewise.
20606         * modules/unictype/property-titlecase-tests (Files): Likewise.
20607         * modules/unictype/property-unassigned-code-value-tests (Files):
20608         Likewise.
20609         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20610         * modules/unictype/property-uppercase-tests (Files): Likewise.
20611         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20612         * modules/unictype/property-white-space-tests (Files): Likewise.
20613         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20614         * modules/unictype/property-xid-start-tests (Files): Likewise.
20615         * modules/unictype/property-zero-width-tests (Files): Likewise.
20616         * modules/unictype/scripts-tests (Files): Likewise.
20617         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20618         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20619         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20620         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20621         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20622         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20623         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20624         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20625         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20626         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20627         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20628         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20629         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20630         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20631         * modules/uninorm/composition-tests (Files): Likewise.
20632         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20633         * modules/uninorm/decomposition-tests (Files): Likewise.
20634         * modules/uninorm/filter-tests (Files): Likewise.
20635         * modules/uninorm/nfc-tests (Files): Likewise.
20636         * modules/uninorm/nfd-tests (Files): Likewise.
20637         * modules/uninorm/nfkc-tests (Files): Likewise.
20638         * modules/uninorm/nfkd-tests (Files): Likewise.
20639         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20640         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20641         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20642         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20643         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20644         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20645         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20646         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20647         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20648         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20649         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20650         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20651         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20652         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20653         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20654         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20655         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20656         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20657         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20658         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20659         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20660         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20661         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20662         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20663         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20664         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20665         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20666         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20667         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20668         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20669         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20670         * modules/uniwidth/u8-width-tests (Files): Likewise.
20671         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20672         * modules/uniwidth/u16-width-tests (Files): Likewise.
20673         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20674         * modules/uniwidth/u32-width-tests (Files): Likewise.
20675         * modules/uniwidth/width-tests (Files): Likewise.
20676         * modules/unlink-tests (Files): Likewise.
20677         * modules/unsetenv-tests (Files): Likewise.
20678         * modules/usleep-tests (Files): Likewise.
20679         * modules/utimens-tests (Files): Likewise.
20680         * modules/utimensat-tests (Files): Likewise.
20681         * modules/vasnprintf-posix-tests (Files): Likewise.
20682         * modules/vasnprintf-tests (Files): Likewise.
20683         * modules/vasprintf-posix-tests (Files): Likewise.
20684         * modules/vasprintf-tests (Files): Likewise.
20685         * modules/vdprintf-posix-tests (Files): Likewise.
20686         * modules/vfprintf-posix-tests (Files): Likewise.
20687         * modules/vprintf-posix-tests (Files): Likewise.
20688         * modules/vsnprintf-posix-tests (Files): Likewise.
20689         * modules/vsnprintf-tests (Files): Likewise.
20690         * modules/vsprintf-posix-tests (Files): Likewise.
20691         * modules/wcrtomb-tests (Files): Likewise.
20692         * modules/wcsnrtombs-tests (Files): Likewise.
20693         * modules/wcsrtombs-tests (Files): Likewise.
20694         * modules/wctype-tests (Files): Likewise.
20695         * modules/wcwidth-tests (Files): Likewise.
20696         * modules/xmemdup0-tests (Files): Likewise.
20697         * modules/xprintf-posix-tests (Files): Likewise.
20698         * modules/xvasprintf-tests (Files): Likewise.
20699
20700 2009-12-24  Eric Blake  <ebb9@byu.net>
20701
20702         test-nanosleep: fix typo
20703         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20704         patch.
20705         Reported by Bruno Haible.
20706
20707 2009-12-24  Bruno Haible  <bruno@clisp.org>
20708
20709         Reduce namespace pollution on glibc systems.
20710         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20711         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20712         systems.
20713         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20714         <getopt.h> on glibc systems.
20715         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20716         systems.
20717         * lib/fcntl.c: Include <unistd.h> here instead.
20718
20719 2009-12-24  Bruno Haible  <bruno@clisp.org>
20720
20721         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20722
20723 2009-12-24  Eric Blake  <ebb9@byu.net>
20724
20725         tests: add signature checks
20726         * tests/signature.h (SIGNATURE_CHECK): New file.
20727         * modules/atexit-tests (Files): Use it.
20728         * modules/btowc-tests (Files): Likewise.
20729         * modules/canonicalize-lgpl-tests (Files): Likewise.
20730         * modules/ceilf-tests (Files): Likewise.
20731         * modules/ceill-tests (Files): Likewise.
20732         * modules/chown-tests (Files): Likewise.
20733         * modules/dprintf-posix-tests (Files): Likewise.
20734         * modules/dup2-tests (Files): Likewise.
20735         * modules/dup3-tests (Files): Likewise.
20736         * modules/duplocale-tests (Files): Likewise.
20737         * modules/fchdir-tests (Files): Likewise.
20738         * modules/fcntl-tests (Files): Likewise.
20739         * modules/fdopendir-tests (Files): Likewise.
20740         * modules/fflush-tests (Files): Likewise.
20741         * modules/flock-tests (Files): Likewise.
20742         * modules/floorf-tests (Files): Likewise.
20743         * modules/floorl-tests (Files): Likewise.
20744         * modules/fnmatch-tests (Files): Likewise.
20745         * modules/fopen-tests (Files): Likewise.
20746         * modules/fprintf-posix-tests (Files): Likewise.
20747         * modules/freopen-tests (Files): Likewise.
20748         * modules/frexp-nolibm-tests (Files): Likewise.
20749         * modules/frexp-tests (Files): Likewise.
20750         * modules/frexpl-nolibm-tests (Files): Likewise.
20751         * modules/frexpl-tests (Files): Likewise.
20752         * modules/fseek-tests (Files): Likewise.
20753         * modules/fseeko-tests (Files): Likewise.
20754         * modules/fsync-tests (Files): Likewise.
20755         * modules/ftell-tests (Files): Likewise.
20756         * modules/ftello-tests (Files): Likewise.
20757         * modules/futimens-tests (Files): Likewise.
20758         * modules/getaddrinfo-tests (Files): Likewise.
20759         * modules/getcwd-tests (Files): Likewise.
20760         * modules/getdelim-tests (Files): Likewise.
20761         * modules/getdtablesize-tests (Files): Likewise.
20762         * modules/getgroups-tests (Files): Likewise.
20763         * modules/gethostname-tests (Files): Likewise.
20764         * modules/getline-tests (Files): Likewise.
20765         * modules/getopt-posix-tests (Files): Likewise.
20766         * modules/gettimeofday-tests (Files): Likewise.
20767         * modules/glob-tests (Files): Likewise.
20768         * modules/iconv-tests (Files): Likewise.
20769         * modules/inet_ntop-tests (Files): Likewise.
20770         * modules/inet_pton-tests (Files): Likewise.
20771         * modules/isblank-tests (Files): Likewise.
20772         * modules/lchown-tests (Files): Likewise.
20773         * modules/ldexpl-tests (Files): Likewise.
20774         * modules/link-tests (Files): Likewise.
20775         * modules/linkat-tests (Files): Likewise.
20776         * modules/lseek-tests (Files): Likewise.
20777         * modules/lstat-tests (Files): Likewise.
20778         * modules/mbrtowc-tests (Files): Likewise.
20779         * modules/mbsinit-tests (Files): Likewise.
20780         * modules/mbsnrtowcs-tests (Files): Likewise.
20781         * modules/mbsrtowcs-tests (Files): Likewise.
20782         * modules/memchr-tests (Files): Likewise.
20783         * modules/memcmp-tests (Files): Likewise.
20784         * modules/memmem-tests (Files): Likewise.
20785         * modules/memrchr-tests (Files): Likewise.
20786         * modules/mkdir-tests (Files): Likewise.
20787         * modules/mkfifo-tests (Files): Likewise.
20788         * modules/mkfifoat-tests (Files): Likewise.
20789         * modules/mknod-tests (Files): Likewise.
20790         * modules/nanosleep-tests (Files): Likewise.
20791         * modules/nl_langinfo-tests (Files): Likewise.
20792         * modules/obstack-printf-tests (Files): Likewise.
20793         * modules/open-tests (Files): Likewise.
20794         * modules/openat-tests (Files): Likewise.
20795         * modules/perror-tests (Files): Likewise.
20796         * modules/pipe2-tests (Files): Likewise.
20797         * modules/poll-tests (Files): Likewise.
20798         * modules/popen-tests (Files): Likewise.
20799         * modules/posix_spawn-tests (Files): Likewise.
20800         * modules/posix_spawnp-tests (Files): Likewise.
20801         * modules/pread-tests (Files): Likewise.
20802         * modules/printf-posix-tests (Files): Likewise.
20803         * modules/pty-tests (Files): Likewise.
20804         * modules/random_r-tests (Files): Likewise.
20805         * modules/rawmemchr-tests (Files): Likewise.
20806         * modules/readlink-tests (Files): Likewise.
20807         * modules/remove-tests (Files): Likewise.
20808         * modules/rename-tests (Files): Likewise.
20809         * modules/renameat-tests (Files): Likewise.
20810         * modules/rmdir-tests (Files): Likewise.
20811         * modules/round-tests (Files): Likewise.
20812         * modules/roundf-tests (Files): Likewise.
20813         * modules/roundl-tests (Files): Likewise.
20814         * modules/select-tests (Files): Likewise.
20815         * modules/setenv-tests (Files): Likewise.
20816         * modules/sigaction-tests (Files): Likewise.
20817         * modules/sleep-tests (Files): Likewise.
20818         * modules/snprintf-posix-tests (Files): Likewise.
20819         * modules/snprintf-tests (Files): Likewise.
20820         * modules/sprintf-posix-tests (Files): Likewise.
20821         * modules/stat-tests (Files): Likewise.
20822         * modules/strcasestr-tests (Files): Likewise.
20823         * modules/strchrnul-tests (Files): Likewise.
20824         * modules/strerror-tests (Files): Likewise.
20825         * modules/strsignal-tests (Files): Likewise.
20826         * modules/strstr-tests (Files): Likewise.
20827         * modules/strtod-tests (Files): Likewise.
20828         * modules/strverscmp-tests (Files): Likewise.
20829         * modules/symlink-tests (Files): Likewise.
20830         * modules/symlinkat-tests (Files): Likewise.
20831         * modules/times-tests (Files): Likewise.
20832         * modules/trunc-tests (Files): Likewise.
20833         * modules/truncf-tests (Files): Likewise.
20834         * modules/truncl-tests (Files): Likewise.
20835         * modules/tsearch-tests (Files): Likewise.
20836         * modules/uname-tests (Files): Likewise.
20837         * modules/unlink-tests (Files): Likewise.
20838         * modules/unsetenv-tests (Files): Likewise.
20839         * modules/usleep-tests (Files): Likewise.
20840         * modules/utimensat-tests (Files): Likewise.
20841         * modules/vasprintf-tests (Files): Likewise.
20842         * modules/vdprintf-posix-tests (Files): Likewise.
20843         * modules/vfprintf-posix-tests (Files): Likewise.
20844         * modules/vprintf-posix-tests (Files): Likewise.
20845         * modules/vsnprintf-posix-tests (Files): Likewise.
20846         * modules/vsnprintf-tests (Files): Likewise.
20847         * modules/vsprintf-posix-tests (Files): Likewise.
20848         * modules/wcrtomb-tests (Files): Likewise.
20849         * modules/wcsnrtombs-tests (Files): Likewise.
20850         * modules/wcsrtombs-tests (Files): Likewise.
20851         * modules/wcwidth-tests (Files): Likewise.
20852         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20853         * tests/test-isinf.c (isinf): Likewise.
20854         * tests/test-isnan.c (isnan): Likewise.
20855         * tests/test-signbit.c (signbit): Likewise.
20856         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20857         declaration, either as macro or with correct signature.
20858         (select): Ensure function under test is declared with correct
20859         signature in correct header.
20860         * tests/test-atexit.c (atexit): Likewise.
20861         * tests/test-btowc.c (btowc): Likewise.
20862         * tests/test-canonicalize-lgpl.c (realpath)
20863         (canonicalize_file_name): Likewise.
20864         * tests/test-ceilf1.c (ceilf): Likewise.
20865         * tests/test-ceill.c (ceill): Likewise.
20866         * tests/test-chown.c (chown): Likewise.
20867         * tests/test-dprintf-posix.c (dprintf): Likewise.
20868         * tests/test-dup2.c (dup2): Likewise.
20869         * tests/test-dup3.c (dup3): Likewise.
20870         * tests/test-duplocale.c (duplocale): Likewise.
20871         * tests/test-fchdir.c (fchdir): Likewise.
20872         * tests/test-fchownat.c (fchownat): Likewise.
20873         * tests/test-fcntl.c (fcntl): Likewise.
20874         * tests/test-fdopendir.c (fdopendir): Likewise.
20875         * tests/test-fflush.c (fflush): Likewise.
20876         * tests/test-flock.c (flock): Likewise.
20877         * tests/test-floorf1.c (floorf): Likewise.
20878         * tests/test-floorl.c (floorl): Likewise.
20879         * tests/test-fnmatch.c (fnmatch): Likewise.
20880         * tests/test-fopen.c (fopen): Likewise.
20881         * tests/test-fprintf-posix.c (fprintf): Likewise.
20882         * tests/test-freopen.c (freopen): Likewise.
20883         * tests/test-frexp.c (frexp): Likewise.
20884         * tests/test-frexpl.c (frexpl): Likewise.
20885         * tests/test-fseek.c (fseek): Likewise.
20886         * tests/test-fseeko.c (fseeko): Likewise.
20887         * tests/test-fstatat.c (fstatat): Likewise.
20888         * tests/test-fsync.c (fsync): Likewise.
20889         * tests/test-ftell.c (ftell): Likewise.
20890         * tests/test-ftello.c (ftello): Likewise.
20891         * tests/test-futimens.c (futimens): Likewise.
20892         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20893         (gai_strerror): Likewise.
20894         * tests/test-getcwd.c (getcwd): Likewise.
20895         * tests/test-getdelim.c (getdelim): Likewise.
20896         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20897         * tests/test-getgroups.c (getgroups): Likewise.
20898         * tests/test-gethostname.c (gethostname): Likewise.
20899         * tests/test-getline.c (getline): Likewise.
20900         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20901         Likewise.
20902         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20903         * tests/test-glob.c (glob, globfree): Likewise.
20904         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20905         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20906         * tests/test-inet_pton.c (inet_pton): Likewise.
20907         * tests/test-isblank.c (isblank): Likewise.
20908         * tests/test-lchown.c (lchown): Likewise.
20909         * tests/test-ldexpl.c (ldexpl): Likewise.
20910         * tests/test-link.c (link): Likewise.
20911         * tests/test-linkat.c (linkat): Likewise.
20912         * tests/test-lseek.c (lseek): Likewise.
20913         * tests/test-lstat.c (lstat): Likewise.
20914         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20915         * tests/test-mbsinit.c (mbsinit): Likewise.
20916         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20917         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20918         * tests/test-memchr.c (memchr): Likewise.
20919         * tests/test-memcmp.c (memcmp): Likewise.
20920         * tests/test-memmem.c (memmem): Likewise.
20921         * tests/test-memrchr.c (memrchr): Likewise.
20922         * tests/test-mkdir.c (mkdir): Likewise.
20923         * tests/test-mkdirat.c (mkdirat): Likewise.
20924         * tests/test-mkfifo.c (mkfifo): Likewise.
20925         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20926         * tests/test-mknod.c (mknod): Likewise.
20927         * tests/test-nanosleep.c (nanosleep): Likewise.
20928         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20929         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20930         Likewise.
20931         * tests/test-open.c (open): Likewise.
20932         * tests/test-openat.c (openat): Likewise.
20933         * tests/test-perror.c (perror): Likewise.
20934         * tests/test-pipe2.c (pipe2): Likewise.
20935         * tests/test-poll.c (poll): Likewise.
20936         * tests/test-popen.c (popen, pclose): Likewise.
20937         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20938         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20939         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20940         (posix_spawn_file_actions_destroy)
20941         (posix_spawn_file_actions_addclose)
20942         (posix_spawn_file_actions_addopen)
20943         (posix_spawn_file_actions_adddup2): Likewise.
20944         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20945         * tests/test-pread.c (pread): Likewise.
20946         * tests/test-printf-posix.c (printf): Likewise.
20947         * tests/test-pty.c (openpty, forkpty): Likewise.
20948         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20949         (random_r): Likewise.
20950         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20951         * tests/test-readlink.c (readlink): Likewise.
20952         * tests/test-remove.c (remove): Likewise.
20953         * tests/test-rename.c (rename): Likewise.
20954         * tests/test-renameat.c (renameat): Likewise.
20955         * tests/test-rmdir.c (rmdir): Likewise.
20956         * tests/test-round1.c (round): Likewise.
20957         * tests/test-roundf1.c (roundf): Likewise.
20958         * tests/test-roundl.c (roundl): Likewise.
20959         * tests/test-setenv.c (setenv): Likewise.
20960         * tests/test-sigaction.c (sigaction): Likewise.
20961         * tests/test-sleep.c (sleep): Likewise.
20962         * tests/test-snprintf.c (snprintf): Likewise.
20963         * tests/test-sprintf-posix.c (sprintf): Likewise.
20964         * tests/test-stat.c (stat): Likewise.
20965         * tests/test-stpncpy.c (stpncpy): Likewise.
20966         * tests/test-strcasestr.c (strcasestr): Likewise.
20967         * tests/test-strchrnul.c (strchrnul): Likewise.
20968         * tests/test-strerror.c (strerror): Likewise.
20969         * tests/test-strsignal.c (strsignal): Likewise.
20970         * tests/test-strstr.c (strstr): Likewise.
20971         * tests/test-strtod.c (strtod): Likewise.
20972         * tests/test-strverscmp.c (strverscmp): Likewise.
20973         * tests/test-symlink.c (symlink): Likewise.
20974         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20975         * tests/test-times.c (times): Likewise.
20976         * tests/test-trunc1.c (trunc): Likewise.
20977         * tests/test-truncf1.c (truncf): Likewise.
20978         * tests/test-truncl.c (truncl): Likewise.
20979         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20980         Likewise.
20981         * tests/test-uname.c (uname): Likewise.
20982         * tests/test-unlink.c (unlink): Likewise.
20983         * tests/test-unlinkat.c (unlinkat): Likewise.
20984         * tests/test-unsetenv.c (unsetenv): Likewise.
20985         * tests/test-usleep.c (usleep): Likewise.
20986         * tests/test-utimensat.c (utimensat): Likewise.
20987         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20988         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20989         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20990         * tests/test-vprintf-posix.c (vprintf): Likewise.
20991         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20992         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20993         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20994         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20995         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20996         * tests/test-wcwidth.c (wcwidth): Likewise.
20997
20998         build: pull in conditional headers during GNULIB_POSIXCHECK
20999         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21000         definitions from any conditionally-included headers.
21001         * lib/stdlib.in.h (includes): Likewise.
21002         * lib/unistd.in.h (includes): Likewise.
21003
21004 2009-12-24  Bruno Haible  <bruno@clisp.org>
21005
21006         * tests/test-argv-iter.c: Include header file being tested immediately
21007         after config.h.
21008         * tests/test-base64.c: Likewise.
21009         * tests/test-flock.c: Likewise.
21010         * tests/test-fsync.c: Likewise.
21011         * tests/test-getdate.c: Likewise.
21012         * tests/test-getndelim2.c: Likewise.
21013         * tests/test-isfinite.c: Likewise.
21014         * tests/test-isinf.c: Likewise.
21015         * tests/test-strerror.c: Likewise.
21016         * tests/test-strsignal.c: Likewise.
21017
21018 2009-12-23  Eric Blake  <ebb9@byu.net>
21019
21020         unistd: work around cygwin bug
21021         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21022         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21023         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21024
21025 2009-12-23  Bruno Haible  <bruno@clisp.org>
21026
21027         localename: More tests.
21028         * tests/test-localename.c (SIZEOF): New macro.
21029         (categories): New variable.
21030         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21031         test_locale_name_default): Add test w.r.t. thread locale.
21032         (test_locale_name_thread): New function.
21033         (main): Invoke it.
21034
21035         localename: Make aware of thread locale.
21036         * lib/localename.h (gl_locale_name_thread): New declaration.
21037         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21038         behaviour with respect to thread locale.
21039         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21040         <langinfo.h>, glthread/lock.h.
21041         (SIZE_BITS): New macro.
21042         (string_hash): New function.
21043         (struct hash_node): New type.
21044         (HASH_TABLE_SIZE): New macro.
21045         (struniq_hash_table, struniq_lock): New variables.
21046         (struniq): New function.
21047         (gl_locale_name_thread): New function.
21048         (gl_locale_name): Invoke it.
21049         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21050         * modules/localename (Depends-on): Add lock.
21051         Reported by Mike Gran <spk121@yahoo.com>.
21052
21053 2009-12-23  Eric Blake  <ebb9@byu.net>
21054
21055         va-args: new module
21056         * modules/va-args: New file.
21057         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21058         * MODULES.html.sh (Core language properties): Mention it.
21059
21060         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21061         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21062         named alias for __attribute__((__unused__)).
21063         * lib/chown.c: Update client.
21064         * lib/fchmodat.c: Likewise.
21065         * lib/fts.c: Likewise.
21066         * lib/getdate.y: Likewise.
21067         * lib/getgroups.c: Likewise.
21068         * lib/getopt.c: Likewise.
21069         * lib/getugroups.c: Likewise.
21070         * lib/mkdir.c: Likewise.
21071         * lib/mkfifo.c: Likewise.
21072         * lib/mkfifoat.c: Likewise.
21073         * lib/mknod.c: Likewise.
21074         * lib/mknodat.c: Likewise.
21075         * lib/readlink.c: Likewise.
21076         * lib/se-context.in.h: Likewise.
21077         * lib/se-selinux.in.h: Likewise.
21078         * lib/sockets.c: Likewise.
21079         * lib/symlink.c: Likewise.
21080         * lib/symlinkat.c: Likewise.
21081         * lib/unicodeio.c: Likewise.
21082         * lib/unistr.h: Likewise.
21083         * tests/test-areadlink.c: Likewise.
21084         * tests/test-areadlinkat.c: Likewise.
21085         * tests/test-filenamecat.c: Likewise.
21086         * tests/test-fseeko.c: Likewise.
21087         * tests/test-ftello.c: Likewise.
21088         * tests/test-getdate.c: Likewise.
21089         * tests/test-getgroups.c: Likewise.
21090         * tests/test-gethostname.c: Likewise.
21091         * tests/test-quotearg.c: Likewise.
21092         * tests/test-version-etc.c: Likewise.
21093         * tests/test-xalloc-die.c: Likewise.
21094         * tests/test-xfprintf-posix.c: Likewise.
21095         * tests/test-xprintf-posix.c: Likewise.
21096         * tests/test-xvasprintf.c: Likewise.
21097
21098         tests: avoid compiler warnings
21099         * tests/test-fcntl.c (main): Delete unused parameters.
21100         * tests/test-freopen-safer.c (main): Likewise.
21101         * tests/test-xalloc-die.c (main): Mark unused parameters.
21102         * tests/test-fseeko.c (main): Likewise.
21103         * tests/test-ftello.c (main): Likewise.
21104         * tests/test-nanosleep.c (main): Avoid declaration warning.
21105         * tests/test-sleep.c (main): Likewise.
21106         * tests/test-unsetenv.c (main): Silence warning about string
21107         literal.
21108         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21109
21110 2009-12-23  Bruno Haible  <bruno@clisp.org>
21111
21112         * tests/test-localename.c (test_locale_name): New function, extracted
21113         from main. Also test mixed situations.
21114         (test_locale_name_posix, test_locale_name_environ,
21115         test_locale_name_default): New functions.
21116         (main): Invoke them all.
21117         * modules/localename-tests (configure.ac): Test for newlocale.
21118
21119 2009-12-23  Bruno Haible  <bruno@clisp.org>
21120
21121         unistd: Ensure getcwd gets declared before being overridden.
21122         * lib/unistd.in.h: Conditionally include <io.h>.
21123
21124 2009-12-22  Bruno Haible  <bruno@clisp.org>
21125
21126         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21127         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21128         (gl_WCHAR_H): Invoke it.
21129         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21130         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21131         Reported by Karl Berry <karl@freefriends.org>.
21132
21133 2009-12-22  Eric Blake  <ebb9@byu.net>
21134
21135         math, unistd: avoid redundant includes
21136         * lib/math.in.h (isnan): No need to re-include <math.h>.
21137         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21138
21139         getsubopt: work around cygwin bug
21140         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21141         avoid conflicting with system getsubopt.
21142         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21143         bug.
21144
21145         getopt: synchronize from glibc
21146         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21147         parameter order.  Adjust all callers.
21148         (_getopt_internal_r, main): Adjust quoting in error messages.
21149         Drop considerations for outdated POSIX 1003.2 error message.
21150         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21151         callers.
21152         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21153
21154         test-getopt: test stderr behavior
21155         * modules/getopt-posix-tests (Depends-on): Add dup2.
21156         * tests/test-getopt.c (ASSERT): Avoid stderr.
21157         (main): Move stderr to a temporary file.
21158         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21159         Instead, add parameter to inform caller if output occurred.
21160         (test_getopt): Adjust all existing tests to expect silence, and
21161         add new tests of leading ":".
21162         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21163         glibc shortcomings with leading "-:" or "+:" in optstring.
21164         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21165         Likewise.
21166         * doc/posix-functions/getopt.texi (getopt): Likewise.
21167
21168         test-getopt: enhance test
21169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21170         supports optind=0.
21171         * tests/test-getopt.c (OPTIND_MIN): Move...
21172         * tests/test-getopt.h (OPTIND_MIN): ...here.
21173         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21174         Require that optind=0 works, since modern BSD supports it in
21175         addition to optreset, and since coreutils expects it.
21176         (test_getopt_long_only): New test.
21177         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21178         glibc shortcomings with 'W;', and enforcement of optind=0.
21179         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21180         Likewise.
21181
21182 2009-12-21  Bruno Haible  <bruno@clisp.org>
21183
21184         localename: Improvements for MacOS X and Cygwin.
21185         * lib/localename.h (gl_locale_name_environ): New declaration.
21186         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21187         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21188         (gl_locale_name_posix): Invoke it.
21189         (gl_locale_name_default): Add comments. Use Windows native API also on
21190         Cygwin.
21191
21192 2009-12-21  Bruno Haible  <bruno@clisp.org>
21193
21194         Update list of Win32 locale ids.
21195         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21196         (LANG_SAMI): Renamed from LANG_SAAMI.
21197         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21198         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21199         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21200         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21201         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21202         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21203         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21204         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21205         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21206         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21207         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21208         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21209         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21210         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21211         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21212         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21213         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21214         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21215         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21216         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21217         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21218         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21219         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21220         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21221         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21222         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21223         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21224         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21225         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21226         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21227         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21228         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21229         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21230         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21231         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21232         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21233         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21234         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21235         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21236         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21237         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21238         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21239         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21240         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21241         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21242         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21243         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21244         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21245         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21246         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21247         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21248         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21249         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21250         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21251         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21252         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21253         Add more languages and countries for Sami, Sorbian. Add more countries
21254         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21255         for Pashto. Change country for Syriac, Tswana.
21256
21257 2009-12-21  Eric Blake  <ebb9@byu.net>
21258
21259         test-utimens: avoid spurious failure
21260         * tests/test-chown.h (nap): Factor...
21261         * tests/nap.h: ...into new file.
21262         * tests/test-lchown.h (nap): Avoid duplication.
21263         * tests/test-utimens-common.h (nap): Use shared implementation,
21264         necessary on file systems with 1-second resolution.
21265         * modules/chown-tests (Files): Include new file.
21266         * modules/fdutimensat-tests (Files): Likewise.
21267         * modules/futimens-tests (Files): Likewise.
21268         * modules/lchown-tests (Files): Likewise.
21269         * modules/openat-tests (Files): Likewise.
21270         * modules/utimens-tests (Files): Likewise.
21271         * modules/utimensat-tests (Files): Likewise.
21272
21273 2009-12-19  Eric Blake  <ebb9@byu.net>
21274
21275         futimens, utimensat: work around Linux bug
21276         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21277         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21278         * lib/utimensat.c (rpl_utimensat): Work around it.
21279         * lib/futimens.c (rpl_futimens): Adjust comment.
21280
21281         utimens: work around Linux ctime bug
21282         * lib/utimens.c (detect_ctime_bug): New helper function.
21283         (update_timespec): Differentiate between workaround needed for
21284         this bug vs. what is needed for systems that lack utimensat.
21285         (fdutimens, lutimens): Work around bug.
21286
21287         utimens: check for ctime update
21288         * tests/test-utimens-common.h (check_ctime): Define.
21289         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21290         * tests/test-futimens.h (test_futimens): Likewise.
21291         * tests/test-lutimens.h (test_lutimens): Likewise.
21292         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21293         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21294
21295 2009-12-19  Bruno Haible  <bruno@clisp.org>
21296
21297         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21298         * tests/test-dprintf-posix2.sh: New file.
21299         * tests/test-dprintf-posix2.c: New file.
21300         * modules/dprintf-posix-tests (Files): Add them.
21301         (configure.ac): Check for getrlimit and setrlimit.
21302         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21303
21304 2009-12-19  Bruno Haible  <bruno@clisp.org>
21305
21306         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21307         * tests/test-fprintf-posix3.sh: New file.
21308         * tests/test-fprintf-posix3.c: New file.
21309         * modules/fprintf-posix-tests (Files): Add them.
21310         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21311
21312 2009-12-19  Eric Blake  <ebb9@byu.net>
21313
21314         dirfd: fix prototype
21315         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21316         * lib/dirfd.c (dirfd): Likewise.
21317
21318         canonicalize: reduce memory usage
21319         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21320         allocation to size.
21321         Reported by Solar Designer <solar@openwall.com>.
21322
21323 2009-12-19  Bruno Haible  <bruno@clisp.org>
21324
21325         New module attribute 'Applicability'.
21326         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21327         * gnulib-tool: New option --extract-applicability.
21328         (func_usage): Document it.
21329         (sed_extract_prog): Recognize it.
21330         (func_get_applicability): New function.
21331         (func_import): Generalize handling of 'link-warning' module.
21332         * modules/link-warning (Applicability): New section.
21333         * modules/arg-nonnull (Applicability): New section.
21334         Repoted by Simon Josefsson <simon@josefsson.org>.
21335
21336 2009-12-19  Bruno Haible  <bruno@clisp.org>
21337
21338         fflush: tweak
21339         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21340         * lib/fseeko.c (rpl_fseeko): Likewise.
21341
21342 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21343
21344         * lib/gl_list.h: Fix typo in comment.
21345
21346 2009-12-16  Eric Blake  <ebb9@byu.net>
21347
21348         fcntl: use to simplify other modules
21349         * modules/cloexec (Depends-on): Add fcntl.
21350         * modules/fchdir (Depends-on): Likewise.
21351         * modules/fd-safer-flag (Depends-on): Likewise.
21352         * modules/unistd-safer (Depends-on): Likewise.
21353         * modules/dup3 (configure.ac): Set module indicator.
21354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21355         missing.
21356         * lib/fchdir.c (_gl_register_dup): Fix comment.
21357         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21358         * lib/dup-safer.c (dup_safer): Likewise.
21359         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21360         * lib/dup3.c (dup3): Likewise.
21361         * tests/test-fchdir.c (main): Enhance test.
21362         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21363
21364         fcntl: port portions of fcntl to mingw
21365         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21366         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21367         replacement for mingw.
21368         * modules/fcntl (Description): Update.
21369         (Depends-on): Add dup2.
21370         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21371         * modules/fcntl-h (Makefile.am): Substitute it.
21372         * lib/fcntl.in.h (fcntl): Update declaration.
21373         (F_DUPFD, F_GETFD): New macros, when needed.
21374         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21375         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21376         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21377         we now guarantee.
21378
21379         fcntl: work around cygwin bug in F_DUPFD
21380         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21381         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21382         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21383         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21384         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21385
21386         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21387         * modules/fcntl (Files): List new files.
21388         (configure.ac): Run a test.
21389         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21390         * lib/fcntl.c (rpl_fcntl): Likewise.
21391         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21392         (gl_FCNTL_H): Always replace fcntl.h.
21393         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21394         * lib/fcntl.in.h (fcntl): Declare replacement.
21395         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21396         needed, plus a witness.
21397         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21398         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21399         * tests/test-fcntl.c: New file.
21400         * modules/fcntl-tests: Likewise.
21401
21402         binary-io: avoid potential compilation warning
21403         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21404         directives.
21405
21406         fflush: avoid compilation error on NetBSD
21407         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21408         between off_t and fpos_t, since the latter is sometimes a struct.
21409         * lib/fseeko.c (rpl_fseeko): Likewise.
21410         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21411
21412 2009-12-15  Eric Blake  <ebb9@byu.net>
21413
21414         fcntl-h, stdio, sys_ioctl: fix declarations
21415         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21416         function must not take arguments.
21417         * lib/sys_ioctl.in.h (ioctl): Likewise.
21418         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21419         (open): Add a link warning.
21420
21421 2009-12-15  Jim Meyering  <meyering@redhat.com>
21422
21423         areadlink, areadlink-with-size: relax license to LGPLv2+
21424         * modules/areadlink (License): Relax to LGPLv2+.
21425         * modules/areadlink-with-size (License): Likewise.
21426
21427 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21428             Bruno Haible  <bruno@clisp.org>
21429
21430         *printf: Fix memory leak.
21431         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21432         * lib/vfprintf.c (vfprintf): Likewise.
21433         * lib/dprintf.c (dprintf): Likewise.
21434         * lib/vdprintf.c (vdprintf): Likewise.
21435
21436 2009-12-14  Eric Blake  <ebb9@byu.net>
21437
21438         accept4: adjust module dependencies
21439         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21440
21441         utimens: one more try at avoiding compiler warning
21442         * lib/utimens.c (lutimens): Lower scope of result.
21443
21444 2009-12-13  Bruno Haible  <bruno@clisp.org>
21445
21446         Move the malloc checking from module 'list' to new module 'xlist'.
21447         * modules/xlist: New file.
21448         * lib/gl_xlist.h: New file.
21449         * lib/gl_xlist.c: New file.
21450         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21451         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21452         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21453         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21454         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21455         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21456         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21457         gl_sortedlist_nx_add): New declarations.
21458         (struct gl_list_implementation): Rename and change methods accordingly.
21459         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21460         (gl_list_nx_create): Renamed from gl_list_create.
21461         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21462         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21463         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21464         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21465         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21466         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21467         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21468         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21469         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21470         gl_list_create_empty.
21471         (gl_list_nx_create): Renamed from gl_list_create.
21472         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21473         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21474         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21475         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21476         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21477         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21478         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21479         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21480         * lib/gl_array_list.c: Don't include xalloc.h.
21481         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21482         NULL upon out-of-memory.
21483         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21484         out-of-memory.
21485         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21486         Change return type to 'int'.
21487         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21488         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21489         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21490         upon out-of-memory.
21491         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21492         upon out-of-memory.
21493         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21494         upon out-of-memory.
21495         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21496         upon out-of-memory.
21497         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21498         out-of-memory.
21499         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21500         Update.
21501         (gl_array_list_implementation): Update.
21502         * lib/gl_carray_list.c: Don't include xalloc.h.
21503         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21504         Return NULL upon out-of-memory.
21505         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21506         out-of-memory.
21507         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21508         Change return type to 'int'.
21509         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21510         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21511         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21512         upon out-of-memory.
21513         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21514         upon out-of-memory.
21515         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21516         out-of-memory.
21517         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21518         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21519         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21520         Update.
21521         (gl_carray_list_implementation): Update.
21522         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21523         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21524         gl_linked_create_empty. Return NULL upon out-of-memory.
21525         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21526         out-of-memory.
21527         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21528         Change return type to 'int'. Return -1 upon out-of-memory.
21529         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21530         out-of-memory.
21531         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21532         upon out-of-memory.
21533         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21534         upon out-of-memory.
21535         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21536         NULL upon out-of-memory.
21537         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21538         upon out-of-memory.
21539         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21540         out-of-memory.
21541         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21542         Update.
21543         * lib/gl_linked_list.c: Don't include xalloc.h.
21544         (gl_linked_list_implementation): Update.
21545         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21546         (add_to_bucket): Change return type to 'int'.
21547         (gl_linkedhash_list_implementation): Update.
21548         * lib/gl_anytree_list1.h (free_subtree): New function.
21549         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21550         gl_tree_create_empty. Return NULL upon out-of-memory.
21551         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21552         Change return type to 'int'. Return -1 upon out-of-memory.
21553         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21554         out-of-memory.
21555         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21556         (gl_tree_remove_node): New function, moved here from
21557         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21558         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21559         Update.
21560         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21561         malloc, not xmalloc. Return NULL upon out-of-memory.
21562         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21563         out-of-memory.
21564         (gl_tree_remove_node_from_tree): New function, extracted from
21565         gl_tree_remove_node.
21566         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21567         upon out-of-memory.
21568         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21569         out-of-memory.
21570         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21571         upon out-of-memory.
21572         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21573         upon out-of-memory.
21574         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21575         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21576         not xmalloc. Return NULL upon out-of-memory.
21577         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21578         out-of-memory.
21579         (gl_tree_remove_node_from_tree): New function, extracted from
21580         gl_tree_remove_node.
21581         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21582         upon out-of-memory.
21583         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21584         out-of-memory.
21585         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21586         upon out-of-memory.
21587         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21588         upon out-of-memory.
21589         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21590         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21591         gl_anytree_list1.h before gl_anyavltree_list2.h.
21592         (gl_avltree_list_implementation): Update.
21593         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21594         gl_anytree_list1.h before gl_anyavltree_list2.h.
21595         (gl_rbtree_list_implementation): Update.
21596         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21597         Change return type to 'int'. Return -1 upon out-of-memory. Use
21598         __builtin_expect.
21599         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21600         (gl_avltreehash_list_implementation): Update.
21601         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21602         (gl_rbtreehash_list_implementation): Update.
21603         * modules/array-list (Depends-on): Remove xalloc.
21604         * modules/carray-list (Depends-on): Likewise.
21605         * modules/linked-list (Depends-on): Likewise.
21606         * modules/linkedhash-list (Depends-on): Likewise.
21607         * modules/avltree-list (Depends-on): Likewise.
21608         * modules/rbtree-list (Depends-on): Likewise.
21609         * modules/avltreehash-list (Depends-on): Likewise.
21610         * modules/rbtreehash-list (Depends-on): Likewise.
21611
21612         * modules/xsublist: New file.
21613         * lib/gl_xsublist.h: New file.
21614         * lib/gl_xsublist.c: New file.
21615         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21616         (gl_sublist_nx_create): New declaration.
21617         * lib/gl_sublist.c: Don't include xalloc.h.
21618         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21619         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21620         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21621         Change return type to 'int'. Return -1 upon out-of-memory.
21622         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21623         upon out-of-memory.
21624         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21625         NULL upon out-of-memory.
21626         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21627         upon out-of-memory.
21628         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21629         NULL upon out-of-memory.
21630         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21631         NULL upon out-of-memory.
21632         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21633         upon out-of-memory.
21634         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21635         (gl_sublist_list_implementation): Update.
21636         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21637         upon out-of-memory.
21638         * modules/sublist (Depends-on): Remove xalloc.
21639
21640         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21641         * tests/test-carray_list.c: Likewise.
21642         * tests/test-linked_list.c: Likewise.
21643         * tests/test-linkedhash_list.c: Likewise.
21644         * tests/test-avltree_list.c: Likewise.
21645         * tests/test-rbtree_list.c: Likewise.
21646         * tests/test-avltreehash_list.c: Likewise.
21647         * tests/test-rbtreehash_list.c: Likewise.
21648         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21649         * modules/carray-list-tests (Makefile.am): Likewise.
21650         * modules/linked-list-tests (Makefile.am): Likewise.
21651         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21652         * modules/avltree-list-tests (Makefile.am): Likewise.
21653         * modules/rbtree-list-tests (Makefile.am): Likewise.
21654         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21655         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21656
21657         * NEWS: Mention the changes.
21658
21659         * lib/clean-temp.c: Include gl_xlist.h.
21660         * modules/clean-temp (Depends-on): Add xlist.
21661
21662         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21663         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21664
21665         * tests/test-array_oset.c: Include gl_xlist.h.
21666         * modules/array-oset-tests (Depends-on): Add xlist.
21667
21668         Reported by José E. Marchesi <jemarch@gnu.org>.
21669
21670 2009-12-13  Bruno Haible  <bruno@clisp.org>
21671
21672         Move the malloc checking from module 'oset' to new module 'xoset'.
21673         * modules/xoset: New file.
21674         * lib/gl_xoset.h: New file.
21675         * lib/gl_xoset.c: New file.
21676         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21677         declarations.
21678         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21679         (struct gl_oset_implementation): Rename and change methods accordingly.
21680         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21681         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21682         'int'. Mark as __warn_unused_result__.
21683         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21684         gl_oset_create_empty.
21685         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21686         'int'.
21687         * lib/gl_array_oset.c: Don't include xalloc.h.
21688         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21689         malloc, not xmalloc.
21690         (grow): Change return type to 'int'. Don't call xalloc_die.
21691         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21692         to 'int'.
21693         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21694         'int'.
21695         (gl_array_oset_implementation): Update.
21696         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21697         gl_tree_create_empty.
21698         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21699         'int'.
21700         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21701         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21702         xmalloc.
21703         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21704         not xmalloc.
21705         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21706         xmalloc.
21707         (gl_avltree_oset_implementation): Update.
21708         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21709         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21710         xmalloc.
21711         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21712         not xmalloc.
21713         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21714         xmalloc.
21715         (gl_rbtree_oset_implementation): Update.
21716         * modules/array-oset (Depends-on): Remove xalloc.
21717         * modules/avltree-oset (Depends-on): Likewise.
21718         * modules/rbtree-oset (Depends-on): Likewise.
21719         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21720         * tests/test-avltree_oset.c: Likewise.
21721         * tests/test-rbtree_oset.c: Likewise.
21722         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21723         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21724         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21725         * NEWS: Mention the change.
21726
21727 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21728
21729         maint.mk: allow a project to override release-prep commands
21730         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21731         commands into a new rule.
21732         (release-prep): New rule.
21733         (release-prep-hook): New overridable variable.
21734
21735 2009-12-13  Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21738
21739 2009-12-13  Jim Meyering  <meyering@redhat.com>
21740
21741         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21742         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21743
21744 2009-12-12  Bruno Haible  <bruno@clisp.org>
21745
21746         duplocale: Tweak.
21747         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21748
21749 2009-12-12  Karl Berry  <karl@gnu.org>
21750
21751         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21752
21753 2009-12-12  Bruno Haible  <bruno@clisp.org>
21754
21755         * m4/po.m4: Undo incorrect untabification.
21756
21757 2009-12-12  Bruno Haible  <bruno@clisp.org>
21758
21759         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21760         * modules/c-strtod (Depends-on): Add locale.
21761         * modules/c-strtold (Depends-on): Likewise.
21762
21763 2009-12-12  Bruno Haible  <bruno@clisp.org>
21764
21765         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21766
21767 2009-12-11  Eric Blake  <ebb9@byu.net>
21768
21769         setenv: relax requirement in light of POSIX ruling
21770         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21771         not NULL.
21772         * tests/test-setenv.c (main): Relax test.
21773         * tests/test-unsetenv.c (main): Likewise.
21774         * doc/posix-functions/setenv.texi (setenv): Document this.
21775         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21776
21777 2009-12-11  Bruno Haible  <bruno@clisp.org>
21778
21779         New module 'fd-safer-flag'.
21780         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21781         * lib/dup-safer.c (dup_safer_flag): Remove function.
21782         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21783         * lib/fd-safer.c (fd_safer_flag): Remove function.
21784         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21785         * modules/cloexec (configure.ac): Drop indicator macro.
21786         * modules/fd-safer-flag: New file.
21787         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21788         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21789         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21790
21791 2009-12-11  Bruno Haible  <bruno@clisp.org>
21792
21793         Tests for module 'nl_langinfo'.
21794         * modules/nl_langinfo-tests: New file.
21795         * tests/test-nl_langinfo.sh: New file.
21796         * tests/test-nl_langinfo.c: New file.
21797
21798         New module 'nl_langinfo'.
21799         * lib/nl_langinfo.c: New file.
21800         * m4/nl_langinfo.m4: New file.
21801         * modules/nl_langinfo: New file.
21802         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21803
21804 2009-12-11  Bruno Haible  <bruno@clisp.org>
21805
21806         Tests for module 'langinfo'.
21807         * modules/langinfo-tests: New file.
21808         * tests/test-langinfo.c: New file.
21809
21810         New module 'langinfo'.
21811         * lib/langinfo.in.h: New file.
21812         * m4/langinfo_h.m4: New file.
21813         * modules/langinfo: New file.
21814         * doc/posix-headers/langinfo.texi: Mention the new module.
21815
21816 2009-12-11  Bruno Haible  <bruno@clisp.org>
21817
21818         * lib/config.charset: Untabify.
21819
21820 2009-12-11  Bruno Haible  <bruno@clisp.org>
21821
21822         * modules/unistd-safer (configure.ac): Drop indicator macro.
21823
21824 2009-12-11  Bruno Haible  <bruno@clisp.org>
21825
21826         Move pipe2-safer code to its own file.
21827         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21828         * lib/pipe-safer.c (pipe2_safer): Remove function.
21829         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21830         (Makefile.am): Add it to lib_SOURCES.
21831
21832 2009-12-10  Bruno Haible  <bruno@clisp.org>
21833
21834         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21835
21836 2009-12-10  Bruno Haible  <bruno@clisp.org>
21837
21838         Declare which arguments expect non-NULL values, for GCC and clang.
21839         * build-aux/arg-nonnull.h: New file.
21840         * modules/arg-nonnull: New file.
21841         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21842         (inet_ntop, inet_pton): Use it.
21843         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21844         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21845         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21846         (open, openat): Use it.
21847         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21848         (fnmatch): Use it.
21849         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21850         (getopt, getopt_long, getopt_long_only): Use it.
21851         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21852         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21853         Use it.
21854         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21855         (iconv_open): Use it.
21856         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21857         (strtoimax, strtoumax): Use it.
21858         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21859         (duplocale): Use it.
21860         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21861         (frexp, frexpl): Use it.
21862         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21863         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21864         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21865         (tsearch, tfind, tdelete, twalk): Use it.
21866         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21867         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21868         sigpending): Use it.
21869         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21870         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21871         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21872         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21873         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21874         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21875         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21876         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21877         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21878         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21879         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21880         Use it.
21881         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21882         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21883         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21884         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21885         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21886         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21887         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21888         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21889         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21890         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21891         strtoull, unsetenv): Use it.
21892         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21893         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21894         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21895         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21896         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21897         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21898         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21899         (strcasecmp, strncasecmp): Use it.
21900         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21901         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21902         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21903         rpl_setsockopt): Use it.
21904         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21905         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21906         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21907         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21908         (gettimeofday): Use it.
21909         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21910         (times): Use it.
21911         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21912         (uname): Use it.
21913         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21914         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21915         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21916         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21917         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21918         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21919         unlinkat, write): Use it.
21920         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21921         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21922         * lib/argv-iter.h: Include arg-nonnull.h.
21923         (_ATTRIBUTE_NONNULL_): Remove macro.
21924         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21925         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21926         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21927         optimization.
21928         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21929         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21930         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21931         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21932         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21933         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21934         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21935         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21936         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21937         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21938         * modules/dirent (Depends-on): Add arg-nonnull.
21939         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21940         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21941         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21942         * modules/fnmatch (Depends-on): Add arg-nonnull.
21943         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21944         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21945         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21946         * modules/glob (Depends-on): Add arg-nonnull.
21947         (Makefile.am): Insert arg-nonnull.h into glob.h.
21948         * modules/iconv_open (Depends-on): Add arg-nonnull.
21949         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21950         * modules/inttypes (Depends-on): Add arg-nonnull.
21951         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21952         * modules/locale (Depends-on): Add arg-nonnull.
21953         (Makefile.am): Insert arg-nonnull.h into locale.h.
21954         * modules/math (Depends-on): Add arg-nonnull.
21955         (Makefile.am): Insert arg-nonnull.h into math.h.
21956         * modules/netdb (Depends-on): Add arg-nonnull.
21957         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21958         * modules/search (Depends-on): Add arg-nonnull.
21959         (Makefile.am): Insert arg-nonnull.h into search.h.
21960         * modules/signal (Depends-on): Add arg-nonnull.
21961         (Makefile.am): Insert arg-nonnull.h into signal.h.
21962         * modules/spawn (Depends-on): Add arg-nonnull.
21963         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21964         * modules/stdio (Depends-on): Add arg-nonnull.
21965         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21966         * modules/stdlib (Depends-on): Add arg-nonnull.
21967         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21968         * modules/string (Depends-on): Add arg-nonnull.
21969         (Makefile.am): Insert arg-nonnull.h into string.h.
21970         * modules/strings (Depends-on): Add arg-nonnull.
21971         (Makefile.am): Insert arg-nonnull.h into strings.h.
21972         * modules/sys_socket (Depends-on): Add arg-nonnull.
21973         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21974         * modules/sys_stat (Depends-on): Add arg-nonnull.
21975         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21976         * modules/sys_time (Depends-on): Add arg-nonnull.
21977         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21978         * modules/sys_times (Depends-on): Add arg-nonnull.
21979         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21980         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21981         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21982         * modules/time (Depends-on): Add arg-nonnull.
21983         (Makefile.am): Insert arg-nonnull.h into time.h.
21984         * modules/unistd (Depends-on): Add arg-nonnull.
21985         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21986         * modules/wchar (Depends-on): Add arg-nonnull.
21987         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21988         * modules/argv-iter (Depends-on): Add arg-nonnull.
21989         * tests/test-canonicalize.c (null_ptr): New function.
21990         (main): Use it.
21991         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21992         (main): Use it.
21993         * tests/test-memmem.c (null_ptr): New function.
21994         (main): Use it.
21995         Reported by Jim Meyering.
21996
21997 2009-12-10  Bruno Haible  <bruno@clisp.org>
21998
21999         Use spaces for indentation, not tabs.
22000         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22001         * m4/*.m4: Untabify.
22002         * build-aux/*.h: Untabify.
22003         * tests/**/*.[hc]: Untabify.
22004         * README: New section "Indent with spaces, not TABs", based on
22005         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22006         * NEWS: Mention the change.
22007
22008 2009-12-10  Bruno Haible  <bruno@clisp.org>
22009
22010         pty test: Fix link error.
22011         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22012         test_pty_LDADD.
22013
22014 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22015
22016         * modules/pty: New file.
22017         * modules/pty-tests: New file.
22018         * m4/pty.m4: New file.
22019         * tests/test-pty.c: New file.
22020         * doc/glibc-headers/pty.texi: Modified.
22021         * doc/glibc-functions/forkpty.texi: Modified.
22022         * doc/glibc-functions/openpty.texi: Modified.
22023
22024 2009-12-10  Bruno Haible  <bruno@clisp.org>
22025
22026         Avoid syntax error in C++ mode.
22027         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22028
22029 2009-12-10  Bruno Haible  <bruno@clisp.org>
22030
22031         Use sed with option -e.
22032         * gnulib-tool (func_version, func_emit_copyright_notice,
22033         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22034         option -e to sed.
22035         * modules/link-warning (Makefile.am): Likewise.
22036
22037 2009-12-10  Jim Meyering  <meyering@redhat.com>
22038
22039         mgetgroups: do not write bytes beyond end of malloc'd buffer
22040         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22041         username, we call getgroups with a one-element-shorter buffer,
22042         but still told it the length was original, max_n_groups.
22043
22044 2009-12-09  Eric Blake  <ebb9@byu.net>
22045
22046         cloexec: relax license
22047         * modules/cloexec (Maintainer): Add myself.
22048         (License): Use LGPL, not GPL.
22049
22050         link-warning: optimize generation
22051         * modules/link-warning (Makefile.am): Reduce process usage.
22052
22053 2009-12-09  Bruno Haible  <bruno@clisp.org>
22054
22055         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22056         workaround was added on 2009-11-17.
22057
22058 2009-12-09  Jim Meyering  <meyering@redhat.com>
22059             Bruno Haible  <bruno@clisp.org>
22060
22061         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22062         * modules/link-warning (Makefile.am): Make the comment-removing sed
22063         command more robust in the face of bootstrap-prepended comment lines.
22064
22065 2009-12-09  Bruno Haible  <bruno@clisp.org>
22066
22067         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22068         most one group.
22069
22070 2009-12-09  Simon Josefsson <simon@josefsson.org>
22071             Bruno Haible  <bruno@clisp.org>
22072
22073         * build-aux/link-warning.h: Add copyright notice.
22074         * modules/link-warning (Makefile.am): Generate link-warning.h from
22075         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22076         * NEWS: Mention change in link-warning module.
22077         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22078         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22079         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22080         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22081         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22082         * modules/math (Makefile.am): Add dependency to math.h.
22083         * modules/search (Makefile.am): Add dependency to search.h.
22084         * modules/signal (Makefile.am): Add dependency to signal.h.
22085         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22086         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22087         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22088         * modules/string (Makefile.am): Add dependency to string.h.
22089         * modules/strings (Makefile.am): Add dependency to strings.h.
22090         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22091         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22092         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22093         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22094         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22095         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22096         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22097         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22098         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22099
22100 2009-12-09  Bruno Haible  <bruno@clisp.org>
22101
22102         fchdir: Optimize away rpl_fstat when possible.
22103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22104         REPLACE_OPEN_DIRECTORY.
22105         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22106
22107 2009-12-09  Bruno Haible  <bruno@clisp.org>
22108
22109         * lib/fchdir.c: Update comment.
22110
22111 2009-12-09  Bruno Haible  <bruno@clisp.org>
22112
22113         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22114
22115 2009-12-08  Eric Blake  <ebb9@byu.net>
22116
22117         fchdir: avoid memory leak on re-registration.
22118         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22119
22120 2009-12-08  Jim Meyering  <meyering@redhat.com>
22121
22122         init.sh: avoid Solaris 10 /bin/sh portability problem
22123         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22124         sourced script:
22125           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22126           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22127           bar
22128         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22129         and two tests used that idiom.
22130         * tests/init.sh: Update suggested usage comments.
22131         (path_prepend_): New function, to be used in place
22132         of the --src-path=DIR option.
22133         (setup_): Move PATH-prepending code into path_prepend_.
22134         * tests/test-pread.sh: Adapt to new usage.
22135         * tests/test-xalloc-die.sh: Likewise.
22136
22137 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22138
22139         * doc/gnulib.texi (Glibc pty.h): Add.
22140         * doc/glibc-functions/forkpty.texi: Add.
22141         * doc/glibc-functions/openpty.texi: Add.
22142         Suggested by Bruno Haible.
22143
22144 2009-12-08  Eric Blake  <ebb9@byu.net>
22145
22146         fchdir: fix logic bugs
22147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22148         * tests/test-fchdir.c (main): Enhance test.
22149         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22150         is in use.
22151
22152         dup2: fix logic bugs
22153         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22154         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22155         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22156         exists.
22157         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22158
22159 2009-12-07  Eric Blake  <ebb9@byu.net>
22160
22161         unlink: fix m4 detection
22162         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22163
22164         unistd-safer: add unit test
22165         * modules/unistd-safer-tests: New file.
22166         * tests/test-dup-safer.c: Likewise.
22167         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22168         * tests/test-dup2.c (setmode): Likewise.
22169         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22170
22171         cloexec: preserve text vs. binary across dup_cloexec
22172         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22173         mode.
22174         * modules/dup2-tests (Depends-on): Add binary-io.
22175         * modules/cloexec-tests (Depends-on): Likewise.
22176         * tests/test-dup2.c (setmode, is_mode): New helpers.
22177         (main): Add tests that translation mode is preserved.
22178         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22179         Reported by Bruno Haible.
22180
22181         mgetgroups: reduce duplicate listings
22182         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22183         resulting array.
22184         * tests/test-chown.h (test_chown): Simplify client.
22185         * tests/test-lchown.h (test_lchown): Likewise.
22186
22187 2009-12-06  Bruno Haible  <bruno@clisp.org>
22188
22189         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22190         value.
22191
22192 2009-12-06  Bruno Haible  <bruno@clisp.org>
22193
22194         * lib/progname.c: Include stdio.h, stdlib.h.
22195         (set_program_name): Reject a NULL argument.
22196
22197 2009-12-05  Eric Blake  <ebb9@byu.net>
22198
22199         pipe2-safer: new module
22200         * modules/pipe2-safer: New file.
22201         * lib/unistd-safer.h (pipe2_safer): New prototype.
22202         * lib/unistd--.h (pipe2): New wrapper.
22203         * lib/pipe-safer.c (pipe2_safer): New function.
22204         * modules/pipe (Depends-on): Add pipe2-safer.
22205         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22206
22207         stdlib-safer: preserve cloexec flag for mkostemp[s]
22208         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22209         fd_safer_flag.
22210
22211         unistd-safer: allow preservation of cloexec status via flag
22212         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22213         prototypes.
22214         * lib/dup-safer.c (dup_safer_flag): New function.
22215         * lib/fd-safer.c (fd_safer_flag): Likewise.
22216         * modules/cloexec (configure.ac): Set witness.
22217
22218         test-dup2: enhance test
22219         * modules/dup2-tests (Depends-on): Add cloexec.
22220         * tests/test-dup2.c (main): Enhance test.
22221
22222         cloexec: add dup_cloexec
22223         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22224         header and comments.
22225         * lib/cloexec.c (set_cloexec_flag): Add comments.
22226         (dup_cloexec): New function, with mingw implementation borrowed
22227         from...
22228         * lib/w32spawn.h (dup_noinherit): ...here.
22229         * modules/execute (Depends-on): Add cloexec.
22230         * modules/pipe (Depends-on): Likewise.
22231         * modules/cloexec (Depends-on): Add dup2.
22232         * modules/cloexec-tests (Files): New file.
22233         * tests/test-cloexec.c: Likewise.
22234
22235         test-xalloc-die: fix test for mingw
22236         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22237         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22238         directory and .exe suffix off argv[0] output.
22239
22240         test-fseeko: fix test for mingw
22241         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22242         than undefining fseek, so test will pass on mingw.
22243
22244 2009-12-05  Bruno Haible  <bruno@clisp.org>
22245
22246         * lib/progname.h (set_program_name): Clarify specification.
22247         * lib/progname.c (set_program_name): Likewise.
22248         Reported by Jim Meyering.
22249
22250 2009-12-05  Jim Meyering  <meyering@redhat.com>
22251
22252         maint.mk: backslash-escape parens in default regexp
22253         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22254         backslash-escape the literal parentheses.
22255
22256         maint.mk: news-date-check: use grep -E
22257         * top/maint.mk (today): Define a Make variable, not a...
22258         (news-date-check): ...shell variable.
22259         (news-date-regexp): Use the Make variable.
22260         Use grep's -E option.  Change the failing diagnostic to mention
22261         the variable, $(news-date-regexp).
22262
22263 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22264
22265         maintainer-makefile: allow customization of NEWS entry format
22266         * top/maint.mk (news-date-regexp): New overridable variable.
22267         (news-date-check): Use it.
22268
22269 2009-12-04  Eric Blake  <ebb9@byu.net>
22270
22271         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22272         * lib/mgetgroups.h (xgetgroups): New prototype.
22273         * lib/mgetgroups.c (xgetgroups): New wrapper.
22274         (mgetgroups): Handle ENOSYS.
22275         * modules/mgetgroups (Depends-on): Add realloc.
22276         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22277
22278         mgetgroups: avoid argument promotion issues with -1
22279         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22280         for invalid gid_t.
22281         * tests/test-chown.h (getegid, test_chown): Likewise.
22282         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22283
22284 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22285
22286         exclude: Fix header file problems.
22287         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22288
22289 2009-12-01  Jim Meyering  <meyering@redhat.com>
22290
22291         fts: fts_open: do not let an empty string cause immediate failure
22292         This is required in support of GNU rm, for which the command
22293         "rm A '' B" must process and remove both A and B, in spite of
22294         the empty string argument.
22295         * lib/fts.c (fts_open): Do not let the presence of an empty string
22296         cause fts_open to fail immediately.  Most fts-using tools must be
22297         able to process all arguments, in order, and can be expected to
22298         diagnose such arguments themselves.
22299
22300 2009-11-30  Eric Blake  <ebb9@byu.net>
22301
22302         utimens: fix compilation error
22303         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22304         Declare variable at right scope.
22305
22306 2009-11-29  Jim Meyering  <meyering@redhat.com>
22307
22308         bootstrap: handle perl-5.11's changed --version output
22309         * build-aux/bootstrap (get_version): Handle perl separately,
22310         since perl-5.11's --version output is different.
22311
22312 2009-11-28  Jim Meyering  <meyering@redhat.com>
22313
22314         userspec: depend on the inttostr module, too
22315         * modules/userspec (Depends-on): Add inttostr.
22316
22317         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22318         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22319         number of MAXUID when it evaluates to (uid_t) -1.
22320         Likewise for group ID.  Reported by Matt McCutchen in
22321         <http://savannah.gnu.org/bugs/?28113>
22322
22323         userspec: reformat to use spaces, not TABs
22324         * lib/userspec.c: Expand TABs to spaces.
22325         Add Emacs' "indent-tabs-mode: nil" hint.
22326
22327 2009-11-27  Eric Blake  <ebb9@byu.net>
22328
22329         getopt-gnu: flush out another BSD bug
22330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22331         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22332         flush out BSD bug.
22333         * tests/test-getopt.h (test_getopt): End lists with NULL.
22334         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22335         (test_getopt_long_posix): Enhance test.
22336         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22337         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22338         getopt-gnu.
22339         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22340         Likewise.
22341
22342 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22343
22344         * modules/idpriv-droptemp-tests (Notice): Fix text.
22345
22346 2009-11-27  Jim Meyering  <meyering@redhat.com>
22347
22348         test-xalloc-die: avoid spurious failure due to libtool argv difference
22349         In a libtool-enabled project, this test would fail due to a difference
22350         in the emitted program name, e.g.,
22351         -test-xalloc-die: memory exhausted
22352         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22353         Use program to avoid that.
22354         * modules/xalloc-die-tests (Depends-on): Add progname.
22355         * tests/test-xalloc-die.c: Include progname.h".
22356         (program_name): Remove decl.
22357         (main): Call set_program_name.
22358         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22359
22360 2009-11-26  Richard Jones  <rjones@redhat.com>
22361
22362         w32sock: leave win32 error in place.
22363         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22364
22365 2009-11-26  Eric Blake  <ebb9@byu.net>
22366
22367         init.sh: suggest to use skip_ and fail_ functions in comments
22368         * tests/init.sh: Add a sentence.
22369
22370 2009-11-25  Bruno Haible  <bruno@clisp.org>
22371
22372         init.sh: add documentation in comments
22373         * tests/init.sh: Add some developer and user documentation.
22374
22375 2009-11-26  Jim Meyering  <meyering@redhat.com>
22376
22377         init.sh: accommodate even those who specify bogus srcdir manually
22378         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22379         configure-time tests to be sanitized, so that there is no need to
22380         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22381         (with no double quotes) suffices.  However, since tests may be
22382         invoked manually, and since you may explicitly set srcdir to the
22383         name of a directory containing spaces, do quote its uses here.
22384         * tests/test-pread.sh: Likewise.
22385         Suggested by Bruno Haible.
22386
22387         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22388         * tests/test-pread.sh: Write no data into the pipe, because
22389         test-pread actually reads none.  This avoids a diagnostic,
22390         "bash: echo: write error: Broken pipe", that arises in the unusual
22391         event something is ignoring SIGPIPE, and might be interpreted
22392         as some sort of failure.  Reported by Bruno Haible.
22393
22394 2009-11-25  Jim Meyering  <meyering@redhat.com>
22395
22396         test-pread: cover failure with ESPIPE and EINVAL
22397         * tests/test-pread.c (main): Test for failure, too.
22398         * tests/test-pread.sh: Invoke with stdin on a pipe.
22399         Suggested by Eric Blake.
22400
22401         pread: improvement and fix
22402         * modules/pread (Depends-on): Depend on lseek, for portability to
22403         e.g., mingw.  Suggested by Eric Blake.
22404         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22405
22406         unistd.in.h: correct declaration of pread
22407         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22408         Reported by Richard W.M. Jones.
22409
22410         test-pread.sh: distribute the test script
22411         * modules/pread-tests (Files): Include test-pread.sh.
22412
22413         test-pread.sh: clean up
22414         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22415         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22416         That is unnecessary, since it's always ".".
22417         Suggestion from Eric Blake.
22418
22419         test-pread.sh: make executable
22420         * tests/test-pread.sh: Set executable bit.
22421         Reported by Eric Blake.
22422
22423         correct typo in test-pread.sh
22424         * tests/test-pread.sh: Add #! line.
22425
22426         test pread
22427         * tests/test-pread.c: New file.
22428         * tests/test-pread.sh: Likewise.
22429         * modules/pread-tests: Likewise.
22430
22431         pread: new module
22432         * modules/pread: New file.
22433         * lib/unistd.in.h (pread): Define/declare.
22434         * lib/pread.c (pread): New file.
22435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22436         * modules/unistd (Makefile.am): Substitute witnesses.
22437         * doc/posix-functions/pread.texi (pread): Update.
22438         * MODULES.html.sh: Add pread.
22439
22440 2009-11-25  Jim Meyering  <meyering@redhat.com>
22441
22442         tests/init.sh: new file to be used via most *.sh tests
22443         * tests/init.sh: New file.
22444
22445 2009-11-25  Eric Blake  <ebb9@byu.net>
22446
22447         utimens: work around older Linux failure with symlinks
22448         * lib/utimens.c (lutimensat_works_really): New variable.
22449         (fdutimens, lutimens): Use it to manage kernels that support
22450         nanosecond times on files, but not on symlinks.
22451         Reported by OndÅ™ej Vašík.
22452
22453         utimes: fix configure grammar
22454         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22455
22456 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22457
22458         regex: Fix fastmap for multibyte character ranges.
22459         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22460         characters when a multibyte character range is included.
22461
22462 2009-11-22  Andy Wingo  <wingo@pobox.com>
22463
22464         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22465         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22466
22467 2009-11-24  Bruno Haible  <bruno@clisp.org>
22468
22469         doc: Most *_l functions exist in MacOS X 10.5.
22470         * doc/posix-functions/duplocale.texi: Update platforms list.
22471         * doc/posix-functions/freelocale.texi: Likewise.
22472         * doc/posix-functions/newlocale.texi: Likewise.
22473         * doc/posix-functions/uselocale.texi: Likewise.
22474         * doc/posix-functions/isalnum_l.texi: Likewise.
22475         * doc/posix-functions/isalpha_l.texi: Likewise.
22476         * doc/posix-functions/isblank_l.texi: Likewise.
22477         * doc/posix-functions/iscntrl_l.texi: Likewise.
22478         * doc/posix-functions/isdigit_l.texi: Likewise.
22479         * doc/posix-functions/isgraph_l.texi: Likewise.
22480         * doc/posix-functions/islower_l.texi: Likewise.
22481         * doc/posix-functions/isprint_l.texi: Likewise.
22482         * doc/posix-functions/ispunct_l.texi: Likewise.
22483         * doc/posix-functions/isspace_l.texi: Likewise.
22484         * doc/posix-functions/isupper_l.texi: Likewise.
22485         * doc/posix-functions/iswalnum_l.texi: Likewise.
22486         * doc/posix-functions/iswalpha_l.texi: Likewise.
22487         * doc/posix-functions/iswblank_l.texi: Likewise.
22488         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22489         * doc/posix-functions/iswctype_l.texi: Likewise.
22490         * doc/posix-functions/iswdigit_l.texi: Likewise.
22491         * doc/posix-functions/iswgraph_l.texi: Likewise.
22492         * doc/posix-functions/iswlower_l.texi: Likewise.
22493         * doc/posix-functions/iswprint_l.texi: Likewise.
22494         * doc/posix-functions/iswpunct_l.texi: Likewise.
22495         * doc/posix-functions/iswspace_l.texi: Likewise.
22496         * doc/posix-functions/iswupper_l.texi: Likewise.
22497         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22498         * doc/posix-functions/isxdigit_l.texi: Likewise.
22499         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22500         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22501         * doc/posix-functions/strcoll_l.texi: Likewise.
22502         * doc/posix-functions/strfmon_l.texi: Likewise.
22503         * doc/posix-functions/strftime_l.texi: Likewise.
22504         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22505         * doc/posix-functions/strxfrm_l.texi: Likewise.
22506         * doc/posix-functions/tolower_l.texi: Likewise.
22507         * doc/posix-functions/toupper_l.texi: Likewise.
22508         * doc/posix-functions/towctrans_l.texi: Likewise.
22509         * doc/posix-functions/towlower_l.texi: Likewise.
22510         * doc/posix-functions/towupper_l.texi: Likewise.
22511         * doc/posix-functions/wcscoll_l.texi: Likewise.
22512         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22513         * doc/posix-functions/wctrans_l.texi: Likewise.
22514         * doc/posix-functions/wctype_l.texi: Likewise.
22515         * doc/glibc-functions/strptime_l.texi: Likewise.
22516         * doc/glibc-functions/strtod_l.texi: Likewise.
22517         * doc/glibc-functions/strtof_l.texi: Likewise.
22518         * doc/glibc-functions/strtol_l.texi: Likewise.
22519         * doc/glibc-functions/strtold_l.texi: Likewise.
22520         * doc/glibc-functions/strtoll_l.texi: Likewise.
22521         * doc/glibc-functions/strtoul_l.texi: Likewise.
22522         * doc/glibc-functions/strtoull_l.texi: Likewise.
22523         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22524         * doc/glibc-functions/wcstod_l.texi: Likewise.
22525         * doc/glibc-functions/wcstof_l.texi: Likewise.
22526         * doc/glibc-functions/wcstol_l.texi: Likewise.
22527         * doc/glibc-functions/wcstold_l.texi: Likewise.
22528         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22529         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22530         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22531
22532 2009-11-24  Bruno Haible  <bruno@clisp.org>
22533
22534         duplocale: Fix logic bug.
22535         * lib/duplocale.c: Don't include <langinfo.h>.
22536         (_NL_LOCALE_NAME): Remove macro.
22537         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22538         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22539
22540 2009-11-23  Jim Meyering  <meyering@redhat.com>
22541
22542         test-update-copyright: don't hard-code /usr/bin/perl
22543         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22544         perl to print the current year.  Gilles Espinasse reported that
22545         the replaced use of perl was hard-coded as /usr/bin/perl.
22546
22547 2009-11-23  Bruno Haible  <bruno@clisp.org>
22548
22549         duplocale: Add support for glibc 2.3.x.
22550         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22551
22552 2009-11-22  Bruno Haible  <bruno@clisp.org>
22553
22554         vasnprintf: Tiny optimization.
22555         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22556         MacOS X.
22557
22558 2009-11-22  Bruno Haible  <bruno@clisp.org>
22559
22560         Tests for module 'duplocale'.
22561         * modules/duplocale-tests: New file.
22562         * tests/test-duplocale.c: New file.
22563
22564         New module 'duplocale'.
22565         * m4/duplocale.m4: New file.
22566         * lib/locale.in.h (duplocale): New declaration.
22567         * lib/duplocale.c: New file.
22568         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22569         gl_LOCALE_H_DEFAULTS): New macros.
22570         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22571         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22572         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22573         REPLACE_DUPLOCALE.
22574         * modules/duplocale: New file.
22575         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22576
22577 2009-11-22  Bruno Haible  <bruno@clisp.org>
22578
22579         * modules/locale-tests (configure.ac): Test for newlocale function.
22580         * tests/test-locale.c: When the system has extended locale functions,
22581         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22582
22583         locale: Make locale_t available when possible.
22584         * lib/locale.in.h: Include <xlocale.h> when it exists.
22585         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22586         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22587         * modules/locale (Depends-on): Add extensions.
22588         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22589         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22590
22591 2009-11-22  Bruno Haible  <bruno@clisp.org>
22592
22593         Add comments.
22594         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22595         invocation.
22596         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22597         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22598         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22599
22600 2009-11-22  Bruno Haible  <bruno@clisp.org>
22601
22602         error: account for the possibility of freopen (stdout).
22603         * lib/error.c: Include <unistd.h>.
22604         (flush_stdout): New function, extracted from error and error_at_line.
22605         Determine stdout's fd dynamically.
22606         (error, error_at_line): Invoke flush_stdout.
22607         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22608         * modules/error (Depends-on): Add unistd.
22609
22610 2009-11-22  Bruno Haible  <bruno@clisp.org>
22611
22612         diffseq: Add comment.
22613         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22614
22615 2009-11-22  Jim Meyering  <meyering@redhat.com>
22616
22617         c-stack: avoid defining an unused static function
22618         * lib/c-stack.c (find_stack_direction): Do not define this function
22619         when it will not be used.
22620
22621         diffseq: avoid spurious gcc warnings
22622         * lib/diffseq.h (IF_LINT2): Define.
22623         (compareseq): Use it to initialize two members of "part".
22624         This avoids two used-uninitialized warnings.
22625
22626 2009-11-21  Jim Meyering  <meyering@redhat.com>
22627
22628         c-stack: avoid "ignoring return value of `write'" warning
22629         * lib/c-stack.c: Include "ignore-value.h".
22630         (die): Explicitly ignore each write return value.
22631         * modules/c-stack (Depends-on): Add ignore-value.
22632
22633 2009-11-21  Bruno Haible  <bruno@clisp.org>
22634
22635         diffseq: reduce scope of variable 'best'.
22636         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22637         variable, earlier used for two different purposes.
22638
22639 2009-11-21  Jim Meyering  <meyering@redhat.com>
22640
22641         diffseq: remove useless assignment to "best"
22642         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22643         assignment.  At that point "best" is already guaranteed to be zero.
22644
22645 2009-11-20  Eric Blake  <ebb9@byu.net>
22646
22647         build: mention ftp redirector in release announcements
22648         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22649         values that used to come from cfg.mk; mention FTP redirect URL.
22650         * build-aux/announce-gen: Mention the mirror list.
22651         Suggested by Karl Berry.
22652
22653         nanosleep: improve port to mingw
22654         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22656         LIB_NANOSLEEP, but only when needed.
22657         * modules/select (Link): Document LIBSOCKET.
22658         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22659         enough.
22660
22661         nanosleep: work around cygwin bug
22662         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22663         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22664         bug.
22665         (getnow): Delete, not needed.
22666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22667         LIB_CLOCK_GETTIME.
22668         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22669         clock-time, gettime.
22670         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22671         bug.
22672         * modules/nanosleep-tests: New test.
22673         * tests/test-nanosleep.c: New file.
22674
22675         sleep: work around cygwin bug
22676         * lib/sleep.c (rpl_sleep): Work around the bug.
22677         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22678         (gl_PREREQ_SLEEP): Delete unused macro.
22679         * modules/sleep (Depends-on): Add verify.
22680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22681         * modules/unistd (Makefile.am): Substitute witness.
22682         * lib/unistd.in.h (sleep): Update prototype.
22683         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22684         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22685         * modules/sleep-tests (Depends-on): Check for alarm.
22686
22687 2009-11-20  Jim Meyering  <meyering@redhat.com>
22688
22689         maint.mk: improve sc_prohibit_magic_number_exit
22690         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22691         so it does not match uses like System.exit(1).
22692         Add comments showing how to correct all offenders.
22693
22694 2009-11-19  Eric Blake  <ebb9@byu.net>
22695
22696         xalloc-die-tests: add missing library
22697         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22698
22699         test-xvasprintf: silence compiler warnings
22700         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22701         empty string from gcc.
22702
22703 2009-11-19  Jim Meyering  <meyering@redhat.com>
22704
22705         xfreopen: new module, from coreutils
22706         * modules/xfreopen: New module.
22707         * lib/xfreopen.c: New file.
22708         * lib/xfreopen.h: New file.
22709         * MODULES.html.sh (File stream based Input/Output"): Add it.
22710
22711 2009-11-19  Eric Blake  <ebb9@byu.net>
22712
22713         manywarnings: depend on warnings
22714         * modules/manywarnings (Depends-on): Add warnings.
22715
22716         build: avoid compiler warnings
22717         * lib/select.c (rpl_select): Delete unused variable.
22718         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22719
22720 2009-11-18  Eric Blake  <ebb9@byu.net>
22721
22722         tests: avoid false negative with --with-packager
22723         * tests/test-version-etc.sh: Discard packager information.
22724         * tests/test-argp-version-etc-1.sh: Likewise.
22725         Reported by Mike Frysinger.
22726
22727         utimens: fix regression on Solaris
22728         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22729         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22730         can only change fd timestamps via futimesat.  Instead, use an
22731         additional witness macro to avoid BSD bug.
22732         Reported by Jim Meyering.
22733
22734 2009-11-17  Eric Blake  <ebb9@byu.net>
22735
22736         usleep: use it to simplify tests
22737         * modules/stat-time-tests (Depends-on): Add usleep.
22738         (configure.ac): Drop usleep check.
22739         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22740         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22741         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22742         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22743         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22744         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22745         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22746         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22747         Likewise.
22748         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22749         * tests/test-lchown.h (nap): Likewise.
22750         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22751         * tests/test-stat-time.c (nap): Likewise.
22752         * tests/test-utimens-common.h (nap): Update comments.
22753
22754         usleep: new module
22755         * modules/usleep: New file.
22756         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22757         * lib/usleep.c (usleep): Likewise.
22758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22759         * modules/unistd (Makefile.am): Substitute witnesses.
22760         * lib/unistd.in.h (usleep): Add declaration.
22761         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22762         * MODULES.html.sh (Date and time): Likewise.
22763         * modules/usleep-tests (Depends-on): New test.
22764         * tests/test-usleep.c: New file.
22765
22766         chown: work around OpenBSD bug
22767         * lib/chown.c (rpl_chown): Work around the bug.
22768         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22769         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22770         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22771         * modules/chown (Depends-on): Add stdbool.
22772         * modules/lchown (Depends-on): Likewise.
22773         * doc/posix-functions/chown.texi (chown): Document the bug.
22774         * doc/posix-functions/lchown.texi (lchown): Likewise.
22775         * tests/test-lchown.h (test_chown): Relax test.
22776
22777         mkstemp: avoid conflict with C++ keyword template
22778         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22779         * lib/mkostemp.c (mkostemp): Likewise.
22780         * lib/mkostemps.c (mkostemps): Likewise.
22781         * lib/mkstemp.c (mkstemp): Likewise.
22782         * lib/mkstemps.c (mkstemps): Likewise.
22783
22784         xalloc-die-tests: optimize
22785         * tests/test-xalloc-die.sh: Reduce number of processes.
22786
22787 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22788
22789         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22790         patch from ludo@gnu.org (Ludovic Courtès).
22791
22792 2009-11-17  Jim Meyering  <meyering@redhat.com>
22793
22794         version-etc: use proper license string
22795         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22796         * modules/version-etc-fsf: Likewise.
22797
22798 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22799
22800         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22801         printed to stdout.  Deal with EOL differences.
22802
22803 2009-11-17  Eric Blake  <ebb9@byu.net>
22804
22805         unsetenv: work around Solaris bug
22806         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22807         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22808         Reported by Jim Meyering.
22809
22810         vasnprintf: avoid compiler warnings
22811         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22812         variables.
22813         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22814
22815 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22816
22817         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22818         settings since xalloc-die is no longer the self test,
22819         xalloc-die.sh is.
22820
22821 2009-11-17  Jim Meyering  <meyering@redhat.com>
22822
22823         test-xalloc-die.sh: make the code agree with the commit log
22824         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22825         at the end, just in case you happen to have a test-xalloc-die
22826         program in some other PATH directory.
22827
22828         test-xalloc-die.sh: fix a portability bug
22829         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22830         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22831         Otherwise, argv[0] (as often seen in diagnostics) would be too
22832         system-dependent, sometimes with, and sometimes without the leading "./".
22833
22834         version-etc-fsf: relax license to LGPLv3+
22835         * modules/version-etc-fsf (License): Relax license.
22836
22837 2009-11-16  Eric Blake  <ebb9@byu.net>
22838
22839         xalloc-die-tests: avoid printing null pointer
22840         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22841         shell script.
22842         * tests/test-xalloc-die.c (program_name): Declare.
22843         * tests/test-xalloc-die.sh (tmpfiles): New file.
22844
22845         setenv, unsetenv: work around various bugs
22846         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22847         (setenv) [HAVE_SETENV]: Work around bugs.
22848         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22850         for bugs.
22851         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22852         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22854         * modules/stdlib (Makefile.am): Update substitutions.
22855         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22856         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22857         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22858         * modules/setenv-tests: New test.
22859         * modules/unsetenv-tests: Likewise.
22860         * tests/test-setenv.c: New file.
22861         * tests/test-unsetenv.c: Likewise.
22862
22863 2009-11-16  Jim Meyering  <meyering@redhat.com>
22864
22865         version-etc: relax license to LGPLv3+
22866         * modules/version-etc (License): Relax license.
22867
22868         better AC_REQUIRE expanded-before-required-warning avoidance
22869         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22870         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22871         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22872         which is no longer needed.
22873
22874 2009-11-16  Eric Blake  <ebb9@byu.net>
22875
22876         test-freading: clean up temporary file
22877         * tests/test-freading.c (main): Remove file on success, and use
22878         ASSERT more liberally.
22879         Reported by Jim Meyering.
22880
22881 2009-11-16  Jim Meyering  <meyering@redhat.com>
22882
22883         avoid new AC_REQUIRE expanded-before-required warnings
22884         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22885         merely using it.
22886         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22887         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22888
22889 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22890
22891         * tests/test-xalloc-die.c: New file.
22892         * modules/xalloc-die-tests: New file.
22893         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22894         XFAIL_TESTS so it can be appended by modules.
22895
22896 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22897
22898         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22899         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22900
22901 2009-11-14  Eric Blake  <ebb9@byu.net>
22902
22903         fnmatch: avoid compiler warning
22904         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22905         to silence compiler warning about mismatch signedness in ?:.
22906         Reported by Robert Millan.
22907
22908         intprops: add double-inclusion guard
22909         * lib/intprops.h: Allow idempotent includes.
22910         Suggested by Bruce Korb.
22911
22912         openat: detect Solaris fchownat bug
22913         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22914         penalizing glibc chownat when only lchownat is broken.
22915         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22916         trailing slash bugs.
22917         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22918         * modules/openat-tests (Files): Include more files.
22919         (Depends-on): Add mgetgroups, sleep, stat-time.
22920         (configure.ac): Add additional checks.
22921         (Makefile.am): Build new test.
22922         * tests/test-fchownat.c: New file.
22923
22924         lchown: detect Solaris and FreeBSD bug
22925         * lib/lchown.c (rpl_lchown): Work around bug.
22926         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22928         * modules/unistd (Makefile.am): Populate it.
22929         * lib/unistd.in.h (lchown): Update declaration.
22930         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22931         * modules/lchown-tests: New file.
22932         * tests/test-lchown.h (test_lchown): Likewise.
22933         * tests/test-lchown.c (main): Likewise.
22934
22935         chown: detect Solaris and FreeBSD bug
22936         * lib/chown.c (rpl_chown): Work around bug.
22937         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22938         (gl_PREREQ_CHOWN): Delete.
22939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22940         * modules/unistd (Makefile.am): Populate it.
22941         * lib/unistd.in.h (chown): Update declaration.
22942         * lib/lchown.c (chown): Update client.
22943         * modules/lchown (Depends-on): Add lstat.
22944         * doc/posix-functions/chown.texi (chown): Document the bug.
22945         * doc/posix-functions/getgroups.texi (getgroups): Document
22946         getgroups pitfall.
22947         * modules/chown-tests: New file.
22948         * tests/test-chown.h (test_chown): Likewise.
22949         * tests/test-chown.c (main): Likewise.
22950
22951 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22952
22953         gnulib-tool: correctly detect absence of m4 directories
22954         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22955
22956 2009-11-14  Jim Meyering  <meyering@redhat.com>
22957
22958         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22959         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22960
22961 2009-11-14  John W. Eaton  <jwe@gnu.org>
22962
22963         strftime.h: wrap funtion declaration in extern "C" block
22964         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22965
22966 2009-11-13  Eric Blake  <ebb9@byu.net>
22967
22968         getgroups: avoid compiler warning
22969         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22970
22971         getgroups: work around FreeBSD bug
22972         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22973         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22974         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22975         * tests/test-getgroups.c (main): Fix buffer overrun.
22976
22977         getgroups: avoid compilation failure
22978         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22979         * modules/getgroups (Depends-on): Add stdint.
22980
22981 2009-11-13  Jim Meyering  <meyering@redhat.com>
22982
22983         test-getgroups: avoid compilation failure
22984         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22985
22986 2009-11-13  Eric Blake  <ebb9@byu.net>
22987
22988         mgetgroups: new module, taken from coreutils
22989         * modules/mgetgroups: New file.
22990         * lib/mgetgroups.h: Likewise.
22991         * lib/mgetgroups.c (mgetgroups): Likewise.
22992         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22993         * MODULES.html.sh (Users and groups): Mention it.
22994
22995         getgroups: don't expose GETGROUPS_T to user
22996         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22997         an element at a time if GETGROUPS_T is wrong size.
22998         * lib/getugroups.h (getugroups): Change signature.
22999         * lib/unistd.in.h (getgroups): Likewise.
23000         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23001         signature needs fixing.
23002         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23003         AC_TYPE_GETGROUPS.
23004         * modules/group-member (Depends-on): Add getgroups.
23005         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23006         (group_member): Rely on getgroups replacement.
23007         * lib/getugroups.c (getugroups): Use gid_t.
23008         * tests/test-getgroups.c (main): Likewise.
23009         * NEWS: Mention the signature change.
23010         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23011         problem with signature.
23012         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23013         GETGROUPS_T is still useful for setgroups.
23014
23015         getgroups, getugroups: provide stubs for mingw
23016         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23017         * lib/getugroups.c (getugroups): Likewise.
23018         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23019         function.  Modernize replacement scheme.
23020         (gl_PREREQ_GETGROUPS): Delete.
23021         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23022         * modules/getgroups (configure.ac): Declare witness.
23023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23024         * modules/unistd (Depends-on): Substitute witness.
23025         * lib/unistd.in.h (getgroups): Declare replacement.
23026
23027         getgroups: avoid calling exit
23028         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23029         drop xalloc.
23030         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23031         dependencies.
23032         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23033         exiting, in the rare case of malloc failure.
23034
23035         getgroups: fix logic error
23036         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23037         has more than 20 groups.
23038         * modules/getgroups-tests: New test.
23039         * tests/test-getgroups.c: New file.
23040
23041 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23042
23043         * tests/test-base64.c: Improve.
23044
23045 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23046
23047         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23048         Blake <ebb9@byu.net>.
23049
23050 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23051
23052         * tests/test-xvasprintf.c: Add %s%s related checks.
23053
23054 2009-11-12  Eric Blake  <ebb9@byu.net>
23055
23056         version-etc: match standards.texi style
23057         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23058         and use <> only for URLs.
23059
23060 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23061
23062         fts: do not fail on a submount during traversal
23063         * lib/fts.c (fts_build): Read the stat info again after opening
23064         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23065         Original report at http://bugzilla.redhat.com/501848.
23066
23067 2009-11-12  Jim Meyering  <meyering@redhat.com>
23068
23069         bootstrap: sync from coreutils
23070         * build-aux/bootstrap (bootstrap_epilogue): New function.
23071         Use git_modules_config in one more place.  This make bootstrap's
23072         --gnulib-srcdir option more useful for testing.
23073
23074         bootstrap: generalize autoheader check
23075         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23076         AC_CONFIG_HEADERS.
23077
23078 2009-11-11  Eric Blake  <ebb9@byu.net>
23079
23080         mkfifoat: use new modules for Solaris and BSD bugs
23081         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23082         * lib/mkfifoat.c (mknodat): Split...
23083         * lib/mknodat.c (mknodat): ...into new file.
23084         * modules/mkfifoat (Files): Ship new file.
23085         (Depends-on): Add mkfifo, mknod.
23086         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23087         (Depends-on): Add symlink.
23088         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23089         redundant with test_mkfifo.h.
23090         (do_mkfifoat, do_mknodat): New helpers.
23091
23092         mknod: new module
23093         * modules/mknod: New file.
23094         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23095         * lib/mknod.c (mknod): Likewise.
23096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23097         defaults.
23098         * modules/sys_stat (Makefile.am): Substitute them.
23099         * lib/sys_stat.in.h (mknod): Declare replacement.
23100         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23101         Document it.
23102         * doc/posix-functions/mknod.texi (mknod): Likewise.
23103         * modules/mknod-tests: New test.
23104         * tests/test-mknod.c: Likewise.
23105
23106         mkfifo: new module
23107         * modules/mkfifo: New file.
23108         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23109         * lib/mkfifo.c (mkfifo): Likewise.
23110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23111         defaults.
23112         * modules/sys_stat (Makefile.am): Substitute them.
23113         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23114         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23115         Document it.
23116         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23117         * modules/mkfifo-tests: New test.
23118         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23119         from test-mkfifoat.c.
23120         * tests/test-mkfifo.c: New file.
23121
23122         readlink: detect FreeBSD bug
23123         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23124         slash on symlink.
23125         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23126         * tests/test-readlink.h (test_readlink): Enhance test.
23127
23128         symlink: detect FreeBSD bug
23129         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23130         slash on symlink.
23131         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23132         * tests/test-symlink.h (test_symlink): Enhance test.
23133
23134 2009-11-10  Eric Blake  <ebb9@byu.net>
23135
23136         link: detect FreeBSD bug
23137         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23138         symlink.
23139         * doc/posix-functions/link.texi (link): Document the bug.
23140         * tests/test-link.h (test_link): Enhance test.
23141         * tests/test-linkat.c (main): Update caller.
23142
23143         unlink, remove: detect FreeBSD bug
23144         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23145         slash on symlink.
23146         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23147         * doc/posix-functions/remove.texi (remove): Likewise.
23148         * tests/test-unlink.h (test_unlink): Enhance test.
23149         * tests/test-remove.c (main): Likewise.
23150
23151 2009-11-09  Eric Blake  <ebb9@byu.net>
23152
23153         rename: detect FreeBSD bug
23154         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23155         slash on symlink.
23156         * modules/renameat-tests (Depends-on): Add filenamecat.
23157         * tests/test-rename.h (test_rename): Allow one more errno.
23158         * tests/test-renameat.c (main): Likewise.
23159         * doc/posix-functions/rename.texi (rename): Document the bug.
23160
23161         open: detect FreeBSD bug
23162         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23163         symlink.
23164         * doc/posix-functions/open.texi (open): Document the bug.
23165         * doc/posix-functions/utimes.texi (utimes): Likewise.
23166         * tests/test-open.h (test_open): Add parameters, and test symlink
23167         handling.
23168         * tests/test-open.c (main): Adjust caller.
23169         * tests/test-fcntl-safer.c (main): Likewise.
23170         * modules/open-tests (Depends-on): Add stdbool, symlink.
23171         * modules/fcntl-safer-tests (Depends-on): Likewise.
23172         * tests/test-openat.c (main): Add test-open tests.
23173
23174         stat: detect FreeBSD bug
23175         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23176         symlink.
23177         * doc/posix-functions/stat.texi (stat): Document the bug.
23178         * tests/test-stat.h (test_stat_func): Add argument.
23179         * tests/test-stat.c (main): Adjust caller.
23180         * tests/test-fstatat.c (main): Likewise.
23181         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23182         Reported by Jim Meyering.
23183
23184 2009-11-09  James Youngman  <jay@gnu.org>
23185
23186         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23187         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23188
23189 2009-11-08  Jim Meyering  <meyering@redhat.com>
23190
23191         utimens: remove invalid futimesat call
23192         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23193         It used the file descriptor of the target file as the DIR_FD
23194         parameter and NULL as the file name.  That caused failure with
23195         errno == EFAULT on FreeBSD-8.0-rc2
23196
23197 2009-11-07  Eric Blake  <ebb9@byu.net>
23198
23199         fflush, freadseek: use fseeko, not fseek
23200         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23201         (clear_ungetc_buffer): Avoid potential problems on large files.
23202         * lib/freadseek.c (freadseek): Likewise.
23203         * modules/freadseek (Depends-on): Add fseeko.
23204         * modules/fseek (configure.ac): Set a witness.
23205         * tests/test-fflush.c (main): Use fseeko.
23206         * tests/test-fpurge.c (fseek): Disable link warning.
23207         * tests/test-freadable.c (fseek): Likewise.
23208         * tests/test-freading.c (fseek): Likewise.
23209         * tests/test-fseeko.c (fseek): Likewise.
23210         * tests/test-ftell.c (fseek): Likewise.
23211         * tests/test-ftello.c (fseek): Likewise.
23212         * tests/test-fwritable.c (fseek): Likewise.
23213         * tests/test-fwriting.c (fseek): Likewise.
23214
23215 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23216
23217         * modules/memchr (Depends-on): Drop getpagesize dependency.
23218
23219 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23220
23221         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23222         Reported by Ludovic Courtès.
23223         * build-aux/pmccabe2html: Improve example usage.
23224         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23225
23226 2009-11-06  Jim Meyering  <meyering@redhat.com>
23227
23228         do-release-commit-and-tag: New module.
23229         Automate the release-commit and tag process.
23230         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23231         * modules/do-release-commit-and-tag: New file.
23232         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23233
23234 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23235
23236         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23237         because test-select.c uses inet_pton.
23238
23239 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23240
23241         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23242         GETADDRINFO_LIB.  Bump serial number.
23243         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23244         Suggested by Eric Blake <ebb9@byu.net>.
23245
23246 2009-11-05  Eric Blake  <ebb9@byu.net>
23247
23248         strtod: detect darwin bug
23249         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23250         Reported by Leo Davis.
23251
23252         freopen-safer: new module
23253         * modules/freopen-safer: New module.
23254         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23255         * lib/freopen-safer.c (freopen_safer): New file.
23256         * lib/stdio-safer.h (freopen_safer): New declaration.
23257         * lib/stdio--.h (freopen): New override.
23258         * MODULES.html.sh (File stream based Input/Output): Mention it.
23259         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23260         freopen-safer module.
23261         * doc/posix-functions/stderr.texi (stderr): Likewise.
23262         * doc/posix-functions/stdin.texi (stdin): Likewise.
23263         * doc/posix-functions/stdout.texi (stdout): Likewise.
23264         * modules/freopen-safer-tests: New test.
23265         * tests/test-reopen-safer.c: New file.
23266
23267 2009-11-05  Jim Meyering  <meyering@redhat.com>
23268
23269         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23270         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23271
23272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23273
23274         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23275
23276 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23277
23278         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23279
23280 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23281
23282         Fix link error.
23283         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23284         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23285
23286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23287
23288         * tests/test-func.c: Also test value of __func__.
23289
23290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23291
23292         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23293         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23294
23295 2009-11-05  Bruno Haible  <bruno@clisp.org>
23296
23297         Fix link error.
23298         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23299         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23300         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23301
23302 2009-11-05  Bruno Haible  <bruno@clisp.org>
23303
23304         Tests for module 'inet_pton'.
23305         * modules/inet_pton-tests: New file.
23306         * tests/test-inet_pton.c: New file.
23307
23308 2009-11-05  Bruno Haible  <bruno@clisp.org>
23309
23310         Tests for module 'inet_ntop'.
23311         * modules/inet_ntop-tests: New file.
23312         * tests/test-inet_ntop.c: New file.
23313
23314 2009-11-04  Eric Blake  <ebb9@byu.net>
23315
23316         stdlib-safer: wrap all mkstemp variants
23317         * modules/mkostemp (configure.ac): Set witness.
23318         * modules/mkostemps (configure.ac): Likewise.
23319         * modules/mkstemps (configure.ac): Likewise.
23320         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23321         (mkstemps_safer): Wrap more functions.
23322         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23323         wrapping.
23324         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23325         (mkstemps_safer): Implement the wrappers.
23326
23327         mkstemps, mkostemps: new modules
23328         * modules/mkostemps: New module.
23329         * modules/mkstemps: Likewise.
23330         * lib/mkostemps.c (mkostemps): New file.
23331         * lib/mkstemps.c (mkstemps): Likewise.
23332         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23333         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23335         * modules/stdlib (Makefile.am): Substitute them.
23336         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23337         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23338         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23339         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23340         * MODULES.html.sh (File system functions): Mention them.
23341
23342         tempname: resync from glibc
23343         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23344         same values for __GT_FILE as glibc.  Abort even when assertions
23345         are disabled.
23346         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23347         match its value otherwise.  Allow idempotent inclusion.
23348         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23349         * lib/mkostemp.c (mkostemp): Likewise.
23350         * lib/mkstemp.c (mkstemp): Likewise.
23351         * lib/tmpfile.c (tmpfile): Likewise.
23352         * NEWS: Document this.
23353
23354         utimens: fix use of futimens on older Linux
23355         * lib/utimens.c (fdutimens): Use updated, rather than original,
23356         timespec to avoid bug in older Linux kernel.
23357         Reported by Simon Josefsson.
23358
23359 2009-11-04  Bruno Haible  <bruno@clisp.org>
23360
23361         Make num_processors more flexible and consistent.
23362         * lib/nproc.h (enum nproc_query): New type.
23363         (num_processors): Add a 'query' argument.
23364         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23365         (num_processors): Add a 'query' argument. Test the value of the
23366         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23367         mingw, count the number of CPUs available for the current process.
23368         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23369         Check for sched_getaffinity and sched_getaffinity_np.
23370         * modules/nproc (Depends-on): Add c-ctype, extensions.
23371         * NEWS: Mention the change.
23372
23373 2009-11-03  Bruno Haible  <bruno@clisp.org>
23374
23375         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23376
23377 2009-11-03  Jim Meyering  <meyering@redhat.com>
23378
23379         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23380         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23381         if it is defined.
23382
23383 2009-11-02  Eric Blake  <ebb9@byu.net>
23384
23385         mktime, timegm: share common declaration
23386         * lib/mktime-internal.h: New file.
23387         * lib/mktime.c: Use it rather than open-coding a declaration.
23388         * lib/timegm.c: Likewise.
23389         * modules/mktime (Files): Ship it.
23390         * modules/timegm (Files): Likewise.
23391         Suggested by Bruno Haible.
23392
23393         test-update-copyright: update test to match script changes
23394         * tests/test-update-copyright.sh: Avoid hard-coding perl
23395         location.  Don't update *.bak created by earlier runs.
23396
23397 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23398             Simon Josefsson  <simon@josefsson.org>
23399             Bruno Haible  <bruno@clisp.org>
23400
23401         Fix link error on Solaris 8.
23402         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23403         also in libnsl. Define also INET_PTON_LIB.
23404         * modules/inet_pton (Link): New section.
23405
23406 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23407             Bruno Haible  <bruno@clisp.org>
23408
23409         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23410         * modules/inet_ntop (Link): New section.
23411         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23412
23413 2009-11-02  Eric Blake  <ebb9@byu.net>
23414
23415         maint: avoid compiler warnings in m4 macros
23416         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23417         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23418
23419 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23420
23421         * m4/pmccabe2html.m4: Remove file.
23422         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23423         function.  Change maintainer.
23424         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23425         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23426         Courtès).
23427
23428 2009-10-31  Eric Blake  <ebb9@byu.net>
23429
23430         fseeko: fix m4 regression
23431         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23432         regression from 2009-10-27.
23433         Reported by Ralf Wildenhues.
23434
23435 2009-10-31  Jim Meyering  <meyering@redhat.com>
23436
23437         inttostr: aesthetics and improved (compile-time) safety
23438         Define inttype_is_signed rather than inttype_is_unsigned,
23439         since the sole use is via "#if inttype_is_signed".
23440         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23441         inttype_is_unsigned.
23442         * lib/offtostr.c (inttype_is_signed): Likewise.
23443         * lib/uinttostr.c (inttype_is_signed): Likewise.
23444         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23445         * lib/inttostr.c (inttostr): Use verify to cross-check the
23446         inttype_is_signed value and the signedness of the actual type.
23447         * modules/inttostr (Depends-on): Add verify.
23448
23449 2009-10-30  Eric Blake  <ebb9@byu.net>
23450
23451         build: avoid compiler warnings
23452         * lib/fchmodat.c (lchmod): Mark unused variables.
23453         * lib/getopt.c (_getopt_initialize): Likewise.
23454         * lib/mktime.c (__mktime_internal): Provide prototype.
23455         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23456         older gcc that do not understand #pragma GCC diagnostic.
23457         * lib/uinttostr.c (inttype_is_unsigned): Define.
23458         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23459
23460 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23461
23462         stat: fix compilation on AIX
23463         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23464         only see struct stat64.
23465
23466 2009-10-30  Eric Blake  <ebb9@byu.net>
23467
23468         exclude: make more robust
23469         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23470         rather than masking a coding bug.
23471         Suggested by Bruno Haible.
23472
23473 2009-10-30  Jim Meyering  <meyering@redhat.com>
23474
23475         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23476         Rather than putting #!/usr/bin/perl on the first line,
23477         start with a variant of what's recommended by "man perlrun" that
23478         invokes the first "perl" program from your shell's search path.
23479         * build-aux/gitlog-to-changelog: Replace #!... as above.
23480         Add a "Local Variables" perl mode setting.
23481         Prompted by a patch from Ludovic Courtès.
23482         Improved by Eric Blake.
23483         * build-aux/useless-if-before-free: Likewise.
23484         * build-aux/announce-gen: Likewise.
23485         * build-aux/update-copyright: Likewise.
23486
23487 2009-10-29  Eric Blake  <ebb9@byu.net>
23488
23489         filenamecat-lgpl: adjust clients
23490         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23491         filenamecat.
23492         * modules/renameat (Depends-on): Likewise.
23493
23494         filenamecat: split into filenamecat-lgpl
23495         * modules/filenamecat-lgpl: New module.
23496         * modules/filenamecat (Files): Move library-safe files into
23497         filenamecat-lgpl.
23498         (Depends-on): Add filenamecat-lgpl.
23499         (configure.ac): Declare witness.
23500         * lib/filenamecat.h (file_name_concat): Only declare when using
23501         GPL module.
23502         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23503         Move...
23504         * lib/filenamecat-lgpl.c: ...into new file.
23505         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23506         (gl_FILE_NAME_CONCAT): Use it.
23507         * MODULES.html.sh (File system functions): Mention new module.
23508
23509         argp: avoid memory leak
23510         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23511         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23512         base_name, since the latter malloc()s and can call exit().
23513         Leak introduced 2006-07-03.
23514
23515         dirname-lgpl: adjust clients that don't need full dirname
23516         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23517         * modules/filenamecat (Depends-on): Likewise.
23518         * modules/linkat (Depends-on): Likewise.
23519         * modules/mkancesdirs (Depends-on): Likewise.
23520         * modules/mkdir (Depends-on): Likewise.
23521         * modules/openat (Depends-on): Likewise.
23522         * modules/savewd (Depends-on): Likewise.
23523         * modules/rename (Depends-on): Likewise.
23524         (License): Relax license.
23525         * modules/mkdir-tests (Depends-on): Drop progname.
23526         (Makefile.am): Delete unneeded LDADD.
23527         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23528
23529         dirname: split into dirname-lgpl
23530         * modules/dirname-lgpl: New module.
23531         * modules/dirname (Files): Move library-safe files into
23532         dirname-lgpl.
23533         (Depends-on): Add dirname-lgpl.
23534         (configure.ac): Declare witness.
23535         * modules/double-slash-root (License): Relax license.
23536         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23537         module.
23538         * lib/dirname.c (dir_len, mdir_name): Move...
23539         * lib/dirname-lgpl.c: ...into new file.
23540         * lib/basename.c (last_component, base_len): Move...
23541         * lib/basename-lgpl.c: ...into new file.
23542         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23543         (gl_DIRNAME): Use it.
23544         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23545         Mention new module.
23546         * modules/dirname-tests (Depends-on): Add progname.
23547         * tests/test-dirname.c (program_name): Delete.
23548
23549         mkdir: make safe for libraries
23550         * modules/mkdir (Depends-on): Drop xalloc.
23551         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23552         exit.
23553
23554         tests: avoid some compiler warnings
23555         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23556         literals.
23557         * tests/test-memchr.c (main): Avoid type mismatch.
23558         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23559         * tests/test-base64.c (main): Likewise.
23560         * tests/test-getdelim.c (main): Likewise.
23561         * tests/test-gethostname.c (main): Likewise.
23562         * tests/test-getline.c (main): Likewise.
23563         * tests/test-netinet_in.c (main): Likewise.
23564         * tests/test-select.c (open_server_socket, main): Likewise.
23565         * tests/test-select-stdin.c (main): Likewise.
23566         * tests/test-sockets.c (main): Likewise.
23567         * tests/test-strsignal.c (main): Likewise.
23568         * tests/test-sys_select.c (main): Likewise.
23569         * tests/test-sys_socket.c (main): Likewise.
23570         * tests/test-u64.c (main): Likewise.
23571         * tests/test-xfprintf-posix.c (main): Likewise.
23572         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23573
23574         sockets: avoid compiler warning
23575         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23576
23577         maint: detect usage(1) and other suspicious exits
23578         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23579
23580 2009-10-29  Jim Meyering  <meyering@redhat.com>
23581
23582         timespec: long-to-int truncation could make timespec_cmp malfunction
23583         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23584         a multiple of 2^32 nanoseconds as no difference.
23585
23586 2009-10-28  Jim Meyering  <meyering@redhat.com>
23587
23588         fprintftime: wrap macro code argument in "do {...} while(0)"
23589         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23590         cpy macro must be a statement that can be followed by a semicolon.
23591         Now that the else clause contains a comment and is hence longer
23592         than one line, I require curly braces.  That in turn requires
23593         that we wrap this code block in the standard do...while(0).
23594
23595         fprintftime: remove stray semicolon from previous change
23596         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23597
23598         fprintftime: avoid a warning about ignored fwrite return value
23599         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23600         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23601         that is unsafe.
23602         * modules/fprintftime (Depends-on): Add ignore-value.
23603
23604         exclude: avoid an unwarranted warning
23605         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23606
23607 2009-10-27  Eric Blake  <ebb9@byu.net>
23608
23609         fseek: avoid compilation failure when fflush is replaced
23610         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23611         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23612         module is in use.
23613         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23614         module is not in use; since REPLACE_FSEEK worked otherwise.
23615         (GNULIB_FTELLO): Likewise for ftell.
23616         Reported by Ian Beckwith and others.
23617
23618 2009-10-27  Bruno Haible  <bruno@clisp.org>
23619
23620         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23621         Reported by Jim Meyering.
23622
23623 2009-10-27  Jim Meyering  <jim@meyering.net>
23624             Bruno Haible  <bruno@clisp.org>
23625
23626         Avoid warning despite dropping the return value of fwrite.
23627         * lib/unicodeio.c: Include ignore-value.h.
23628         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23629         * modules/unicodeio (Depends-on): Add ignore-value.
23630
23631 2009-10-26  Eric Blake  <ebb9@byu.net>
23632
23633         areadlinkat: fix fallback path
23634         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23635         pointer and zero.
23636
23637 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23638
23639         Use a better IO block size for modern systems
23640         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23641         * lib/md2.c: Likewise.
23642         * lib/md4.c: Likewise.
23643         * lib/md5.c: Likewise.
23644         * lib/sha1.c: Likewise.
23645         * lib/sha256.c: Likewise.
23646         * lib/sha512.c: Likewise.
23647
23648 2009-10-22  Eric Blake  <ebb9@byu.net>
23649
23650         tests: avoid several compiler warnings
23651         * tests/test-getcwd.c (main): Avoid buffer underflow.
23652         * tests/test-getdate.c (main): String literals are not safe with
23653         putenv, so use setenv.  Declare unused argument.
23654         * modules/getdate-tests (Depends-on): Add setenv.
23655         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23656         problems with string literals in char *.
23657         * tests/test-hash.c (main): Avoid shadowing declaration.
23658         (insert_new): Treat string literals as char const *.
23659         * tests/test-getopt.h (test_getopt): Likewise.
23660         (getopt_loop): Alter types to minimize casting elsewhere.
23661         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23662         (test_getopt_long_posix): Likewise.
23663         (do_getopt_long): Add wrapper to minimize casting.
23664         * tests/test-atexit.c (clear_temp_file): Use void.
23665         * tests/test-areadlink-with-size.c (main): Declare unused
23666         arguments.
23667         * tests/test-areadlink.c (main): Likewise.
23668         * tests/test-areadlinkat-with-size.c (main): Likewise.
23669         * tests/test-areadlinkat.c (main): Likewise.
23670         * tests/test-canonicalize-lgpl.c (main): Likewise.
23671         * tests/test-canonicalize.c (main): Likewise.
23672         * tests/test-dirent-safer.c (main): Likewise.
23673         * tests/test-dirname.c (main): Likewise.
23674         * tests/test-dup2.c (main): Likewise.
23675         * tests/test-fchdir.c (main): Likewise.
23676         * tests/test-fcntl-h.c (main): Likewise.
23677         * tests/test-fcntl-safer.c (main): Likewise.
23678         * tests/test-fdopendir.c (main): Likewise.
23679         * tests/test-fdutimensat.c (main): Likewise.
23680         * tests/test-fflush.c (main): Likewise.
23681         * tests/test-filenamecat.c (main): Likewise.
23682         * tests/test-filevercmp.c (main): Likewise.
23683         * tests/test-fopen-safer.c (main): Likewise.
23684         * tests/test-fopen.c (main): Likewise.
23685         * tests/test-fpending.c (main): Likewise.
23686         * tests/test-fpurge.c (main): Likewise.
23687         * tests/test-freading.c (main): Likewise.
23688         * tests/test-fstatat.c (main): Likewise.
23689         * tests/test-fsync.c (main): Likewise.
23690         * tests/test-futimens.c (main): Likewise.
23691         * tests/test-getndelim2.c (main): Likewise.
23692         * tests/test-gettimeofday.c (main): Likewise.
23693         * tests/test-getopt.c (main): Likewise.
23694         * tests/test-i-ring.c (main): Likewise.
23695         * tests/test-inttypes.c (main): Likewise.
23696         * tests/test-link.c (main): Likewise.
23697         * tests/test-lstat.c (main): Likewise.
23698         * tests/test-math.c (main): Likewise.
23699         * tests/test-md5.c (main): Likewise.
23700         * tests/test-memchr2.c (main): Likewise.
23701         * tests/test-memrchr.c (main): Likewise.
23702         * tests/test-mkdir.c (main): Likewise.
23703         * tests/test-mkdirat.c (main): Likewise.
23704         * tests/test-mkfifoat.c (main): Likewise.
23705         * tests/test-open.c (main): Likewise.
23706         * tests/test-openat-safer.c (main): Likewise.
23707         * tests/test-openat.c (main): Likewise.
23708         * tests/test-quotearg.c (main): Likewise.
23709         * tests/test-rawmemchr.c (main): Likewise.
23710         * tests/test-readlink.c (main): Likewise.
23711         * tests/test-remove.c (main): Likewise.
23712         * tests/test-rename.c (main): Likewise.
23713         * tests/test-renameat.c (main): Likewise.
23714         * tests/test-rmdir.c (main): Likewise.
23715         * tests/test-sha1.c (main): Likewise.
23716         * tests/test-signal.c (main): Likewise.
23717         * tests/test-sigaction.c (main): Likewise.
23718         * tests/test-stat.c (main): Likewise.
23719         * tests/test-stat-time.c (main): Likewise.
23720         * tests/test-stddef.c (main): Likewise.
23721         * tests/test-stdint.c (main): Likewise.
23722         * tests/test-stdio.c (main): Likewise.
23723         * tests/test-stdlib.c (main): Likewise.
23724         * tests/test-strchrnul.c (main): Likewise.
23725         * tests/test-strerror.c (main): Likewise.
23726         * tests/test-string.c (main): Likewise.
23727         * tests/test-strtod.c (main): Likewise.
23728         * tests/test-strverscmp.c (main): Likewise.
23729         * tests/test-symlink.c (main): Likewise.
23730         * tests/test-symlinkat.c (main): Likewise.
23731         * tests/test-sys_stat.c (main): Likewise.
23732         * tests/test-sys_time.c (main): Likewise.
23733         * tests/test-time.c (main): Likewise.
23734         * tests/test-unistd.c (main): Likewise.
23735         * tests/test-unlink.c (main): Likewise.
23736         * tests/test-unlinkat.c (main): Likewise.
23737         * tests/test-utimens.c (main): Likewise.
23738         * tests/test-utimensat.c (main): Likewise.
23739         * tests/test-version-etc.c (main): Likewise.
23740         * tests/test-wchar.c (main): Likewise.
23741         * tests/test-wctype.c (main): Likewise.
23742         * tests/test-xprintf-posix.c (main): Likewise.
23743         * tests/test-posixtm.c (main): Likewise.
23744         (STREQ): Delete unused macro.
23745         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23746         shadowed variables.
23747         * tests/test-memchr.c (main): Likewise.
23748
23749 2009-10-21  Eric Blake  <ebb9@byu.net>
23750
23751         areadlinkat: avoid failure on older glibc
23752         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23753         rather than mis-comparing 0 against FUNC_RESULT of char*.
23754
23755 2009-10-21  Bruno Haible  <bruno@clisp.org>
23756
23757         * modules/stpncpy (License): Relicense under LGPLv2+.
23758         Reported by David Lutterkort <lutter@redhat.com>.
23759
23760 2009-10-20  Eric Blake  <ebb9@byu.net>
23761
23762         utimensat: work around Solaris 9 bug
23763         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23764         has trailing slash bugs.
23765         * tests/test-lutimens.h (test_lutimens): Enhance test.
23766         * tests/test-utimens.h (test_utimens): Likewise.
23767         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23768         * doc/posix-functions/utimes.texi (utimes): Likewise.
23769         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23770         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23771         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23772         * doc/posix-functions/futimens.texi (futimens): Likewise.
23773
23774         fdutimensat: new module
23775         * modules/fdutimensat: New file.
23776         * lib/fdutimensat.c (fdutimensat): Likewise.
23777         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23778         * MODULES.html.sh (File system functions): Mention module.
23779         * modules/fdutimensat-tests: New test.
23780         * tests/test-fdutimensat.c: Likewise.
23781
23782         doc: regenerate INSTALL
23783         * doc/INSTALL: Reflect recent autoconf update.
23784         * doc/INSTALL.ISO: Likewise.
23785         * doc/INSTALL.UTF-8: Likewise.
23786
23787 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23788
23789         acl: warn if ACL support is not detected
23790         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23791
23792 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23793
23794         * lib/nproc.h: Add extern "C" block for C++.
23795
23796 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23797             Bruno Haible  <bruno@clisp.org>
23798
23799         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23800         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23801         * doc/posix-functions/isalpha.texi: Likewise.
23802         * doc/posix-functions/isblank.texi: Likewise.
23803         * doc/posix-functions/iscntrl.texi: Likewise.
23804         * doc/posix-functions/isdigit.texi: Likewise.
23805         * doc/posix-functions/isgraph.texi: Likewise.
23806         * doc/posix-functions/islower.texi: Likewise.
23807         * doc/posix-functions/isprint.texi: Likewise.
23808         * doc/posix-functions/ispunct.texi: Likewise.
23809         * doc/posix-functions/isspace.texi: Likewise.
23810         * doc/posix-functions/isupper.texi: Likewise.
23811         * doc/posix-functions/isxdigit.texi: Likewise.
23812
23813 2009-10-18  Bruno Haible  <bruno@clisp.org>
23814
23815         Tests for module 'isblank'.
23816         * modules/isblank-tests: New file.
23817         * tests/test-isblank.c: New file.
23818
23819         New module 'isblank'.
23820         * lib/isblank.c: New file.
23821         * m4/isblank.m4: New file.
23822         * modules/isblank: New file.
23823         * doc/posix-functions/isblank.texi: Mention the new module.
23824
23825 2009-10-18  Bruno Haible  <bruno@clisp.org>
23826
23827         New module 'ctype'.
23828         * lib/ctype.in.h: New file.
23829         * m4/ctype.m4: New file.
23830         * modules/ctype: New file.
23831         * doc/posix-headers/ctype.texi: Mention the new module.
23832
23833 2009-10-18  Jim Meyering  <meyering@redhat.com>
23834
23835         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23836         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23837         right after its initialization, rather than farther down.
23838         Keeping these in close proximity makes it easier to ensure
23839         that each such variable is initialized.  E.g.,
23840
23841             LIB_CLOCK_GETTIME=
23842             AC_SUBST([LIB_CLOCK_GETTIME])
23843
23844         This change also increments these serial numbers.
23845         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23846         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23848
23849 2009-10-18  Bruno Haible  <bruno@clisp.org>
23850
23851         Don't let environment variables perturb build.
23852         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23853         (gl_PREREQ_GETHRXTIME): ... not here.
23854
23855 2009-10-18  Bruno Haible  <bruno@clisp.org>
23856
23857         Avoid symlink attack in localcharset module.
23858         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23859         (O_NOFOLLOW): Define fallback.
23860         (get_charset_aliases): Don't open the file if it is a symbolic link.
23861         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23862         gl_FCNTL_H.
23863         (gl_FCNTL_H): Require it.
23864         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23865         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23866         Reported by Fergal Glynn <fglynn@veracode.com>.
23867
23868 2009-10-18  Bruno Haible  <bruno@clisp.org>
23869
23870         Implement nproc for mingw.
23871         * lib/nproc.c: Include <windows.h>
23872         (num_processors): On native Windows platforms, try GetSystemInfo.
23873
23874 2009-10-18  Bruno Haible  <bruno@clisp.org>
23875
23876         Implement nproc for IRIX.
23877         * lib/nproc.c: Include <sys/sysmp.h>.
23878         (num_processors): On IRIX systems, try sysmp.
23879         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23880
23881 2009-10-18  Bruno Haible  <bruno@clisp.org>
23882
23883         Implement nproc for HP-UX.
23884         * lib/nproc.c: Include <sys/pstat.h>
23885         (num_processors): On HP-UX systems, try pstat_getdynamic.
23886         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23887         pstat_getdynamic.
23888
23889 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23890             Bruno Haible  <bruno@clisp.org>
23891
23892         Implement nproc for NetBSD, OpenBSD.
23893         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23894         (ARRAY_SIZE): New macro.
23895         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23896         * m4/nproc.m4: New file.
23897         * modules/nproc (Files): Add m4/nproc.m4.
23898         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23899         (Makefile.am): Instead, augment lib_SOURCES.
23900
23901 2009-10-18  Bruno Haible  <bruno@clisp.org>
23902
23903         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23904         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23905         sys/param.h.
23906
23907 2009-10-16  Eric Blake  <ebb9@byu.net>
23908
23909         utimensat: new module
23910         * modules/utimensat: New file.
23911         * lib/utimensat.c (utimensat): Likewise.
23912         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23913         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23914         so we can work around Linux bugs.
23915         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23916         * modules/sys_stat (Makefile.am): Substitute them.
23917         * lib/sys_stat.in.h (utimensat): Declare it.
23918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23919         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23920         * modules/utimensat-tests: New test.
23921         * tests/test-utimensat.c: Likewise.
23922
23923         utimens: let lutimens work on non-symlinks
23924         * lib/utimens.c (lutimens): Fall back to utimens rather than
23925         failing with ENOSYS, when file is not a symlink.
23926         (utimens): Reduce redirection.
23927         * tests/test-lutimens.h (test_lutimens): Update test to cover
23928         non-symlinks.
23929         * tests/test-utimens.h (test_utimens): Update test to cover
23930         symlinks.
23931         * tests/test-utimens.c (main): Update caller.
23932
23933         utimens: cache whether utimensat syscall works
23934         * lib/utimens.c (utimensat_works_really): New cache variable.
23935         (fdutimens, lutimens): Use it to avoid failing syscall.
23936
23937         test-stat-time, test-utimens: improve portability
23938         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23939         ext4 on alpha, and for cygwin.
23940         * tests/test-utimens-common.h: New file.
23941         (nap): Factor delays into single function.
23942         * tests/test-lutimens.h (test_lutimens): Use new header.
23943         * tests/test-futimens.h (test_futimens): Likewise.
23944         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23945         timestamps to occur from same machine, as was done previously for
23946         test_utimens.
23947         * modules/utimens-tests (Files): Ship new file.
23948         * modules/futimens-tests (Files): Likewise.
23949         Reported in part by Jim Meyering.
23950
23951         sys_stat: sort replacement declarations
23952         * lib/sys_stat.in.h: Sort declarations.
23953         * lib/futimens.c (futimens): Fix typo.
23954
23955 2009-10-15  Jim Meyering  <meyering@redhat.com>
23956
23957         don't let environment settings perturb build
23958         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23959         could cause a configure-time and/or build-time malfunction.
23960         Typically, a configure-time function-in-library test is performed
23961         via code like this:
23962
23963           LIB_VAR=
23964           AC_SUBST([LIB_VAR])
23965           prefix_saved_LIBS=$LIBS
23966             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23967                        [test "$ac_cv_search_FUNC" = "none required" ||
23968                         LIB_VAR=$ac_cv_search_FUNC])
23969           LIBS=$prefix_saved_LIBS
23970
23971         However, in each of the files affected by this change, the LIB_VAR=
23972         initialization was omitted.  Thus, when set in the environment, its
23973         value would propagate into generated Makefiles when FUNC is not found
23974         in LIB_NAME.
23975         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23976         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23978
23979 2009-10-14  Eric Blake  <ebb9@byu.net>
23980
23981         fchdir: avoid infinite recursion in mingw
23982         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23983         recursing.
23984
23985         test-stat-time: port to mingw
23986         * tests/test-stat-time.c (force_unlink): Return a value.
23987         (test_ctime) [W32]: Fix compilation error.
23988         (nap): Don't call usleep with too large an argument.  Use
23989         force_unlink.
23990         * doc/pastposix-functions/usleep.texi (usleep): Document the
23991         portability issue.
23992
23993 2009-10-13  Jim Meyering  <meyering@redhat.com>
23994
23995         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23996         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23997         * modules/pipe-filter-ii: Likewise.
23998         * modules/sys_socket-tests: Likewise.
23999         * modules/tsearch-tests: Likewise.
24000         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24001         (check): Depend on it.
24002
24003 2009-10-12  Eric Blake  <ebb9@byu.net>
24004
24005         utimens-tests: port to NFS file systems
24006         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24007         comparisons to avoid spurious failures from timestamp drift
24008         between NFS machines.
24009
24010 2009-10-12  Eric Blake  <ebb9@byu.net>
24011
24012         stat-time-tests: minor cleanups
24013         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24014         * tests/test-stat-time.c (nap): Separate assignment from call.
24015         Suggested by Paolo Bonzini and Bruno Haible.
24016
24017         sys_stat: guarantee struct timespec
24018         * lib/sys_stat.in.h (includes): Always include <time.h>
24019         * modules/sys_stat (Depends-on): Add time.
24020         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24021         mode_t permission values.
24022         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24023         get at subsecond timestamps.
24024
24025 2009-10-10  Eric Blake  <ebb9@byu.net>
24026
24027         futimens: new module
24028         * modules/futimens: New file.
24029         * lib/futimens.c (futimens): Likewise.
24030         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24031         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24032         we can work around Linux bugs.
24033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24034         * modules/sys_stat (Makefile.am): Substitute them.
24035         * lib/sys_stat.in.h (futimens): Declare it.
24036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24037         * doc/posix-functions/futimens.texi (futimens): Likewise.
24038         * modules/futimens-tests: New test.
24039         * tests/test-futimens.c: Likewise.
24040
24041         utimens: introduce fdutimens
24042         * lib/utimens.h (fdutimens): New prototype.
24043         * lib/utimens.c (gl_futimens): Move guts...
24044         (fdutimens): ...to new interface.
24045         * tests/test-utimens.c (do_fdutimens): Use it.
24046
24047         utimens: add UTIME_NOW and UTIME_OMIT support
24048         * lib/utimens.c (validate_timespec, update_timespec): New helper
24049         functions.
24050         (gl_futimens, lutimens): Use them.
24051         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24052         stdbool, sys_stat.
24053         (Link): Mention resulting library dependency.
24054         * modules/utimecmp (Link): Likewise.
24055         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24056         (Makefile.am): Pick up library dependency.
24057         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24058         definition.
24059         * tests/test-sys_stat.c: Test the definitions.
24060         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24061         * NEWS: Document library dependency.
24062
24063         utimecmp: support symlink timestamps
24064         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24065         hashing when possible.  Use pathconf when available.
24066         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24067         * modules/utimecmp (Depends-on): Add lstat.
24068
24069         utimens: add lutimens interface
24070         * lib/utimens.c (lutimens): New function.
24071         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24072         * lib/utimens.h (lutimens): Declare new interface.
24073         * tests/test-utimens.c (main): Enhance test.
24074         * tests/test-lutimens.h (test_lutimens): New file.
24075         * modules/utimens-tests (Files): Distribute it.
24076         (Depends-on): Add symlink.
24077         (configure.ac): Check for usleep.
24078
24079         utimens: validate futimens usage
24080         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24081         fewer syscalls on failure later on.  Avoid compiler warning on
24082         mingw.
24083         * modules/utimens (Depends-on): Add dup2.
24084
24085         utimens: add test
24086         * modules/utimens-tests: New test.
24087         * tests/test-utimens.h: New file.
24088         * tests/test-futimens.h: Likewise.
24089         * tests/test-utimens.c: Likewise.
24090
24091         doc: mention timestamp portability issues
24092         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24093         instead.
24094         * doc/posix-functions/utime.texi (utime): Likewise.
24095         * doc/posix-functions/utimes.texi (utimes): Likewise.
24096         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24097         instead.
24098         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24099         module.
24100         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24101         Mention weakness with symlink timestamps.
24102         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24103         to utimensat/futimens instead.
24104         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24105
24106         test-dup2: enhance test
24107         * tests/test-dup2.c (main): Also check AT_FDCWD.
24108
24109         test-stat-time: avoid more spurious failures
24110         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24111         xfs; and avoid race if the two timestamps cross quantization edge.
24112
24113         relocatable: prefer 'file system' over 'filesystem'
24114         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24115         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24116         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24117         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24118         * lib/relocatable.c (compute_curr_prefix): Likewise.
24119
24120 2009-10-10  Jim Meyering  <meyering@redhat.com>
24121
24122         stat-time-tests: check for the usleep function
24123         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24124
24125 2009-10-10  Bruno Haible  <bruno@clisp.org>
24126
24127         * modules/xnanosleep: Put the Link section after the Include section.
24128
24129 2009-10-09  Eric Blake  <ebb9@byu.net>
24130
24131         dup2: work around FreeBSD 6.1 bug
24132         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24133         * doc/posix-functions/dup2.texi (dup2): Document it.
24134         Reported by Nelson H. F. Beebe and Jim Meyering.
24135
24136         test-stat-time: port to buggy NFS clients
24137         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24138         (test_ctime): Also skip test if mtime and ctime are skewed.
24139
24140         maint: prefer 'file system' over 'filesystem'
24141         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24142         * doc/posix-functions/lstat.texi (lstat): Likewise.
24143         * lib/file-has-acl.c (file_has_acl): Likewise.
24144         * lib/fwriteerror.c [TEST]: Likewise.
24145         * tests/test-areadlink.h (test_areadlink): Likewise.
24146         * tests/test-areadlinkat-with-size.c (main): Likewise.
24147         * tests/test-areadlinkat.c (main): Likewise.
24148         * tests/test-canonicalize-lgpl.c (main): Likewise.
24149         * tests/test-canonicalize.c (main): Likewise.
24150         * tests/test-fstatat.c (main): Likewise.
24151         * tests/test-linkat.c (main): Likewise.
24152         * tests/test-lstat.h (test_lstat_func): Likewise.
24153         * tests/test-mkdir.h (test_mkdir): Likewise.
24154         * tests/test-readlink.h (test_readlink): Likewise.
24155         * tests/test-remove.c (main): Likewise.
24156         * tests/test-rename.h (test_rename): Likewise.
24157         * tests/test-renameat.c (main): Likewise.
24158         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24159         * tests/test-symlink.h (test_symlink): Likewise.
24160         * tests/test-symlinkat.c (main): Likewise.
24161         * tests/test-unlink.h (test_unlink_func): Likewise.
24162         * tests/test-unlinkat.c (main): Likewise.
24163
24164         maint: make realtime library usage explicit
24165         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24166         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24167         * modules/settime (Link): Likewise.
24168         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24169
24170         test-stat-time: speed up execution
24171         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24172         warning on mingw.
24173         (nap): New helper function.
24174         (prepare_test): Use it to reduce sleep time.
24175         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24176         execution.
24177         * modules/stat-time-tests (configure.ac): Check for usleep.
24178
24179 2009-10-09  Jim Meyering  <meyering@redhat.com>
24180
24181         selinux-h: always use getfilecon wrappers
24182         * lib/getfilecon.c: New file.
24183         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24184         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24185         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24186         (fgetfilecon): Provide a stub.
24187         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24188         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24189         file unconditionally.
24190         When <selinux/selinux.h> is found, arrange to use wrappers.
24191         * modules/selinux-h (Files): Add getfilecon.c.
24192         (Makefile.am): Substitute include-next-related bits
24193         into the now-always-generated selinux/selinux.h file.
24194         * doc/glibc-functions/lgetfilecon.texi: New file.
24195         * doc/glibc-functions/fgetfilecon.texi: New file.
24196         * doc/glibc-functions/getfilecon.texi: New file.
24197         * doc/glibc-functions/getfilecon-desc.texi: New file.
24198         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24199         which to pull in the new files.
24200         * MODULES.html.sh (Misc): Add selinux-h.
24201
24202 2009-10-08  Jim Meyering  <meyering@redhat.com>
24203
24204         unistd: fix comment typo
24205         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24206
24207 2009-10-08  Eric Blake  <ebb9@byu.net>
24208
24209         areadlink: use SIZE_MAX consistently
24210         * modules/areadlink (Depends-on): Add stdint.
24211         * modules/areadlink-with-size (Depends-on): Likewise.
24212         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24213         gives NULL; drop sys/types, since unistd gives size_t; and add
24214         stdint for SIZE_MAX.
24215         (SIZE_MAX): Rely on headers.
24216         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24217         and add stdint.
24218         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24219         (SIZE_MAX): Likewise.
24220         (INITIAL_BUF_SIZE): Turn into enum.
24221         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24222
24223 2009-10-08  Jim Meyering  <meyering@redhat.com>
24224
24225         areadlinkat: avoid compilation failure
24226         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24227         Fix typo in comment.
24228
24229 2009-10-07  Eric Blake  <ebb9@byu.net>
24230
24231         areadlinkat-with-size: new module
24232         * modules/areadlinkat-with-size: New module.
24233         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24234         * lib/areadlink.h (areadlinkat): Declare it.
24235         * MODULES.html.sh (File system functions): Mention it.
24236         * modules/areadlinkat-with-size-tests: New test.
24237         * tests/test-areadlinkat-with-size.c: New file.
24238
24239         xreadlinkat: new module
24240         * modules/xreadlinkat: New module.
24241         * lib/xreadlinkat.c (xreadlinkat): New file.
24242         * lib/xreadlink.h (xreadlinkat): Declare it.
24243         * MODULES.html.sh (File system functions): Mention it.
24244
24245         areadlinkat: new module
24246         * lib/at-func.c (FUNC_FAIL): New define.
24247         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24248         * modules/areadlinkat: New module.
24249         * lib/linkat.c (areadlinkat): Move...
24250         * lib/areadlinkat.c (areadlinkat): ...to new file.
24251         * lib/areadlink.h (areadlinkat): Declare it.
24252         * modules/linkat (Depends-on): Add areadlinkat.
24253         * MODULES.html.sh (File system functions): Mention it.
24254         * modules/areadlinkat-tests: New test.
24255         * tests/test-areadlinkat.c: New file.
24256
24257         areadlink, areadlink-with-size: add tests
24258         * modules/areadlink-tests: New test.
24259         * modules/areadlink-with-size-tests: Likewise.
24260         * tests/test-areadlink.h: New file.
24261         * tests/test-areadlink.c: Likewise.
24262         * tests/test-areadlink-with-size.c: Likewise.
24263
24264         maint: minor cleanups
24265         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24266         _UNUSED_PARAMETER_ instead.
24267         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24268         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24269         * modules/linkat-tests (Files): Distribute test-link.h.
24270
24271         openat, utimens: whitespace cleanup
24272         * lib/openat.c: Prefer space throughout, rather than mix of 8
24273         spaces vs. tabs.
24274         * lib/at-func.c: Likewise.
24275         * lib/utimens.c: Likewise.
24276
24277         openat: avoid using wrong fd
24278         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24279         working directory chooses same fd.
24280         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24281
24282         mkdir, mkdirat: fix cygwin 1.5.x bug
24283         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24284         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24285         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24286         bug.
24287         (gl_PREREQ_MKDIR): Delete unused macro.
24288         * modules/mkdir (Files): Track file rename.
24289         (configure.ac): Update macro name.
24290         * modules/openat (Depends-on): Add mkdir.
24291         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24292
24293         mkdir, mkdirat: add tests
24294         * modules/mkdir-tests: New test.
24295         * tests/test-mkdir.h: New file.
24296         * tests/test-mkdir.c: Likewise.
24297         * tests/test-mkdirat.c: Likewise.
24298         * modules/openat-tests (Files): Add new files.
24299         (Makefile.am): Run new test.
24300
24301 2009-10-06  Eric Blake  <ebb9@byu.net>
24302
24303         doc: tweak *at function documentation
24304         * doc/posix-functions/faccessat.texi (faccessat): Mention
24305         known issue with replacement.
24306         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24307         * doc/posix-functions/linkat.texi (linkat): Likewise.
24308         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24309         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24310         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24311         * doc/posix-functions/renameat.texi (renameat): Likewise.
24312         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24313
24314         openat: fix GNU/Hurd bug in unlinkat
24315         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24316         broken.
24317         * doc/posix-functions/unlink.texi (unlink): Document this.
24318         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24319
24320         fdopendir: fix GNU/Hurd bug
24321         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24322         allowing non-directory fds.
24323         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24324         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24325         * modules/dirent (Makefile.am): Substitute it.
24326         * lib/dirent.in.h (fdopendir): Declare replacement.
24327         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24328         * tests/test-fdopendir.c (main): Test something other than
24329         /dev/null, since on Hurd that behaves like a directory.
24330
24331         test-symlink: port to GNU/Hurd
24332         * tests/test-symlink.h (test_symlink): Relax expected errno.
24333
24334         doc: tweak more cygwin information
24335         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24336         now compatible with glibc.
24337         * doc/posix-functions/getopt.texi (getopt): Likewise.
24338
24339         getopt-gnu: add another test
24340         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24341         guarantee behavior relied on by m4.
24342         * tests/test-getopt.c (main): Use it.
24343         * modules/getopt-posix-tests (Depends-on): Add setenv.
24344         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24345
24346         getopt: fix compilation on darwin
24347         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24348         include.
24349         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24350         Reported by Ludovic Courtès.
24351
24352 2009-10-06  Bruno Haible  <bruno@clisp.org>
24353
24354         * modules/size_max (Description): Discourage its use.
24355         Reported by Simon Josefsson.
24356
24357 2009-10-06  Jim Meyering  <meyering@redhat.com>
24358
24359         linkat: avoid compilation failure
24360         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24361
24362 2009-10-05  Eric Blake  <ebb9@byu.net>
24363
24364         linkat: support Linux 2.6.17
24365         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24366         linkat on Linux, but allow cache variable override.
24367         * lib/linkat.c (rpl_linkat): Define override.
24368         * modules/linkat (Depends-on): Add symlinkat.
24369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24370         * modules/unistd (Makefile.am): Substitute it.
24371         * lib/unistd.in.h (linkat): Declare replacement.
24372         Reported by Pádraig Brady.
24373
24374         quotearg: port test to systems with C.UTF-8 locale
24375         * tests/test-quotearg.c (struct result_strings): Add another
24376         member, differentiating between C.ASCII and C.UTF-8 handling.
24377         (compare_strings): Add parameter.
24378         (main): Adjust all callers.
24379
24380         getopt: avoid clash with FreeBSD _getopt_internal
24381         * lib/getopt.in.h (_getopt_internal): Override the name.
24382         * lib/getopt_int.h (includes): Pick up any overrides.
24383         Reported by Reuben Thomas.
24384
24385         hash: allow C89 compilation
24386         * lib/hash.c (check_tuning): Move declaration before statement.
24387         Reported by Reuben Thomas.
24388
24389 2009-10-05  Karl Berry  <karl@gnu.org>
24390
24391         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24392
24393 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24394             Bruno Haible  <bruno@clisp.org>
24395
24396         * lib/uname.c (uname): Use a table-driven algorithm to compute
24397         Windows NT versions.
24398
24399 2009-10-04  Bruno Haible  <bruno@clisp.org>
24400
24401         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24402         program_invocation_short_name.
24403         * modules/progname (configure.ac): Test for presence of
24404         program_invocation_short_name.
24405         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24406
24407 2009-10-04  Bruno Haible  <bruno@clisp.org>
24408
24409         * lib/progname.c (set_program_name): Fix comment.
24410         Reported by Jim Meyering.
24411
24412 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24413             Bruno Haible  <bruno@clisp.org>
24414
24415         * lib/uname.c: Include <string.h>.
24416         (uname): Do only one call to GetVersionEx in the common case.
24417
24418 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24419             Bruno Haible  <bruno@clisp.org>
24420
24421         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24422         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24423         (uname): Add support for Windows CE and various non-x86 CPU types.
24424
24425 2009-10-03  Bruno Haible  <bruno@clisp.org>
24426
24427         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24428         invocation to tests/configure.ac.
24429         Reported by Ian Beckwith <ianb@erislabs.net>.
24430
24431 2009-10-02  Eric Blake  <ebb9@byu.net>
24432
24433         fchdir: avoid compiler warning
24434         * lib/fchdir.c (canonicalize_file_name)
24435         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24436
24437         test-open: support mingw errno values
24438         * tests/test-open.h (test_open): Relax test.
24439         * tests/test-fopen.h (test_fopen): Likewise.
24440         * tests/test-openat-safer.c (main): Likewise.
24441
24442         open: fix opening directory on mingw
24443         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24444
24445         test-open: on GNU/Hurd, /dev/null is a directory
24446         * tests/test-fopen.h (main): Rename...
24447         (test_fopen): ...to this.  Use a guaranteed non-directory when
24448         confirming open behavior on trailing slash.
24449         * tests/test-openat-safer.c (main): Likewise.
24450         * tests/test-open.h (main): Likewise....
24451         (test_open): ...to this.
24452         * tests/test-fopen.c (main): Adjust caller.
24453         * tests/test-fopen-safer.c (main): Likewise.
24454         * tests/test-open.c (main): Likewise.
24455         * tests/test-fcntl-safer.c (main): Likewise.
24456         Reported by Samuel Thibault.
24457
24458         rename, fchdir: don't ignore chdir failure
24459         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24460         * lib/rename.c (rpl_rename) [W32]: Likewise.
24461         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24462         an empty destination directory if source cannot be renamed,
24463         although there is still possibility for failure.
24464         * doc/posix-functions/rename.texi (rename): Document the race.
24465         Reported by Jim Meyering.
24466
24467         maint: cleanup whitespace in recent commits
24468         * lib/rename.c (rpl_rename): Remove tabs.
24469         * tests/test-link.h (test_link): Likewise.
24470         * lib/fchdir.c (get_name): Likewise.
24471         Reported by Jim Meyering.
24472
24473 2009-10-02  Ben Pfaff  <blp@gnu.org>
24474
24475         relocatable-prog-wrapper: Add missing dependency on
24476         double-slash-root.
24477         * modules/relocatable-prog-wrapper: Add dependency.
24478         Reported by Ian Beckwith <ianb@erislabs.net>.
24479
24480 2009-10-02  Eric Blake  <ebb9@byu.net>
24481
24482         renameat: fix Solaris bugs
24483         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24484         needed fixing.
24485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24486         * modules/stdio (Makefile.am): Substitute it.
24487         * lib/stdio.in.h (renameat): Declare replacement.
24488         * lib/renameat.c (rpl_renameat): Implement fix.
24489
24490         renameat: new module
24491         * modules/renameat: New file.
24492         * lib/renameat.c (renameat): Likewise.
24493         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24495         * modules/stdio (Makefile.am): Substitute them.
24496         * lib/stdio.in.h (renameat): Declare it.
24497         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24498         * doc/posix-functions/renameat.texi (renameat): Likewise.
24499         * modules/renameat-tests: New test.
24500         * tests/test-renameat.c: Likewise.
24501
24502         rename: fix mingw bugs
24503         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24504         directory overwrite bugs.
24505
24506         rename: fix another cygwin 1.5 bug
24507         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24508         checks.
24509         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24510         unnecessary cygwin workarounds.  Also work around bug with moving
24511         full directory onto an empty one.
24512         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24513
24514         rename-dest-slash: merge into rename module
24515         * modules/rename-dest-slash (Status): Mark obsolete.
24516         (Depends-on): Add rename.
24517         (Files): Let rename do it all.
24518         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24519         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24520         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24521         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24522         * lib/rename.c (rpl_rename): Update comments.
24523
24524         rename: fix cygwin 1.5.x bugs
24525         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24526         * lib/rename.c (rpl_rename): Work around them.
24527         * modules/rename (Depends-on): Add same-inode.
24528
24529         rename: fix Solaris 10 bug
24530         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24531         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24532         was the only bug.
24533
24534         rename: fix Solaris 9 bug
24535         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24536         on non-directory.  Avoid calling exit.
24537         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24538         strdup.
24539         * modules/rename-tests (Depends-on): Drop lstat.
24540         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24541         (gl_PREREQ_RENAME): Delete unused macro.
24542
24543         rename-dest-slash: fix NetBSD bug
24544         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24545         links.
24546         * modules/rename-dest-slash (Depends-on): Add same-inode.
24547
24548         rename-tests: new test, exposes several platform bugs
24549         * modules/rename-tests: New file.
24550         * tests/test-rename.h: Likewise.
24551         * tests/test-rename.c: Likewise.
24552         * doc/posix-functions/rename.texi (rename): Improve documentation,
24553         including bugs that will eventually be fixed in gnulib.
24554
24555 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24556
24557         * lib/uname.c: Include <stdlib.h>
24558         (uname): Assume version info is available.
24559
24560 2009-10-02  Jim Meyering  <meyering@redhat.com>
24561
24562         gnu-web-doc-update: correct --help output
24563         * build-aux/gnu-web-doc-update: Make --help output relevant.
24564
24565         gnu-web-doc-update: add standard options
24566         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24567
24568         gnu-web-doc-update: New module.
24569         Use this script to automatically update the on-line web documentation
24570         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24571         * modules/gnu-web-doc-update: New file, from coreutils.
24572         * build-aux/gnu-web-doc-update: New script.
24573
24574 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24575
24576         link: LoadLibrary is not needed.
24577         * lib/link.c: Use GetModuleHandle.
24578
24579 2009-10-01  Eric Blake  <ebb9@byu.net>
24580
24581         getopt: bump serial number
24582         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24583         change.
24584
24585         tests: tighten link, rmdir, and remove tests
24586         * tests/test-link.h (includes): No need to use <config.h> here.
24587         Clean up if directory hard link was created, otherwise test for
24588         trailing '.'.
24589         * tests/test-linkat.c (main): Simplify.
24590         * tests/test-remove.c (main): Enhance test for trailing '.'.
24591         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24592
24593 2009-10-01  Jim Meyering  <meyering@redhat.com>
24594
24595         maint.mk: requiring "make major" was annoying, for a "minor" release.
24596         What is intended is "stable", to contrast with alpha and beta,
24597         so require "make stable", not "make major".
24598         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24599         (get_tool_versions): Likewise.
24600         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24601
24602 2009-09-30  Ben Pfaff  <blp@gnu.org>
24603
24604         Fix broken build of replacement for Windows tmpfile().
24605         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24606         flags argument added along with the 'mkostemp' module.
24607
24608 2009-09-28  Bruno Haible  <bruno@clisp.org>
24609
24610         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24611         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24612         to 'remove_elt'.
24613         (gl_list_remove): Update.
24614         * lib/gl_list.c (gl_list_remove): Update.
24615         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24616         to 'remove_elt'.
24617         (gl_oset_remove): Update.
24618         * lib/gl_list.c (gl_oset_remove): Update.
24619         Reported by Eric Blake.
24620
24621 2009-09-28  Eric Blake  <ebb9@byu.net>
24622
24623         doc: mention yet more cygwin 1.7 status
24624         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24625         cygwin.
24626         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24627         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24628
24629         argp: fix test failure
24630         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24631         that are not upper-case.  Pass correct range to tolower.
24632
24633 2009-09-27  Jim Meyering  <meyering@redhat.com>
24634
24635         test-yesno: work around sparc-dash here-document infelicity
24636         Without this change, the literal \177 byte in a here document
24637         would make dash 0.5.5.1-3 access uninitialized memory.
24638         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24639         Instead, use a marker, "@", and filter through tr to create the desired
24640         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24641
24642 2009-09-27  Bruno Haible  <bruno@clisp.org>
24643
24644         Disable untested support for new flavours of ACLs on AIX.
24645         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24646         progress.
24647         * lib/set-mode-acl.c (qset_acl): Likewise.
24648
24649 2008-12-07  Bruno Haible  <bruno@clisp.org>
24650
24651         Add support for new flavours of ACLs on AIX. (Untested.)
24652         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24653         (file_has_acl): Add support for newer AIX.
24654         * lib/set-mode-acl.c (qset_acl): Likewise.
24655         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24656         Rainer Tammer <tammer@tammer.net>.
24657
24658 2009-09-26  Eric Blake  <ebb9@byu.net>
24659
24660         argp: fix compilation of getopt
24661         * lib/getopt.in.h (includes): Use different guard than glibc.
24662         Reported by Sergey Poznyakoff.
24663
24664         doc: mention more cygwin 1.7 status
24665         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24666         bug.
24667         * doc/posix-functions/execl.texi (execl): Likewise.
24668         * doc/posix-functions/execle.texi (execle): Likewise.
24669         * doc/posix-functions/execlp.texi (execlp): Likewise.
24670         * doc/posix-functions/execv.texi (execv): Likewise.
24671         * doc/posix-functions/execve.texi (execve): Likewise.
24672         * doc/posix-functions/execvp.texi (execvp): Likewise.
24673         * doc/glibc-functions/canonicalize_file_name.texi
24674         (canonicalize_file_name): Cygwin 1.7 now provides this.
24675         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24676         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24677         on AT_SYMLINK_NOFOLLOW.
24678
24679 2009-09-24  Eric Blake  <ebb9@byu.net>
24680
24681         test-linkat: make test more robust
24682         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24683
24684         getopt: fix inclusion guards for cygwin
24685         * modules/getopt-posix (Depends-on): Add include-next.
24686         (Makefile.am): Substitute more items in replacement header.
24687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24688         <getopt.h>.
24689         * lib/getopt.in.h (includes): Use split inclusion guard, and
24690         prefer <getopt.h> over include <unistd.h> when one is present.
24691         (option): Also override name of 'struct option'.
24692
24693         same-inode: revert prior change; it is not yet ready
24694         * NEWS: Undo mention of this change.
24695         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24696         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24697         * lib/cycle-check.c (cycle_check): Likewise.
24698         * lib/same.c (same_name): Likewise.
24699         * lib/at-func2.c (at_func2): Likewise.
24700
24701 2009-09-23  Eric Blake  <ebb9@byu.net>
24702
24703         linkat: new module
24704         * modules/linkat: New file.
24705         * lib/at-func2.c (at_func2): Likewise.
24706         * lib/linkat.c (linkat): Likewise.
24707         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24708         * lib/openat-priv.h (at_func2): Add declaration.
24709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24710         * modules/unistd (Makefile.am): Substitute them.
24711         * lib/unistd.in.h (linkat): Declare it.
24712         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24713         * doc/posix-functions/linkat.texi (linkat): Likewise.
24714         * doc/posix-functions/link.texi (link): Tweak wording.
24715         * tests/test-link.c (main): Move guts...
24716         * tests/test-link.h (test_link): ...into new file.
24717         * modules/linkat-tests: New test.
24718         * tests/test-linkat.c: Likewise.
24719         * modules/link-tests (Files): Ship new file.
24720         (Depends-on): Add stdbool.
24721
24722         dirname: add library-safe mdir_name
24723         * lib/dirname.h (mdir_name): New prototype.
24724         * lib/dirname.c (dir_name): Move guts...
24725         (mdir_name): ...to new function that avoids xalloc_die.
24726
24727         fchdir: another mingw fix
24728         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24729         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24730         on mingw (where it has not yet been ported), and make it optional
24731         elsewhere.
24732         (_gl_register_fd): Use it.
24733
24734         same-inode: make SAME_INODE tri-state, to port to mingw
24735         * NEWS: Mention this change.
24736         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24737         st_ino always being 0.
24738         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24739         * lib/cycle-check.c (cycle_check): Likewise.
24740         * lib/same.c (same_name): Likewise.
24741
24742         lstat: avoid mingw compilation error
24743         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24744         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24745         lstat ourselves.
24746         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24747         was adequate.
24748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24749         the checks for lstat.
24750         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24751
24752         link: fix test failure on Solaris 9
24753         * lib/link.c (rpl_link): Don't assume link will catch bogus
24754         trailing slash on source.
24755
24756         test-symlinkat: enhance test
24757         * tests/test-readlink.c (main): Move guts...
24758         * tests/test-readlink.h (test_readlink): ...into new file.
24759         * tests/test-symlink.c (main): Move guts...
24760         * tests/test-symlink.h (test_symlink): ...into new file.
24761         * tests/test-symlinkat.c (main): Use new files for further
24762         coverage.
24763         (do_symlink, do_readlink): New helper functions.
24764         * modules/symlink-tests (Files): Ship new file.
24765         (Depends-on): Add stdbool.
24766         * modules/readlink-tests (Files): Ship new file.
24767         (Depends-on): Add stdbool.
24768         * modules/symlinkat-tests (Files): Use new files.
24769
24770 2009-09-23  Eric Blake  <ebb9@byu.net>
24771
24772         readlink: document portability issue with symlink length
24773         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24774         systems have bogus st_size on symlinks, and mention the
24775         areadlink-with-size module.
24776         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24777         * doc/posix-functions/readlink.texi (readlink): Mention the
24778         areadlink module, and ERANGE failure.
24779         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24780         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24781
24782         readlink: fix Solaris 9 bug with trailing slash
24783         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24784         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24785         * doc/posix-functions/readlink.texi (readlink): Document this.
24786         * modules/readlink-tests: New test.
24787         * tests/test-readlink.c: Likewise.
24788
24789         readlink: fix cygwin 1.5.x bug with return type
24790         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24791         * lib/unistd.in.h (readlink): Use ssize_t.
24792         * lib/readlink.c (readlink): Likewise.
24793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24794         * modules/unistd (Makefile.am): Substitute it.
24795         * lib/unistd.in.h (readlink): Declare replacement.
24796         * doc/posix-functions/readlink.texi (readlink): Document this.
24797
24798         symlink: use throughout gnulib
24799         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24800         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24801         symlink is not used.
24802         * modules/symlinkat (Depends-on): Add symlink.
24803         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24804         * modules/canonicalize-tests (Depends-on): Likewise.
24805         * modules/lstat-tests (Depends-on): Likewise.
24806         * modules/openat-tests (Depends-on): Likewise.
24807         * modules/remove-tests (Depends-on): Likewise.
24808         * modules/rmdir-tests (Depends-on): Likewise.
24809         * modules/unlink-tests (Depends-on): Likewise.
24810         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24811         * tests/test-canonicalize.c (symlink): Likewise.
24812         * tests/test-fstatat.c (symlink): Likewise.
24813         * tests/test-lstat.c (symlink): Likewise.
24814         * tests/test-remove.c (symlink): Likewise.
24815         * tests/test-rmdir.c (symlink): Likewise.
24816         * tests/test-unlink.c (symlink): Likewise.
24817         * tests/test-unlinkat.c (symlink): Likewise.
24818
24819         symlink: new module, for Solaris 9 bug
24820         * modules/symlink: New file.
24821         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24822         * lib/symlink.c: Likewise.
24823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24824         * modules/unistd (Makefile.am): Substitute them.
24825         * lib/unistd.in.h (symlink): Declare replacement.
24826         * MODULES.html.sh (File system functions): Mention it.
24827         * doc/posix-functions/symlink.texi (symlink): Likewise.
24828         * modules/symlink-tests: New test.
24829         * tests/test-symlink.c: Likewise.
24830
24831 2009-09-23  Bruno Haible  <bruno@clisp.org>
24832
24833         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24834         when needed.
24835         Test case: gnulib-tool --import --with-tests atexit inttypes.
24836         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24837
24838 2009-09-23  Bruno Haible  <bruno@clisp.org>
24839
24840         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24841         subcommand, not in a subshell.
24842
24843 2009-09-22  Eric Blake  <ebb9@byu.net>
24844
24845         unistd: sort replacement declarations
24846         * lib/unistd.in.h: Sort declarations.
24847
24848         open, openat: minor optimization
24849         * lib/open.c (open): If open succeeded, len is non-zero.
24850         * lib/openat.c (rpl_openat): Likewise.
24851
24852         link-follow: ensure correct result
24853         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24854         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24855         distinguish between possible failures.
24856
24857 2009-09-21  Eric Blake  <ebb9@byu.net>
24858
24859         fts: avoid compiler warning
24860         * lib/fts.c (dirent_inode_sort_may_be_useful)
24861         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24862
24863 2009-09-19  Bruno Haible  <bruno@clisp.org>
24864
24865         * lib/progreloc.c (canonicalize_file_name): New declaration.
24866
24867 2009-09-19  Eric Blake  <ebb9@byu.net>
24868
24869         link: fix quoting
24870         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24871
24872         openat: fix openat bugs on Solaris 9
24873         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24874         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24875         * modules/openat (Depends-on): Add open.
24876         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24877         * modules/fcntl-h (Makefile.am): Substitute it.
24878         * lib/fcntl.in.h (openat): Declare replacement.
24879         * doc/posix-functions/openat.texi (openat): Document this.
24880
24881         openat: move fstatat and unlinkat into correct files
24882         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24883         compiled.
24884         * lib/openat.c (fstatat, unlinkat): Move...
24885         * lib/fstatat.c (fstatat): ...into correct files.
24886         * lib/unlinkat.c (unlinkat): Likewise.
24887
24888         openat: fix unlinkat bugs on Solaris 9
24889         * lib/unlinkat.c (unlinkat): New file.
24890         * modules/openat (Depends-on): Add unlink.
24891         (Files): Distribute it.
24892         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24893         trailing slash behavior is broken.
24894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24895         * modules/unistd (Makefile.am): Substitute it.
24896         * lib/unistd.in.h (unlinkat): Declare replacement.
24897         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24898
24899         openat: fix fstatat bugs on Solaris 9
24900         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24901         stat.
24902         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24903
24904         test-unlinkat: enhance test, to expose Solaris 9 bug
24905         * tests/test-unlink.c (main): Factor guts...
24906         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24907         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24908         * tests/test-rmdir.c (main): Adjust caller.
24909         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24910         (unlinker): New helper function.
24911         (rmdirat): Enhance check.
24912         * modules/rmdir-tests (Depends-on): Add stdbool.
24913         * modules/unlink-tests (Depends-on): Likewise.
24914         (Files): Add test-unlink.h.
24915         * modules/openat-tests (Files): Likewise.
24916         (Depends-on): Add unlinkdir.
24917
24918         test-fstatat: new test, to expose Solaris 9 bugs
24919         * tests/test-stat.c (main): Factor guts...
24920         * tests/test-stat.h (test_stat_func): ...into new file.
24921         * tests/test-lstat.c (main): Factor guts...
24922         * tests/test-lstat.h (test_lstat_func): ...into new file.
24923         * tests/test-fstatat.c: New file.
24924         * modules/stat-tests (Files): Add test-stat.h.
24925         * modules/lstat-tests (Files): Add test-lstat.h.
24926         (Depends-on): Add stdbool.
24927         * modules/openat-tests (Depends-on): Add pathmax.
24928         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24929         (Makefile.am): Run new test.
24930
24931         remove: new module, for mingw and Solaris 9 bugs
24932         * modules/remove: New file.
24933         * lib/remove.c: Likewise.
24934         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24936         * modules/stdio (Makefile.am): Use them.
24937         * lib/stdio.in.h (remove): Declare replacement.
24938         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24939         * doc/posix-functions/remove.texi (remove): Likewise.
24940         * modules/remove-tests: New test.
24941         * tests/test-remove.c: Likewise.
24942
24943         unlink: new module, for Solaris 9 bug
24944         * modules/unlink: New file.
24945         * lib/unlink.c: Likewise.
24946         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24948         * modules/unistd (Makefile.am): Use them.
24949         * lib/unistd.in.h (stat): Declare replacement.
24950         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24951         * doc/posix-functions/unlink.texi (unlink): Likewise.
24952         * modules/unlink-tests: New test.
24953         * tests/test-unlink.c: Likewise.
24954
24955         lstat: fix Solaris 9 bug
24956         * lib/lstat.c (lstat): Also check for trailing slash on
24957         non-symlink, non-directories.  Use stat module to simplify logic.
24958         * doc/posix-functions/lstat.texi (lstat): Document it.
24959         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24960         (configure.ac): Check for symlink.
24961         * tests/test-lstat.c (main): Add more tests.
24962
24963         stat: add as dependency to other modules
24964         * modules/chown (Depends-on): Add stat.
24965         * modules/euidaccess (Depends-on): Likewise.
24966         * modules/fchdir (Depends-on): Likewise.
24967         * modules/isdir (Depends-on): Likewise.
24968         * modules/link (Depends-on): Likewise.
24969         * modules/lstat (Depends-on): Likewise.
24970         * modules/mkdir-p (Depends-on): Likewise.
24971         * modules/modechange (Depends-on): Likewise.
24972         * modules/open (Depends-on): Likewise.
24973         * modules/readlink (Depends-on): Likewise.
24974         * modules/same (Depends-on): Likewise.
24975
24976         stat: fix Solaris 9 bug
24977         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24978         slash.
24979         * lib/stat.c (rpl_stat): Work around it.
24980         * doc/posix-functions/stat.texi (stat): Update documentation.
24981
24982         stat: new module, for mingw bug
24983         * modules/stat: New file.
24984         * lib/stat.c: Likewise.
24985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24987         * modules/sys_stat (Makefile.am): Use them.
24988         * lib/sys_stat.in.h (stat): Declare replacement.
24989         * lib/openat.c (fstatat): Deal with lstat and stat being function
24990         macros.
24991         * modules/openat (Depends-on): Add inline.
24992         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24993         * doc/posix-functions/stat.texi (stat): Likewise.
24994         * modules/stat-tests: New test.
24995         * tests/test-stat.c: Likewise.
24996
24997 2009-09-19  Jim Meyering  <meyering@redhat.com>
24998
24999         syntax-check: detect unnecessary inclusion of canonicalize.h
25000         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25001
25002 2009-09-19  Eric Blake  <ebb9@byu.net>
25003
25004         canonicalize-lgpl: adjust clients to use correct header
25005         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25006         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25007         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25008         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25009         * lib/progreloc.c (includes): Likewise.
25010
25011 2009-09-19  Jim Meyering  <meyering@redhat.com>
25012
25013         test-posixtm.c: correct a comment
25014         * tests/test-posixtm.c: Correct first-line comment.
25015         Spotted by Eric Blake.
25016
25017 2009-09-16  Jim Meyering  <meyering@redhat.com>
25018
25019         posixtm-tests: make T const-correct; add a test case
25020         * tests/test-posixtm.c (T): Declare const.
25021         Add a test for -(2^31+1).
25022         Remove useless can-succeed-only-in-2002 test.
25023
25024         posixtm-tests: adjust the sole failing test
25025         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25026         expected output matches what mktime now produces.  Cross-checked via
25027         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25028
25029         posixtm: move #ifdef'd tests into a new module
25030         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25031         * tests/test-posixtm.c: ... this new file.
25032         * modules/posixtm-tests: New module.
25033
25034 2009-09-19  Eric Blake  <ebb9@byu.net>
25035
25036         openat: simplify use of at-func.c
25037         * lib/at-func.c (includes): Include prerequisites here, to
25038         simplify requirements on client files.
25039         * lib/openat-priv.h: Add double-inclusion guard.
25040         * lib/faccessat.c (includes): Simplify.
25041         * lib/fchmodat.c (includes): Likewise.
25042         * lib/fchownat.c (includes): Likewise.
25043         * lib/mkdirat.c (includes): Likewise.
25044         * lib/mkfifoat.c (includes): Likewise.
25045         * lib/symlinkat.c (includes): Likewise.
25046
25047         openat: allow return of fd 0
25048         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25049         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25050         unistd-safer.
25051         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25052         <fcntl.h>; this module does not leak fds.
25053         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25054         must be allowed to return 0, leaving openat_safer to add the
25055         safety.
25056         (openat_permissive): Avoid writing to just-opened fd 2 if
25057         restoring the current directory fails.
25058         * lib/openat-die.c (openat_restore_fail): Add comment.
25059         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25060         (save_cwd): Guarantee safe fd, but without use of open_safer.
25061         * tests/test-openat.c: New test.
25062         * modules/openat-tests (Files, Makefile.am): Distribute and build
25063         new file.
25064
25065         relocatable-prog-wrapper: fix build
25066         * modules/relocatable-prog-wrapper (Files): Update name of
25067         canonicalize m4 file, broken on 2009-09-17.
25068         Reported by emad hajjar <aleppos@hotmail.com>.
25069
25070 2009-09-19  Bruno Haible  <bruno@clisp.org>
25071
25072         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25073         * lib/safe-alloc.c: Likewise.
25074         Reported by Ian Beckwith <ianb@erislabs.net>.
25075
25076 2009-09-18  Bruno Haible  <bruno@clisp.org>
25077
25078         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25079         Reported by <erobles@sensacd.com.mx>.
25080
25081 2009-09-17  Eric Blake  <ebb9@byu.net>
25082
25083         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25084         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25085         slashes when checking if last component is missing.
25086         * tests/test-canonicalize.c (main): Test this.
25087
25088         canonicalize, canonicalize-lgpl: honor // if distinct from /
25089         * modules/canonicalize (Files): Add double-slash-root.m4.
25090         * modules/canonicalize-lgpl (Files): Likewise.
25091         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25092         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25093         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25094         fallback definition.
25095         (canonicalize_filename_mode): Use it to protect //.
25096         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25097         (__realpath): Likewise.
25098         * tests/test-canonicalize.c (main): Test this.
25099         * tests/test-canonicalize-lgpl.c (main): Likewise.
25100         * modules/canonicalize-tests (Depends-on): Add same-inode.
25101         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25102
25103         canonicalize-lgpl: fix glibc bug with trailing slash
25104         * m4/canonicalize-lgpl.m4: Move contents...
25105         * m4/canonicalize.m4: ...here.
25106         (gl_CANONICALIZE_LGPL): Factor realpath check...
25107         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25108         glibc 2.3.5 bug, fixed 2005-04-27.
25109         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25110         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25111         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25112         * modules/canonicalize-lgpl (Files): Manage file rename.
25113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25114         * modules/stdlib (Makefile.am): Substitute witness.
25115         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25116         is needed.
25117         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25118         replacement is required.
25119         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25120         * doc/glibc-functions/canonicalize_file_name.texi
25121         (canonicalize_file_name): Document this.
25122         * doc/posix-functions/realpath.texi (realpath): Likewise.
25123
25124         canonicalize-lgpl: reject non-directory with trailing slash
25125         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25126         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25127         catches failures in glibc 2.3.5.
25128         * tests/test-canonicalize.c (main): Likewise.
25129
25130         canonicalize-lgpl: use native realpath if it works
25131         * lib/canonicalize-lgpl.c (realpath): Guard with
25132         FUNC_REALPATH_WORKS.
25133         * lib/stdlib.in.h (realpath): Make declaration optional based on
25134         HAVE_REALPATH.
25135         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25136         native realpath works.
25137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25138         * modules/stdlib (Makefile.am): Substitute witness.
25139
25140         canonicalize, canonicalize-lgpl: use <stdlib.h>
25141         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25142         (Include): Mention <stdlib.h>.
25143         (configure.ac): Mention functions we provide.
25144         * modules/canonicalize (configure.ac): Likewise.
25145         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25146         realpath if canonicalize_file_name is missing.
25147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25148         * modules/stdlib (Makefile.am): Substitute witnesses.
25149         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25150         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25151         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25152         * NEWS: Document this.
25153         * doc/glibc-functions/canonicalize_file_name.texi
25154         (canonicalize_file_name): Likewise.
25155         * doc/posix-functions/realpath.texi (realpath): Likewise.
25156         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25157
25158         test-canonicalize: consolidate into single C program
25159         * tests/test-canonicalize.sh: Delete; move setup into...
25160         * tests/test-canonicalize.c (main): ...the program, making it
25161         easier to run in debugger.  Add some tests.
25162         * modules/canonicalize-tests (Files): Remove unused file.
25163         (Depends-on): Add progname.
25164         (configure.ac, Makefile.am): Simplify.
25165
25166         test-canonicalize-lgpl: consolidate into single C program
25167         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25168         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25169         easier to run in debugger.  Add some tests.
25170         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25171         (configure.ac, Makefile.am): Simplify.
25172
25173         canonicalize: avoid resolvepath
25174         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25175         unnecessary checks.
25176         * lib/canonicalize.c (includes): Simplify.
25177         (canonicalize_file_name): Drop resolvepath implementation.
25178         * modules/canonicalize (Depends-on): Drop filenamecat.
25179
25180         canonicalize: don't lose errno
25181         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25182         over calls to free.
25183
25184         canonicalize: simplify errno handling
25185         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25186         assignment.
25187
25188         canonicalize, canonicalize-lgpl: update module dependencies
25189         * modules/canonicalize (Depends-on): Add extensions, lstat,
25190         pathmax, stdlib.
25191         (Files): Drop pathmax.h.
25192         (configure.ac): Adjust macro name.
25193         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25194         lstat, stdlib, sys_stat.
25195         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25196         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25197         extensions.
25198         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25199         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25200         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25201         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25202         declaration, if available.
25203         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25204         we can rely on the readlink module.
25205         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25206         (includes): Use <unistd.h> unconditionally.
25207
25208 2009-09-17  Eric Blake  <ebb9@byu.net>
25209
25210         maint: make Include sections of modules consistent
25211         * modules/alloca: Use only header name; no need to list #include.
25212         * modules/alloca-opt: Likewise.
25213         * modules/arpa_inet: Likewise.
25214         * modules/canon-host: Likewise.
25215         * modules/configmake: Likewise.
25216         * modules/dirent: Likewise.
25217         * modules/eealloc: Likewise.
25218         * modules/environ: Likewise.
25219         * modules/fchdir: Likewise.
25220         * modules/fcntl: Likewise.
25221         * modules/fcntl-h: Likewise.
25222         * modules/gethrxtime: Likewise.
25223         * modules/gettime: Likewise.
25224         * modules/ignore-value: Likewise.
25225         * modules/inet_ntop: Likewise.
25226         * modules/inet_pton: Likewise.
25227         * modules/inttypes: Likewise.
25228         * modules/isnand-nolibm: Likewise.
25229         * modules/isnanf-nolibm: Likewise.
25230         * modules/mbchar: Likewise.
25231         * modules/mbfile: Likewise.
25232         * modules/mbiter: Likewise.
25233         * modules/mbuiter: Likewise.
25234         * modules/netdb: Likewise.
25235         * modules/netinet_in: Likewise.
25236         * modules/nproc: Likewise.
25237         * modules/pagealign_alloc: Likewise.
25238         * modules/poll: Likewise.
25239         * modules/printf-frexp: Likewise.
25240         * modules/pthread: Likewise.
25241         * modules/putenv: Likewise.
25242         * modules/random_r: Likewise.
25243         * modules/relocatable-prog: Likewise.
25244         * modules/search: Likewise.
25245         * modules/select: Likewise.
25246         * modules/selinux-h: Likewise.
25247         * modules/settime: Likewise.
25248         * modules/signal: Likewise.
25249         * modules/size_max: Likewise.
25250         * modules/socklen: Likewise.
25251         * modules/ssize_t: Likewise.
25252         * modules/stdarg: Likewise.
25253         * modules/stdbool: Likewise.
25254         * modules/stddef: Likewise.
25255         * modules/stdint: Likewise.
25256         * modules/stdio: Likewise.
25257         * modules/stdlib: Likewise.
25258         * modules/string: Likewise.
25259         * modules/strings: Likewise.
25260         * modules/sys_file: Likewise.
25261         * modules/sys_ioctl: Likewise.
25262         * modules/sys_select: Likewise.
25263         * modules/sys_socket: Likewise.
25264         * modules/sys_stat: Likewise.
25265         * modules/sys_time: Likewise.
25266         * modules/sys_times: Likewise.
25267         * modules/sys_utsname: Likewise.
25268         * modules/sys_wait: Likewise.
25269         * modules/sysexits: Likewise.
25270         * modules/time: Likewise.
25271         * modules/times: Likewise.
25272         * modules/tmpfile: Likewise.
25273         * modules/trim: Likewise.
25274         * modules/unistd: Likewise.
25275         * modules/wchar: Likewise.
25276         * modules/wctype: Likewise.
25277
25278 2009-09-17  Bruno Haible  <bruno@clisp.org>
25279
25280         Make getdate.y compile on QNX and NetBSD 5 / i386.
25281         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25282         TIME_T_FITS_IN_LONG_INT.
25283         * lib/getdate.y (long_time_t): New type.
25284         (relative_time): Change type of 'seconds' field to long_time_t.
25285         (get_date): Update types of local variables. Check against overflow
25286         during conversion from long_time_t to time_t.
25287         Reported by Matt Kraai <kraai@ftbfs.org>
25288         and Hasso Tepper <hasso@netbsd.org>.
25289
25290 2009-09-17  Bruno Haible  <bruno@clisp.org>
25291
25292         * modules/COPYING: Update copyright years.
25293         * modules/README: Likeiwse.
25294         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25295         Reported by Ian Beckwith <ianb@erislabs.net>.
25296
25297 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25298
25299         * users.txt: Update references for gnuit package.
25300
25301 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25302
25303         * m4/getdelim.m4: Fix typo in copyright line.
25304
25305 2009-09-17  Bruno Haible  <bruno@clisp.org>
25306
25307         * lib/atoll.c: Use the standard header with GPL copyright.
25308         * lib/argz.in.h: Likewise.
25309         * lib/glob.c: Likewise.
25310         * lib/glob-libc.h: Likewise.
25311         * lib/random_r.c: Likewise.
25312         * lib/siglist.h: Likewise.
25313         * lib/strsignal.c: Likewise.
25314         Reported by Ian Beckwith <ianb@erislabs.net>.
25315
25316 2009-09-17  Eric Blake  <ebb9@byu.net>
25317
25318         rmdir: ensure correct dependency order
25319         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25320
25321 2009-09-17  Bruno Haible  <bruno@clisp.org>
25322
25323         Disable assertion that fails on NetBSD 5 / i386.
25324         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25325         Reported by Sam Steingold <sds@gnu.org>
25326         and Hasso Tepper <hasso@netbsd.org>.
25327
25328 2009-09-16  Eric Blake  <ebb9@byu.net>
25329
25330         unlinkdir: port to mingw
25331         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25332         on which no one can unlink a directory.
25333
25334         stdlib: sort witness names
25335         * modules/stdlib (Makefile.am): Sort replacements.
25336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25337         * lib/stdlib.in.h: Likewise.
25338
25339         parse-duration-tests: avoid link failure
25340         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25341         LIBINTL.
25342         Reported by Tom G. Christensen.
25343
25344         openat-tests: ensure unlinkat behaves like rmdir
25345         * tests/test-rmdir.c (main): Factor guts...
25346         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25347         * modules/rmdir-tests (Files): Ship new file.
25348         * modules/openat-tests: New test.
25349         * tests/test-unlinkat.c: Likewise.
25350
25351         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25352         * modules/rmdir-errno (Status, Notice): Now obsolete.
25353
25354         rmdir: work around cygwin 1.5.x and mingw bugs
25355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25356         * lib/rmdir.c (rmdir): Work around it.
25357         * modules/rmdir (Status, Notice): No longer obsolete.
25358         (Files): Add dos.m4.
25359         (Depends-on): Add unistd.
25360         (configure.ac): Set witnesses.
25361         (License): Relax to LGPLv2+.
25362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25363         * modules/unistd (Makefile.am): Substitute witnesses.
25364         * lib/unistd.in.h (rmdir): Declare replacement.
25365         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25366         * modules/rmdir-tests: New tests.
25367         * tests/test-rmdir.c: Likewise.
25368
25369 2009-09-15  Eric Blake  <ebb9@byu.net>
25370
25371         fchdir: improve use of replacement functions
25372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25374         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25375         REPLACE_CLOSEDIR.
25376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25377         * modules/sys_stat (Makefile.am): Substitute correct witness.
25378         * modules/dirent (Makefile.am): Likewise.
25379         * modules/unistd (Makefile.am): Likewise.
25380         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25381         * lib/unistd.in.h (dup): Likewise.
25382         * lib/sys_stat.in.h (fstat): Likewise.
25383
25384         maint: ignore gnulib-tool temp files
25385         * .gitignore: Ignore files created during gnulib-tool --test.
25386
25387 2009-09-13  Jim Meyering  <meyering@redhat.com>
25388
25389         posixtm: don't reject a time that specify "60" as the number of seconds
25390         * lib/posixtm.c (posixtime): The code to reject invalid dates
25391         would also reject a time specified with the .60 suffix.
25392         But POSIX allows that, in order to accommodate leap seconds.
25393         So don't reject it.
25394         (main): Adjust tests accordingly.
25395         * modules/posixtm (Depends-on): Add stpcpy.
25396
25397 2009-09-11  Jim Meyering  <meyering@redhat.com>
25398
25399         announce-gen: include [$release_type] in emitted Subject:
25400         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25401         e.g., [stable] in the emitted Subject: line.
25402
25403 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25404
25405         Remove obsolete macros from several modules.
25406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25407         obsolete Autoconf macros with their modern counterparts.
25408         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25409         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25411         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25412         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25413         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25416         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25417         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25418         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25419         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25420         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25421         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25422         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25423         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25424         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25425         * m4/time_r.m4 (gl_TIME_R): Likewise.
25426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25427         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25428         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25429
25430         Fix copyright header in build-aux scripts.
25431         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25432         recommendation.
25433         * build-aux/ncftpput-ftp: Likewise.
25434         * build-aux/update-copyright: Likewise.
25435
25436 2009-09-09  Eric Blake  <ebb9@byu.net>
25437
25438         test-link: allow Linux choice of errno
25439         * tests/test-link.c (main): Relax test for alternate error.
25440
25441         strndup: fix improper m4 caching
25442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25443         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25444         (gl_PREREQ_STRNDUP): Delete.
25445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25446         * modules/string (Makefile.am): Substitute it.
25447         * lib/string.in.h (strndup): Modernize prototype.
25448
25449         getcwd: port to mingw
25450         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25451         different from the POSIX assumptions made throughout the getcwd
25452         module; fortunately, the mingw getcwd does not need replacement.
25453         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25454         * modules/getcwd-tests: New test.
25455         * tests/test-getcwd.c: Likewise.
25456
25457         link: fix platform bugs
25458         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25459         * lib/link.c (link): Work around them.  Fix related mingw bug.
25460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25461         * modules/unistd (Makefile.am): Substitute it.
25462         * lib/unistd.in.h (link): Declare replacement.
25463         * doc/posix-functions/link.texi (link): Document this.
25464         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25465
25466         test-link: consolidate into single C program, test more cases
25467         * tests/test-link.sh: Delete.
25468         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25469         at least Cygwin and Solaris.
25470         * modules/link-tests (Files): Remove unused file.
25471         (Depends-on): Add errno, sys_stat.
25472         (Makefile.am): Simplify.
25473
25474 2009-09-08  Bruno Haible  <bruno@clisp.org>
25475
25476         Work around towlower, towupper bug on mingw.
25477         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25478         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25479         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25480         * doc/posix-functions/towupper.texi: Likewise.
25481         Reported by Eric Blake.
25482
25483 2009-09-08  Jim Meyering  <meyering@redhat.com>
25484
25485         build: don't try to run autoheader if we don't use it
25486         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25487         is not used in configure.ac.
25488
25489 2009-09-08  Eric Blake  <ebb9@byu.net>
25490
25491         euidaccess: fix compilation error
25492         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25493
25494         rawmemchr: relax license
25495         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25496         okay.
25497         Reported by Jim Meyering.
25498
25499         mkfifoat: new module
25500         * modules/mkfifoat: New file.
25501         * lib/mkfifoat.c: Likewise.
25502         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25504         * modules/sys_stat (Makefile.am): Use them.
25505         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25506         * MODULES.html.sh (File system functions): Mention module.
25507         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25508         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25509         * modules/mkfifoat-tests: New test.
25510         * tests/test-mkfifoat.c: Likewise.
25511
25512         strchrnul: relax license
25513         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25514         okay.
25515         Reported by Jim Meyering.
25516
25517 2009-09-08  Eric Blake  <ebb9@byu.net>
25518
25519         fstatat: fix compilation on Solaris
25520         * lib/fstatat.c (includes): Add fcntl.h.
25521         Reported by Pádraig Brady.
25522
25523 2009-09-07  Eric Blake  <ebb9@byu.net>
25524
25525         rename: modernize replacement
25526         * modules/rename (Depends-on): Add stdio.
25527         (configure.ac): Declare witness.
25528         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25529         stdio take care of replacement.
25530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25531         * modules/stdio (Makefile.am): Substitute them.
25532         * lib/stdio.in.h (rename): Declare replacement.
25533         * lib/rename.c (includes): Allow cross-compilation to non-windows
25534         machines.
25535         * doc/posix-functions/rename.texi (rename): Improve
25536         documentation.
25537
25538         stdio: sort witness names
25539         * modules/stdio (Makefile.am): Sort replacements.
25540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25541         * lib/stdio.in.h: Likewise.
25542
25543         getcwd: minor cleanups
25544         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25545         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25546
25547         openat: provide more convenience names
25548         * modules/faccessat (configure.ac): Add C witness.
25549         * lib/unistd.in.h (readlinkat): Fix typo.
25550         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25551         convenience wrappers.
25552         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25553         wrappers in syntax checks.
25554
25555 2009-09-06  Eric Blake  <ebb9@byu.net>
25556
25557         doc: fix comments in recent patches
25558         * lib/faccessat.c: Mention correct function.
25559         * lib/fchmodat.c: Likewise.
25560         * lib/fchownat.c: Likewise.
25561         * lib/symlinkat.c: Likewise.
25562         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25563         constants.
25564
25565         faccessat, symlinkat: continue cleanup of previous patch
25566         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25567         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25568         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25570         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25571         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25572         set.
25573
25574 2009-09-06  Bruno Haible  <bruno@clisp.org>
25575
25576         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25577         (fstatat): Declare if GNULIB_FSTATAT is set.
25578         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25579         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25580         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25581         * modules/fcntl-h (Files): Remove m4/openat.m4.
25582         * modules/sys_stat (Files): Remove m4/openat.m4.
25583         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25584         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25585         * modules/unistd (Files): Remove m4/openat.m4.
25586         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25587         GNULIB_OPENAT.
25588         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25589         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25591         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25592         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25593         gl_OPENAT_DEFAULTS.
25594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25595         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25596         Don't require gl_OPENAT_DEFAULTS.
25597         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25598         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25599         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25600         (gl_OPENAT_DEFAULTS): Remove macro.
25601
25602 2009-09-06  Bruno Haible  <bruno@clisp.org>
25603
25604         * modules/openat (configure.ac): Remove unneeded witness.
25605
25606 2009-09-06  Bruno Haible  <bruno@clisp.org>
25607
25608         Set errno to ENOSYS when a function is entirely unsupported.
25609         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25610         EOPNOTSUPP.
25611         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25612         * modules/chown (Depends-on): Remove errno.
25613
25614 2009-09-06  Bruno Haible  <bruno@clisp.org>
25615
25616         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25617
25618 2009-09-06  Bruno Haible  <bruno@clisp.org>
25619
25620         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25621
25622 2009-09-06  Ben Pfaff  <blp@gnu.org>
25623             Bruno Haible  <bruno@clisp.org>
25624
25625         Work around a glibc bug in strtok_r.
25626         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25627         Undefine if UNDEFINE_STRTOK_R is set.
25628         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25630         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25631         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25632         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25633         UNDEFINE_STRTOK_R.
25634         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25635
25636 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25637
25638         exclude: minor fix
25639         * lib/exclude.c: Include wctype.h
25640
25641 2009-09-06  Akim Demaille  <demaille@gostai.com>
25642
25643         bootstrap: improve error message
25644         * build-aux/bootstrap (find_tool): Upon failure, report the list
25645         of candidates.
25646         Honor the initial value of the envvar.
25647
25648 2009-09-05  Eric Blake  <ebb9@byu.net>
25649
25650         symlinkat: new module
25651         * modules/symlinkat: New file.
25652         * lib/symlinkat.c: Likewise.
25653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25655         * modules/unistd (Makefile.am): Use them.
25656         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25657         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25658         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25659         * MODULES.html.sh (File system functions): Mention module.
25660         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25661         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25662         * modules/symlinkat-tests: New test.
25663         * tests/test-symlinkat.c: Likewise.
25664
25665         test-openat-safer: add more checks
25666         * tests/test-openat-safer.c (main): Check more code paths.
25667
25668 2009-09-05  Jim Meyering  <meyering@redhat.com>
25669
25670         syntax-check: detect unnecessary inclusion of openat.h
25671         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25672
25673 2009-09-05  Bruno Haible  <bruno@clisp.org>
25674
25675         Support towlower, towupper.
25676         * doc/posix-functions/towlower.texi: Mention module wctype.
25677         * doc/posix-functions/towupper.texi: Likewise.
25678         * lib/wctype.in.h (towlower, towupper): New functions.
25679         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25680         (ASSERT): New macro.
25681         (e): New variable.
25682         (main): Test also towlower, towupper. Test WEOF argument.
25683         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25684
25685 2009-09-05  Bruno Haible  <bruno@clisp.org>
25686
25687         Fix conversion behaviour when the input is invalid.
25688         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25689         mark occurring in first pass of indirect conversion.
25690         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25691         input.
25692         Found by clang's static analyzer.
25693
25694 2009-09-05  Bruno Haible  <bruno@clisp.org>
25695
25696         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25697         where direct conversion is possible.
25698
25699 2009-09-04  Eric Blake  <ebb9@byu.net>
25700
25701         openat: fail with ENOENT on empty name
25702         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25703         buffer.
25704
25705         link-follow: fix logic bug in prior patch
25706         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25707         reversed sense of yes and no in prior patch.  Avoid confusing
25708         compilation failure with desired semantics.
25709
25710         link-follow: accomodate mingw and cross-compilation
25711         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25712         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25713         cross-compilation results to -1, to make linkat easier to
25714         implement when cross-compiling.  Trivially support mingw.
25715         * modules/link-follow (configure.ac): Call new name.
25716         * NEWS: Mention this.
25717
25718 2009-09-03  Eric Blake  <ebb9@byu.net>
25719
25720         faccessat: compile replacement
25721         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25722         needed.
25723
25724         fts: fix compilation error
25725         * lib/fts.c (includes): Re-add "openat.h", for
25726         openat_needs_fchdir.
25727
25728         faccessat: new module
25729         * modules/faccessat: New file.
25730         * lib/faccessat.c: Likewise.
25731         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25733         * modules/unistd (Makefile.am): Use it.
25734         * lib/unistd.in.h (faccessat): Declare it.
25735         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25736         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25737         * MODULES.html.sh (File system functions): Mention it.
25738         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25739         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25740
25741         euidaccess: prefer POSIX over non-standard implementation
25742         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25743         * lib/euidaccess.c (euidaccess): Use it if available.
25744
25745         openat: make template easier to use
25746         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25747         AT_FUNC_F2 to be undefined.
25748         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25749         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25750         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25751         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25752         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25753         Likewise.
25754         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25755         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25756         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25757         Likewise.
25758
25759         openat: declare in POSIX headers
25760         * NEWS: Mention this.
25761         * modules/openat (configure.ac): Declare witnesses.
25762         (Depends-on): Add fcntl-h, sys_stat, unistd.
25763         (Include): Mention correct headers.
25764         * modules/fcntl-h (Depends-on): Add link-warning.
25765         (Files): Add openat.m4.
25766         (Makefile.am): Substitute witnesses.
25767         * modules/sys_stat (Files, Makefile.am): Likewise.
25768         * modules/unistd (Files, Makefile.am): Likewise.
25769         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25770         (gl_OPENAT_DEFAULTS): New macro.
25771         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25774         (SYS_STAT_H): Remove unused variable.
25775         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25776         * lib/fcntl--.h (includes): Remove unneeded header.
25777         * lib/openat-safer.c (includes): Likewise.
25778         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25779         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25780         appropriate headers.
25781         (__OPENAT_PREFIX): Delete.
25782         * lib/fcntl.in.h (openat): Provide declaration.
25783         (AT_FDCWD): Fix Solaris bug.
25784         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25785         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25786         * lib/fchmodat.c (includes):  Adjust to find declaration.
25787         * lib/fchownat.c (includes): Likewise.
25788         * lib/mkdirat.c (includes): Likewise.
25789         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25790         still visible.
25791
25792 2009-09-02  Eric Blake  <ebb9@byu.net>
25793
25794         errno: use consistently
25795         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25796         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25797         * lib/canonicalize.c (ELOOP): Likewise.
25798         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25799         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25800         * lib/lchown.c (EOPNOTSUPP): Likewise.
25801         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25802         * lib/savewd.c (ESTALE): Likewise.
25803         * lib/settime.c (ENOSYS): Likewise.
25804         * lib/utimens.c (ENOSYS): Likewise.
25805         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25806         * lib/chdir-safer.c (ELOOP): Likewise.
25807         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25808         * modules/c-stack (Depends-on): Add errno.
25809         * modules/canonicalize (Depends-on): Likewise.
25810         * modules/chdir-safer (Depends-on): Likewise.
25811         * modules/fdopendir (Depends-on): Likewise.
25812         * modules/inet_ntop (Depends-on): Likewise.
25813         * modules/inet_pton (Depends-on): Likewise.
25814         * modules/lchown (Depends-on): Likewise.
25815         * modules/openat (Depends-on): Likewise.
25816         * modules/savewd (Depends-on): Likewise.
25817         * modules/settime (Depends-on): Likewise.
25818         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25819
25820         fts: avoid leaking fds
25821         * modules/fts (Depends-on): Add cloexec.
25822         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25823         flag.
25824
25825         fts: make directory fds more robust
25826         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25827         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25828
25829         backupfile, chdir-long, fts, savedir: make safer
25830         * lib/backupfile.c (includes): Use "dirent--.h", since
25831         numbered_backup can write to stderr during readdir.
25832         * lib/savedir.c (includes): Likewise.
25833         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25834         emulation can write to stderr on failure.
25835         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25836         * lib/getcwd.c: Document why opendir_safer is unused.
25837         * lib/glob.c: Likewise.
25838         * lib/scandir.c: Likewise.
25839         * lib/openat-proc.c: Likewise, for open_safer.
25840         * modules/backupfile (Depends-on): Add dirent-safer.
25841         * modules/savedir (Depends-on): Likewise.
25842         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25843         * modules/chdir-long (Depends-on): Add openat-safer.
25844
25845         openat-safer: new module
25846         * modules/openat-safer: New file.
25847         * lib/openat-safer.c: Likewise.
25848         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25849         * lib/fcntl-safer.h (openat_safer): Declare.
25850         * lib/fcntl--.h (openat): Override.
25851         * MODULES.html.sh (File descriptor based I/O): Mention it.
25852         * lib/openat.h: Add double-inclusion guards.
25853         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25854         "fcntl--.h", so we can implement openat.
25855         * modules/openat-safer-tests: New test.
25856         * tests/test-openat-safer.c: New file.
25857
25858         dirent-safer: new module
25859         * modules/dirent-safer: New file.
25860         * lib/dirent--.h: Likewise.
25861         * lib/dirent-safer.h: Likewise.
25862         * lib/opendir-safer.c: Likewise.
25863         * m4/dirent-safer.m4: Likewise.
25864         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25865         * modules/dirent-safer-tests: New test.
25866         * tests/test-dirent-safer.c: New file.
25867         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25868
25869         fdopendir: optimize on mingw
25870         * lib/unistd.in.h (_gl_directory_name): New prototype.
25871         * lib/fchdir.c (_gl_directory_name): Implement it.
25872         (fchdir): Use it to simplify implementation.
25873         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25874         fchdir, when available, to avoid calling [f]chdir().
25875
25876         fdopendir: split into its own module
25877         * lib/openat.c (fdopendir): Move...
25878         * lib/fdopendir.c: ...into new file.
25879         * modules/fdopendir: New module.
25880         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25881         * modules/openat (Depends-on): Add fdopendir.
25882         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25883         fdopendir here.
25884         * modules/savedir (Depends-on): Only need fdopendir, not full
25885         openat.
25886         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25887         * lib/openat.h (fdopendir): Drop prototype.
25888         * lib/dirent.in.h (fdopendir): Provide prototype.
25889         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25890         * modules/dirent (Makefile.am): Substitute them.
25891         * MODULES.html.sh (File system functions): Mention it.
25892         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25893         * modules/fdopendir-tests: New file.
25894         * tests/test-fdopendir.c: Likewise.
25895
25896         fchdir: use more consistent macro convention
25897         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25898         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25899         REPLACE_FCHDIR, rather than relying on config.h macros.
25900         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25901         inside a single make-time REPLACE_FCHDIR block, rather than using
25902         the config.h FCHDIR_REPLACEMENT.
25903         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25904         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25905         Manage fstat replacement.
25906         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25907         REPLACE_FCHDIR.
25908         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25909         (Makefile.am): Substitute REPLACE_FCHDIR.
25910         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25911         FCHDIR_REPLACEMENT.
25912         * lib/dup-safer.c (dup_safer): Likewise.
25913         * lib/dup2.c (rpl_dup2): Likewise.
25914         * lib/dup3.c (rpl_dup3): Likewise.
25915         * lib/open.c (rpl_open): Likewise.
25916
25917         fchdir: simplify error handling, and support dup3
25918         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25919         stdbool, malloc-posix, realloc-posix.
25920         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25921         (ensure_dirs_slot): Return false on allocation failure.
25922         (rpl_dup2): Delete.
25923         (_gl_register_dup): New function.
25924         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25925         (_gl_register_fd): Close fd on allocation failure.
25926         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25927         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25928         prototype.
25929         (rpl_dup2_fchdir): Delete prototype.
25930         * lib/open.c (open): Update caller.
25931         * lib/dup2.c (dup2): Track fchdir metadata.
25932         * lib/dup3.c (dup3): Likewise.
25933         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25935
25936 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25937
25938         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25939         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25940         don't pass arguments to AC_OUTPUT.
25941
25942 2009-09-02  Bruno Haible  <bruno@clisp.org>
25943
25944         * modules/mkdtemp (License): Relicense under LGPLv2+.
25945         Reported by Paolo Bonzini.
25946
25947 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25948
25949         Replace uses of obsolete autoconf macros in Jim's modules.
25950         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25951         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25952         can evoke a warning from autoconf when run with -Wobsolete
25953         enabled.  They were declared obsolete for good reasons (see
25954         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25955         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25956         should not continue using the deprecated macros.
25957         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25958         obsolete Autoconf macros with modern counterparts.
25959         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25960         * m4/dos.m4 (gl_AC_DOS): Likewise.
25961         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25962         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25963         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25964         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25965         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25967         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25968         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25969         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25970         Likewise.
25971         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25972         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25973         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25974         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25975         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25976         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25977
25978 2009-09-01  Eric Blake  <ebb9@byu.net>
25979
25980         fchdir: fix off-by-one bug in previous patch
25981         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25982         (_gl_unregister_fd): Delete useless if.
25983
25984 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25985
25986         maint.mk: sort the list of syntax-check rules
25987         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25988         easier to get a sense of progress when the rules are run sequentially
25989         and take a long time.
25990
25991 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25992
25993         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25994         * modules/netinet_in: Likewise.
25995         * modules/sys_file: Likewise.
25996         * modules/sys_ioctl: Likewise.
25997         * modules/sys_select: Likewise.
25998         * modules/sys_socket: Likewise.
25999         * modules/sys_stat: Likewise.
26000         * modules/sys_time: Likewise.
26001         * modules/sys_times: Likewise.
26002         * modules/sys_utsname: Likewise.
26003         * modules/sys_wait: Likewise.
26004
26005 2009-09-01  Jim Meyering  <meyering@redhat.com>
26006
26007         fts: help ensure that return values are not ignored
26008         * lib/fts_.h (__GNUC_PREREQ): Define.
26009         (__attribute_warn_unused_result__): Define.
26010         (fts_children, fts_close, fts_open, fts_read): Declare with
26011         __attribute_warn_unused_result__.
26012
26013         fts: fts_close now fails also when closing a dir file descriptor fails
26014         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26015         and propagate to caller, along with errno.
26016
26017         announce-gen: correct formatting in --help output
26018         * build-aux/announce-gen (usage): Move the one-line description in
26019         --help output "up", to where it belongs, just after Usage:.
26020
26021 2009-08-31  Eric Blake  <ebb9@byu.net>
26022
26023         fchdir: port to mingw
26024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26025         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26026         opened, then use a substitute.
26027         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26028         replacement.
26029         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26030         (_gl_register_fd): No need to check stat if open already filters
26031         all directories.
26032         (fchdir): Fix error condition to match POSIX.
26033         * modules/fchdir (Depends-on): Add sys_stat.
26034         * doc/posix-functions/open.texi (open): Document the limitation.
26035         * modules/fchdir-tests: New file.
26036         * tests/test-fchdir.c: Likewise.
26037
26038         canonicalize: allow cross-testing from cygwin to mingw
26039         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26040         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26041         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26042         Likewise.
26043         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26044         target does not support symlinks.
26045         * tests/test-canonicalize-lgpl.sh: Likewise.
26046
26047         chown: avoid compilation warning on mingw
26048         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26049         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26050         mingw.
26051         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26052         * modules/chown (Depends-on): Add errno.
26053
26054 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26055
26056         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26057         command.
26058
26059 2009-08-31  Jim Meyering  <meyering@redhat.com>
26060
26061         canonicalize: remove useless initialization
26062         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26063         initialization of local, "end".
26064
26065 2009-08-30  Bruno Haible  <bruno@clisp.org>
26066
26067         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26068         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26069         ENOSYS.
26070
26071 2009-08-30  Bruno Haible  <bruno@clisp.org>
26072
26073         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26074         /usr/xpg4/bin/tr when it exists.
26075         * tests/test-pipe-filter-gi1.sh: Likewise.
26076
26077 2009-08-30  Bruno Haible  <bruno@clisp.org>
26078
26079         Work around deficient /usr/bin/id program on Solaris.
26080         * tests/test-file-has-acl.sh (ID): New variable.
26081         * tests/test-set-mode-acl.sh (ID): Likewise.
26082         * tests/test-copy-acl.sh (ID): Likewise.
26083         * tests/test-copy-file.sh (ID): Likewise.
26084
26085 2009-08-30  Bruno Haible  <bruno@clisp.org>
26086
26087         New module 'xstriconveh'.
26088         * lib/xstriconveh.h: New file.
26089         * lib/xstriconveh.c: New file.
26090         * modules/xstriconveh: New file.
26091
26092 2009-08-30  Bruno Haible  <bruno@clisp.org>
26093
26094         Make it easier to use mem_cd_iconveh.
26095         * lib/striconveh.h (iconveh_t): New type.
26096         (iconveh_open, iconveh_close): New declarations.
26097         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26098         with a single 'const iconveh_t *' argument.
26099         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26100         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26101         with a single 'const iconveh_t *' argument.
26102         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26103         * tests/test-striconveh.c (main): Update.
26104         * NEWS: Mention the change.
26105
26106 2009-08-30  Bruno Haible  <bruno@clisp.org>
26107
26108         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26109         problem.
26110
26111 2009-08-30  Bruno Haible  <bruno@clisp.org>
26112
26113         Work around iconv_open problem on Solaris.
26114         * lib/iconv_open-solaris.gperf: New file.
26115         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26116         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26117         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26118         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26119         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26120         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26121
26122 2009-08-29  Jim Meyering  <meyering@redhat.com>
26123
26124         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26125         * top/maint.mk (cvs-check): Remove target; it was just an alias
26126         to the better-named vc-diff-check.
26127         (maintainer-distcheck): Remove rule.  It was used only from
26128         the (alpha/beta/major) target, and all of its commands but one
26129         were coreutils-specific.
26130         (vc-dist): Remove rule.
26131         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26132         Run vc-diff-check, not vc-dist.
26133         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26134
26135 2009-08-27  Bruno Haible  <bruno@clisp.org>
26136
26137         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26138         of 0.
26139
26140 2009-08-27  Bruno Haible  <bruno@clisp.org>
26141
26142         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26143         compilers.
26144         * doc/func.texi: Document the SunPRO C bug.
26145
26146 2009-08-27  Bruno Haible  <bruno@clisp.org>
26147
26148         Fix link error on Solaris.
26149         * tests/test-parse-duration.c (xstrdup): Remove function.
26150
26151 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26152
26153         ignore-value: handle pointer types, too
26154         * lib/ignore-value.h (__attribute__): Remove definition.
26155         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26156         of a more concise and more-often effective "(void) i" statement.
26157         (ignore_ptr): New function to suppress warnings from functions that
26158         return pointers, and to make it explicit that one function doesn't
26159         handle all cases.
26160
26161 2009-08-25  Bruno Haible  <bruno@clisp.org>
26162
26163         dup2: work around a Linux bug.
26164         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26165         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26166         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26167         Reported by Simon Josefsson.
26168
26169 2009-08-25  Jim Meyering  <meyering@redhat.com>
26170
26171         libguestfs uses gnulib
26172         * users.txt: Add libguestfs.
26173
26174 2009-08-24  Eric Blake  <ebb9@byu.net>
26175
26176         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26177         * lib/pipe2.c (includes): Add binary-io.h.
26178         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26179
26180 2009-08-24  Bruno Haible  <bruno@clisp.org>
26181
26182         Tolerate declared but missing accept4 syscall.
26183         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26184         available.
26185         * lib/sys_socket.in.h (accept4): If the function is already present,
26186         override it.
26187         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26188         * modules/accept4 (Makefile.am): Compile accept4.c always.
26189         Reported by Paolo Bonzini and Eric Blake.
26190
26191 2009-08-23  Bruno Haible  <bruno@clisp.org>
26192
26193         New module 'accept4'.
26194         * lib/sys_socket.in.h (accept4): New declaration.
26195         * lib/accept4.c: New file.
26196         * m4/accept4.m4: New file.
26197         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26198         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26199         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26200         HAVE_ACCEPT4.
26201         * modules/accept4: New file.
26202         * doc/glibc-functions/accept4.texi: Mention the new module.
26203
26204 2009-08-24  Jim Meyering  <meyering@redhat.com>
26205
26206         progname: also set global program_invocation_name, when possible
26207         Before this change, a libtool-enabled program that calls glibc's
26208         error function would report the program name as
26209         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26210         * modules/progname (configure.ac): Check for a declaration of
26211         program_invocation_name.
26212         * lib/progname.c:  Include <errno.h>.
26213         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26214         Set program_invocation_name.
26215
26216 2009-08-23  Bruno Haible  <bruno@clisp.org>
26217
26218         * lib/dup3.c: Include <string.h>.
26219
26220 2009-08-23  Bruno Haible  <bruno@clisp.org>
26221
26222         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26223         * lib/pipe2.c (pipe2): Likewise.
26224         Suggested by Eric Blake.
26225
26226 2009-08-23  Bruno Haible  <bruno@clisp.org>
26227
26228         Tolerate declared but missing dup3 syscall.
26229         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26230         * lib/unistd.in.h (dup3): If the function is already present,
26231         override it.
26232         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26233         * modules/dup3 (Makefile.am): Compile dup3.c always.
26234         Reported by Paolo Bonzini.
26235
26236 2009-08-23  Bruno Haible  <bruno@clisp.org>
26237
26238         Tolerate declared but missing pipe2 syscall.
26239         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26240         available.
26241         * lib/unistd.in.h (pipe2): If the function is already present,
26242         override it.
26243         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26244         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26245         Reported by Paolo Bonzini.
26246
26247 2009-08-23  Bruno Haible  <bruno@clisp.org>
26248
26249         * lib/pipe2.c (pipe2): Move #ifs inside function.
26250
26251 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26252
26253         quotearg: document limitations of quote_these_too
26254         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26255         those limitations are created.
26256         * lib/quotearg.h (set_char_quoting): Document that digits and
26257         letters that are special after backslash are not permitted.
26258         (quotearg_char): Cross-reference set_char_quoting documentation.
26259
26260 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26261
26262         quotearg: implement custom_quoting_style
26263         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26264         right_quote fields.
26265         (set_custom_quoting): New public function.
26266         (quotearg_buffer_restyled): Add left_quote and right_quote
26267         arguments, handle them very much like locale quoting, and update
26268         all uses.
26269         (quotearg_n_custom): New public function.
26270         (quotearg_n_custom_mem): New public function.
26271         (quotearg_custom): New public function.
26272         (quotearg_custom_mem): New public function.
26273         * lib/quotearg.h: Prototype and document new public functions.
26274         (enum quoting_style): For escape_quoting_style and
26275         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26276         ignored even though they're otherwise like c_quoting_style.
26277         Add custom_quoting_style member and document with comparison to
26278         clocale_quoting_style.
26279         * tests/test-quotearg.c (custom_quotes): New array.
26280         (custom_results): New array.
26281         (main): Extend to test custom quoting.
26282
26283 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26284
26285         quotearg: fix right quote escaping when it's in quote_these_too
26286         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26287         quote, be sure to prepend only one backslash.
26288         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26289         (main): Test it.
26290
26291 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26292
26293         quotearg-tests: test escaping of embedded locale quotes
26294         * tests/test-quotearg.c (struct result_strings): Add member for
26295         new input.
26296         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26297         (inputs): Add new input.
26298         (results_g): Add expected results.
26299         (flag_results): Likewise.
26300         (locale_results): Likewise.
26301         (compare_strings): Check those.
26302
26303 2009-08-23  Bruno Haible  <bruno@clisp.org>
26304
26305         Tests for module 'dup3'.
26306         * modules/dup3-tests: New file.
26307         * tests/test-dup3.c: New file.
26308
26309         New module 'dup3'.
26310         * lib/unistd.in.h (dup3): New declaration.
26311         * lib/dup3.c: New file.
26312         * m4/dup3.m4: New file.
26313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26314         HAVE_DUP3.
26315         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26316         * modules/dup3: New file.
26317         * doc/glibc-functions/dup3.texi: Mention the new module.
26318
26319 2009-08-23  Bruno Haible  <bruno@clisp.org>
26320
26321         Tweak the dup2 test.
26322         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26323         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26324         the test file is still empty. Fix argument order of lseek.
26325
26326 2009-08-23  Bruno Haible  <bruno@clisp.org>
26327
26328         Avoid test link errors when the modules getopt-gnu, gettext are used.
26329         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26331
26332 2009-08-23  Bruno Haible  <bruno@clisp.org>
26333
26334         Fix getdtablesize() on mingw.
26335         * lib/getdtablesize.c (getdtablesize): Implement differently.
26336         * lib/unistd.in.h (getdtablesize): Improve comment.
26337
26338 2009-08-23  Bruno Haible  <bruno@clisp.org>
26339
26340         New module 'mkostemp'.
26341         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26342         * lib/stdlib.in.h (mksotemp): New declaration.
26343         * lib/mkostemp.c: New file, from glibc with modifications.
26344         * lib/tempname.h (GT_FILE): Remove outdated comment.
26345         (gen_tempname): Add flags argument.
26346         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26347         (__GT_FILE): Map to 1.
26348         (small_open, large_open): Remove macros.
26349         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26350         * lib/mkstemp.c (mkstemp): Update.
26351         * lib/mkdtemp.c (mkdtemp): Likewise.
26352         * m4/mkostemp.m4: New file.
26353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26354         HAVE_MKOSTEMP.
26355         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26356         HAVE_MKOSTEMP.
26357         * modules/mkostemp: New file, based on modules/mkstemp.
26358         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26359         * NEWS: Mention the change.
26360
26361 2009-08-23  Bruno Haible  <bruno@clisp.org>
26362
26363         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26364         Reported by Eric Blake.
26365
26366 2009-08-23  Bruno Haible  <bruno@clisp.org>
26367
26368         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26369         Reported by Eric Blake.
26370
26371 2009-08-23  Bruno Haible  <bruno@clisp.org>
26372
26373         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26374         * modules/pipe2 (Depends-on): Likewise.
26375
26376 2009-08-23  Eric Blake  <ebb9@byu.net>
26377
26378         fcntl-h: add O_TTY_INIT support
26379         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26380         * tests/test-fcntl-h.c (o): Test it.
26381         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26382
26383         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26384         * modules/fcntl: Move <fcntl.h> header replacement...
26385         * modules/fcntl-h: ...to new name, so as not to collide with
26386         like-named function.
26387         * tests/test-fcntl.c: Rename...
26388         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26389         * modules/fcntl-tests: Rename...
26390         * modules/fcntl-h-tests: ...to this.  Update test file name.
26391         * modules/chdir-long (Depends-on): Update clients.
26392         * modules/chdir-safer (Depends-on): Likewise.
26393         * modules/fcntl-safer (Depends-on): Likewise.
26394         * modules/fts (Depends-on): Likewise.
26395         * modules/mkancesdirs (Depends-on): Likewise.
26396         * modules/mkdir-p (Depends-on): Likewise.
26397         * modules/open (Depends-on): Likewise.
26398         * modules/savewd (Depends-on): Likewise.
26399         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26400         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26401
26402 2009-08-22  Bruno Haible  <bruno@clisp.org>
26403
26404         * modules/binary-io (License): Relicense under LGPL.
26405         * modules/pipe2 (License): Likewise.
26406
26407 2009-08-22  Bruno Haible  <bruno@clisp.org>
26408
26409         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26410         return value.
26411         * lib/pipe-filter-gi.c (filter_init): Likewise.
26412         Reported by Eric Blake.
26413
26414 2009-08-22  Bruno Haible  <bruno@clisp.org>
26415
26416         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26417         * modules/pipe (Depends-on): Add pipe2.
26418
26419 2009-08-22  Bruno Haible  <bruno@clisp.org>
26420
26421         Tests for module 'pipe2'.
26422         * modules/pipe2-tests: New file.
26423         * tests/test-pipe2.c: New file.
26424
26425         New module 'pipe2'.
26426         * lib/unistd.in.h (pipe2): New declaration.
26427         * lib/pipe2.c: New file.
26428         * m4/pipe2.m4: New file.
26429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26430         HAVE_PIPE2.
26431         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26432         * modules/pipe2: New file.
26433         * doc/glibc-functions/pipe2.texi: Mention the new module.
26434
26435 2009-08-22  Bruno Haible  <bruno@clisp.org>
26436
26437         Reference some new glibc functions.
26438         * doc/glibc-functions/accept4.texi: New file.
26439         * doc/glibc-functions/dup3.texi: New file.
26440         * doc/glibc-functions/mkostemp.texi: New file.
26441         * doc/glibc-functions/pipe2.texi: New file.
26442         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26443         (Glibc sys/socket.h): Refer to accept4.
26444         (Glibc unistd.h): Refer to dup3, pipe2.
26445         Reported by Eric Blake.
26446
26447 2009-08-22  Jim Meyering  <meyering@redhat.com>
26448             Bruno Haible  <bruno@clisp.org>
26449
26450         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26451         This makes it so packages using automake-1.11's silent-rules option
26452         can print e.g., a single "GEN    configmake.h" line, rather than
26453         the 30+ statements that perform the job.  If you want to see the
26454         actual commands, you can still run "make V=1".
26455         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26456         so that make output is abbreviated when those variables are defined
26457         appropriately.
26458         * modules/argz: Likewise.
26459         * modules/arpa_inet: Likewise.
26460         * modules/byteswap: Likewise.
26461         * modules/configmake: Likewise.
26462         * modules/dirent: Likewise.
26463         * modules/errno: Likewise.
26464         * modules/fcntl: Likewise.
26465         * modules/float: Likewise.
26466         * modules/fnmatch: Likewise.
26467         * modules/getopt-posix: Likewise.
26468         * modules/glob: Likewise.
26469         * modules/iconv_open: Likewise.
26470         * modules/inttypes: Likewise.
26471         * modules/localcharset: Likewise.
26472         * modules/locale: Likewise.
26473         * modules/math: Likewise.
26474         * modules/netdb: Likewise.
26475         * modules/netinet_in: Likewise.
26476         * modules/poll: Likewise.
26477         * modules/posix_spawnp-tests: Likewise.
26478         * modules/sched: Likewise.
26479         * modules/search: Likewise.
26480         * modules/selinux-h: Likewise.
26481         * modules/signal: Likewise.
26482         * modules/spawn: Likewise.
26483         * modules/stdarg: Likewise.
26484         * modules/stdbool: Likewise.
26485         * modules/stddef: Likewise.
26486         * modules/stdint: Likewise.
26487         * modules/stdio: Likewise.
26488         * modules/stdlib: Likewise.
26489         * modules/string: Likewise.
26490         * modules/strings: Likewise.
26491         * modules/sys_file: Likewise.
26492         * modules/sys_ioctl: Likewise.
26493         * modules/sys_select: Likewise.
26494         * modules/sys_socket: Likewise.
26495         * modules/sys_stat: Likewise.
26496         * modules/sys_time: Likewise.
26497         * modules/sys_times: Likewise.
26498         * modules/sys_utsname: Likewise.
26499         * modules/sys_wait: Likewise.
26500         * modules/sysexits: Likewise.
26501         * modules/time: Likewise.
26502         * modules/unistd: Likewise.
26503         * modules/wchar: Likewise.
26504         * modules/wctype: Likewise.
26505
26506 2009-08-22  Jim Meyering  <meyering@redhat.com>
26507
26508         announce-gen: detect write failure
26509         * build-aux/announce-gen: Add Coda at end.
26510         Remove equivalent-but-more-verbose block at top.
26511
26512 2009-08-19  Akim Demaille  <demaille@gostai.com>
26513
26514         bootstrap: --help to stdout.
26515         * bootstrap (usage): Don't send --help to stderr.
26516         Use a here doc instead of a long string.
26517
26518 2009-08-21  Eric Blake  <ebb9@byu.net>
26519
26520         test-popen-safer: split from test-popen
26521         * tests/test-popen.c (main): Move...
26522         * tests/test-popen.h: ...into new file.
26523         * tests/test-popen-safer2.c: New file.
26524         * modules/popen-tests (Files): Add test-popen.h.
26525         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26526         Suggested by Bruno Haible.
26527
26528         test-fcntl-safer: split from test-open
26529         * tests/test-open.c (main): Move...
26530         * tests/test-open.h: ...into new file.
26531         * tests/test-fcntl-safer.c: New file.
26532         * modules/open-tests (Files): Add test-open.h.
26533         * modules/fcntl-safer-tests: New file.
26534         Suggested by Bruno Haible.
26535
26536         test-fopen-safer: split from test-fopen
26537         * tests/test-fopen.c (main): Move...
26538         * tests/test-fopen.h: ...into new file.
26539         * tests/test-fopen-safer.c: New file.
26540         * modules/fopen-tests (Files): Add test-fopen.h.
26541         * modules/fopen-safer-tests: New file.
26542         Suggested by Bruno Haible.
26543
26544 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26545
26546         popen-safer: test O_CLOEXEC at run-time.
26547         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26548
26549 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26550
26551         fcntl: move more flags to the header
26552         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26553         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26554         * lib/fcntl.in.h: Do both things here.
26555
26556 2009-08-21  Jim Meyering  <meyering@redhat.com>
26557
26558         consistently remove $@-t before redirecting to it
26559         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26560         * modules/alloca-opt: Likewise.
26561         * modules/byteswap: Likewise.
26562         * modules/fnmatch: Likewise.
26563         * modules/getopt-posix: Likewise.
26564         * modules/glob: Likewise.
26565         * modules/poll: Likewise.
26566         * modules/posix_spawnp-tests: Likewise.
26567         * modules/sys_socket: Likewise.
26568         * modules/sysexits: Likewise.
26569
26570 2009-08-21  Eric Blake  <ebb9@byu.net>
26571
26572         popen: simplify access to original popen
26573         * lib/popen.c (rpl_popen): No need to worry about popen being a
26574         macro.
26575         Reported by Bruno Haible.
26576
26577 2009-08-20  Eric Blake  <ebb9@byu.net>
26578
26579         build: avoid some compiler warnings
26580         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26581         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26582         type.
26583         (new_exclude_segment, excluded_file_pattern_p)
26584         (excluded_file_name_p): Reduce scope.
26585         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26586         old-style declaration.
26587
26588 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26589
26590         * tests/test-exclude1.sh: Handle Windows EOL.
26591         * tests/test-exclude2.sh: Likewise.
26592         * tests/test-exclude3.sh: Likewise.
26593         * tests/test-exclude4.sh: Likewise.
26594         * tests/test-exclude5.sh: Likewise.
26595         * tests/test-exclude6.sh: Likewise.
26596         * tests/test-exclude7.sh: Likewise.
26597
26598 2009-08-19  Akim Demaille  <demaille@gostai.com>
26599
26600         bootstrap: find sha1sum when named gsha1sum.
26601         * bootstrap (find_tool): New.
26602         ($SHA1SUM): New.
26603         Use it.
26604
26605 2009-08-20  Jim Meyering  <meyering@redhat.com>
26606
26607         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26608         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26609         expression that converts "." in a file name to "\." in the resulting
26610         regexp.  Start with a dummy statement, so that prior shell variable
26611         definitions are expanded portably.  Reported by Simon Josefsson.
26612
26613 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26614
26615         Fix polling for writeability of a screen buffer.
26616         * lib/poll.c: Distinguish input and screen buffers for the
26617         Win32 implementation.
26618         * lib/select.c: Likewise.
26619
26620 2009-08-19  Eric Blake  <ebb9@byu.net>
26621
26622         popen-safer: prevent popen from clobbering std descriptors
26623         * modules/popen-safer: New file.
26624         * lib/popen-safer.c: Likewise.
26625         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26626         * lib/stdio--.h (popen): Provide override.
26627         * lib/stdio-safer.h (popen_safer): Provide declaration.
26628         * tests/test-popen.c (includes): Partially test this.
26629         * modules/popen-safer-tests: New file, for more tests.
26630         * tests/test-popen-safer.c: Likewise.
26631         * MODULES.html.sh (file stream based Input/Output): Mention it.
26632
26633         tests: test some of the *-safer modules
26634         * modules/fopen-safer (Depends-on): Add fopen.
26635         * modules/fcntl-safer (Depends-on): Add fcntl.
26636         * modules/stdlib-safer (Depends-on): Add stdlib.
26637         (configure.ac): Set indicator.
26638         * modules/unistd-safer (configure.ac): Likewise.
26639         * modules/tmpfile-safer (configure.ac): Likewise.
26640         (Depends-on): Add tmpfile.
26641         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26642         active.
26643         * tests/test-fopen.c (includes): Test safer versions when they are
26644         in use.
26645         * tests/test-open.c (includes): Likewise.
26646
26647         popen: fix cygwin 1.5 bug when stdin closed
26648         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26649         * modules/popen: New file.
26650         * modules/popen-tests: Likewise.
26651         * tests/test-popen.c: Likewise.
26652         * m4/popen.m4: Likewise.
26653         * lib/popen.c: Likewise.
26654         * lib/stdio.in.h (popen): New declaration.
26655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26656         * modules/stdio (Makefile.am): Likewise.
26657         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26658
26659 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26660
26661         maint.mk: give full control over update-copyright exclusions
26662         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26663         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26664         (update-copyright): Don't force inclusion of top-level
26665         ChangeLog.  Don't force exclusion of all COPYING files, but make
26666         them the default exclusion instead.
26667
26668 2009-08-16  Bruno Haible  <bruno@clisp.org>
26669
26670         Fix test failures on Solaris 10.
26671         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26672         tests when Solaris iconv() is used.
26673         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26674         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26675         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26676         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26677         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26678
26679 2009-08-16  Bruno Haible  <bruno@clisp.org>
26680
26681         Fix test failures on Solaris 10.
26682         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26683         'tr' program and pass it as first argument.
26684         * tests/test-pipe-filter-gi1.sh: Likewise.
26685         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26686         program as first argument.
26687         * tests/test-pipe-filter-gi1.c (main): Likewise.
26688
26689 2009-08-16  Eric Blake  <ebb9@byu.net>
26690
26691         fpurge: fix previous commits
26692         * modules/fpurge (Makefile.am): Make replacement conditional,
26693         partially reverting 2007-04-29 change; missed in previous
26694         attempt.
26695         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26696         is missing.
26697
26698 2009-08-16  Bruno Haible  <bruno@clisp.org>
26699
26700         Clarify fpurge's effect on the file position.
26701         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26702         * tests/test-fpurge.c (main): Make a second pass for checking the file
26703         position.
26704
26705 2009-08-16  Bruno Haible  <bruno@clisp.org>
26706
26707         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26708         declaration of fpurge is missing.
26709         * tests/test-fpurge.c (main): Check that the file has not more contents
26710         than expected. Close the file before removing it.
26711
26712 2009-08-15  Eric Blake  <ebb9@byu.net>
26713
26714         fpurge: don't wrap working cygwin implementation
26715         * lib/fpurge.c (fpurge): Fix comment typo.
26716         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26717         1.7 to avoid replacement.
26718         * tests/test-fpurge.c (main): Enhance test.
26719
26720 2009-08-15  Eric Blake  <ebb9@byu.net>
26721         and Jim Meyering  <meyering@redhat.com>
26722
26723         test-update-copyright: skip if perl is insufficient
26724         * tests/test-update-copyright.sh: Failure to run maintainer tool
26725         should not cause testsuite failure on cygwin 1.5.
26726
26727 2009-08-14  Eric Blake  <ebb9@byu.net>
26728
26729         doc: mention more functions added in cygwin 1.7.0
26730         * doc/posix-headers/limits.texi (limits.h): Update for recent
26731         cygwin additions.
26732         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26733         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26734         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26735         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26736         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26737
26738 2009-08-14  Eric Blake  <ebb9@byu.net>
26739
26740         maint.mk: simplify update-copyright rule
26741         * top/maint.mk (update-copyright-local): Delete, and document how
26742         to do it in cfg.mk instead.
26743         (update-copyright-exclude-regexp): Delete, and document how to do
26744         it in .x-update-copyright instead.
26745         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26746         exclude ChangeLog.
26747
26748 2009-08-14  Bruno Haible  <bruno@clisp.org>
26749
26750         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26751
26752 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26753
26754         maint.mk: support update-copyright-env
26755         * top/maint.mk (update-copyright-env): Define place-holder.
26756         (update-copyright): Expand $(update-copyright-env) before
26757         invoking update-copyright.
26758
26759 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26760
26761         update-copyright: implement forced reformatting
26762         * build-aux/update-copyright: Implement and document
26763         UPDATE_COPYRIGHT_FORCE.
26764         * tests/test-update-copyright.sh: Test it.
26765
26766 2009-08-14  Eric Blake  <ebb9@byu.net>
26767         and Bruno Haible  <bruno@clisp.org>
26768
26769         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26770         * tests/test-locale.c: Revert previous patch related to NULL.
26771         * tests/test-stdio.c: Likewise.
26772         * tests/test-stdlib.c: Likewise.
26773         * tests/test-string.c: Likewise.
26774         * tests/test-unistd.c: Likewise.
26775         * modules/time-tests (Depends-on): Add verify.
26776         * modules/wchar-tests (Depends-on): Likewise.
26777         * tests/test-time.c: Test for NULL compliance.
26778         * tests/test-wchar.c: Likewise.
26779         * modules/locale (Depends-on): Add stddef.
26780         * modules/stdio (Depends-on): Likewise.
26781         * modules/stdlib (Depends-on): Likewise.
26782         * modules/string (Depends-on): Likewise.
26783         * modules/time (Depends-on): Likewise.
26784         * modules/unistd (Depends-on): Likewise.
26785         * modules/wchar (Depends-on): Likewise.
26786         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26787         * lib/stdlib.in.h (includes): Likewise.
26788         * lib/string.in.h (includes): Likewise.
26789         * lib/time.in.h (includes): Likewise.
26790         * lib/unistd.in.h (includes): Likewise.
26791         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26792         replaced.
26793         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26794         * m4/stddef_h.m4: New file.
26795         * modules/stddef: Likewise.
26796         * lib/stddef.in.h: Likewise.
26797         * modules/stddef-tests: Likewise.
26798         * tests/test-stddef.c: Likewise.
26799         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26800         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26801         * doc/posix-headers/locale.texi (locale.h): Likewise.
26802         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26803         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26804         * doc/posix-headers/string.texi (string.h): Likewise.
26805         * doc/posix-headers/time.texi (time.h): Likewise.
26806         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26807         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26808
26809 2009-08-14  Eric Blake  <ebb9@byu.net>
26810
26811         doc: improve git diff of texinfo files
26812         * .gitattributes: Add rule for *.texi files, with hint on how to
26813         use it.
26814         Copied from m4, and based on a report by Bruno Haible.
26815
26816 2009-08-14  Bruno Haible  <bruno@clisp.org>
26817
26818         Disable multithread support by default on Cygwin 1.5.x for real.
26819         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26820
26821 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26822
26823         update-copyright: much ado about intervals
26824         * build-aux/update-copyright: Implement and document
26825         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26826         of copyright year intervals.
26827         Also, document UPDATE_COPYRIGHT_YEAR.
26828         * tests/test-update-copyright.sh: Test it.
26829
26830         update-copyright: convert 2-digit to 4-digit years
26831         * build-aux/update-copyright: Implement and document.
26832         * tests/test-update-copyright.sh: Update.
26833
26834 2009-08-14  Jim Meyering  <meyering@redhat.com>
26835
26836         test-exclude: avoid coreutils "make check" failure
26837         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26838         just as in test-argmatch.c.
26839
26840 2009-08-13  Eric Blake  <ebb9@byu.net>
26841
26842         test-dup2: fix bad assumption
26843         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26844         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26845
26846         test-version-etc: fix CRLF portability issue
26847         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26848         recognize \r.
26849         * tests/test-argp-version-etc-1.sh: Likewise.
26850
26851         getopt: update client modules
26852         * modules/argp (Depends-on): Use getopt-gnu.
26853         * modules/git-merge-changelog (Depends-on): Likewise.
26854         * modules/long-options (Depends-on): Likewise.
26855         * modules/xstrtol (Depends-on): Likewise.
26856
26857 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26858
26859         * tests/test-version-etc.sh: Don't fail on different
26860         project/version.  Don't fail on CRLF differences.  Rewrite to use
26861         multiple -e instead of multiple sed forks, suggested by Eric Blake
26862         <ebb9@byu.net>.
26863         * tests/test-argp-version-etc-1.sh: Likewise.
26864
26865 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26866
26867         * tests/test-version-etc.sh: Don't fail on different
26868         project/version.
26869
26870 2009-08-12  Bruno Haible  <bruno@clisp.org>
26871
26872         Tests for modules 'getopt-posix', 'getopt-gnu'.
26873         * modules/getopt-posix-tests: New file.
26874         * tests/test-getopt.c: New file.
26875         * tests/test-getopt.h: New file.
26876         * tests/test-getopt_long.h: New file.
26877
26878         New modules 'getopt-posix', 'getopt-gnu'.
26879         * modules/getopt-gnu: New file, renamed from modules/getopt.
26880         * modules/getopt-posix: New file.
26881         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26882         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26883         (gl_GETOPT): Remove macro.
26884         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26885         Disable the test against BSD systems that declare optreset. Test
26886         against mingw bug. Test against lack of support of optional arguments
26887         on many platforms.
26888         * doc/glibc-headers/getopt.texi: Update module name and list of
26889         relevant platforms.
26890         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26891         'getopt-gnu' and more portability problems.
26892         * NEWS: Mention the changes.
26893
26894 2009-08-12  Bruno Haible  <bruno@clisp.org>
26895
26896         Ensure that optarg etc. get declared by <unistd.h>.
26897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26898         AC_USE_SYSTEM_EXTENSIONS.
26899         * modules/getopt (Depends-on): Add 'extensions'.
26900
26901 2009-08-12  Bruno Haible  <bruno@clisp.org>
26902
26903         Avoid test link errors.
26904         * modules/pipe-filter-ii-tests (Makefile.am): Define
26905         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26906         * modules/pipe-filter-gi-tests (Makefile.am): Define
26907         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26909
26910 2009-08-12  Bruno Haible  <bruno@clisp.org>
26911
26912         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26913         gl_GETOPT_SUBSTITUTE before.
26914         (gl_GETOPT): Use it.
26915         * m4/argp.m4 (gl_ARGP): Update.
26916         Reported by Sergey Poznyakoff.
26917
26918         * m4/getopt.m4: Reorder macros.
26919         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26920         (gl_GETOPT_SUBSTITUTE): Remove macro.
26921
26922 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26923
26924         Minor improvement in gitlog-to-changelog
26925
26926         * build-aux/gitlog-to-changelog: New option `--format' makes
26927         output format string configurable.
26928
26929 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26930
26931         Optimize exclude: use hash tables for non-wildcard patterns.
26932
26933         * lib/exclude.c: Include hash.h and mbuiter.h
26934         (struct exclude_pattern, exclude_segment): New data types.
26935         (struct exclude): Rewrite.
26936         (fnmatch_pattern_has_wildcards): New function.
26937         (new_exclude_segment, free_exclude_segment): New functions.
26938         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26939         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26940         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26941         * modules/exclude: Depend on hash and mbuiter.
26942
26943         * modules/exclude-tests: New file.
26944         * tests/test-exclude.c: New file.
26945         * tests/test-exclude1.sh: New file.
26946         * tests/test-exclude2.sh: New file.
26947         * tests/test-exclude3.sh: New file.
26948         * tests/test-exclude4.sh: New file.
26949         * tests/test-exclude5.sh: New file.
26950         * tests/test-exclude6.sh: New file.
26951         * tests/test-exclude7.sh: New file.
26952
26953 2009-08-12  Bruno Haible  <bruno@clisp.org>
26954
26955         Ensure that getopt() gets declared by <unistd.h>.
26956         * lib/unistd.in.h: Conditionally include getopt.h.
26957         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26958         Set GNULIB_UNISTD_H_GETOPT.
26959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26960         GNULIB_UNISTD_H_GETOPT.
26961         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26962
26963 2009-08-12  Bruno Haible  <bruno@clisp.org>
26964
26965         Clarify logic.
26966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26967         gl_replace_getopt instead of GETOPT_H.
26968
26969 2009-08-12  Bruno Haible  <bruno@clisp.org>
26970
26971         * m4/getopt.m4: Add comments.
26972
26973 2009-08-12  Bruno Haible  <bruno@clisp.org>
26974
26975         Disable multithread support by default on Cygwin 1.5.x.
26976         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26977         set gl_use_threads=no if not specified otherwise.
26978
26979 2009-08-11  Bruno Haible  <bruno@clisp.org>
26980
26981         Avoid compilation error on NetBSD 5.0.
26982         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26983         * tests/test-stdio.c: Likewise.
26984         * tests/test-stdlib.c: Likewise.
26985         * tests/test-string.c: Likewise.
26986         * tests/test-unistd.c: Likewise.
26987         Reported by Greg Troxel <gdt@ir.bbn.com>
26988         at <https://savannah.gnu.org/support/?106973>.
26989
26990 2009-08-11  Bruno Haible  <bruno@clisp.org>
26991
26992         * modules/dup2-tests (Depends-on): Remove close.
26993
26994         Undo 2009-07-19 commit.
26995         * modules/acl-tests (Depends-on): Remove close.
26996         * modules/binary-io-tests (Depends-on): Likewise.
26997         * modules/closein-tests (Depends-on): Likewise.
26998         * modules/flock-tests (Depends-on): Likewise.
26999         * modules/fsync-tests (Depends-on): Likewise.
27000         * modules/lseek-tests (Depends-on): Likewise.
27001         * modules/pipe-tests (Depends-on): Likewise.
27002         * modules/posix_spawn-tests (Depends-on): Likewise.
27003         * modules/posix_spawnp-tests (Depends-on): Likewise.
27004         * modules/stat-time-tests (Depends-on): Likewise.
27005         * modules/yesno-tests (Depends-on): Likewise.
27006
27007 2009-08-10  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27010
27011 2009-08-10  Bruno Haible  <bruno@clisp.org>
27012
27013         Fix a gcc warning.
27014         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27015
27016 2009-08-10  Bruno Haible  <bruno@clisp.org>
27017
27018         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27019         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27020         not only the first time.
27021         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27022         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27023         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27024         is 1, not only the the first time.
27025
27026 2009-08-10  Bruno Haible  <bruno@clisp.org>
27027
27028         Make it possible to use module 'gethostname' without module 'close'.
27029         * lib/unistd.in.h (close): Evoke a link error only if
27030         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27032         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27033         * modules/unistd (Makefile.am): Substitute
27034         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27035         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27036         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27037         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27038         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27039         * modules/sys_ioctl (Makefile.am): Substitute
27040         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27041         * modules/socket (configure.ac): On native Windows, set
27042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27043         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27044         Reported by Sam Steingold <sds@gnu.org>.
27045
27046 2009-08-10  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27049         * modules/ioctl (configure.ac): Likewise.
27050
27051 2009-08-10  Bruno Haible  <bruno@clisp.org>
27052
27053         Avoid collision between gnulib wrapper and libintl wrapper.
27054         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27055         already defined in intl/printf.c.
27056         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27057         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27058
27059 2009-08-09  Bruno Haible  <bruno@clisp.org>
27060
27061         Make <sys/select.h> really self-contained, also on Solaris 10.
27062         * lib/sys_select.in.h: Include <string.h>.
27063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27064         Solaris 10 problem.
27065         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27066         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27067         Reported by Jim Meyering.
27068
27069 2009-08-09  Bruno Haible  <bruno@clisp.org>
27070
27071         Avoid warnings from 'aclocal' that are due to a use of macro name
27072         AM_XGETTEXT_OPTION that is not defined in automake.
27073         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27074         automake.
27075         * modules/error (configure.ac): Likewise.
27076         * modules/propername (configure.ac): Likewise.
27077         * modules/vasprintf (configure.ac): Likewise.
27078         * modules/verror (configure.ac): Likewise.
27079         * modules/xprintf (configure.ac): Likewise.
27080         * modules/xvasprintf (configure.ac): Likewise.
27081
27082 2009-08-08  Bruno Haible  <bruno@clisp.org>
27083
27084         Avoid compilation error in C++ mode.
27085         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27086         Reported by Sam Steingold <sds@gnu.org>.
27087
27088 2009-08-08  Bruno Haible  <bruno@clisp.org>
27089
27090         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27091         for the various Unix platforms.
27092         * doc/posix-headers/limits.texi: Update platforms list regarding
27093         HOST_NAME_MAX.
27094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27095
27096 2009-08-07  Jim Meyering  <meyering@redhat.com>
27097
27098         selinux-at: fix typo in a comment
27099         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27100         Spotted by Paolo Bonzini.
27101
27102         selinux-at: remove redundant m4 code, add documentation
27103         * modules/selinux-at (configure.ac): Remove redundant code.
27104         LIB_SELINUX is already set via the dependent module, selinux-h.
27105         (Include): Add quotes around selinux-at.h.
27106         * lib/selinux-at.h: Add documentation.
27107         Reported by Bruno Haible in
27108         http://marc.info/?l=gnulib-bug&m=124958988300749
27109
27110 2009-08-07  Bruno Haible  <bruno@clisp.org>
27111
27112         Avoid link error on MacOS X 10.3 and 10.4.
27113         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27114         on non-ELF systems.
27115         * lib/argp-pv.c (argp_program_version): Likewise.
27116         Reported by Simon Josefsson.
27117
27118 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27119
27120         * tests/test-version-etc.sh: Use $EXEEXT.
27121
27122 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27123
27124         update-copyright: update documentation to point to maint.mk
27125         * build-aux/update-copyright: Here.
27126
27127 2009-08-06  Jim Meyering  <meyering@redhat.com>
27128
27129         maint.mk: support update-copyright-local
27130         * top/maint.mk (update-copyright-local): Define place-holder.
27131         (update-copyright): Depend on $(update-copyright-local).
27132
27133 2009-08-06  Jim Meyering  <meyering@redhat.com>
27134
27135         selinux-at: new module
27136         Initially written for coreutils, this module will soon be
27137         used by findutils, too.
27138         * MODULES.html.sh [Misc]: Add selinux-at.
27139         * lib/selinux-at.h: New file, from coreutils.
27140         * lib/selinux-at.c: Likewise.
27141         * modules/selinux-at: Likewise.
27142         (License): Change from LGPL to GPL, since it depends
27143         on the GPL'd openat module.
27144
27145         doc: update README
27146         * README: Remove references to cogito.
27147         Remove cvs-repo-updating instructions from 2007.
27148         Don't imply that CVS is better if you have limited disk space.
27149
27150 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27151
27152         update-copyright: support C-style comments
27153         * build-aux/update-copyright: Implement and document.
27154         * tests/test-update-copyright.sh: Test.
27155
27156 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27157
27158         update-copyright: support omitted "(C)"
27159         * build-aux/update-copyright: Implement and document.  Also,
27160         allow variable whitespace before "(C)".
27161         * tests/test-update-copyright.sh: Test.
27162
27163 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27164
27165         update-copyright: don't trip on non-FSF copyright statements
27166         * build-aux/update-copyright: Fix so that the first correctly
27167         formatted FSF copyright statement is recognized no matter what
27168         appears before it.  Update documentation.
27169         * tests/test-update-copyright.sh: Test that.
27170
27171 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27172
27173         update-copyright: clean up code a little
27174         * build-aux/update-copyright: Append "_re" to the name of any
27175         variable holding a regular expression.
27176         Replace "old" and "new" with "stmt" in variable names.
27177         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27178         handled correctly.
27179         Format code more consistently.
27180
27181 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27182
27183         update-copyright-tests: improve portability
27184         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27185         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27186
27187 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27188
27189         update-copyright: support @copyright{} and &copy;
27190         * build-aux/update-copyright: Implement and document.
27191         * tests/test-update-copyright.sh: Test.
27192
27193 2009-08-04  Jim Meyering  <meyering@redhat.com>
27194
27195         update-copyright-tests: correctly test EOL=\r\n handling
27196         * tests/test-update-copyright.sh: Put \r at the end of some lines
27197         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27198
27199         maint.mk: make update-copyright exclusion list more configurable
27200         * top/maint.mk (update-copyright): Default to excluding COPYING,
27201         but allow an override, in case someone does want to update that file.
27202
27203         maint.mk: don't update copyright date in COPYING
27204         * top/maint.mk (update-copyright): Exclude COPYING.
27205
27206         maint.mk: add a copyright-updating rule
27207         * top/maint.mk (update-copyright): New rule.
27208         Derived from coreutils/Makefile.am.
27209
27210         update-copyright: rename some variables
27211         * build-aux/update-copyright: Rename a few variables for clarity.
27212         Tweak syntax.  List Joel E. Denny as coauthor.
27213
27214 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27215
27216         update-copyright: fix bug for 2-digit last year and add tests
27217         * build-aux/update-copyright: Fix bug.
27218         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27219         specified.
27220         * modules/update-copyright-tests: New
27221         * tests/test-update-copyright.sh: New.
27222
27223 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27224
27225         update-copyright: handle leading tabs in line prefix
27226         * build-aux/update-copyright: Count leading tabs as 8 spaces
27227         when computing margin.  This helps with the formatting of
27228         ChangeLogs, for example.
27229         Fix documentation a little.
27230
27231 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27232
27233         update-copyright: support EOL=\r\n
27234         * build-aux/update-copyright: Implement that.
27235
27236 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27237
27238         update-copyright: automatically format copyright statements
27239         * build-aux/update-copyright: Implement that.
27240         Also, be a little more predictable and safer by always failing
27241         when the full copyright format is not perfectly recognized as an
27242         unbroken whole.  Discussed at
27243         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27244         Rewrite documentation.
27245
27246 2009-08-03  Bruno Haible  <bruno@clisp.org>
27247
27248         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27249
27250 2009-08-02  Bruno Haible  <bruno@clisp.org>
27251
27252         Tests for module 'uname'.
27253         * modules/uname-tests: New file.
27254         * tests/test-uname.c: New file.
27255
27256         New module 'uname'.
27257         * lib/uname.c: New file.
27258         * m4/uname.m4: New file.
27259         * modules/uname: New file.
27260         * doc/posix-functions/uname.texi: Mention the new module.
27261
27262 2009-08-02  Bruno Haible  <bruno@clisp.org>
27263
27264         Tests for module 'sys_utsname'.
27265         * modules/sys_utsname-tests: New file.
27266         * tests/test-sys_utsname.c: New file.
27267
27268         New module 'sys_utsname'.
27269         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27270         * m4/sys_utsname_h.m4: New file.
27271         * modules/sys_utsname: New file.
27272         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27273
27274 2009-08-02  Bruno Haible  <bruno@clisp.org>
27275
27276         Implicitly initialize the sockets library.
27277         * lib/gethostname.c: Include sockets.h.
27278         (rpl_gethostname): Invoke gl_sockets_startup.
27279         * lib/socket.c: Include sockets.h.
27280         (rpl_socket): Invoke gl_sockets_startup.
27281         * modules/gethostname (Depends-on): Add sockets.
27282         * modules/socket (Depends-on): Likewise.
27283         * tests/test-poll.c: Don't include sockets.h.
27284         (main): Don't invoke gl_sockets_startup.
27285         * tests/test-select.c: Don't include sockets.h.
27286         (main): Don't invoke gl_sockets_startup.
27287
27288 2009-08-02  Bruno Haible  <bruno@clisp.org>
27289
27290         Allow multiple calls to gl_sockets_startup.
27291         * lib/sockets.c (initialized_sockets_version): New variable.
27292         (gl_sockets_startup): Do nothing if already called for this or a higher
27293         version.
27294         (gl_sockets_cleanup): Reset initialized_sockets_version.
27295
27296 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27297
27298         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27299         different project/version.
27300
27301 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27302             Bruno Haible  <bruno@clisp.org>
27303
27304         Tests for module 'pipe-filter-gi'.
27305         * modules/pipe-filter-gi-tests: New file.
27306         * tests/test-pipe-filter-gi1.sh: New file.
27307         * tests/test-pipe-filter-gi1.c: New file.
27308         * tests/test-pipe-filter-gi2.sh: New file.
27309         * tests/test-pipe-filter-gi2-main.c: New file.
27310         * tests/test-pipe-filter-gi2-child.c: New file.
27311
27312         New module 'pipe-filter-gi'.
27313         * lib/pipe-filter-gi.c: New file.
27314         * modules/pipe-filter-gi: New file.
27315
27316 2009-08-02  Bruno Haible  <bruno@clisp.org>
27317             Paolo Bonzini  <bonzini@gnu.org>
27318
27319         Tests for module 'pipe-filter-ii'.
27320         * modules/pipe-filter-ii-tests: New file.
27321         * tests/test-pipe-filter-ii1.sh: New file.
27322         * tests/test-pipe-filter-ii1.c: New file.
27323         * tests/test-pipe-filter-ii2.sh: New file.
27324         * tests/test-pipe-filter-ii2-main.c: New file.
27325         * tests/test-pipe-filter-ii2-child.c: New file.
27326
27327         New module 'pipe-filter-ii'.
27328         * lib/pipe-filter.h: New file.
27329         * lib/pipe-filter-ii.c: New file.
27330         * lib/pipe-filter-aux.h: New file.
27331         * modules/pipe-filter-ii: New file.
27332
27333 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27334
27335         * lib/gc-libgcrypt.c: Change copyright to FSF.
27336         * lib/gc-gnulib.c: Likewise.
27337
27338 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27339
27340         * lib/gethostname.c: Include limits.h.
27341
27342 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27343             Bruno Haible  <bruno@clisp.org>
27344
27345         Ensure HOST_NAME_MAX as part of the gethostname module.
27346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27347         define also HOST_NAME_MAX.
27348         * tests/test-gethostname.c: Include <limits.h>.
27349         (main): Check also HOST_NAME_MAX.
27350         * doc/posix-headers/limits.texi: Document the mingw problem.
27351
27352 2009-08-02  Bruno Haible  <bruno@clisp.org>
27353
27354         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27355         Add comments.
27356
27357 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27358
27359         * lib/gethostname.c: Add Windows wrapper.
27360         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27361         * modules/gethostname: Depend on sys_socket & errno, for also
27362         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27363         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27364
27365 2009-07-31  Jim Meyering  <meyering@redhat.com>
27366
27367         getloadavg: fix symbol name in comment
27368         * lib/getloadavg.c: Correct a typo I introduced when adding
27369         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27370         Matt Kraai spotted the problem.
27371
27372 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27373
27374         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27375         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27376         code also if ! defined N_NAME_POINTER.
27377         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27378         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27379         but the n_name member is a 12-byte array.
27380
27381 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27382
27383         update-copyright: generalize comment handling
27384         * build-aux/update-copyright: Handle copyright statements
27385         within more comment styles.
27386         Document usage.
27387         Report any file with an external copyright holder or parse failure.
27388
27389 2009-07-29  Jim Meyering  <meyering@redhat.com>
27390
27391         mktime: correct setting of REPLACE_MKTIME
27392         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27393
27394         update-copyright: new module
27395         * modules/update-copyright: New file.
27396         * build-aux/update-copyright: New file.
27397         * MODULES.html.sh (maint+release support): Add update-copyright.
27398
27399 2009-07-27  Bruno Haible  <bruno@clisp.org>
27400
27401         Fix compilation error when <ctime> is used and mktime is replaced.
27402         * lib/time.in.h (mktime): New declaration.
27403         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27404         REPLACE_MKTIME instead of defining mktime in config.h.
27405         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27406         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27407         Reported by Ross McFarland <rwmcfa1@neces.com>.
27408
27409 2009-07-27  Bruno Haible  <bruno@clisp.org>
27410
27411         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27412         Reported by Matt Kraai <mkraai@beckman.com>.
27413
27414 2009-07-25  Jim Meyering  <meyering@redhat.com>
27415
27416         maint.mk: avoid warnings about missing files
27417         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27418         diagnostic when .prev-version does not exist.
27419         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27420         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27421         nonexistent cfg.mk.
27422         Suggestions from Simon Josefsson.
27423
27424 2009-07-25  Bruno Haible  <bruno@clisp.org>
27425
27426         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27427         defined as macros. Needed on QNX 6.4.1.
27428         Reported by Matt Kraai <mkraai@beckman.com>.
27429
27430 2009-07-23  Jim Meyering  <meyering@redhat.com>
27431
27432         maint.mk: invoke "make dist" with a working value of XZ_OPT
27433         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27434
27435 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27436
27437         Make fseeko.c compile on QNX.
27438         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27439
27440 2009-07-22  Peter Simons  <simons@cryp.to>
27441
27442         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27443         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27444         * lib/md4.h: Likewise.
27445         * lib/md5.h: Likewise.
27446         * lib/sha1.h: Likewise.
27447         * lib/sha256.h: Likewise.
27448         * lib/sha512.h: Likewise.
27449
27450         tests-sha1: don't assign literal string to 'char *' variable
27451         * tests/test-sha1.c (main): Declare locals with "const" to match
27452         attributes of the right hand side.
27453
27454 2009-07-21  Eric Blake  <ebb9@byu.net>
27455
27456         dup2: fix more mingw problems
27457         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27458         fd to itself.
27459         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27460         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27461         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27462         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27463         care of mingw bugs.
27464
27465 2009-07-21  Jim Meyering  <meyering@redhat.com>
27466
27467         vc-list-files: avoid failure when /bin/sh is dash
27468         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27469         On some Debian based systems, /bin/sh is a symlink to dash, and running
27470         this command would omit the "/" following each 'tests' prefix:
27471           dash -x build-aux/vc-list-files -C . tests
27472         That is because bash and dash work differently:
27473           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27474           bash ok
27475           dash odd
27476
27477 2009-07-21  Eric Blake  <ebb9@byu.net>
27478
27479         dup2-tests: test previous patch
27480         * modules/dup2-tests: New file.
27481         * tests/test-dup2.c: Likewise.
27482         * tests/test-open.c (main): Avoid unspecified behavior.
27483         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27484         test.
27485
27486         dup2: work around mingw and cygwin 1.5 bug
27487         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27489         * modules/unistd (Makefile.am): Substitute it.
27490         * lib/unistd.in.h (dup2): Declare the replacement.
27491         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27492         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27493         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27494         * modules/execute (Depends-on): Add dup2.
27495         * modules/fseterr (Depends-on): Likewise.
27496         * modules/pipe (Depends-on): Likewise.
27497         * modules/posix_spawn-internal (Depends-on): Likewise.
27498
27499 2009-07-21  Bruno Haible  <bruno@clisp.org>
27500
27501         * modules/.gitattributes: New file.
27502
27503 2009-07-20  Bruno Haible  <bruno@clisp.org>
27504
27505         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27506         (main): Use it.
27507
27508 2009-07-20  Eric Blake  <ebb9@byu.net>
27509
27510         test-pipe: make a bit more robust.
27511         * tests/test-pipe.c (myerr): Allow error messages regardless of
27512         what we do to stderr.
27513         (test_pipe): Rearrange to avoid deadlock.
27514         (child_main): Try a larger read, to ensure we avoided deadlock.
27515         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27516         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27517         if misused.
27518
27519 2009-07-19  Jim Meyering  <meyering@redhat.com>
27520
27521         fts: avoid false-positive cycle-detection
27522         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27523         for each new command line argument.
27524
27525 2009-07-19  Bruno Haible  <bruno@clisp.org>
27526
27527         Fix build error on mingw with the modules sys_select and unistd.
27528         * modules/acl-tests (Depends-on): Add close.
27529         * modules/binary-io-tests (Depends-on): Likewise.
27530         * modules/closein-tests (Depends-on): Likewise.
27531         * modules/flock-tests (Depends-on): Likewise.
27532         * modules/fsync-tests (Depends-on): Likewise.
27533         * modules/lseek-tests (Depends-on): Likewise.
27534         * modules/pipe-tests (Depends-on): Likewise.
27535         * modules/posix_spawn-tests (Depends-on): Likewise.
27536         * modules/posix_spawnp-tests (Depends-on): Likewise.
27537         * modules/stat-time-tests (Depends-on): Likewise.
27538         * modules/yesno-tests (Depends-on): Likewise.
27539
27540 2009-07-19  Bruno Haible  <bruno@clisp.org>
27541
27542         Unify conditionals.
27543         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27544         macros, not at the compiler macros.
27545         * lib/pipe.c: Likewise.
27546         * lib/execute.c: Likewise.
27547         * lib/spawni.c: Likewise.
27548
27549 2009-07-19  Bruno Haible  <bruno@clisp.org>
27550
27551         Fix handling of closed stdin/stdout/stderr on mingw.
27552         * lib/w32spawn.h: Include unistd.h.
27553         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27554         file descriptor with O_NOINHERIT flag.
27555         (fd_safer_noinherit): New function, based on fd-safer.c.
27556         (dup_safer_noinherit): New function, based on dup-safer.c.
27557         (undup_safer_noinherit): New function.
27558         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27559         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27560         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27561         instead of fd_safer.
27562         * tests/test-pipe.c: Include <windows.h>.
27563         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27564         result.
27565
27566         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27567         from main.
27568         (test_pipe): Pass an extra argument for disambiguation.
27569         (main): Invoke parent_main or child_main.
27570
27571         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27572         consistently.
27573
27574 2009-07-18  Eric Blake  <ebb9@byu.net>
27575
27576         test-pipe: fix mingw build
27577         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27578
27579 2009-07-18  Bruno Haible  <bruno@clisp.org>
27580
27581         * modules/pipe-tests (Makefile.am): Fix typo.
27582
27583 2009-07-18  Eric Blake  <ebb9@byu.net>
27584
27585         error: fix mingw build
27586         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27587         Reported by Bruno Haible.
27588
27589         error: avoid undefined use of stdout
27590         * lib/error.c (error, error_at_line): Check that fd 1 is open
27591         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27592         is handling faults and the close_stdout module wants to report the
27593         detection of closed stdout as an error.
27594
27595 2009-07-17  Eric Blake  <ebb9@byu.net>
27596
27597         pipe: be robust in face of closed fds
27598         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27599         should cause child to misbehave.
27600         * modules/pipe-tests: New module.
27601         * tests/test-pipe.c: New file.
27602         * tests/test-pipe.sh: New file.
27603         Reported by Akim Demaille.
27604
27605 2009-07-14  Bruno Haible  <bruno@clisp.org>
27606
27607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27608         Reported by anonymous kc.
27609
27610 2009-07-07  Jim Meyering  <meyering@redhat.com>
27611
27612         maint.mk: don't look for translatable strings in *.m4 or *.mk
27613         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27614         when searching for translatable strings.
27615
27616 2009-07-05  Jim Meyering  <meyering@redhat.com>
27617
27618         remove superfluous parentheses in STREQ definition
27619         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27620         * lib/getugroups.c (STREQ): Likewise.
27621         * lib/fnmatch.c (STREQ): Likewise.
27622         Spotted by Bruno Haible.
27623
27624 2009-07-04  Jim Meyering  <meyering@redhat.com>
27625
27626         argv-iter: new module
27627         * MODULES.html.sh: Add argv-iter.
27628         * lib/argv-iter.c, lib/argv-iter.h: New files.
27629         * modules/argv-iter: New file.
27630         * modules/argv-iter-tests: New file.
27631         * tests/test-argv-iter.c: Test it.
27632
27633 2009-07-04  Bruno Haible  <bruno@clisp.org>
27634
27635         Fix assertion.
27636         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27637         contains more exact copies of a given entry than file2, leave the extra
27638         copies unpaired rather than aborting.
27639         Reported by Eric Blake.
27640
27641 2009-07-02  Bruno Haible  <bruno@clisp.org>
27642
27643         Speedup git-merge-changelog for git cherry-pick.
27644         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27645         (entries_mapping_get): New function, extracted from compute_mapping.
27646         (entries_mapping_reverse_get): New function.
27647         (compute_mapping): Add a 'full' argument. Return the result in a
27648         'struct entries_mapping'.
27649         (main): Update. Access the mappings through entries_mapping_get.
27650         Reported by Eric Blake.
27651
27652 2009-07-02  Bruno Haible  <bruno@clisp.org>
27653
27654         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27655         best_i.
27656
27657 2009-07-02  Bruno Haible  <bruno@clisp.org>
27658
27659         Speed up approximate search for matching ChangeLog entries.
27660         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27661         argument. Call fstrcmp_bounded instead of fstrcmp.
27662         (compute_mapping, try_split_merged_entry, main): Update callers.
27663
27664 2009-07-02  Bruno Haible  <bruno@clisp.org>
27665
27666         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27667
27668 2009-06-30  Bruno Haible  <bruno@clisp.org>
27669
27670         Reduce the number of uc_is_cased calls.
27671         * lib/unicase.h (casing_suffix_context_t): Add
27672         'first_char_except_ignorable' field.
27673         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27674         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27675         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27676         Update initializer.
27677         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27678         case-ignorable characters.
27679         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27680         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27681         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27682         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27683         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27684
27685 2009-06-30  Bruno Haible  <bruno@clisp.org>
27686
27687         Tests for module 'unicase/ignorable'.
27688         * modules/unicase/ignorable-tests: New file.
27689         * tests/unicase/test-ignorable.c: New file, generated by
27690         gen-uni-tables.
27691
27692         Tests for module 'unicase/cased'.
27693         * modules/unicase/cased-tests: New file.
27694         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27695         * tests/unicase/test-predicate-part1.h: New file, derived from
27696         tests/unictype/test-predicate-part1.h.
27697         * tests/unicase/test-predicate-part2.h: New file, same as
27698         tests/unictype/test-predicate-part2.h.
27699
27700         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27701         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27702         (output_casing_properties): New function.
27703         (main): Call it.
27704         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27705         * lib/unicase/cased.c: Include unictype/bitmap.h.
27706         (uc_is_cased): Define through a bitmap lookup.
27707         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27708         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27709         (uc_is_case_ignorable): Define through a bitmap lookup.
27710         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27711         lib/unictype/bitmap.h.
27712         (Depends-on): Add inline. Clean up.
27713         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27714         lib/unictype/bitmap.h.
27715         (Depends-on): Add inline. Clean up.
27716         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27717         recognition.
27718         * tests/unicase/test-u16-tolower.c (main): Likewise.
27719         * tests/unicase/test-u32-tolower.c (main): Likewise.
27720
27721 2009-06-30  Bruno Haible  <bruno@clisp.org>
27722
27723         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27724         * lib/unicase/u16-casemap.c: Likewise.
27725         * lib/unicase/u32-casemap.c: Likewise.
27726
27727 2009-06-29  Bruno Haible  <bruno@clisp.org>
27728
27729         Define u32_casefold as a wrapper around u32_ct_casefold.
27730         * lib/unicase/u32-casefold.c: Update.
27731         * modules/unicase/u32-casefold (Depends-on): Add
27732         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27733         unicase/empty-suffix-context. Clean up.
27734
27735         Define u16_casefold as a wrapper around u16_ct_casefold.
27736         * lib/unicase/u16-casefold.c: Update.
27737         * modules/unicase/u16-casefold (Depends-on): Add
27738         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27739         unicase/empty-suffix-context. Clean up.
27740
27741         Define u8_casefold as a wrapper around u8_ct_casefold.
27742         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27743         * lib/unicase/u8-casefold.c: Update.
27744         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27745         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27746
27747         Define u32_totitle as a wrapper around u32_ct_totitle.
27748         * lib/unicase/u32-totitle.c: Update.
27749         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27750         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27751
27752         Define u16_totitle as a wrapper around u16_ct_totitle.
27753         * lib/unicase/u16-totitle.c: Update.
27754         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27756
27757         Define u8_totitle as a wrapper around u8_ct_totitle.
27758         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27759         functions.
27760         (FUNC): Delegate to U_CT_TOTITLE.
27761         * lib/unicase/u8-totitle.c: Update.
27762         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27763         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27764
27765         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27766         invocation.
27767         * modules/unicase/u32-tolower (Depends-on): Add
27768         unicase/empty-prefix-context, unicase/empty-suffix-context.
27769
27770         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27771         invocation.
27772         * modules/unicase/u16-tolower (Depends-on): Add
27773         unicase/empty-prefix-context, unicase/empty-suffix-context.
27774
27775         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27776         * modules/unicase/u8-tolower (Depends-on): Add
27777         unicase/empty-prefix-context, unicase/empty-suffix-context.
27778
27779         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27780         invocation.
27781         * modules/unicase/u32-toupper (Depends-on): Add
27782         unicase/empty-prefix-context, unicase/empty-suffix-context.
27783
27784         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27785         invocation.
27786         * modules/unicase/u16-toupper (Depends-on): Add
27787         unicase/empty-prefix-context, unicase/empty-suffix-context.
27788
27789         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27790         * modules/unicase/u8-toupper (Depends-on): Add
27791         unicase/empty-prefix-context, unicase/empty-suffix-context.
27792
27793         New module 'unicase/u32-ct-casefold'.
27794         * lib/unicase/u32-ct-casefold.c: New file.
27795         * modules/unicase/u32-ct-casefold: New file.
27796
27797         New module 'unicase/u16-ct-casefold'.
27798         * lib/unicase/u16-ct-casefold.c: New file.
27799         * modules/unicase/u16-ct-casefold: New file.
27800
27801         New module 'unicase/u8-ct-casefold'.
27802         * lib/unicase/u8-ct-casefold.c: New file.
27803         * lib/unicase/u-ct-casefold.h: New file, derived from
27804         lib/unicase/u-casefold.h.
27805         * modules/unicase/u8-ct-casefold: New file.
27806
27807         New module 'unicase/u32-ct-totitle'.
27808         * lib/unicase/u32-ct-totitle.c: New file.
27809         * modules/unicase/u32-ct-totitle: New file.
27810
27811         New module 'unicase/u16-ct-totitle'.
27812         * lib/unicase/u16-ct-totitle.c: New file.
27813         * modules/unicase/u16-ct-totitle: New file.
27814
27815         New module 'unicase/u8-ct-totitle'.
27816         * lib/unicase/u8-ct-totitle.c: New file.
27817         * lib/unicase/u-ct-totitle.h: New file, derived from
27818         lib/unicase/u-totitle.h.
27819         * modules/unicase/u8-ct-totitle: New file.
27820
27821         New module 'unicase/u32-ct-tolower'.
27822         * lib/unicase/u32-ct-tolower.c: New file.
27823         * modules/unicase/u32-ct-tolower: New file.
27824
27825         New module 'unicase/u16-ct-tolower'.
27826         * lib/unicase/u16-ct-tolower.c: New file.
27827         * modules/unicase/u16-ct-tolower: New file.
27828
27829         New module 'unicase/u8-ct-tolower'.
27830         * lib/unicase/u8-ct-tolower.c: New file.
27831         * modules/unicase/u8-ct-tolower: New file.
27832
27833         New module 'unicase/u32-ct-toupper'.
27834         * lib/unicase/u32-ct-toupper.c: New file.
27835         * modules/unicase/u32-ct-toupper: New file.
27836
27837         New module 'unicase/u16-ct-toupper'.
27838         * lib/unicase/u16-ct-toupper.c: New file.
27839         * modules/unicase/u16-ct-toupper: New file.
27840
27841         New module 'unicase/u8-ct-toupper'.
27842         * lib/unicase/u8-ct-toupper.c: New file.
27843         * modules/unicase/u8-ct-toupper: New file.
27844
27845         Add context arguments to u*_casemap functions.
27846         * lib/unicase/unicasemap.h: Include unicase.h.
27847         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27848         suffix_context arguments.
27849         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27850         functions.
27851         (FUNC): Add prefix_context and suffix_context arguments. Use
27852         uc_is_cased and uc_is_case_ignorable.
27853         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27854         * lib/unicase/u16-casemap.c: Likewise.
27855         * lib/unicase/u32-casemap.c: Likewise.
27856         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27857         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27858         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27859         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27860         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27861         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27862
27863         New module 'unicase/u32-suffix-context'.
27864         * lib/unicase/u32-suffix-context.c: New file.
27865         * modules/unicase/u32-suffix-context: New file.
27866
27867         New module 'unicase/u16-suffix-context'.
27868         * lib/unicase/u16-suffix-context.c: New file.
27869         * modules/unicase/u16-suffix-context: New file.
27870
27871         New module 'unicase/u8-suffix-context'.
27872         * lib/unicase/u8-suffix-context.c: New file.
27873         * lib/unicase/u-suffix-context.h: New file.
27874         * modules/unicase/u8-suffix-context: New file.
27875
27876         New module 'unicase/empty-suffix-context'.
27877         * lib/unicase/empty-suffix-context.c: New file.
27878         * modules/unicase/empty-suffix-context: New file.
27879
27880         New module 'unicase/u32-prefix-context'.
27881         * lib/unicase/u32-prefix-context.c: New file.
27882         * modules/unicase/u32-prefix-context: New file.
27883
27884         New module 'unicase/u16-prefix-context'.
27885         * lib/unicase/u16-prefix-context.c: New file.
27886         * modules/unicase/u16-prefix-context: New file.
27887
27888         New module 'unicase/u8-prefix-context'.
27889         * lib/unicase/u8-prefix-context.c: New file.
27890         * lib/unicase/u-prefix-context.h: New file.
27891         * lib/unicase/context.h: New file.
27892         * modules/unicase/u8-prefix-context: New file.
27893
27894         New module 'unicase/empty-prefix-context'.
27895         * lib/unicase/empty-prefix-context.c: New file.
27896         * modules/unicase/empty-prefix-context: New file.
27897
27898         New module 'unicase/ignorable'.
27899         * lib/unicase/ignorable.c: New file.
27900         * modules/unicase/ignorable: New file.
27901
27902         New module 'unicase/cased'.
27903         * lib/unicase/caseprop.h: New file.
27904         * lib/unicase/cased.c: New file.
27905         * modules/unicase/cased: New file.
27906
27907         New functions for case mapping of substrings.
27908         * lib/unicase.h (casing_prefix_context_t): New type.
27909         (unicase_empty_prefix_context): New variable.
27910         (u8_casing_prefix_context, u16_casing_prefix_context,
27911         u32_casing_prefix_context, u8_casing_prefixes_context,
27912         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27913         declarations.
27914         (casing_suffix_context_t): New type.
27915         (unicase_empty_suffix_context): New variable.
27916         (u8_casing_suffix_context, u16_casing_suffix_context,
27917         u32_casing_suffix_context, u8_casing_suffixes_context,
27918         u16_casing_suffixes_context, u32_casing_suffixes_context,
27919         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27920         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27921         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27922         declarations.
27923
27924 2009-06-28  Jim Meyering  <meyering@redhat.com>
27925
27926         boostrap: indent only with spaces
27927         * build-aux/bootstrap: Indent only with spaces, never TABs.
27928
27929         bootstrap: split long lines
27930         * build-aux/bootstrap: Keep line length < 80.
27931
27932         bootstrap: sync from coreutils
27933         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27934         just as autoreconf does.  Verify a list of prerequisite
27935         package-name,version-number pairs if defined in bootstrap.conf.
27936         Refer to README-prereq, if prerequisites are not satisfied.
27937
27938 2009-06-27  Eric Blake  <ebb9@byu.net>
27939
27940         tests: add test for bogus NULL definition
27941         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27942         * tests/test-stdlib.c: Likewise.
27943         * tests/test-string.c: Likewise.
27944         * tests/test-locale.c: Likewise.
27945         * tests/test-unistd.c: Likewise.
27946         * modules/stdio-tests (Depends-on): Add verify.
27947         * modules/stdlib-tests (Depends-on): Likewise.
27948         * modules/string-tests (Depends-on): Likewise.
27949         * modules/locale-tests (Depends-on): Likewise.
27950         * modules/unistd-tests (Depends-on): Likewise.
27951
27952 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27953
27954         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27955         self-explaining comment.
27956         * m4/selinux-selinux-h: Update serial.
27957         (gl_LIBSELINUX): New macro, adding a warning for missing development
27958         packages to code extracted from...
27959         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27960         Add warning for missing development packages here, too.
27961
27962 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27963
27964         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27965
27966 2009-06-25  Eric Blake  <ebb9@byu.net>
27967
27968         version-etc: fix regression
27969         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27970         gcc.
27971         (version_etc): Use it, to catch bugs with trailing NULL.
27972         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27973         (version_etc_va): Fix logic bug.
27974         * modules/version-etc-tests: Add test.
27975         * tests/test-version-etc.c: New file.
27976         * tests/test-version-etc.sh: Likewise.
27977
27978 2009-06-25  Sam Steingold  <sds@gnu.org>
27979
27980         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27981         mbtowc declaration.
27982
27983 2009-06-25  Eric Blake  <ebb9@byu.net>
27984
27985         fpurge: migrate into <stdio.h>
27986         * lib/fpurge.h: Delete...
27987         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27988         * lib/fpurge.c (fpurge): Change declaring header.
27989         * modules/fpurge (Files): Drop deleted file.
27990         (Depends-on): Add stdio.
27991         (configure.ac): Set witness.
27992         * modules/stdio (Makefile.am): Support fpurge macros.
27993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27994         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27995         * lib/fflush.c: Update client.
27996         * tests/test-fpurge.c: Likewise.
27997         * NEWS: Mention the change.
27998
27999 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28000
28001         * lib/argp-version-etc.c (program_authors): Add const
28002         qualifier.
28003         * lib/version-etc.c: Fix typos in the comments.
28004         * modules/argp-version-etc: Depends on version-etc.
28005
28006 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28007
28008         argp-version-etc: new module.
28009
28010         * lib/argp-version-etc.c: New file.
28011         * lib/argp-version-etc.h: New file.
28012         * modules/argp-version-etc: New file.
28013         * modules/argp-version-etc-tests: New file.
28014         * tests/test-argp-version-etc.c: New test.
28015         * tests/test-argp-version-etc-1.sh: New test.
28016
28017 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28018
28019         Provide additional interfaces and documentation for version-etc
28020         module.
28021
28022         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28023         interfaces.
28024         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28025         prototypes.
28026
28027 2009-06-24  Bruno Haible  <bruno@clisp.org>
28028
28029         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28030         HAVE_LIB${NAME} macro.
28031         Reported by Sam Steingold <sds@gnu.org>.
28032
28033 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28034
28035         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28036         needed.
28037
28038 2009-06-21  Bruno Haible  <bruno@clisp.org>
28039
28040         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28041         work.
28042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28043         together with LIB${NAME}, LTLIB${NAME}.
28044         Reported by Sam Steingold <sds@gnu.org>.
28045
28046 2009-06-20  Jim Meyering  <meyering@redhat.com>
28047
28048         tests: make sc_require_test_exit_idiom more generic
28049         * top/maint.mk (Exit_witness_file): New overridable variable.
28050         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28051         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28052
28053 2009-06-19  Jim Meyering  <meyering@redhat.com>
28054
28055         hash: reverse order of src/dst parameters in an internal interface
28056         * lib/hash.c (transfer_entries): Reverse order of parameters to
28057         put DST before SRC.  Adjust callers.
28058
28059         tests: test-hash: avoid wholesale duplication
28060         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28061         Instead, use a loop and add a single conditional.
28062
28063         tests: test-hash: allow seed selection via a command line argument
28064         * tests/test-hash.c (get_seed): New function.
28065         (main): Use it.
28066
28067 2009-06-19  Eric Blake  <ebb9@byu.net>
28068
28069         hash: avoid memory leak on allocation failure
28070         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28071         failure.  Factor repeated algorithm...
28072         (transfer_entries): ...into new helper routine.
28073         (hash_delete): React to hash_rehash return value.
28074
28075         hash: reduce memory pressure in hash_rehash no-op case
28076         * lib/hash.c (next_prime): Avoid overflow.
28077         (hash_initialize): Factor bucket size computation...
28078         (compute_bucket_size): ...into new helper function.
28079         (hash_rehash): Use new function and open coding to reduce memory
28080         pressure, and avoid a memory leak in USE_OBSTACK code.
28081         Reported by Jim Meyering.
28082
28083 2009-06-18  Eric Blake  <ebb9@byu.net>
28084
28085         hash: make rotation more obvious
28086         * modules/hash (Depends-on): Add bitrotate and stdint.
28087         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28088         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28089         (SIZE_MAX): Rely on headers for definition.
28090         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28091         (raw_hasher): Use rotr_sz.
28092         Suggested by Jim Meyering.
28093
28094         hash: fix memory leak in last patch
28095         * lib/hash.c (hash_rehash): Avoid memory leak.
28096
28097         hash: avoid no-op rehashing
28098         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28099
28100         hash: provide default callback functions
28101         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28102         (hash_initialize): Use them as defaults.
28103         * tests/test-hash.c (main): Test this.
28104
28105         hash: minor optimization
28106         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28107         when possible.
28108         (hash_initialize): Document this promise.
28109         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28110         * tests/test-hash.c (hash_compare_strings): Test this.
28111
28112 2009-06-18  Bruno Haible  <bruno@clisp.org>
28113
28114         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28115         going to be replaced anyway.
28116
28117 2009-06-18  Bruno Haible  <bruno@clisp.org>
28118
28119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28120         in one place.
28121         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28122         be replaced anyway.
28123
28124 2009-06-18  Eric Blake  <ebb9@byu.net>
28125
28126         hash: check for resize before insertion
28127         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28128         threshold before insertion, so that a pathological hash_rehash
28129         that fills every bucket can still trigger another rehash.
28130
28131 2009-06-18  Jim Meyering  <meyering@redhat.com>
28132
28133         hash-tests: add a loop around the small tests
28134         * tests/test-hash.c (main): Repeat small tests with selected
28135         small initial table sizes.
28136
28137 2009-06-17  Eric Blake  <ebb9@byu.net>
28138
28139         hash: minor cleanups
28140         * lib/hash.h (hash_entry): Make opaque, by moving...
28141         * lib/hash.c (hash_entry): ...here.
28142         (hash_insert): Clarify restrictions on what can be inserted.
28143         (hash_get_next): Clarify when it is safe to remove an element
28144         during traversal.
28145         (check_tuning): Skip verification when tuning is known safe.
28146         (hash_initialize): Clarify restrictions on tuning.
28147
28148 2009-06-17  Jim Meyering  <jim@meyering.net>
28149         and Eric Blake  <ebb9@byu.net>
28150
28151         hash-tests: new module
28152         * modules/hash-tests: New file.
28153         * tests/test-hash.c: New file.
28154
28155 2009-06-17  Eric Blake  <ebb9@byu.net>
28156
28157         strstr-simple: document new module
28158         * MODULES.html.sh: Document new module.
28159
28160         strstr, strcasestr: replace on platforms with broken memchr
28161         * modules/strstr: Split into...
28162         * modules/strstr-simple: ...new module that does not care about
28163         performance, but does care about glibc bug.
28164         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28165         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28166         if platform memchr is broken, per Debian bug 521737.
28167         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28168         memchr.
28169         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28170         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28171         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28172         * modules/mountlist (Depends-on): Add strstr-simple.
28173         * modules/gen-uni-tables (Depends-on): Likewise.
28174         * modules/argz (Depends-on): Add strstr.
28175
28176 2009-06-17  Bruno Haible  <bruno@clisp.org>
28177
28178         * modules/posix_spawn-internal (Depends-on): Add errno.
28179
28180 2009-06-17  Bruno Haible  <bruno@clisp.org>
28181
28182         Define missing ESTALE on Interix 3.5.
28183         * lib/errno.in.h (ESTALE): Assign a value if missing.
28184         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28185         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28186         missing.
28187         * doc/posix-headers/errno.texi: Mention the Interix bug.
28188         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28189
28190 2009-06-15  Eric Blake  <ebb9@byu.net>
28191
28192         memchr, memchr2: add valgrind exception
28193         * lib/memchr.valgrind: New file.
28194         * lib/memchr2.valgrind: New file.
28195         * modules/memchr (Files): Distribute valgrind file.
28196         * modules/memchr2 (Files): Likewise.
28197
28198         docs: memchr is no longer obsolete
28199         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28200         * lib/string.in.h (memchr): Simplify logic.
28201
28202 2009-06-14  Jim Meyering  <meyering@redhat.com>
28203
28204         link-follow: fix the "checking..." message to not mention trailing slash
28205         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28206         never considered trailing slashes.
28207
28208 2009-06-14  Bruno Haible  <bruno@clisp.org>
28209
28210         * m4/memchr.m4: Mention also the bug on IA-64.
28211         * doc/posix-functions/memchr.texi: Likewise.
28212
28213 2009-06-12  Eric Blake  <ebb9@byu.net>
28214
28215         memchr: detect broken x86_64 and alpha implementations
28216         * modules/memchr-tests (Depends-on): Move mmap detection...
28217         * modules/memchr (Depends-on): ...here.
28218         (configure.ac): Set indicator.
28219         * lib/string.in.h (memchr): Declare replacement.
28220         * modules/string (Makefile.am): Trigger replacement.
28221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28222         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28223         bugs.
28224         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28225         * modules/getpagesize (License): Relax license.
28226
28227 2009-06-11  Bruno Haible  <bruno@clisp.org>
28228
28229         * lib/idpriv.h: Add more references.
28230
28231 2009-06-08  Bruno Haible  <bruno@clisp.org>
28232
28233         Tests for module 'idpriv-droptemp'.
28234         * modules/idpriv-droptemp-tests: New file.
28235         * tests/test-idpriv-droptemp.sh: New file.
28236         * tests/test-idpriv-droptemp.su.sh: New file.
28237         * tests/test-idpriv-droptemp.c: New file.
28238
28239         New module 'idpriv-droptemp'.
28240         * lib/idpriv-droptemp.c: New file.
28241         * modules/idpriv-droptemp: New file.
28242
28243 2009-06-08  Bruno Haible  <bruno@clisp.org>
28244
28245         Tests for module 'idpriv-drop'.
28246         * modules/idpriv-drop-tests: New file.
28247         * tests/test-idpriv-drop.sh: New file.
28248         * tests/test-idpriv-drop.su.sh: New file.
28249         * tests/test-idpriv-drop.c: New file.
28250
28251         New module 'idpriv-drop'.
28252         * lib/idpriv.h: New file.
28253         * lib-idpriv-drop.c: New file.
28254         * m4/idpriv.m4: New file.
28255         * modules/idpriv-drop: New file.
28256
28257 2009-06-08  Bruno Haible  <bruno@clisp.org>
28258
28259         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28260         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28261         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28262         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28263         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28264         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28265         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28266
28267 2009-06-08  Eric Blake  <ebb9@byu.net>
28268
28269         test-strstr: use memory fence, when possible
28270         * tests/test-strstr.c (main): Use memory fence, in order to be
28271         more likely to trigger Debian bug 521737.
28272         * modules/strstr-tests (Files): Pull in additional files.
28273
28274         memchr: no longer obsolete, for wider field testing
28275         * modules/memchr (Status, Notice): Delete, this module is no
28276         longer obsolete.
28277         * modules/vasnprintf (Depends-on): Add memchr.
28278
28279 2009-06-07  Jim Meyering  <meyering@redhat.com>
28280
28281         hash: declare some functions with the warn_unused_result attribute
28282         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28283
28284 2009-06-07  Bruno Haible  <bruno@clisp.org>
28285
28286         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28287         Reported by Eric Blake.
28288
28289 2009-06-06  Eric Blake  <ebb9@byu.net>
28290
28291         test-alignof: fix typo with long double
28292         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28293         compiler error.
28294
28295 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28296
28297         Escape non-texinfo { and }s.
28298         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28299         markup error.
28300
28301 2009-06-04  Jim Meyering  <meyering@redhat.com>
28302
28303         gitlog-to-changelog: don't infloop on an empty commit log
28304         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28305         Reported by Boris Petersen <transacid@centerim.org>.
28306
28307 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28308
28309         version-etc: extend for packagers
28310         Add three new configure options, intended for packagers:
28311           --with-packager="packager name"
28312           --with-packager-version="packager-specific version"
28313           --with-packager-bug-reports="packager bug reporting"
28314         An example with coreutils:
28315           $ ./configure \
28316             --with-packager=Gentoo \
28317             --with-packager-bug-report=http://bugs.gentoo.org/ \
28318             --with-packager-version="patchset 1.6"
28319           $ ./src/ls --version | head -n2
28320           ls (GNU coreutils) 7.1-dirty
28321           Packaged by Gentoo (patchset 1.6)
28322         Note that the bug reporting info via --help doesn't show up because
28323         coreutils uses its own custom emit_bug_reporting_address() implementation
28324         in src/system.h.  If it didn't, it'd look like:
28325           $ ./src/ls --help | tail -n4
28326           Report bugs to <bug-coreutils@gnu.org>.
28327           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28328           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28329           General help using GNU software: <http://www.gnu.org/gethelp/>.
28330         * lib/version-etc.c: Print new information, if provided.
28331         * m4/version-etc.m4: New file.
28332         * modules/version-etc (Files): Add m4/version-etc.m4.
28333         (configure.ac): Add gl_VERSION_ETC.
28334
28335 2009-05-31  Bruno Haible  <bruno@clisp.org>
28336
28337         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28338         and 'int64_t'.
28339         * modules/alignof-tests (Dependencies): Add stdint.
28340         Reported by Eric Blake.
28341
28342 2009-05-31  Bruno Haible  <bruno@clisp.org>
28343
28344         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28345         restriction due to compiler bugs.
28346         Reported by Eric Blake.
28347
28348 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28349             Bruno Haible  <bruno@clisp.org>
28350
28351         Fix test-alignof failure.
28352         * lib/alignof.h (alignof_slot): New macro.
28353         (alignof_type): New macro, with the same semantics as the previous
28354         'alignof'.
28355         (alignof): Alias to alignof_slot.
28356         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28357         check that the results are usable as constant expressions.
28358
28359 2009-05-31  Bruno Haible  <bruno@clisp.org>
28360
28361         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28362         * tests/test-memchr.c (main): Check that memchr does not read past the
28363         first occurrence of the byte.
28364         * tests/test-strstr.c (main): Update comment.
28365         Suggested by Eric Blake.
28366
28367 2009-05-30  Bruno Haible  <bruno@clisp.org>
28368
28369         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28370         detail how to use dumpbin.
28371         Reported by David Byron <dbyron@dbyron.com>.
28372
28373 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28374
28375         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28376
28377 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28378
28379         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28380
28381 2009-05-28  Bruno Haible  <bruno@clisp.org>
28382
28383         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28384         build-aux/ files.
28385
28386 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28387
28388         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28389
28390 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28391
28392         * gnulib-tool (sed_transform_main_lib_file)
28393         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28394         regexps.
28395
28396 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28397
28398         * tests/test-strstr.c: Add another self-test.
28399         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28400         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28401
28402 2009-05-23  Bruno Haible  <bruno@clisp.org>
28403
28404         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28405         change.
28406
28407 2009-05-21  Bruno Haible  <bruno@clisp.org>
28408
28409         Simplify use of mode_t varargs.
28410         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28411         uses 'mode_t' or 'int'.
28412         * lib/openat.c (openat): Likewise.
28413         * lib/open-safer.c (open_safer): Likewise.
28414         * m4/mode_t.m4: New file.
28415         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28416         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28417         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28418         * modules/open (Files): Add m4/mode_t.m4.
28419         * modules/openat (Files): Likewise.
28420         * modules/fcntl-safer (Files): Likewise.
28421         Suggested by Eric Blake.
28422
28423 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28424
28425         * doc/glibc-functions/fallocate.texi: New file.
28426         * doc/gnulib.texi: Include it.
28427
28428 2009-05-21  Eric Blake  <ebb9@byu.net>
28429             Bruno Haible  <bruno@clisp.org>
28430
28431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28432         invocations.
28433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28434
28435 2009-05-21  Eric Blake  <ebb9@byu.net>
28436             Bruno Haible  <bruno@clisp.org>
28437
28438         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28439         include_next. Fix of 2008-11-20 commit.
28440         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28441         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28442         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28443         NEXT_MATH_H.
28444         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28445         instead of NEXT_MATH_H.
28446
28447 2009-05-21  Bruno Haible  <bruno@clisp.org>
28448
28449         Avoid redefinition warnings for SIZE_MAX.
28450         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28451         Reported by Simon Josefsson.
28452
28453 2009-05-21  Bruno Haible  <bruno@clisp.org>
28454
28455         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28456         AC_CACHE_VAL.
28457
28458 2009-05-20  Bruno Haible  <bruno@clisp.org>
28459
28460         Make zeroptr.h work on mingw.
28461         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28462         mprotect.
28463         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28464         * modules/memchr2-tests (configure.ac): Likewise.
28465         * modules/memcmp-tests (configure.ac): Likewise.
28466         * modules/memmem-tests (configure.ac): Likewise.
28467         * modules/memrchr-tests (configure.ac): Likewise.
28468         Reported by Simon Josefsson.
28469
28470 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28471
28472         * tests/test-glob.c: Include string.h for strcmp prototype.
28473
28474 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28475
28476         * modules/getdelim (Depends-on): Add explicit stdint, although it
28477         was implicitly already pulled in via realloc-posix.
28478         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28479
28480 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28481
28482         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28483         G. Christensen" <tgc@jupiterrise.com>.
28484         * m4/sys_socket_h.m4: Check for sa_family_t.
28485         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28486         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28487         * tests/test-sys_socket.c: Check that sa_family_t works.
28488
28489 2009-05-18  Eric Blake  <ebb9@byu.net>
28490
28491         maint.mk: allow gnulib_dir in VPATH build
28492         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28493
28494 2009-05-15  Jim Meyering  <meyering@redhat.com>
28495
28496         maint.mk: Give gnulib_dir a default definition.
28497         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28498         Thus, most packages no longer need to specify this variable in cfg.mk
28499
28500 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28501
28502         rename.m4: fix typos that would make non-mingw cross-configure fail
28503         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28504
28505 2009-05-13  Eric Blake  <ebb9@byu.net>
28506
28507         mmap-anon: avoid out-of-order autoconf expansion
28508         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28509         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28510         * modules/memchr-tests (Depends-on): Add extensions.
28511         * modules/memchr2-tests (Depends-on): Add extensions.
28512         * modules/memcmp-tests (Depends-on): Add extensions.
28513         * modules/memmem-tests (Depends-on): Add extensions.
28514         * modules/memrchr-tests (Depends-on): Add extensions.
28515
28516 2009-05-13  Bruno Haible  <bruno@clisp.org>
28517
28518         Make some tests ISO C 99 compliant.
28519         * tests/zerosize-ptr.h: New file.
28520         * tests/test-memchr.c: Include zerosize-ptr.h.
28521         (main): Use a zero-size object pointer instead of NULL.
28522         * tests/test-memchr2.c: Include zerosize-ptr.h.
28523         (main): Use a zero-size object pointer instead of NULL.
28524         * tests/test-memcmp.c: Include zerosize-ptr.h.
28525         (main): Use a zero-size object pointer instead of NULL.
28526         * tests/test-memmem.c: Include zerosize-ptr.h.
28527         (main): Use a zero-size object pointer instead of NULL.
28528         * tests/test-memrchr.c: Include zerosize-ptr.h.
28529         (main): Use a zero-size object pointer instead of NULL.
28530         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28531         m4/mmap-anon.m4.
28532         (Depends-on): Add getpagesize.
28533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28534         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28535         m4/mmap-anon.m4.
28536         (Depends-on): Add getpagesize.
28537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28538         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28539         m4/mmap-anon.m4.
28540         (Depends-on): Add getpagesize.
28541         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28542         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28543         m4/mmap-anon.m4.
28544         (Depends-on): Add getpagesize.
28545         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28546         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28547         m4/mmap-anon.m4.
28548         (Depends-on): Add getpagesize.
28549         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28550
28551 2009-05-12  Bruno Haible  <bruno@clisp.org>
28552
28553         Tests for module 'alignof'.
28554         * modules/alignof-tests: New file.
28555         * tests/test-alignof.c: New file.
28556
28557 2009-05-12  Bruno Haible  <bruno@clisp.org>
28558
28559         Fix alignof macro.
28560         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28561         vendor compilers that are always correct.
28562
28563 2009-05-12  Bruno Haible  <bruno@clisp.org>
28564
28565         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28566         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28567         not whether its fully works.
28568
28569 2009-05-12  Bruno Haible  <bruno@clisp.org>
28570
28571         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28572
28573 2009-05-12  Jim Meyering  <meyering@redhat.com>
28574
28575         * top/maint.mk: Adjust backslash alignment.
28576
28577 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28578
28579         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28580
28581 2009-05-11  Eric Blake  <ebb9@byu.net>
28582
28583         argp: avoid undefined behavior
28584         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28585         macros.
28586
28587 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28588
28589         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28590         user.name to prevent git commit from complaining.
28591
28592 2009-05-10  Bruno Haible  <bruno@clisp.org>
28593
28594         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28595         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28596         it rewrites every file name only once.
28597         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28598
28599 2009-05-08  Bruno Haible  <bruno@clisp.org>
28600
28601         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28602         instead of 'max'.
28603
28604 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28605
28606         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28607         sockaddr_storage test.
28608
28609 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28610
28611         * modules/sys_socket (Makefile.am): Substitute
28612         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28613         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28614         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28615         * tests/test-sys_socket.c: Check sockaddr_storage.
28616
28617 2009-05-08  Bruno Haible  <bruno@clisp.org>
28618
28619         New module 'alignof'.
28620         * lib/alignof.h: New file.
28621         * modules/alignof: New file.
28622
28623 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28624             Bruno Haible  <bruno@clisp.org>
28625
28626         Fix test-file-has-acl on FreeBSD.
28627         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28628         mask is implicitly added.
28629         * tests/test-file-has-acl.c: Include <signal.h>.
28630         (main): Terminate the test after 5 seconds.
28631         * modules/acl-tests (configure.ac): Check for alarm function.
28632
28633 2009-05-04  Bruno Haible  <bruno@clisp.org>
28634
28635         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28636         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28637         * modules/errno (configure.ac): Drop AC_REQUIRE.
28638         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28639         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28640
28641 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28642
28643         * modules/glob-tests: New module.
28644         * tests/test-glob.c: Add.
28645
28646 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28647
28648         * modules/fnmatch-tests: New module.
28649         * tests/test-fnmatch.c: Add.
28650
28651 2009-05-04  Eric Blake  <ebb9@byu.net>
28652
28653         maint: make the new no-submodule-changes rule VPATH-safe
28654         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28655
28656 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28657             Bruno Haible  <bruno@clisp.org>
28658
28659         acl: Fix infinite loop on FreeBSD.
28660         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28661         of return value from acl_get_entry.
28662         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28663         Likewise.
28664
28665 2009-05-03  Bruno Haible  <bruno@clisp.org>
28666
28667         * lib/acl-internal.h (acl_entries): Clarify return value.
28668         * lib/acl_entries.c (acl_entries): Likewise.
28669
28670 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28671
28672         Bug fix in acl module.
28673         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28674
28675 2009-05-03  Bruno Haible  <bruno@clisp.org>
28676
28677         Create gperf-generated file in the source dir, not in the build dir.
28678         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28679         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28680         * modules/unicase/locale-language (unicase/locale-languages.h):
28681         Likewise.
28682         * modules/unicase/special-casing (unicase/special-casing-table.h):
28683         Likewise.
28684         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28685         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28686         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28687         Reported by Ralf Wildenhues.
28688
28689 2009-05-03  Bruno Haible  <bruno@clisp.org>
28690
28691         * modules/fnmatch (Description, configure.ac): Taken from
28692         fnmatch-posix.
28693         * modules/fnmatch-posix: Turn into a symbolic reference to the
28694         'fnmatch' module, and deprecate.
28695         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28696
28697 2009-05-03  Bruno Haible  <bruno@clisp.org>
28698
28699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28700         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28701         Reported by Ralf Wildenhues.
28702
28703 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28704
28705         * m4/fnmatch.m4: Fix fnmatch re-define.
28706
28707 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28708
28709         priv-set: new module and tests; adapt write-any-file
28710         * lib/priv-set.c: New file.
28711         * lib/priv-set.h: New file.
28712         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28713         * lib/write-any-file.c: Simplify by using priv-set module.
28714         * m4/priv-set.m4: New file.
28715         * modules/priv-set: New file.
28716         * modules/unlinkdir: Add dependency on priv-set module.
28717         * modules/write-any-file: Likewise.
28718
28719         Tests for module 'priv-set'.
28720         * modules/priv-set-tests: New file.
28721         * tests/test-priv-set.c: New file.
28722
28723 2009-05-03  Jim Meyering  <meyering@redhat.com>
28724             Bruno Haible  <bruno@clisp.org>
28725
28726         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28727         use the converted UTF-8 variant of the name instead.
28728
28729 2009-05-03  Jim Meyering  <meyering@redhat.com>
28730
28731         tests: tighten some getdate tests
28732         * tests/test-getdate.c (main): Tighten tests: require equality,
28733         not just greater than.  Set TZ envvar to UTC0.
28734
28735 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28736
28737         getdate: correctly interpret "next monday" when run on a Monday
28738         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28739         that e.g., "next tues" (when run on a tuesday) results in a date
28740         that is one week in the future, and not today's date.
28741         I.e., add a week when the wday is the same as the current one.
28742         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28743         and earlier by Martin Bernreuther and Jan Minář.
28744         * tests/test-getdate.c (main): Check that "next DAY" is always in
28745         the future and that "last DAY" is always in the past.
28746
28747 2009-05-02  Jim Meyering  <meyering@redhat.com>
28748
28749         build: ensure that a release build fails when a submodule is unclean
28750         * top/maint.mk (no-submodule-changes): New rule.
28751         (alpha beta major): Depend on it.
28752
28753 2009-05-02  Bruno Haible  <bruno@clisp.org>
28754
28755         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28756         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28757         shell variable gl_fnmatch_required to detect which variant is
28758         requested.
28759         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28760         gl_FUNC_FNMATCH_POSIX.
28761         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28762         exclude fnmatch-posix.
28763
28764 2009-05-02  Bruno Haible  <bruno@clisp.org>
28765
28766         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28767         * modules/mbsrtowcs (License): Change to LGPLv2+.
28768         * modules/strnlen1 (License): Likewise.
28769         Reported by Simon Josefsson.
28770
28771 2009-05-02  Bruno Haible  <bruno@clisp.org>
28772
28773         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28774         "cross".
28775         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28776         gnulib-tool was called with option --source-base=lib.
28777
28778 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28779
28780         Use automake *-local hooks without commands, for extensibility.
28781         * modules/localcharset (Makefile.am): Rename install-exec-local
28782         rule to install-exec-localcharset, and make it a prerequisite of
28783         install-exec-local.  Likewise, rename the uninstall-local rule to
28784         uninstall-localcharset, and make it a prerequisite of the former.
28785
28786 2009-05-01  Bruno Haible  <bruno@clisp.org>
28787
28788         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28789         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28790         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28792         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28793         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28794         m4/locale-zh.m4, m4/codeset.m4.
28795
28796         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28797         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28798         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28799         m4/locale-zh.m4.
28800
28801         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28802         REPLACE_WCRTOMB if mbstate_t must be replaced.
28803         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28804         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28805
28806 2009-05-01  Bruno Haible  <bruno@clisp.org>
28807
28808         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28809         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28810         dngettext, dcngettext, textdomain, bindtextdomain,
28811         bind_textdomain_codeset): Undefine before redefining.
28812
28813 2009-04-30  Bruno Haible  <bruno@clisp.org>
28814
28815         Fix bug introduced on 2009-04-25.
28816         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28817         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28818         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28819         is defined.
28820         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28821         is defined.
28822         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28823         is defined.
28824         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28825
28826 2009-04-28  Bruno Haible  <bruno@clisp.org>
28827
28828         Comment tweaks.
28829         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28830         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28831         * lib/unicase.h (u*_casexfrm): Likewise.
28832         Reported by Paolo Bonzini.
28833
28834 2009-04-28  Bruno Haible  <bruno@clisp.org>
28835
28836         Fix a compilation error.
28837         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28838         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28839         Reported by Jim Meyering.
28840
28841 2009-04-27  Bruno Haible  <bruno@clisp.org>
28842
28843         New module 'libunistring'.
28844         * modules/libunistring: New file.
28845         * m4/libunistring.m4: New file.
28846         * MODULES.html.sh (Unicode string functions): Add it.
28847
28848 2009-04-27  Eric Blake  <ebb9@byu.net>
28849
28850         maint.mk: allow package-specific header to provide <config.h>
28851         * top/maint.mk (sc_require_config_h): New variable.
28852         (sc_require_config_h, sc_require_config_h_first): Use it.
28853
28854 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28855
28856         * top/maint.mk (sc_avoid_if_before_free): Except
28857         useless-if-before-free script.
28858
28859 2009-04-27  Eric Blake  <ebb9@byu.net>
28860
28861         maintainer-makefile: depend on all required helper scripts
28862         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28863         useless-if-before-free.
28864         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28865         version, rather than assuming gnulib checkout is available.
28866         Reported by Simen Josefsson.
28867
28868 2009-04-26  Bruno Haible  <bruno@clisp.org>
28869
28870         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28871         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28872         "../" or "..".
28873
28874 2009-04-26  Bruno Haible  <bruno@clisp.org>
28875
28876         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28877         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28878         AC_LIB_HAVE_LINKFLAGS.
28879
28880 2009-04-26  Bruno Haible  <bruno@clisp.org>
28881
28882         Simplify calling convention of u*_conv_from_encoding.
28883         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28884         u32_conv_from_encoding): Expect a resultbuf argument and return the
28885         result directly as a pointer.
28886         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28887         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28888         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28889         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28890         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28891         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28892         Update.
28893         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28894         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28895         * lib/vasnprintf.c (VASNPRINTF): Update.
28896         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28897         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28898         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28899         * NEWS: Mention the change.
28900
28901 2009-04-26  Bruno Haible  <bruno@clisp.org>
28902
28903         Simplify calling convention of u*_conv_to_encoding.
28904         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28905         u32_conv_to_encoding): Expect a resultbuf argument and return the
28906         result directly as a pointer.
28907         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28908         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28909         freeing scaled_offsets if mem_iconveha failed.
28910         * lib/unicase/u-casexfrm.h (FUNC): Update.
28911         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28912         * lib/vasnprintf.c (VASNPRINTF): Update.
28913         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28914         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28915         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28916         * NEWS: Mention the change.
28917
28918 2009-04-26  Bruno Haible  <bruno@clisp.org>
28919
28920         Avoid test failures on AIX and OSF/1.
28921         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28922         malloc(0).
28923         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28924         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28925         Likewise.
28926         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28927         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28928         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28929         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28930         * doc/posix-functions/malloc.texi: Document the portability problem
28931         related to malloc(0).
28932
28933 2009-04-26  Bruno Haible  <bruno@clisp.org>
28934
28935         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28936         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28937         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28938
28939 2009-04-25  Bruno Haible  <bruno@clisp.org>
28940
28941         Avoid link error when creating a namespace clean library.
28942         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28943         as macro with arguments if already defined as an alias.
28944         * lib/signbitf.c (gl_signbitf): Don't undefine.
28945         * lib/signbitd.c (gl_signbitd): Don't undefine.
28946         * lib/signbitl.c (gl_signbitl): Don't undefine.
28947
28948 2009-04-25  Jim Meyering  <meyering@redhat.com>
28949
28950         vc-list-files: fix another quoting bug
28951         * build-aux/vc-list-files: Avoid sed backslash expansion
28952         of pathological directory names.
28953
28954 2009-04-25  Eric Blake  <ebb9@byu.net>
28955
28956         vc-list-files: fix shell quoting error
28957         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28958         timestamp.
28959
28960 2009-04-25  Jim Meyering  <meyering@redhat.com>
28961
28962         vc-list-files: restore lost functionality with subdir argument
28963         * build-aux/vc-list-files: When given a non-"." sub-directory
28964         argument, substitute the $dir/ prefix back onto each resulting name.
28965         Otherwise, coreutils' root_tests check would fail.
28966
28967 2009-04-24  Eric Blake  <ebb9@byu.net>
28968
28969         vc-list-files: ignore git symlinks
28970         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28971         than ls-files, to ignore git symlinks.
28972
28973         maint.mk: import improvements from m4
28974         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28975         (move_if_change): Delete unused macro.
28976         (news-date-check, vc-diff-check): Support VPATH builds.
28977         (announcement): Likewise.  Split --bootstrap-tools list...
28978         (boostrap-tools): ...into separate list, which can be overridden
28979         in cfg.mk.
28980         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28981         requiring dependency on useless-if-before-free module.
28982         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28983         Support VPATH builds.
28984
28985 2009-04-24  Jim Meyering  <meyering@redhat.com>
28986
28987         maint.mk: remove coreutils-specific rules and variables
28988         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28989         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28990         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28991
28992         maint.mk: remove obsolete rule
28993         * top/maint.mk (rel-check): Remove rule.
28994         (WGET, WGETFLAGS): Remove now-unused variables.
28995
28996 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28997
28998         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28999         consistency.
29000
29001         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29002         '$(PATH_SEPARATOR)' instead of ':'.
29003
29004 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29005
29006         * lib/getopt1.c (main): Use 'const' for static array.
29007
29008 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29009
29010         * top/maint.mk: Sync with coreutils.
29011         * NEWS: Explain incompatibilities.
29012
29013 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29014             Bruno Haible  <bruno@clisp.org>
29015
29016         Fix cross-compilation results.
29017         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29018         statement, as third argument of AC_TRY_RUN.
29019         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29020         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29021         Likewise.
29022         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29023         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29024         Likewise.
29025         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29027         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29028
29029 2009-04-20  Bruno Haible  <bruno@clisp.org>
29030
29031         Avoid test failure on mingw.
29032         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29033
29034 2009-04-20  Bruno Haible  <bruno@clisp.org>
29035
29036         Avoid compilation error on mingw.
29037         * modules/localename-tests (Depends-on): Add locale.
29038
29039 2009-04-19  Bruno Haible  <bruno@clisp.org>
29040
29041         Support for building a shared library on Windows platforms.
29042         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29043         (main): Test the presence of UNINORM_NFC here.
29044         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29045         (main): Test the presence of UNINORM_NFD here.
29046         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29047         (main): Test the presence of UNINORM_NFKC here.
29048         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29049         (main): Test the presence of UNINORM_NFKD here.
29050
29051 2009-04-19  Bruno Haible  <bruno@clisp.org>
29052
29053         Avoid a compiler warning.
29054         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29055         Change type of variable 'sequence'.
29056
29057 2009-04-19  Bruno Haible  <bruno@clisp.org>
29058
29059         * modules/configmake (Makefile.am): When the contents of configmake.h
29060         does not change, arrange to preserve its modification time.
29061
29062 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29063
29064         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29065         gettext domain.
29066
29067 2009-04-16  Jim Meyering  <meyering@redhat.com>
29068
29069         useless-if-before-free: improve conversion code
29070         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29071         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29072
29073 2009-04-14  Bruno Haible  <bruno@clisp.org>
29074
29075         * modules/fcntl (Depends-on): Add extensions.
29076         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29077
29078 2009-04-12  Ben Pfaff  <blp@gnu.org>
29079
29080         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29081         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29082
29083 2009-03-20  Ben Pfaff  <blp@gnu.org>
29084
29085         Make rename replace existing destinations on Windows.
29086         * m4/rename.m4: Add test for Mingw.
29087         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29088         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29089         * doc/posix-functions/rename.texi: Document.
29090
29091 2009-04-10  Bruno Haible  <bruno@clisp.org>
29092
29093         New include file "iconveh.h".
29094         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29095         * lib/striconveh.h: Include it.
29096         (enum iconv_ilseq_handler): Remove definition.
29097         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29098         striconveh.h.
29099         * lib/striconveha.c: Include striconveh.h.
29100         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29101         * modules/striconveh (Files): Add lib/iconveh.h.
29102         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29103         lib/striconveh.h.
29104
29105 2009-04-10  Bruno Haible  <bruno@clisp.org>
29106
29107         * lib/uniconv.h: Update comment.
29108
29109 2009-04-10  Bruno Haible  <bruno@clisp.org>
29110
29111         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29112         always.
29113         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29114         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29115         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29116         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29117         "unistring-notinline.h", so that the function gets defined always.
29118         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29119         * lib/unistr/u8-uctomb.c: Likewise.
29120         * lib/unistr/u16-mbtouc.c: Likewise.
29121         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29122         * lib/unistr/u16-uctomb.c: Likewise.
29123         * lib/unistr/u32-mbtouc.c: Likewise.
29124         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29125         * lib/unistr/u32-uctomb.c: Likewise.
29126
29127 2009-04-10  Bruno Haible  <bruno@clisp.org>
29128
29129         Mark 'utime' obsolete.
29130         * modules/utime (Status, Notice): New sections.
29131         Suggested by Jim Meyering.
29132
29133         Fix cross-compile guess for utime test.
29134         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29135         autoconf.
29136         * doc/posix-functions/utime.texi: Give more precisions.
29137         Reported by Jan <ipif@ymail.com>.
29138
29139 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29140
29141         filevercmp: correct today's change
29142         * lib/filevercmp.c: Also handle coreutils' test inputs.
29143         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29144
29145         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29146         for reporting it.
29147         * lib/filevercmp.c: Special handle for "", "." and "..".
29148         * tests/test-filevercmp.c: Enlarge the set suite.
29149
29150 2009-04-07  Jim Meyering  <meyering@redhat.com>
29151
29152         useless-if-before-free: show how to remove braced useless free, too
29153         * build-aux/useless-if-before-free: still only in a comment, though.
29154
29155 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29156
29157         maint.mk: import changes to syntax-check macros from coreutils
29158         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29159         Use them in the relevant macros.
29160
29161 2009-04-06  Bruno Haible  <bruno@clisp.org>
29162
29163         Fix unportable use of bit-fields.
29164         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29165         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29166         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29167
29168 2009-04-06  Bruno Haible  <bruno@clisp.org>
29169
29170         Avoid test failures on AIX and OSF/1.
29171         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29172         that malloc(0) = NULL.
29173         * tests/unicase/test-u8-tolower.c (check): Likewise.
29174         * tests/unicase/test-u8-totitle.c (check): Likewise.
29175         * tests/unicase/test-u8-toupper.c (check): Likewise.
29176         * tests/unicase/test-u16-casefold.c (check): Likewise.
29177         * tests/unicase/test-u16-tolower.c (check): Likewise.
29178         * tests/unicase/test-u16-totitle.c (check): Likewise.
29179         * tests/unicase/test-u16-toupper.c (check): Likewise.
29180         * tests/unicase/test-u32-casefold.c (check): Likewise.
29181         * tests/unicase/test-u32-tolower.c (check): Likewise.
29182         * tests/unicase/test-u32-totitle.c (check): Likewise.
29183         * tests/unicase/test-u32-toupper.c (check): Likewise.
29184         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29185         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29186         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29187         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29188         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29189         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29190         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29191         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29192         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29193         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29194         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29195         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29196
29197 2009-04-05  Bruno Haible  <bruno@clisp.org>
29198
29199         Work around an autoconf limitation.
29200         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29201         comment line if it would be longer than 3 KB.
29202
29203 2009-04-05  Bruno Haible  <bruno@clisp.org>
29204
29205         Avoid test failure with libiconv-1.13.
29206         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29207         of the expected test results.
29208
29209 2009-04-05  Bruno Haible  <bruno@clisp.org>
29210
29211         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29212         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29213         that it should be installed.
29214
29215 2009-04-05  Bruno Haible  <bruno@clisp.org>
29216
29217         * gnulib-tool: New option --copy-file.
29218         (func_usage): Document it.
29219         (func_dest_tmpfilename): Moved out of func_import.
29220         (func_add_file, func_update_file): New functions, extracted from
29221         func_import.
29222         (func_import): Update.
29223
29224 2009-04-05  Karl Berry  <karl@gnu.org>
29225
29226         * README: prominently mention gnulib-tool.
29227         Rearrange sections so getting the code is near the top.
29228
29229 2009-04-05  Bruno Haible  <bruno@clisp.org>
29230
29231         * lib/unicase.h: Mention u*_cmp2.
29232         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29233         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29234         * lib/unicase/ulc-casecmp.c: Likewise.
29235         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29236         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29237         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29238         unistr/u8-cmp.
29239         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29240         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29241         unistr/u16-cmp.
29242         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29243         unistr/u32-cmp.
29244
29245         * lib/uninorm.h: Mention u*_cmp2.
29246         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29247         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29248         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29249         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29250         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29251         unistr/u8-cmp.
29252         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29253         unistr/u16-cmp.
29254         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29255         unistr/u32-cmp.
29256
29257         New module 'unistr/u32-cmp2'.
29258         * lib/unistr/u32-cmp2.c: New file.
29259         * modules/unistr/u32-cmp2: New file.
29260
29261         New module 'unistr/u16-cmp2'.
29262         * lib/unistr/u16-cmp2.c: New file.
29263         * modules/unistr/u16-cmp2: New file.
29264
29265         New module 'unistr/u8-cmp2'.
29266         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29267         * lib/unistr/u8-cmp2.c: New file.
29268         * lib/unistr/u-cmp2.h: New file.
29269         * modules/unistr/u8-cmp2: New file.
29270
29271 2009-04-05  Bruno Haible  <bruno@clisp.org>
29272
29273         * lib/unictype.h (uc_property_is_valid): New macro.
29274         * tests/unictype/test-pr_byname.c (main): Use it.
29275
29276         * lib/unistr.h: Doc fixes.
29277         * lib/uniconv.h: Doc fixes.
29278         * lib/unictype.h: Doc fixes.
29279
29280 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29281
29282         Port coreutils 7.2 to Solaris 8.
29283
29284         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29285         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29286         for Solaris 8.  This is a bit of a hack, as it means it's the
29287         caller's responsibility to add -lnsl if needed, but most likely it
29288         won't be needed since only getaddrinfo uses this and getaddrinfo
29289         isn't needed on Solaris 8.
29290
29291         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29292         problem to Solaris 8 encountered with coreutils 7.2, which
29293         resulted in a message "fnmatch.c:292: warning: passing argument 4
29294         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29295         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29296
29297 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29298
29299         * m4/ld-version-script.m4: Add FIXME comment.
29300
29301 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29302
29303         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29304         SOVERSION variable.
29305
29306 2009-04-02  Bruno Haible  <bruno@clisp.org>
29307
29308         * Makefile (info, html, dvi, pdf): Combine the rules.
29309         Suggested by Jim Meyering.
29310
29311 2009-04-01  Bruno Haible  <bruno@clisp.org>
29312
29313         * Makefile (info, html, dvi, pdf): New targets.
29314         Reported by Reuben Thomas <rrt@sc3d.org>.
29315
29316 2009-04-01  Bruno Haible  <bruno@clisp.org>
29317
29318         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29319         can be put into PATH.
29320         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29321
29322 2009-04-01  Bruno Haible  <bruno@clisp.org>
29323
29324         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29325
29326 2009-04-01  Bruno Haible  <bruno@clisp.org>
29327
29328         Rename module 'visibility'.
29329         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29330         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29331         * doc/gnulib.texi: Update.
29332         * MODULES.html.sh (Misc): Update.
29333         * NEWS: Mention the change.
29334
29335 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29336
29337         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29338         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29339         Eric Blake <ebb9@byu.net> for review.
29340         * MODULES.html.sh: Add lib-msvc-compat.
29341         * doc/gnulib.texi: Link to new section.
29342         * m4/ld-output-def.m4: New file.
29343         * doc/ld-output-def.texi: New file.
29344
29345 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29346
29347         Rename ld-version-script to lib-symbol-versions.  Suggested by
29348         Bruno Haible <bruno@clisp.org>.
29349         * modules/ld-version-script: Renamed to lib-symbol-versions.
29350         * doc/ld-version-script.texi: Fix module name.
29351         * MODULES.html.sh: Add lib-symbol-versions.
29352
29353 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29354
29355         * modules/u64-tests: New file.
29356         * tests/test-u64.c: New file.
29357
29358 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29359
29360         * MODULES.html.sh: Mention u64.
29361         * modules/u64: New module.
29362         * modules/crypto/sha512: Depend on u64 module instead of providing
29363         u64.h.
29364
29365 2009-03-27  Eric Blake  <ebb9@byu.net>
29366
29367         test-strerror: make debugging EAI_SYSTEM easier
29368         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29369         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29370         failure was EAI_SYSTEM.
29371
29372 2009-03-25  Bruno Haible  <bruno@clisp.org>
29373
29374         Fix a problem with --enable-relocatable on Solaris 7.
29375         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29376         since 2008-02-24.
29377
29378 2009-03-25  Eric Blake  <ebb9@byu.net>
29379
29380         test-sockets: avoid gcc warning
29381         * tests/test-sockets.c (main): Silence compiler warning.
29382
29383 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29384
29385         New modules nproc, pthread, contributed by Glen Lenker.
29386
29387         * MODULES.html.sh: Add pthread, nproc.
29388         * lib/nproc.c: New file.
29389         * lib/nproc.h: New file.
29390         * lib/pthread.in.h: New file.
29391         * m4/pthread.m4: New file.
29392         * modules/nproc: New file.
29393         * modules/pthread: New file.
29394
29395 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29396
29397         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29398         New variable.
29399
29400 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29401
29402         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29403         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29404         * tests/test-filevercmp.c: Add tests for backup suffixes.
29405
29406 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29407
29408         * modules/stdlib (Depends-on): Add stdint, needed when defining
29409         struct random_data on, for example, HP-UX 10.20.  Reported by
29410         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29411
29412 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29413
29414         * lib/readline.c (readline): Call fflush on stdout after printing
29415         prompt.
29416
29417 2009-03-20  Bruno Haible  <bruno@clisp.org>
29418
29419         Remove dependency from 'close' module to -lws2_32 on native Windows.
29420         * lib/close-hook.h: New file.
29421         * lib/close-hook.c: New file.
29422         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29423         w32sock.h.
29424         (_gl_close_fd_maybe_socket): Remove function.
29425         (rpl_close): Invoke execute_all_close_hooks instead of
29426         _gl_close_fd_maybe_socket.
29427         * lib/sockets.c: Include close-hook.h, w32sock.h.
29428         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29429         (close_sockets_hook): New variable.
29430         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29431         (gl_sockets_cleanup): Unregister it.
29432         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29433         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29434         * modules/close-hook: New file.
29435         * modules/close (Files): Remove lib/w32sock.h.
29436         (Depends-on): Add close-hook.
29437         (Link): Remove section.
29438         * modules/sockets (Files): Add lib/w32sock.h.
29439         (Depends-on): Add close-hook.
29440         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29441         invocation.
29442         * NEWS: Mention that LIB_CLOSE is gone.
29443
29444 2009-03-23  Eric Blake  <ebb9@byu.net>
29445
29446         signal-tests: test previous patch
29447         * tests/test-signal.c: New file.
29448         * modules/signal-tests: Likewise.
29449
29450         signal.h: always support 'volatile sig_atomic_t'
29451         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29452         (gl_SIGNAL_H_DEFAULTS): Add a default.
29453         * modules/signal (Makefile.am): Substitute if needed.
29454         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29455         users can blindly add volatile.
29456         * doc/posix-headers/signal.texi (signal.h): Document it.
29457         Reported by Matthew Woehlke.
29458
29459 2009-03-23  Jim Meyering  <meyering@redhat.com>
29460
29461         pathmax: PATH_MAX: use pathconf only when available
29462         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29463         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29464         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29465         This avoids a link failure in a PSP cross-compilation environment
29466         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29467
29468         * lib/vasnprintf.c (divide): Fix typo in comment.
29469
29470 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29471
29472         * gnulib-tool (func_filter_filelist): Fix comment.
29473
29474 2009-03-20  Bruno Haible  <bruno@clisp.org>
29475
29476         Make sockets.h self-contained.
29477         * lib/sockets.c: Include sockets.h first.
29478         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29479
29480 2009-03-19  Eric Blake  <ebb9@byu.net>
29481
29482         doc: mention more functions added in cygwin 1.7.0
29483         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29484         addition.
29485         * doc/posix-functions/log2f.texi: Likewise.
29486
29487 2009-03-19  Jim Meyering  <meyering@redhat.com>
29488
29489         fsusage: avoid syntax error due to statement-before-declaration
29490         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29491         after all declarations.  Reported by Matthew Woehlke in
29492         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29493
29494 2009-03-18  Eric Blake  <ebb9@byu.net>
29495
29496         build-aux/compile: sync from automake
29497         * build-aux/compile: New file, from automake.
29498         * config/srclist.txt: Mention build-aux/compile.
29499
29500 2009-03-17  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/git-merge-changelog.c: Fix typo in comment.
29503         Reported by Reuben Thomas <rrt@sc3d.org>.
29504
29505 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29506
29507         * m4/regex.m4: update and improve help for
29508         --without-included-regex.
29509
29510 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29511
29512         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29513         failure on missing include files.
29514
29515 2009-03-17  Eric Blake  <ebb9@byu.net>
29516
29517         doc: mention more functions added in cygwin 1.7.0
29518         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29519         addition.
29520         * doc/posix-functions/fwscanf.texi: Likewise.
29521         * doc/posix-functions/swprintf.texi: Likewise.
29522         * doc/posix-functions/swscanf.texi: Likewise.
29523         * doc/posix-functions/vfwprintf.texi: Likewise.
29524         * doc/posix-functions/vfwscanf.texi: Likewise.
29525         * doc/posix-functions/vswprintf.texi: Likewise.
29526         * doc/posix-functions/vswscanf.texi: Likewise.
29527         * doc/posix-functions/vwprintf.texi: Likewise.
29528         * doc/posix-functions/vwscanf.texi: Likewise.
29529         * doc/posix-functions/wcscasecmp.texi: Likewise.
29530         * doc/posix-functions/wcsdup.texi: Likewise.
29531         * doc/posix-functions/wcsftime.texi: Likewise.
29532         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29533         * doc/posix-functions/wprintf.texi: Likewise.
29534         * doc/posix-functions/wscanf.texi: Likewise.
29535         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29536
29537 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29538
29539         maint.mk: really add $(AM_MAKEFLAGS)
29540         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29541         was inadvertently omitted in the last commit.
29542         Spotted by Bruno Haible.
29543
29544         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29545         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29546         $(AM_MAKEFLAGS)' rather than plain `make'.
29547
29548         gnulib-tool: execute $MAKE not make
29549         * gnulib-tool: Default $MAKE to 'make'.
29550         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29551         than make.  Initialize $MAKE in the do-autobuild script.
29552
29553         gnulib-tool: use $MAKE not make in generated files
29554         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29555         make, in generated files.  Initialize $MAKE in the do-autobuild
29556         script.
29557
29558         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29559
29560         GNUmakefile: disable parallelism only for multiple, recursive targets
29561         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29562         additions in the Makefile.
29563         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29564         by Automake.
29565         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29566         are listed on the command line and at least one of them is
29567         listed in $(ALL_RECURSIVE_TARGETS).
29568
29569 2009-03-14  Bruno Haible  <bruno@clisp.org>
29570
29571         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29572         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29573         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29574         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29575         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29576         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29577         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29578         unistr/u8-uctomb.
29579         * modules/unistr/u8-strchr (Depends-on): Likewise.
29580         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29581         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29582         unistr/u16-uctomb.
29583         * modules/unistr/u16-strchr (Depends-on): Likewise.
29584         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29585
29586 2009-03-12  Bruno Haible  <bruno@clisp.org>
29587
29588         Work around select() bug on Interix 3.5.
29589         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29590         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29591         * m4/select.m4: New file.
29592         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29593         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29594         * modules/select (Files): Add m4/select.m4.
29595         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29596         * modules/nanosleep (Depends-on): Add select.
29597         * modules/poll (Depends-on): Likewise.
29598         * doc/posix-functions/select.texi: Mention the Interix bug.
29599         Reported by Markus Duft <mduft@gentoo.org>.
29600
29601         * lib/select.c: Renamed from lib/winsock-select.c.
29602         * modules/select (Files): Add lib/select.c, remove
29603         lib/winsock-select.c.
29604         (configure.ac): Update.
29605
29606 2009-03-12  Jim Meyering  <meyering@redhat.com>
29607
29608         avoid gcc warnings about unused macro definitions
29609         * lib/readtokens.c (STREQ): Remove unused definition.
29610         * lib/xmalloc.c (SIZE_MAX): Likewise.
29611         * lib/openat-die.c (N_): Likewise.
29612         * lib/mountlist.c (SIZE_MAX): Remove definition.
29613         Instead, include <stdint.h>.
29614         * lib/readutmp.c: Likewise.
29615         * modules/readutmp (Depends-on): Add stdint.
29616         * modules/mountlist (Depends-on): Add stdint.
29617         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29618
29619 2009-03-10  Bruno Haible  <bruno@clisp.org>
29620
29621         Tests for module 'mbmemcasecoll'.
29622         * modules/mbmemcasecoll-tests: New file.
29623         * tests/test-mbmemcasecoll1.sh: New file.
29624         * tests/test-mbmemcasecoll2.sh: New file.
29625         * tests/test-mbmemcasecoll3.sh: New file.
29626         * tests/test-mbmemcasecoll.c: New file.
29627
29628         New module 'mbmemcasecoll'.
29629         * lib/mbmemcasecoll.h: New file.
29630         * lib/mbmemcasecoll.c: New file.
29631         * modules/mbmemcasecoll: New file.
29632
29633         * tests/test-mbmemcasecmp.h: New file, extracted from
29634         tests/test-mbmemcasecmp.c.
29635         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29636         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29637         (main): Update.
29638         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29639
29640 2009-03-09  Bruno Haible  <bruno@clisp.org>
29641
29642         Tests for module 'mbmemcasecmp'.
29643         * modules/mbmemcasecmp-tests: New file.
29644         * tests/test-mbmemcasecmp1.sh: New file.
29645         * tests/test-mbmemcasecmp2.sh: New file.
29646         * tests/test-mbmemcasecmp3.sh: New file.
29647         * tests/test-mbmemcasecmp.c: New file.
29648
29649         New module 'mbmemcasecmp'.
29650         * lib/mbmemcasecmp.h: New file.
29651         * lib/mbmemcasecmp.c: New file.
29652         * modules/mbmemcasecmp: New file.
29653
29654 2009-03-09  Bruno Haible  <bruno@clisp.org>
29655
29656         Tests for module 'unicase/ulc-casecoll'.
29657         * modules/unicase/ulc-casecoll-tests: New file.
29658         * tests/unicase/test-ulc-casecoll1.sh: New file.
29659         * tests/unicase/test-ulc-casecoll2.sh: New file.
29660         * tests/unicase/test-ulc-casecoll.c: New file.
29661
29662         New module 'unicase/ulc-casecoll'.
29663         * lib/unicase.h (ulc_casecoll): New declaration.
29664         * lib/unicase/ulc-casecoll.c: New file.
29665         * modules/unicase/ulc-casecoll: New file.
29666
29667         New module 'unicase/ulc-casexfrm'.
29668         * lib/unicase.h (ulc_casexfrm): New declaration.
29669         * lib/unicase/ulc-casexfrm.c: New file.
29670         * modules/unicase/ulc-casexfrm: New file.
29671
29672 2009-03-09  Bruno Haible  <bruno@clisp.org>
29673
29674         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29675         invocations.
29676
29677         * m4/mbscasecmp.m4: Remove file.
29678         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29679         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29680
29681         * m4/mbscasestr.m4: Remove file.
29682         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29683         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29684
29685         * m4/mbschr.m4: Remove file.
29686         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29687         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29688
29689         * m4/mbscspn.m4: Remove file.
29690         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29691         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29692
29693         * m4/mbslen.m4: Remove file.
29694         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29695         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29696
29697         * m4/mbsncasecmp.m4: Remove file.
29698         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29699         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29700
29701         * m4/mbsnlen.m4: Remove file.
29702         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29703         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29704
29705         * m4/mbspbrk.m4: Remove file.
29706         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29707         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29708
29709         * m4/mbspcasecmp.m4: Remove file.
29710         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29711         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29712
29713         * m4/mbsrchr.m4: Remove file.
29714         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29715         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29716
29717         * m4/mbssep.m4: Remove file.
29718         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29719         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29720
29721         * m4/mbsspn.m4: Remove file.
29722         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29723         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29724
29725         * m4/mbsstr.m4: Remove file.
29726         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29727         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29728
29729         * m4/mbstok_r.m4: Remove file.
29730         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29731         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29732
29733         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29734
29735         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29736         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29737
29738         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29739
29740 2009-03-08  Bruno Haible  <bruno@clisp.org>
29741
29742         Tests for module 'unicase/ulc-casecmp'.
29743         * modules/unicase/ulc-casecmp-tests: New file.
29744         * tests/unicase/test-ulc-casecmp1.sh: New file.
29745         * tests/unicase/test-ulc-casecmp2.sh: New file.
29746         * tests/unicase/test-ulc-casecmp.c: New file.
29747
29748         New module 'unicase/ulc-casecmp'.
29749         * lib/unicase.h (ulc_casecmp): New declaration.
29750         * lib/unicase/ulc-casecmp.c: New file.
29751         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29752         'const SRC_UNIT *'.
29753         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29754         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29755         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29756         * modules/unicase/ulc-casecmp: New file.
29757
29758         Tests for module 'unicase/u32-is-cased'.
29759         * modules/unicase/u32-is-cased-tests: New file.
29760         * tests/unicase/test-u32-is-cased.c: New file.
29761
29762         Tests for module 'unicase/u16-is-cased'.
29763         * modules/unicase/u16-is-cased-tests: New file.
29764         * tests/unicase/test-u16-is-cased.c: New file.
29765
29766         Tests for module 'unicase/u8-is-cased'.
29767         * modules/unicase/u8-is-cased-tests: New file.
29768         * tests/unicase/test-u8-is-cased.c: New file.
29769         * tests/unicase/test-is-cased.h: New file.
29770
29771         New module 'unicase/u32-is-cased'.
29772         * lib/unicase/u32-is-cased.c: New file.
29773         * modules/unicase/u32-is-cased: New file.
29774
29775         New module 'unicase/u16-is-cased'.
29776         * lib/unicase/u16-is-cased.c: New file.
29777         * modules/unicase/u16-is-cased: New file.
29778
29779         New module 'unicase/u8-is-cased'.
29780         * lib/unicase/u8-is-cased.c: New file.
29781         * lib/unicase/u-is-cased.h: New file.
29782         * modules/unicase/u8-is-cased: New file.
29783
29784         Tests for module 'unicase/u32-is-casefolded'.
29785         * modules/unicase/u32-is-casefolded-tests: New file.
29786         * tests/unicase/test-u32-is-casefolded.c: New file.
29787
29788         Tests for module 'unicase/u16-is-casefolded'.
29789         * modules/unicase/u16-is-casefolded-tests: New file.
29790         * tests/unicase/test-u16-is-casefolded.c: New file.
29791
29792         Tests for module 'unicase/u8-is-casefolded'.
29793         * modules/unicase/u8-is-casefolded-tests: New file.
29794         * tests/unicase/test-u8-is-casefolded.c: New file.
29795         * tests/unicase/test-is-casefolded.h: New file.
29796
29797         New module 'unicase/u32-is-casefolded'.
29798         * lib/unicase/u32-is-casefolded.c: New file.
29799         * modules/unicase/u32-is-casefolded: New file.
29800
29801         New module 'unicase/u16-is-casefolded'.
29802         * lib/unicase/u16-is-casefolded.c: New file.
29803         * modules/unicase/u16-is-casefolded: New file.
29804
29805         New module 'unicase/u8-is-casefolded'.
29806         * lib/unicase/u8-is-casefolded.c: New file.
29807         * modules/unicase/u8-is-casefolded: New file.
29808
29809         Tests for module 'unicase/u32-is-titlecase'.
29810         * modules/unicase/u32-is-titlecase-tests: New file.
29811         * tests/unicase/test-u32-is-titlecase.c: New file.
29812
29813         Tests for module 'unicase/u16-is-titlecase'.
29814         * modules/unicase/u16-is-titlecase-tests: New file.
29815         * tests/unicase/test-u16-is-titlecase.c: New file.
29816
29817         Tests for module 'unicase/u8-is-titlecase'.
29818         * modules/unicase/u8-is-titlecase-tests: New file.
29819         * tests/unicase/test-u8-is-titlecase.c: New file.
29820         * tests/unicase/test-is-titlecase.h: New file.
29821
29822         New module 'unicase/u32-is-titlecase'.
29823         * lib/unicase/u32-is-titlecase.c: New file.
29824         * modules/unicase/u32-is-titlecase: New file.
29825
29826         New module 'unicase/u16-is-titlecase'.
29827         * lib/unicase/u16-is-titlecase.c: New file.
29828         * modules/unicase/u16-is-titlecase: New file.
29829
29830         New module 'unicase/u8-is-titlecase'.
29831         * lib/unicase/u8-is-titlecase.c: New file.
29832         * modules/unicase/u8-is-titlecase: New file.
29833
29834         Tests for module 'unicase/u32-is-lowercase'.
29835         * modules/unicase/u32-is-lowercase-tests: New file.
29836         * tests/unicase/test-u32-is-lowercase.c: New file.
29837
29838         Tests for module 'unicase/u16-is-lowercase'.
29839         * modules/unicase/u16-is-lowercase-tests: New file.
29840         * tests/unicase/test-u16-is-lowercase.c: New file.
29841
29842         Tests for module 'unicase/u8-is-lowercase'.
29843         * modules/unicase/u8-is-lowercase-tests: New file.
29844         * tests/unicase/test-u8-is-lowercase.c: New file.
29845         * tests/unicase/test-is-lowercase.h: New file.
29846
29847         New module 'unicase/u32-is-lowercase'.
29848         * lib/unicase/u32-is-lowercase.c: New file.
29849         * modules/unicase/u32-is-lowercase: New file.
29850
29851         New module 'unicase/u16-is-lowercase'.
29852         * lib/unicase/u16-is-lowercase.c: New file.
29853         * modules/unicase/u16-is-lowercase: New file.
29854
29855         New module 'unicase/u8-is-lowercase'.
29856         * lib/unicase/u8-is-lowercase.c: New file.
29857         * modules/unicase/u8-is-lowercase: New file.
29858
29859         Tests for module 'unicase/u32-is-uppercase'.
29860         * modules/unicase/u32-is-uppercase-tests: New file.
29861         * tests/unicase/test-u32-is-uppercase.c: New file.
29862
29863         Tests for module 'unicase/u16-is-uppercase'.
29864         * modules/unicase/u16-is-uppercase-tests: New file.
29865         * tests/unicase/test-u16-is-uppercase.c: New file.
29866
29867         Tests for module 'unicase/u8-is-uppercase'.
29868         * modules/unicase/u8-is-uppercase-tests: New file.
29869         * tests/unicase/test-u8-is-uppercase.c: New file.
29870         * tests/unicase/test-is-uppercase.h: New file.
29871
29872         New module 'unicase/u32-is-uppercase'.
29873         * lib/unicase/u32-is-uppercase.c: New file.
29874         * modules/unicase/u32-is-uppercase: New file.
29875
29876         New module 'unicase/u16-is-uppercase'.
29877         * lib/unicase/u16-is-uppercase.c: New file.
29878         * modules/unicase/u16-is-uppercase: New file.
29879
29880         New module 'unicase/u8-is-uppercase'.
29881         * lib/unicase/u8-is-uppercase.c: New file.
29882         * modules/unicase/u8-is-uppercase: New file.
29883
29884         New module 'unicase/u32-is-invariant'.
29885         * lib/unicase/u32-is-invariant.c: New file.
29886         * modules/unicase/u32-is-invariant: New file.
29887
29888         New module 'unicase/u16-is-invariant'.
29889         * lib/unicase/u16-is-invariant.c: New file.
29890         * modules/unicase/u16-is-invariant: New file.
29891
29892         New module 'unicase/u8-is-invariant'.
29893         * lib/unicase/u8-is-invariant.c: New file.
29894         * lib/unicase/invariant.h: New file.
29895         * lib/unicase/u-is-invariant.h: New file.
29896         * modules/unicase/u8-is-invariant: New file.
29897
29898         Tests for module 'unicase/u32-casecoll'.
29899         * modules/unicase/u32-casecoll-tests: New file.
29900         * tests/unicase/test-u32-casecoll.c: New file.
29901
29902         Tests for module 'unicase/u16-casecoll'.
29903         * modules/unicase/u16-casecoll-tests: New file.
29904         * tests/unicase/test-u16-casecoll.c: New file.
29905
29906         Tests for module 'unicase/u8-casecoll'.
29907         * modules/unicase/u8-casecoll-tests: New file.
29908         * tests/unicase/test-u8-casecoll.c: New file.
29909
29910         New module 'unicase/u32-casecoll'.
29911         * lib/unicase/u32-casecoll.c: New file.
29912         * modules/unicase/u32-casecoll: New file.
29913
29914         New module 'unicase/u16-casecoll'.
29915         * lib/unicase/u16-casecoll.c: New file.
29916         * modules/unicase/u16-casecoll: New file.
29917
29918         New module 'unicase/u8-casecoll'.
29919         * lib/unicase/u8-casecoll.c: New file.
29920         * lib/unicase/u-casecoll.h: New file.
29921         * modules/unicase/u8-casecoll: New file.
29922
29923         New module 'unicase/u32-casexfrm'.
29924         * lib/unicase/u32-casexfrm.c: New file.
29925         * modules/unicase/u32-casexfrm: New file.
29926
29927         New module 'unicase/u16-casexfrm'.
29928         * lib/unicase/u16-casexfrm.c: New file.
29929         * modules/unicase/u16-casexfrm: New file.
29930
29931         New module 'unicase/u8-casexfrm'.
29932         * lib/unicase/u8-casexfrm.c: New file.
29933         * lib/unicase/u-casexfrm.h: New file.
29934         * modules/unicase/u8-casexfrm: New file.
29935
29936         Tests for module 'unicase/u32-casecmp'.
29937         * modules/unicase/u32-casecmp-tests: New file.
29938         * tests/unicase/test-u32-casecmp.c: New file.
29939
29940         Tests for module 'unicase/u16-casecmp'.
29941         * modules/unicase/u16-casecmp-tests: New file.
29942         * tests/unicase/test-u16-casecmp.c: New file.
29943
29944         Tests for module 'unicase/u8-casecmp'.
29945         * modules/unicase/u8-casecmp-tests: New file.
29946         * tests/unicase/test-u8-casecmp.c: New file.
29947         * tests/unicase/test-casecmp.h: New file.
29948
29949         New module 'unicase/u32-casecmp'.
29950         * lib/unicase/u32-casecmp.c: New file.
29951         * modules/unicase/u32-casecmp: New file.
29952
29953         New module 'unicase/u16-casecmp'.
29954         * lib/unicase/u16-casecmp.c: New file.
29955         * modules/unicase/u16-casecmp: New file.
29956
29957         New module 'unicase/u8-casecmp'.
29958         * lib/unicase/u8-casecmp.c: New file.
29959         * lib/unicase/u-casecmp.h: New file.
29960         * modules/unicase/u8-casecmp: New file.
29961
29962         Tests for module 'unicase/u32-casefold'.
29963         * modules/unicase/u32-casefold-tests: New file.
29964         * tests/unicase/test-u32-casefold.c: New file.
29965
29966         Tests for module 'unicase/u16-casefold'.
29967         * modules/unicase/u16-casefold-tests: New file.
29968         * tests/unicase/test-u16-casefold.c: New file.
29969
29970         Tests for module 'unicase/u8-casefold'.
29971         * modules/unicase/u8-casefold-tests: New file.
29972         * tests/unicase/test-u8-casefold.c: New file.
29973
29974         New module 'unicase/u32-casefold'.
29975         * lib/unicase/u32-casefold.c: New file.
29976         * modules/unicase/u32-casefold: New file.
29977
29978         New module 'unicase/u16-casefold'.
29979         * lib/unicase/u16-casefold.c: New file.
29980         * modules/unicase/u16-casefold: New file.
29981
29982         New module 'unicase/u8-casefold'.
29983         * lib/unicase/u8-casefold.c: New file.
29984         * lib/unicase/u-casefold.h: New file.
29985         * modules/unicase/u8-casefold: New file.
29986
29987         New module 'unicase/tocasefold'.
29988         * lib/unicase/casefold.h: New file.
29989         * lib/unicase/tocasefold.c: New file.
29990         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29991         * modules/unicase/tocasefold: New file.
29992
29993         Tests for module 'unicase/u32-totitle'.
29994         * modules/unicase/u32-totitle-tests: New file.
29995         * tests/unicase/test-u32-totitle.c: New file.
29996
29997         Tests for module 'unicase/u16-totitle'.
29998         * modules/unicase/u16-totitle-tests: New file.
29999         * tests/unicase/test-u16-totitle.c: New file.
30000
30001         Tests for module 'unicase/u8-totitle'.
30002         * modules/unicase/u8-totitle-tests: New file.
30003         * tests/unicase/test-u8-totitle.c: New file.
30004
30005         New module 'unicase/u32-totitle'.
30006         * lib/unicase/u32-totitle.c: New file.
30007         * modules/unicase/u32-totitle: New file.
30008
30009         New module 'unicase/u16-totitle'.
30010         * lib/unicase/u16-totitle.c: New file.
30011         * modules/unicase/u16-totitle: New file.
30012
30013         New module 'unicase/u8-totitle'.
30014         * lib/unicase/u8-totitle.c: New file.
30015         * lib/unicase/u-totitle.h: New file.
30016         * modules/unicase/u8-totitle: New file.
30017
30018         Tests for module 'unicase/u32-tolower'.
30019         * modules/unicase/u32-tolower-tests: New file.
30020         * tests/unicase/test-u32-tolower.c: New file.
30021
30022         Tests for module 'unicase/u16-tolower'.
30023         * modules/unicase/u16-tolower-tests: New file.
30024         * tests/unicase/test-u16-tolower.c: New file.
30025
30026         Tests for module 'unicase/u8-tolower'.
30027         * modules/unicase/u8-tolower-tests: New file.
30028         * tests/unicase/test-u8-tolower.c: New file.
30029
30030         New module 'unicase/u32-tolower'.
30031         * lib/unicase/u32-tolower.c: New file.
30032         * modules/unicase/u32-tolower: New file.
30033
30034         New module 'unicase/u16-tolower'.
30035         * lib/unicase/u16-tolower.c: New file.
30036         * modules/unicase/u16-tolower: New file.
30037
30038         New module 'unicase/u8-tolower'.
30039         * lib/unicase/u8-tolower.c: New file.
30040         * modules/unicase/u8-tolower: New file.
30041
30042         Tests for module 'unicase/u32-toupper'.
30043         * modules/unicase/u32-toupper-tests: New file.
30044         * tests/unicase/test-u32-toupper.c: New file.
30045
30046         Tests for module 'unicase/u16-toupper'.
30047         * modules/unicase/u16-toupper-tests: New file.
30048         * tests/unicase/test-u16-toupper.c: New file.
30049
30050         Tests for module 'unicase/u8-toupper'.
30051         * modules/unicase/u8-toupper-tests: New file.
30052         * tests/unicase/test-u8-toupper.c: New file.
30053
30054         New module 'unicase/u32-toupper'.
30055         * lib/unicase/u32-toupper.c: New file.
30056         * modules/unicase/u32-toupper: New file.
30057
30058         New module 'unicase/u16-toupper'.
30059         * lib/unicase/u16-toupper.c: New file.
30060         * modules/unicase/u16-toupper: New file.
30061
30062         New module 'unicase/u8-toupper'.
30063         * lib/unicase/u8-toupper.c: New file.
30064         * modules/unicase/u8-toupper: New file.
30065
30066         New module 'unicase/u32-casemap'.
30067         * lib/unicase/u32-casemap.c: New file.
30068         * modules/unicase/u32-casemap: New file.
30069
30070         New module 'unicase/u16-casemap'.
30071         * lib/unicase/u16-casemap.c: New file.
30072         * modules/unicase/u16-casemap: New file.
30073
30074         New module 'unicase/u8-casemap'.
30075         * lib/unicase/unicasemap.h: New file.
30076         * lib/unicase/u8-casemap.c: New file.
30077         * lib/unicase/u-casemap.h: New file.
30078         * modules/unicase/u8-casemap: New file.
30079
30080         New module 'unicase/special-casing'.
30081         * lib/unicase/special-casing.h: New file.
30082         * lib/unicase/special-casing.c: New file.
30083         * lib/unicase/special-casing-table.gperf: New file, generated by
30084         gen-uni-tables.c.
30085         * modules/unicase/special-casing: New file.
30086
30087         Tests for module 'unicase/locale-language'.
30088         * modules/unicase/locale-language-tests: New file.
30089         * tests/unicase/test-locale-language.sh: New file.
30090         * tests/unicase/test-locale-language.c: New file.
30091
30092         New module 'unicase/locale-language'.
30093         * lib/unicase/locale-language.c: New file.
30094         * lib/unicase/locale-languages.gperf: New file.
30095         * modules/unicase/locale-language: New file.
30096
30097         Generate more tables for case conversion and case folding.
30098         * lib/gen-uni-tables.c (SCC_*): New enum items.
30099         (struct special_casing_rule): New type.
30100         (casing_rules, num_casing_rules, allocated_casing_rules): New
30101         variables.
30102         (add_casing_rule, fill_casing_rules): New functions.
30103         (struct casefold_rule): New type.
30104         (casefolding_rules, num_casefolding_rules,
30105         allocated_casefolding_rules): New variables.
30106         (fill_casefolding_rules): New function.
30107         (unicode_casefold): New variable.
30108         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30109         sort_casing_rules, output_casing_rules): New functions.
30110         (main): Accept to more arguments: SpecialCasing.txt and
30111         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30112         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30113         Output mapping for casefolding.
30114
30115         * lib/unicase.h: Include stdbool.h, uninorm.h.
30116         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30117         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30118         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30119         arguments.
30120         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30121         resultp arguments.
30122         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30123         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30124         resultp arguments.
30125         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30126         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30127         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30128         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30129         declarations.
30130         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30131
30132 2009-03-08  Bruno Haible  <bruno@clisp.org>
30133
30134         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30135         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30136         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30137         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30138
30139 2009-03-07  Bruno Haible  <bruno@clisp.org>
30140
30141         Adjust u*_normcmp, u*_normcoll API.
30142         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30143         u16_normcoll, u32_normcoll): Change failure conventions.
30144         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30145         errno and return -1.
30146         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30147
30148 2009-03-07  Bruno Haible  <bruno@clisp.org>
30149
30150         Tests for module 'uninorm/u32-normcoll'.
30151         * modules/uninorm/u32-normcoll-tests: New file.
30152         * tests/uninorm/test-u32-normcoll.c: New file.
30153
30154         Tests for module 'uninorm/u16-normcoll'.
30155         * modules/uninorm/u16-normcoll-tests: New file.
30156         * tests/uninorm/test-u16-normcoll.c: New file.
30157
30158         Tests for module 'uninorm/u8-normcoll'.
30159         * modules/uninorm/u8-normcoll-tests: New file.
30160         * tests/uninorm/test-u8-normcoll.c: New file.
30161
30162 2009-03-07  Bruno Haible  <bruno@clisp.org>
30163
30164         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30165         tests/uninorm/test-u32-normcmp.c.
30166         * tests/uninorm/test-u32-normcmp.c: Include it.
30167         (test_nonascii): New function, extracted from main. Add some more
30168         tests.
30169         (main): Invoke test_ascii and test_nonascii.
30170         * modules/uninorm/u32-normcmp-tests (Files): Add
30171         tests/uninorm/test-u32-normcmp.h.
30172         (Depends-on): Remove uninorm/u32-normcmp.
30173
30174         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30175         tests/uninorm/test-u16-normcmp.c.
30176         * tests/uninorm/test-u16-normcmp.c: Include it.
30177         (test_nonascii): New function, extracted from main. Add some more
30178         tests.
30179         (main): Invoke test_ascii and test_nonascii.
30180         * modules/uninorm/u16-normcmp-tests (Files): Add
30181         tests/uninorm/test-u16-normcmp.h.
30182         (Depends-on): Remove uninorm/u16-normcmp.
30183
30184         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30185         tests/uninorm/test-u8-normcmp.c.
30186         * tests/uninorm/test-u8-normcmp.c: Include it.
30187         (test_nonascii): New function, extracted from main. Add some more
30188         tests.
30189         (main): Invoke test_ascii and test_nonascii.
30190         * modules/uninorm/u8-normcmp-tests (Files): Add
30191         tests/uninorm/test-u8-normcmp.h.
30192         (Depends-on): Remove uninorm/u8-normcmp.
30193
30194 2009-03-07  Bruno Haible  <bruno@clisp.org>
30195
30196         New module 'uninorm/u32-normcoll'.
30197         * lib/uninorm/u32-normcoll.c: New file.
30198         * modules/uninorm/u32-normcoll: New file.
30199
30200         New module 'uninorm/u16-normcoll'.
30201         * lib/uninorm/u16-normcoll.c: New file.
30202         * modules/uninorm/u16-normcoll: New file.
30203
30204         New module 'uninorm/u8-normcoll'.
30205         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30206         declarations.
30207         * lib/uninorm/u8-normcoll.c: New file.
30208         * lib/uninorm/u-normcoll.h: New file.
30209         * modules/uninorm/u8-normcoll: New file.
30210
30211         New module 'uninorm/u32-normxfrm'.
30212         * lib/uninorm/u32-normxfrm.c: New file.
30213         * modules/uninorm/u32-normxfrm: New file.
30214
30215         New module 'uninorm/u16-normxfrm'.
30216         * lib/uninorm/u16-normxfrm.c: New file.
30217         * modules/uninorm/u16-normxfrm: New file.
30218
30219         New module 'uninorm/u8-normxfrm'.
30220         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30221         declarations.
30222         * lib/uninorm/u8-normxfrm.c: New file.
30223         * lib/uninorm/u-normxfrm.h: New file.
30224         * modules/uninorm/u8-normxfrm: New file.
30225
30226 2009-03-07  Bruno Haible  <bruno@clisp.org>
30227
30228         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30229         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30230         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30231
30232 2009-03-07  Bruno Haible  <bruno@clisp.org>
30233
30234         New module 'memxfrm'.
30235         * lib/memxfrm.h: New file.
30236         * lib/memxfrm.c: New file.
30237         * modules/memxfrm: New file.
30238
30239 2009-03-07  Bruno Haible  <bruno@clisp.org>
30240
30241         New module 'memcmp2'.
30242         * lib/memcmp2.h: New file.
30243         * lib/memcmp2.c: New file.
30244         * modules/memcmp2: New file.
30245
30246 2009-03-07  Bruno Haible  <bruno@clisp.org>
30247
30248         Tests for module 'uninorm/decomposing-form'.
30249         * modules/uninorm/decomposing-form-tests: New file.
30250         * tests/uninorm/test-decomposing-form.c: New file.
30251
30252         New module 'uninorm/decomposing-form'.
30253         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30254         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30255         Add 'decomposing_variant' field.
30256         * lib/uninorm/decomposing-form.c: New file.
30257         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30258         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30259         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30260         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30261         * modules/uninorm/decomposing-form: New file.
30262         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30263         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30264
30265 2009-03-07  Bruno Haible  <bruno@clisp.org>
30266
30267         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30268         strings.
30269
30270 2009-03-06  Bruno Haible  <bruno@clisp.org>
30271
30272         Tests for module 'uninorm/u32-normcmp'.
30273         * tests/uninorm/test-u32-normcmp.c: New file.
30274         * modules/uninorm/u32-normcmp-tests: New file.
30275
30276         Tests for module 'uninorm/u16-normcmp'.
30277         * tests/uninorm/test-u16-normcmp.c: New file.
30278         * modules/uninorm/u16-normcmp-tests: New file.
30279
30280         Tests for module 'uninorm/u8-normcmp'.
30281         * tests/uninorm/test-u8-normcmp.c: New file.
30282         * modules/uninorm/u8-normcmp-tests: New file.
30283
30284         New module 'uninorm/u32-normcmp'.
30285         * lib/uninorm/u32-normcmp.c: New file.
30286         * modules/uninorm/u32-normcmp: New file.
30287
30288         New module 'uninorm/u16-normcmp'.
30289         * lib/uninorm/u16-normcmp.c: New file.
30290         * modules/uninorm/u16-normcmp: New file.
30291
30292         New module 'uninorm/u8-normcmp'.
30293         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30294         declarations.
30295         * lib/uninorm/u8-normcmp.c: New file.
30296         * lib/uninorm/u-normcmp.h: New file.
30297         * modules/uninorm/u8-normcmp: New file.
30298
30299 2009-03-06  Bruno Haible  <bruno@clisp.org>
30300
30301         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30302         Reported by Eric Blake.
30303
30304 2009-03-06  Eric Blake  <ebb9@byu.net>
30305             Bruno Haible  <bruno@clisp.org>
30306
30307         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30308         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30309         condition.
30310         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30311         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30312         condition.
30313         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30314
30315 2009-03-06  Eric Blake  <ebb9@byu.net>
30316
30317         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30318         to avoid compiler warnings.
30319         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30320
30321 2009-03-05  Bruno Haible  <bruno@clisp.org>
30322
30323         * tests/test-ftell.c (main): Disable test beyond end of file on
30324         FreeMiNT.
30325         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30326
30327 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30328
30329         * lib/filevercmp.c: Move hidden files up in ordering.
30330         * tests/test-filevercmp.c: Add tests for hidden files.
30331
30332 2009-03-04  Bruno Haible  <bruno@clisp.org>
30333
30334         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30335         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30336         AM_CFLAGS.
30337         Reported by Simon Josefsson.
30338
30339 2009-03-03  Bruno Haible  <bruno@clisp.org>
30340
30341         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30342         Reported by Simon Josefsson.
30343
30344         * doc/ld-version-script.texi: Update node reference.
30345
30346 2009-03-03  Bruno Haible  <bruno@clisp.org>
30347
30348         * modules/visibility (License): Change to 'unlimited'.
30349         Suggested by Simon Josefsson.
30350
30351 2009-03-03  Jim Meyering  <meyering@redhat.com>
30352
30353         unlinkdir: cannot_unlink_dir may modify process state
30354         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30355         it's neither thread-safe nor appropriate for use in a library.
30356
30357 2009-03-03  Eric Blake  <ebb9@byu.net>
30358
30359         test-closein: silence test under Darwin
30360         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30361         care if it dies from EPIPE or EBADF.
30362
30363 2009-03-03  Bruno Haible  <bruno@clisp.org>
30364
30365         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30366         earlier.
30367         * doc/visibility.texi: Fix @node and @section.
30368
30369 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30370
30371         * doc/gnulib.texi: Link to sections for ld version script and
30372         visibility.
30373         * doc/visibility.texi: Add @node and @section.
30374         * modules/ld-version-script: New module.
30375         * m4/ld-version-script.m4: New file.
30376         * doc/ld-version-script.texi: New file.
30377
30378 2009-03-02  David Lutterkort  <lutter@redhat.com>
30379
30380         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30382
30383 2009-03-02  Bruno Haible  <bruno@clisp.org>
30384
30385         * doc/visibility.texi: Mention libtool's -export-symbols option.
30386
30387 2009-03-02  Jim Meyering  <meyering@redhat.com>
30388
30389         announce-gen: new option: --no-print-checksums
30390         * build-aux/announce-gen (usage): Describe it.
30391         (print_checksums): Print a newline here, not in the [*] footnote.
30392         (main): Honor it.
30393
30394 2009-03-01  Bruno Haible  <bruno@clisp.org>
30395
30396         Use socklen_t in the native Windows replacements prototypes.
30397         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30398         instead of 'int'.
30399         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30400         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30401         * modules/getsockopt (Depends-on): Add socklen.
30402         * modules/setsockopt (Depends-on): Add socklen.
30403
30404 2009-03-01  Bruno Haible  <bruno@clisp.org>
30405
30406         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30407         least 4.2.
30408
30409 2009-03-01  Eric Blake  <ebb9@byu.net>
30410             Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30413         error messages.
30414         * lib/wait-process.c (wait_subprocess): Omit error message about
30415         deadly signal sent to the child of termsigp != NULL.
30416
30417 2009-03-01  Eric Blake  <ebb9@byu.net>
30418
30419         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30420
30421 2009-03-01  Bruno Haible  <bruno@clisp.org>
30422
30423         Avoid a gcc warning.
30424         * tests/test-sched.c (b): Make global.
30425         Reported by Eric Blake.
30426
30427 2009-01-19  Martin Lambers  <marlam@marlam.de>
30428
30429         Provide POSIX semantics for socket timeout options on W32.
30430         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30431         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30432         * modules/setsockopt: Depend on sys_time module for struct timeval.
30433         * modules/getsockopt: Depend on sys_time module for struct timeval.
30434
30435 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30436
30437         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30438         __USE_GNU, for consistency with netdb.in.h.
30439         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30440
30441 2009-03-01  Bruno Haible  <bruno@clisp.org>
30442
30443         More support for FreeMiNT.
30444         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30445         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30446
30447 2009-03-01  Bruno Haible  <bruno@clisp.org>
30448
30449         More support for FreeMiNT.
30450         * lib/fpurge.c (fpurge): Correct last commit.
30451         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30452
30453 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30454
30455         Fix unportable awk script in vc-list-files.
30456         * build-aux/vc-list-files: In the replacement awk script, use
30457         substr with a second argument of 1, not zero.
30458         Report by Simon Josefsson.
30459
30460 2009-02-28  Bruno Haible  <bruno@clisp.org>
30461
30462         More support for FreeMiNT.
30463         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30464         to FreeMiNT today.
30465         * lib/fwriting.c (fwriting): Likewise.
30466         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30467
30468 2009-02-28  Bruno Haible  <bruno@clisp.org>
30469
30470         * tests/test-freadseek.c (main): Disable test beyond end of file on
30471         FreeMiNT.
30472         * tests/test-ftello.c (main): Likewise.
30473         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30474
30475 2009-02-28  Bruno Haible  <bruno@clisp.org>
30476
30477         Add tentative support for FreeMiNT.
30478         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30479         * lib/fpurge.c (fpurge): Likewise.
30480         * lib/freadable.c (freadable): Likewise.
30481         * lib/freading.c (freading): Likewise.
30482         * lib/freadptr.c (freadptr): Likewise.
30483         * lib/freadseek.c (freadptrinc): Likewise.
30484         * lib/fseeko.c (rpl_fseeko): Likewise.
30485         * lib/fseterr.c (fseterr): Likewise.
30486         * lib/fwritable.c (fwritable): Likewise.
30487         * lib/fwriting.c (fwriting): Likewise.
30488         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30489         Hourihane.
30490         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30491
30492 2009-02-28  Bruno Haible  <bruno@clisp.org>
30493
30494         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30495         SIGCHLD.
30496         Reported by Jim Meyering.
30497
30498 2009-02-28  Bruno Haible  <bruno@clisp.org>
30499
30500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30501         Mention the results of these tests on various platforms.
30502         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30503         order.
30504         * doc/posix-functions/printf.texi: Likewise.
30505         * doc/posix-functions/snprintf.texi: Likewise.
30506         * doc/posix-functions/sprintf.texi: Likewise.
30507         * doc/posix-functions/vfprintf.texi: Likewise.
30508         * doc/posix-functions/vprintf.texi: Likewise.
30509         * doc/posix-functions/vsnprintf.texi: Likewise.
30510         * doc/posix-functions/vsprintf.texi: Likewise.
30511         * doc/glibc-functions/obstack_printf.texi: Likewise.
30512         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30513
30514 2009-02-28  Bruno Haible  <bruno@clisp.org>
30515
30516         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30517         Reported by Loïc Minier <lool@dooz.org>.
30518
30519 2009-02-27  Bruno Haible  <bruno@clisp.org>
30520
30521         * gnulib-tool (func_import): Make the sed expression used to create the
30522         sed script for updating the .gitignore file POSIX compliant.
30523         Reported by Eric Blake.
30524
30525 2009-02-27  Bruno Haible  <bruno@clisp.org>
30526
30527         * gnulib-tool (sed): Don't alias as "sed --posix".
30528         Reported by Eric Blake.
30529
30530 2009-02-27  Bruno Haible  <bruno@clisp.org>
30531
30532         Avoid test link errors.
30533         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30534         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30535         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30536         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30538
30539 2009-02-27  Bruno Haible  <bruno@clisp.org>
30540
30541         Avoid spurious "(cached)" in configure output.
30542         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30543         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30544         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30545         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30546         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30547         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30548         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30549         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30550         Reported by Eric Blake.
30551
30552 2009-02-27  Eric Blake  <ebb9@byu.net>
30553
30554         printf: fix regression in previous patch
30555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30556
30557 2009-02-27  Bruno Haible  <bruno@clisp.org>
30558
30559         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30560         value.
30561         * lib/stdint.in.h: Likewise.
30562         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30563
30564 2009-02-27  Eric Blake  <ebb9@byu.net>
30565
30566         doc: mention more functions added in cygwin 1.7.0
30567         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30568         addition.
30569         * doc/posix-functions/open_wmemstream.texi: Likewise.
30570         * doc/posix-functions/wcsnlen.texi: Likewise.
30571         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30572         * doc/posix-functions/wcstod.texi: Likewise.
30573         * doc/posix-functions/wcstof.texi: Likewise.
30574         * doc/posix-functions/wcstoimax.texi: Likewise.
30575         * doc/posix-functions/wcstok.texi: Likewise.
30576         * doc/posix-functions/wcstoumax.texi: Likewise.
30577
30578         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30580         * doc/posix-functions/fprintf.texi: Update.
30581         * doc/posix-functions/printf.texi: Update.
30582         * doc/posix-functions/snprintf.texi: Update.
30583         * doc/posix-functions/sprintf.texi: Update.
30584         * doc/posix-functions/vfprintf.texi: Update.
30585         * doc/posix-functions/vprintf.texi: Update.
30586         * doc/posix-functions/vsnprintf.texi: Update.
30587         * doc/posix-functions/vsprintf.texi: Update.
30588         * doc/glibc-functions/obstack_printf.texi: Update.
30589         * doc/glibc-functions/obstack_vprintf.texi: Update.
30590
30591 2009-02-26  Eric Blake  <ebb9@byu.net>
30592
30593         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30594         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30595         compilation bug by using runtime conversion.
30596         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30597         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30598         * modules/ceill-tests (Files): Use nan.h.
30599         * modules/floorl-tests (Files): Likewise.
30600         * modules/frexpl-tests (Files): Likewise.
30601         * modules/isnanl-tests (Files): Likewise.
30602         * modules/ldexpl-tests (Files): Likewise.
30603         * modules/roundl-tests (Files): Likewise.
30604         * modules/truncl-tests (Files): Likewise.
30605         * tests/test-ceill.c (main): Use a working NaN.
30606         * tests/test-floorl.c (main): Likewise.
30607         * tests/test-frexpl.c (main): Likewise.
30608         * tests/test-isnan.c (test_long_double): Likewise.
30609         * tests/test-isnanl.h (main): Likewise.
30610         * tests/test-ldexpl.h (main): Likewise.
30611         * tests/test-roundl.h (main): Likewise.
30612         * tests/test-truncl.h (main): Likewise.
30613         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30614
30615 2009-02-26  Eric Blake  <ebb9@byu.net>
30616             Bruno Haible  <bruno@clisp.org>
30617
30618         Work around a *printf bug with %ls on Solaris.
30619         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30620         precision is specified, sprintf stops converting the wide string
30621         argument when the number of bytes that have been produced by this
30622         conversion equals or exceeds the precision.
30623         * doc/posix-functions/fprintf.texi: Update.
30624         * doc/posix-functions/printf.texi: Update.
30625         * doc/posix-functions/snprintf.texi: Update.
30626         * doc/posix-functions/sprintf.texi: Update.
30627         * doc/posix-functions/vfprintf.texi: Update.
30628         * doc/posix-functions/vprintf.texi: Update.
30629         * doc/posix-functions/vsnprintf.texi: Update.
30630         * doc/posix-functions/vsprintf.texi: Update.
30631         * doc/glibc-functions/obstack_printf.texi: Update.
30632         * doc/glibc-functions/obstack_vprintf.texi: Update.
30633
30634 2009-02-26  Eric Blake  <ebb9@byu.net>
30635
30636         stdlib: favor compiler check of random.h
30637         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30638         to avoid an ObjC random.h installed by Swarm.
30639
30640 2009-02-26  Bruno Haible  <bruno@clisp.org>
30641
30642         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30643         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30644         Reported by Gary V. Vaughan <gary@gnu.org>.
30645
30646 2009-02-26  Bruno Haible  <bruno@clisp.org>
30647
30648         Fix *printf behaviour regarding the %ls directive.
30649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30650         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30651         NEED_PRINTF_DIRECTIVE_LS.
30652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30653         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30655         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30656         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30657         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30658         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30663         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30667         * doc/posix-functions/fprintf.texi: Update.
30668         * doc/posix-functions/printf.texi: Update.
30669         * doc/posix-functions/snprintf.texi: Update.
30670         * doc/posix-functions/sprintf.texi: Update.
30671         * doc/posix-functions/vfprintf.texi: Update.
30672         * doc/posix-functions/vprintf.texi: Update.
30673         * doc/posix-functions/vsnprintf.texi: Update.
30674         * doc/posix-functions/vsprintf.texi: Update.
30675         * doc/glibc-functions/obstack_printf.texi: Update.
30676         * doc/glibc-functions/obstack_vprintf.texi: Update.
30677         Reported by Eric Blake.
30678
30679 2009-02-25  Bruno Haible  <bruno@clisp.org>
30680
30681         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30682         with known value.
30683         Reported by Gary V. Vaughan <gary@gnu.org>.
30684
30685 2009-02-25  Bruno Haible  <bruno@clisp.org>
30686
30687         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30688         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30689         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30690         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30691         Reported by Gary V. Vaughan <gary@gnu.org>.
30692
30693 2009-02-25  Bruno Haible  <bruno@clisp.org>
30694
30695         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30696         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30697         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30698         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30699         Reported by Gary V. Vaughan <gary@gnu.org>.
30700
30701 2009-02-25  Eric Blake  <ebb9@byu.net>
30702
30703         tests: skip fseek/ftell tests if ungetc is broken
30704         * m4/ungetc.m4: New file.
30705         * modules/fseek-tests: Split test, so ungetc dependency is
30706         separate from rest of test.
30707         * modules/fseeko-tests: Likewise.
30708         * modules/ftell-tests: Likewise.
30709         * modules/ftello-tests: Likewise.
30710         * tests/test-fseek.c (main): Isolate ungetc dependency.
30711         * tests/test-fseeko.c (main): Likewise.
30712         * tests/test-ftell.c (main): Likewise.
30713         * tests/test-ftello.c (main): Likewise.
30714         * tests/test-fseek2.sh: New file.
30715         * tests/test-fseeko2.sh: Likewise.
30716         * tests/test-ftell2.sh: Likewise.
30717         * tests/test-ftello2.sh: Likewise.
30718
30719 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30720
30721         test-getaddrinfo: fix usage of skip return code 77
30722         * tests/test-gettaddrinfo.c: Return skip code 77 only
30723         for first occurance of skip (4x77 is not 77)
30724
30725 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30726
30727         strtod: avoid C99 decl-after-statement
30728         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30729
30730 2009-02-24  Eric Blake  <ebb9@byu.net>
30731
30732         strtod: detect HP-UX 11.31 bug
30733         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30734         Reported by Gary V. Vaughan.
30735
30736 2009-02-23  Bruno Haible  <bruno@clisp.org>
30737
30738         Fix invalid read past end of memory block.
30739         * lib/vasnprintf.c (DCHAR_SET): Define.
30740         (local_wcslen): Define only when needed.
30741         (local_strnlen, local_wcsnlen): New functions.
30742         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30743         directives that involve a conversion ourselves.
30744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30745         wcsnlen, mbrtowc, wcrtomb.
30746         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30747         * tests/test-vasprintf-posix.c (test_function): Likewise.
30748         * tests/test-snprintf-posix.h (test_function): Likewise.
30749         * tests/test-sprintf-posix.h (test_function): Likewise.
30750         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30751
30752 2009-02-22  Bruno Haible  <bruno@clisp.org>
30753
30754         Implement new clarified decomposition of Hangul syllables.
30755         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30756         of type LTV, return only a pairwise decomposition.
30757         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30758         Likewise.
30759         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30760         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30761         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30762
30763 2009-02-22  Bruno Haible  <bruno@clisp.org>
30764
30765         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30766         zero-length results and shrink excess allocated memory.
30767         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30768         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30769         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30770         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30771         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30772         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30773         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30774         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30775         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30776         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30777         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30778         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30779
30780 2009-02-21  Bruno Haible  <bruno@clisp.org>
30781
30782         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30783         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30784         spaces after a period. Put a space between a macro name and its
30785         argument list. Trivial rewordings.
30786         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30787         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30788         (main): Return 0 explicitly.
30789
30790 2009-02-21  Bruno Haible  <bruno@clisp.org>
30791
30792         Tests for module 'uninorm/filter'.
30793         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30794         * modules/uninorm/filter-tests: New file.
30795
30796         New module 'uninorm/filter'.
30797         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30798         uninorm_filter_flush, uninorm_filter_free): New declarations.
30799         * lib/uninorm/uninorm-filter.c: New file.
30800         * modules/uninorm/filter: New file.
30801
30802 2009-02-21  Bruno Haible  <bruno@clisp.org>
30803
30804         Tests for module 'uninorm/nfkc'.
30805         * tests/uninorm/test-nfkc.c: New file.
30806         * tests/uninorm/test-u8-nfkc.c: New file.
30807         * tests/uninorm/test-u16-nfkc.c: New file.
30808         * tests/uninorm/test-u32-nfkc.c: New file.
30809         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30810         * tests/uninorm/test-u32-nfkc-big.c: New file.
30811         * modules/uninorm/nfkc-tests: New file.
30812
30813         New module 'uninorm/nfkc'.
30814         * lib/uninorm/nfkc.c: New file.
30815         * modules/uninorm/nfkc: New file.
30816
30817         Tests for module 'uninorm/nfkd'.
30818         * tests/uninorm/test-nfkd.c: New file.
30819         * tests/uninorm/test-u8-nfkd.c: New file.
30820         * tests/uninorm/test-u16-nfkd.c: New file.
30821         * tests/uninorm/test-u32-nfkd.c: New file.
30822         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30823         * tests/uninorm/test-u32-nfkd-big.c: New file.
30824         * modules/uninorm/nfkd-tests: New file.
30825
30826         New module 'uninorm/nfkd'.
30827         * lib/uninorm/nfkd.c: New file.
30828         * modules/uninorm/nfkd: New file.
30829
30830         Tests for module 'uninorm/nfc'.
30831         * tests/uninorm/test-nfc.c: New file.
30832         * tests/uninorm/test-u8-nfc.c: New file.
30833         * tests/uninorm/test-u16-nfc.c: New file.
30834         * tests/uninorm/test-u32-nfc.c: New file.
30835         * tests/uninorm/test-u32-nfc-big.sh: New file.
30836         * tests/uninorm/test-u32-nfc-big.c: New file.
30837         * modules/uninorm/nfc-tests: New file.
30838
30839         New module 'uninorm/nfc'.
30840         * lib/uninorm/nfc.c: New file.
30841         * modules/uninorm/nfc: New file.
30842
30843         Tests for module 'uninorm/nfd'.
30844         * tests/uninorm/test-nfd.c: New file.
30845         * tests/uninorm/test-u8-nfd.c: New file.
30846         * tests/uninorm/test-u16-nfd.c: New file.
30847         * tests/uninorm/test-u32-nfd.c: New file.
30848         * tests/uninorm/test-u32-nfd-big.sh: New file.
30849         * tests/uninorm/test-u32-nfd-big.c: New file.
30850         * tests/uninorm/test-u32-normalize-big.h: New file.
30851         * tests/uninorm/test-u32-normalize-big.c: New file.
30852         * tests/uninorm/NormalizationTest.txt: New file, created from
30853         Unicode 5.1.0 NormalizationTest.txt.
30854         * modules/uninorm/nfd-tests: New file.
30855
30856         New module 'uninorm/nfd'.
30857         * lib/uninorm/nfd.c: New file.
30858         * modules/uninorm/nfd: New file.
30859
30860         New module 'uninorm/u32-normalize'.
30861         * lib/uninorm/u32-normalize.c: New file.
30862         * modules/uninorm/u32-normalize: New file.
30863
30864         New module 'uninorm/u16-normalize'.
30865         * lib/uninorm/u16-normalize.c: New file.
30866         * modules/uninorm/u16-normalize: New file.
30867
30868         New module 'uninorm/u8-normalize'.
30869         * lib/uninorm/u8-normalize.c: New file.
30870         * lib/uninorm/normalize-internal.h: New file.
30871         * lib/uninorm/u-normalize-internal.h: New file.
30872         * modules/uninorm/u8-normalize: New file.
30873
30874         New module 'uninorm/decompose-internal'.
30875         * lib/uninorm/decompose-internal.c: New file.
30876         * modules/uninorm/decompose-internal: New file.
30877
30878         Tests for module 'uninorm/composition'.
30879         * tests/uninorm/test-composition.c: New file.
30880         * modules/uninorm/composition-tests: New file.
30881
30882         New module 'uninorm/composition'.
30883         * lib/uninorm/composition.c: New file.
30884         * lib/uninorm/composition-table.gperf: New file, generated by
30885         gen-uni-tables.
30886         * modules/uninorm/composition: New file.
30887
30888         Tests for module 'uninorm/compat-decomposition'.
30889         * tests/uninorm/test-compat-decomposition.c: New file.
30890         * modules/uninorm/compat-decomposition-tests: New file.
30891
30892         New module 'uninorm/compat-decomposition'.
30893         * lib/uninorm/decompose-internal.h: New file.
30894         * lib/uninorm/compat-decomposition.c: New file.
30895         * modules/uninorm/compat-decomposition: New file.
30896
30897         Tests for module 'uninorm/canonical-decomposition'.
30898         * tests/uninorm/test-canonical-decomposition.c: New file.
30899         * modules/uninorm/canonical-decomposition-tests: New file.
30900
30901         New module 'uninorm/canonical-decomposition'.
30902         * lib/uninorm/canonical-decomposition.c: New file.
30903         * modules/uninorm/canonical-decomposition: New file.
30904
30905         Tests for module 'uninorm/decomposition'.
30906         * tests/uninorm/test-decomposition.c: New file.
30907         * modules/uninorm/decomposition-tests: New file.
30908
30909         New module 'uninorm/decomposition'.
30910         * lib/uninorm/decomposition.c: New file.
30911         * modules/uninorm/decomposition: New file.
30912
30913         New module 'uninorm/decomposition-table'.
30914         * lib/uninorm/decomposition-table.h: New file.
30915         * lib/uninorm/decomposition-table.c: New file.
30916         * lib/uninorm/decomposition-table1.h: New file, generated by
30917         gen-uni-tables.
30918         * lib/uninorm/decomposition-table2.h: New file, generated by
30919         gen-uni-tables.
30920         * modules/uninorm/decomposition-table: New file.
30921
30922         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30923         (UC_DECOMP_*): New enumeration items.
30924         (get_decomposition): New function.
30925         (struct decomp_table): New type.
30926         (output_decomposition, output_decomposition_tables): New functions.
30927         (unicode_composition_exclusions): New variable.
30928         (fill_composition_exclusions, debug_output_composition_tables): New
30929         functions.
30930         (main): Accept one more argument. Invoke fill_composition_exclusions.
30931         Output decomposition and composition tables.
30932
30933         New module 'uninorm/base'.
30934         * lib/uninorm.h: New file.
30935         * lib/unictype.h: Update comment.
30936         * modules/uninorm/base: New file.
30937
30938 2009-02-21  David Lutterkort  <lutter@redhat.com>
30939
30940         Tests for module 'safe-alloc'.
30941         * tests/test-safe-alloc.c: New file.
30942         * modules/safe-alloc-tests: New file.
30943
30944         New module 'safe-alloc'.
30945         * lib/safe-alloc.h: New file.
30946         * lib/safe-alloc.c: New file.
30947         * m4/safe-alloc.m4: New file.
30948         * modules/safe-alloc: New file.
30949         * doc/safe-alloc.texi: New file.
30950         * doc/gnulib.texi: Include it.
30951         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30952         safe-alloc.
30953
30954 2009-02-18  Bruno Haible  <bruno@clisp.org>
30955
30956         Fix link error on non-glibc systems.
30957         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30958         variable.
30959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30960
30961 2009-02-18  Jim Meyering  <meyering@redhat.com>
30962
30963         fts: avoid used-uninitialized error due to recent change
30964         * lib/fts.c (fts_read): Guard uses of the new member,
30965         parent->fts_n_dirs_remaining, since it's not relevant for
30966         the parent of a directory specified on the command-line.
30967
30968 2009-02-17  James Youngman  <jay@gnu.org>
30969             Bruno Haible  <bruno@clisp.org>
30970
30971         * m4/include_next.m4: Reformulate comment.
30972
30973 2009-02-16  Jim Meyering  <meyering@redhat.com>
30974
30975         fts: add #if guards so that the fts_lgpl module still builds
30976         * lib/fts.c: Guard just-added hash-table-using parts with
30977         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30978         Reported by Simon Josefsson.
30979
30980 2009-02-15  Bruno Haible  <bruno@clisp.org>
30981
30982         * modules/array-mergesort-tests: New file.
30983         * tests/test-array-mergesort.c: New file.
30984
30985         New module 'array-mergesort'.
30986         * modules/array-mergesort: New file.
30987         * lib/array-mergesort.h: New file.
30988
30989 2009-02-15  Bruno Haible  <bruno@clisp.org>
30990
30991         Fix 2009-02-07 commit.
30992         * lib/gen-uni-tables.c (output_predicate, output_category,
30993         output_combclass, output_bidi_category, output_decimal_digit,
30994         output_digit, output_numeric, output_mirror, output_scripts,
30995         output_ident_category, output_simple_mapping): Fix format directives.
30996         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30997
30998 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30999
31000         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31001         fixes are available from IBM.
31002
31003 2009-02-13  Jim Meyering  <meyering@redhat.com>
31004
31005         fts: arrange not to stat non-directories in more cases
31006         This makes GNU find (when it doesn't need to stat each file)
31007         *much* more efficient at traversing reiserfs file systems.
31008         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31009         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31010         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31011         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31012         (leaf_optimization_applies): New function.
31013         (LCO_hash, LCO_compare): New helper functions.
31014         (link_count_optimize_ok): New function.
31015         (fts_stat): Initialize new member (if dir).
31016         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31017         we've just stat'ed a directory.  Skip the stat call when possible.
31018         ---
31019         Note this AFS-related exchange:
31020         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31021         and note find's pioctl call in find/fstype.c.
31022         But that is necessary only if you want to enable the
31023         optimization for AFS, and for now, I don't.
31024
31025         fts: move a function definition "up" (no semantic change)
31026         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31027         "up" to precede upcoming use of a related function.
31028
31029 2009-02-11  Jim Meyering  <meyering@redhat.com>
31030
31031         fts: correct internal computation of nlinks (optimization-related)
31032         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31033         whether the current entry is a directory, so don't test it.
31034
31035 2009-02-10  Bruno Haible  <bruno@clisp.org>
31036
31037         Tests for module 'uniwbrk/ulc-wordbreaks'.
31038         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31039         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31040         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31041
31042         Tests for module 'uniwbrk/u32-wordbreaks'.
31043         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31044         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31045
31046         Tests for module 'uniwbrk/u16-wordbreaks'.
31047         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31048         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31049
31050         Tests for module 'uniwbrk/u8-wordbreaks'.
31051         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31052         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31053
31054 2009-02-10  Bruno Haible  <bruno@clisp.org>
31055
31056         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31057         property.
31058         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31059         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31060         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31061
31062 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31063
31064         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31065         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31066
31067 2009-02-10  Bruno Haible  <bruno@clisp.org>
31068
31069         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31070         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31071         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31072         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31073         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31074         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31075
31076 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31077
31078         * lib/sockets.h (gl_fd_to_handle): New function.
31079
31080         * tests/test-sockets.c: Call gl_fd_to_handle.
31081
31082 2009-02-09  Bruno Haible  <bruno@clisp.org>
31083
31084         * doc/havelib.texi: Document the conventions on bi-arch systems.
31085
31086 2009-02-08  Bruno Haible  <bruno@clisp.org>
31087
31088         Document the AC_LIB_LINKFLAGS macro.
31089         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31090         * doc/gnulib.texi: Include it.
31091
31092 2009-02-08  Bruno Haible  <bruno@clisp.org>
31093
31094         Fix wrong order of sections, compared to TOC.
31095         * doc/gnulib.texi: Include relocatable-maint.texi after the
31096         "Regular expressions" node, not before.
31097
31098 2009-02-08  Bruno Haible  <bruno@clisp.org>
31099
31100         Tests for module 'unicase/totitle'.
31101         * modules/unicase/totitle-tests: New file.
31102
31103         Tests for module 'unicase/tolower'.
31104         * modules/unicase/tolower-tests: New file.
31105
31106         Tests for module 'unicase/toupper'.
31107         * modules/unicase/toupper-tests: New file.
31108         * tests/unicase/test-mapping-part1.h: New file.
31109         * tests/unicase/test-mapping-part2.h: New file.
31110
31111         New module 'unicase/totitle'.
31112         * modules/unicase/totitle: New file.
31113         * lib/unicase/totitle.c: New file.
31114
31115         New module 'unicase/tolower'.
31116         * modules/unicase/tolower: New file.
31117         * lib/unicase/tolower.c: New file.
31118
31119         New module 'unicase/toupper'.
31120         * modules/unicase/toupper: New file.
31121         * lib/unicase/toupper.c: New file.
31122         * lib/unicase/simple-mapping.h: New file.
31123
31124         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31125         (mapping_table): New structure.
31126         (output_simple_mapping): New function.
31127         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31128         * modules/gen-uni-tables (Description): Update.
31129         * lib/unicase/toupper.h: New file, automatically generated by
31130         gen-uni-tables.
31131         * lib/unicase/tolower.h: New file, automatically generated by
31132         gen-uni-tables.
31133         * lib/unicase/totitle.h: New file, automatically generated by
31134         gen-uni-tables.
31135         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31136         gen-uni-tables.
31137         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31138         gen-uni-tables.
31139         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31140         gen-uni-tables.
31141
31142         New module 'unicase/base'.
31143         * modules/unicase/base: New file.
31144         * lib/unicase.h: New file.
31145
31146 2009-02-08  Bruno Haible  <bruno@clisp.org>
31147
31148         New module 'uniwbrk/ulc-wordbreaks'.
31149         * modules/uniwbrk/ulc-wordbreaks: New file.
31150         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31151
31152         New module 'uniwbrk/u32-wordbreaks'.
31153         * modules/uniwbrk/u32-wordbreaks: New file.
31154         * lib/uniwbrk/u32-wordbreaks.c: New file.
31155
31156         New module 'uniwbrk/u16-wordbreaks'.
31157         * modules/uniwbrk/u16-wordbreaks: New file.
31158         * lib/uniwbrk/u16-wordbreaks.c: New file.
31159
31160         New module 'uniwbrk/u8-wordbreaks'.
31161         * modules/uniwbrk/u8-wordbreaks: New file.
31162         * lib/uniwbrk/u8-wordbreaks.c: New file.
31163         * lib/uniwbrk/u-wordbreaks.h: New file.
31164
31165         New module 'uniwbrk/table'.
31166         * modules/uniwbrk/table: New file.
31167         * lib/uniwbrk/wbrktable.h: New file.
31168         * lib/uniwbrk/wbrktable.c: New file.
31169
31170         New module 'uniwbrk/wordbreak-property'.
31171         * modules/uniwbrk/wordbreak-property: New file.
31172         * lib/uniwbrk/wordbreak-property.c: New file.
31173
31174         * lib/gen-uni-tables.c (WBP_*): New enum items.
31175         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31176         (unicode_org_wbp): New variable.
31177         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31178         New functions.
31179         (wbp_table): New structure.
31180         (output_wbp, output_wbrk_tables): New functions.
31181         (main): Accept additional argument. Invoke fill_org_wbp,
31182         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31183         output_wbrk_tables.
31184         * modules/gen-uni-tables (Description): Update.
31185         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31186         gen-uni-tables.
31187
31188         New module 'uniwbrk/base'.
31189         * modules/uniwbrk/base: New file.
31190         * lib/uniwbrk.h: New file.
31191
31192 2009-02-08  Bruno Haible  <bruno@clisp.org>
31193
31194         Update to Unicode 5.1.0.
31195         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31196         U+2185..U+2188.
31197         (is_property_default_ignorable_code_point): Don't include characters
31198         of category Cc or Cs and not-a-characters.
31199         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31200         U+0D79, U+109E, U+109F, U+A60C.
31201         * lib/unictype/bidi_of.h: Regenerated.
31202         * lib/unictype/blocks.h: Regenerated.
31203         * lib/unictype/categ_C.h: Regenerated.
31204         * lib/unictype/categ_Cf.h: Regenerated.
31205         * lib/unictype/categ_Cn.h: Regenerated.
31206         * lib/unictype/categ_L.h: Regenerated.
31207         * lib/unictype/categ_Ll.h: Regenerated.
31208         * lib/unictype/categ_Lm.h: Regenerated.
31209         * lib/unictype/categ_Lo.h: Regenerated.
31210         * lib/unictype/categ_Lu.h: Regenerated.
31211         * lib/unictype/categ_M.h: Regenerated.
31212         * lib/unictype/categ_Mc.h: Regenerated.
31213         * lib/unictype/categ_Me.h: Regenerated.
31214         * lib/unictype/categ_Mn.h: Regenerated.
31215         * lib/unictype/categ_N.h: Regenerated.
31216         * lib/unictype/categ_Nd.h: Regenerated.
31217         * lib/unictype/categ_Nl.h: Regenerated.
31218         * lib/unictype/categ_No.h: Regenerated.
31219         * lib/unictype/categ_P.h: Regenerated.
31220         * lib/unictype/categ_Pd.h: Regenerated.
31221         * lib/unictype/categ_Pe.h: Regenerated.
31222         * lib/unictype/categ_Pf.h: Regenerated.
31223         * lib/unictype/categ_Pi.h: Regenerated.
31224         * lib/unictype/categ_Po.h: Regenerated.
31225         * lib/unictype/categ_Ps.h: Regenerated.
31226         * lib/unictype/categ_S.h: Regenerated.
31227         * lib/unictype/categ_Sk.h: Regenerated.
31228         * lib/unictype/categ_Sm.h: Regenerated.
31229         * lib/unictype/categ_So.h: Regenerated.
31230         * lib/unictype/categ_of.h: Regenerated.
31231         * lib/unictype/combining.h: Regenerated.
31232         * lib/unictype/ctype_alnum.h: Regenerated.
31233         * lib/unictype/ctype_alpha.h: Regenerated.
31234         * lib/unictype/ctype_graph.h: Regenerated.
31235         * lib/unictype/ctype_lower.h: Regenerated.
31236         * lib/unictype/ctype_print.h: Regenerated.
31237         * lib/unictype/ctype_punct.h: Regenerated.
31238         * lib/unictype/ctype_upper.h: Regenerated.
31239         * lib/unictype/decdigit.h: Regenerated.
31240         * lib/unictype/digit.h: Regenerated.
31241         * lib/unictype/mirror.h: Regenerated.
31242         * lib/unictype/numeric.h: Regenerated.
31243         * lib/unictype/pr_alphabetic.h: Regenerated.
31244         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31245         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31246         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31247         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31248         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31249         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31250         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31251         * lib/unictype/pr_combining.h: Regenerated.
31252         * lib/unictype/pr_dash.h: Regenerated.
31253         * lib/unictype/pr_decimal_digit.h: Regenerated.
31254         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31255         * lib/unictype/pr_deprecated.h: Regenerated.
31256         * lib/unictype/pr_diacritic.h: Regenerated.
31257         * lib/unictype/pr_extender.h: Regenerated.
31258         * lib/unictype/pr_format_control.h: Regenerated.
31259         * lib/unictype/pr_grapheme_base.h: Regenerated.
31260         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31261         * lib/unictype/pr_grapheme_link.h: Regenerated.
31262         * lib/unictype/pr_id_continue.h: Regenerated.
31263         * lib/unictype/pr_id_start.h: Regenerated.
31264         * lib/unictype/pr_ideographic.h: Regenerated.
31265         * lib/unictype/pr_ignorable_control.h: Regenerated.
31266         * lib/unictype/pr_lowercase.h: Regenerated.
31267         * lib/unictype/pr_math.h: Regenerated.
31268         * lib/unictype/pr_numeric.h: Regenerated.
31269         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31270         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31271         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31272         * lib/unictype/pr_other_id_continue.h: Regenerated.
31273         * lib/unictype/pr_other_lowercase.h: Regenerated.
31274         * lib/unictype/pr_other_math.h: Regenerated.
31275         * lib/unictype/pr_punctuation.h: Regenerated.
31276         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31277         * lib/unictype/pr_soft_dotted.h: Regenerated.
31278         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31279         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31280         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31281         * lib/unictype/pr_uppercase.h: Regenerated.
31282         * lib/unictype/pr_xid_continue.h: Regenerated.
31283         * lib/unictype/pr_xid_start.h: Regenerated.
31284         * lib/unictype/pr_zero_width.h: Regenerated.
31285         * lib/unictype/scripts.h: Regenerated.
31286         * lib/unictype/scripts_byname.gperf: Regenerated.
31287         * lib/unictype/sy_java_ident.h: Regenerated.
31288         * lib/unilbrk/lbrkprop1.h: Regenerated.
31289         * lib/unilbrk/lbrkprop2.h: Regenerated.
31290         * tests/unictype/test-categ_C.c: Regenerated.
31291         * tests/unictype/test-categ_Cf.c: Regenerated.
31292         * tests/unictype/test-categ_Cn.c: Regenerated.
31293         * tests/unictype/test-categ_L.c: Regenerated.
31294         * tests/unictype/test-categ_Ll.c: Regenerated.
31295         * tests/unictype/test-categ_Lm.c: Regenerated.
31296         * tests/unictype/test-categ_Lo.c: Regenerated.
31297         * tests/unictype/test-categ_Lu.c: Regenerated.
31298         * tests/unictype/test-categ_M.c: Regenerated.
31299         * tests/unictype/test-categ_Mc.c: Regenerated.
31300         * tests/unictype/test-categ_Me.c: Regenerated.
31301         * tests/unictype/test-categ_Mn.c: Regenerated.
31302         * tests/unictype/test-categ_N.c: Regenerated.
31303         * tests/unictype/test-categ_Nd.c: Regenerated.
31304         * tests/unictype/test-categ_Nl.c: Regenerated.
31305         * tests/unictype/test-categ_No.c: Regenerated.
31306         * tests/unictype/test-categ_P.c: Regenerated.
31307         * tests/unictype/test-categ_Pd.c: Regenerated.
31308         * tests/unictype/test-categ_Pe.c: Regenerated.
31309         * tests/unictype/test-categ_Pf.c: Regenerated.
31310         * tests/unictype/test-categ_Pi.c: Regenerated.
31311         * tests/unictype/test-categ_Po.c: Regenerated.
31312         * tests/unictype/test-categ_Ps.c: Regenerated.
31313         * tests/unictype/test-categ_S.c: Regenerated.
31314         * tests/unictype/test-categ_Sk.c: Regenerated.
31315         * tests/unictype/test-categ_Sm.c: Regenerated.
31316         * tests/unictype/test-categ_So.c: Regenerated.
31317         * tests/unictype/test-ctype_alnum.c: Regenerated.
31318         * tests/unictype/test-ctype_alpha.c: Regenerated.
31319         * tests/unictype/test-ctype_graph.c: Regenerated.
31320         * tests/unictype/test-ctype_lower.c: Regenerated.
31321         * tests/unictype/test-ctype_print.c: Regenerated.
31322         * tests/unictype/test-ctype_punct.c: Regenerated.
31323         * tests/unictype/test-ctype_upper.c: Regenerated.
31324         * tests/unictype/test-decdigit.h: Regenerated.
31325         * tests/unictype/test-digit.h: Regenerated.
31326         * tests/unictype/test-numeric.h: Regenerated.
31327         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31328         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31329         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31330         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31331         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31332         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31333         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31334         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31335         * tests/unictype/test-pr_combining.c: Regenerated.
31336         * tests/unictype/test-pr_dash.c: Regenerated.
31337         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31338         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31339         * tests/unictype/test-pr_deprecated.c: Regenerated.
31340         * tests/unictype/test-pr_diacritic.c: Regenerated.
31341         * tests/unictype/test-pr_extender.c: Regenerated.
31342         * tests/unictype/test-pr_format_control.c: Regenerated.
31343         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31344         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31345         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31346         * tests/unictype/test-pr_id_continue.c: Regenerated.
31347         * tests/unictype/test-pr_id_start.c: Regenerated.
31348         * tests/unictype/test-pr_ideographic.c: Regenerated.
31349         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31350         * tests/unictype/test-pr_lowercase.c: Regenerated.
31351         * tests/unictype/test-pr_math.c: Regenerated.
31352         * tests/unictype/test-pr_numeric.c: Regenerated.
31353         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31354         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31355         Regenerated.
31356         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31357         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31358         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31359         * tests/unictype/test-pr_other_math.c: Regenerated.
31360         * tests/unictype/test-pr_punctuation.c: Regenerated.
31361         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31362         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31363         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31364         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31365         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31366         * tests/unictype/test-pr_uppercase.c: Regenerated.
31367         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31368         * tests/unictype/test-pr_xid_start.c: Regenerated.
31369         * tests/unictype/test-pr_zero_width.c: Regenerated.
31370
31371         Update to Unicode 5.1.0.
31372         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31373         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31374         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31375         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31376         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31377         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31378         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31379         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31380         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31381         (nonspacing_table_ind): Update.
31382         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31383
31384         Update to Unicode 5.1.0.
31385         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31386         code transform.
31387         * lib/uniname/uniname.c (unicode_character_name,
31388         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31389         * lib/uniname/uninames.h: Regenerated.
31390         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31391
31392 2009-02-07  Bruno Haible  <bruno@clisp.org>
31393
31394         Merge gen-ctype and gen-lbrk into a single program.
31395         * lib/gen-uni-tables.c: New file, incorporating
31396         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31397         Add directory prefixes to the names of the generated files.
31398         * lib/unictype/gen-ctype.c: Remove file.
31399         * lib/unilbrk/gen-lbrk.c: Remove file.
31400         * modules/gen-uni-tables: New file.
31401         * modules/unictype/gen-ctype: Remove file.
31402         * modules/unilbrk/gen-lbrk: Remove file.
31403
31404 2009-02-07  Bruno Haible  <bruno@clisp.org>
31405
31406         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31407
31408         New module 'unistr/u32-strcoll'.
31409         * modules/unistr/u32-strcoll: New file.
31410         * lib/unistr/u32-strcoll.c: New file.
31411
31412         New module 'unistr/u16-strcoll'.
31413         * modules/unistr/u16-strcoll: New file.
31414         * lib/unistr/u16-strcoll.c: New file.
31415
31416         New module 'unistr/u8-strcoll'.
31417         * modules/unistr/u8-strcoll: New file.
31418         * lib/unistr/u8-strcoll.c: New file.
31419         * lib/unistr/u-strcoll.h: New file.
31420
31421 2009-02-07  Bruno Haible  <bruno@clisp.org>
31422
31423         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31424         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31425         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31426         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31427         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31428         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31429
31430 2009-02-07  Bruno Haible  <bruno@clisp.org>
31431
31432         Make 64-bit clean.
31433         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31434         output_combclass, output_bidi_category, output_decimal_digit,
31435         output_digit, output_numeric, output_mirror, output_scripts,
31436         output_ident_category): Use proper width specifier in format strings.
31437
31438 2009-02-07  Bruno Haible  <bruno@clisp.org>
31439
31440         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31441         failure behaviour.
31442
31443 2009-02-07  Jim Meyering  <meyering@redhat.com>
31444
31445         regex: avoid compilation failure with upcoming gcc-4.4
31446         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31447         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31448         "... error: integer overflow in preprocessor expression".
31449
31450 2009-02-05  Ben Pfaff  <blp@gnu.org>
31451
31452         Fix link errors on Windows when close module is used.
31453         * modules/close: Add $(LIB_CLOSE) to Link section.
31454         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31455         $(LIB_CLOSE) on Windows.
31456
31457 2009-02-05  Jim Meyering  <meyering@redhat.com>
31458
31459         still avoid unused-parameter warnings, but do it cleanly
31460         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31461         (get_fs_usage): Cast to void instead.
31462         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31463         (dev_from_mount_options, read_file_system_list): Cast to void.
31464         Prompted by Bruno Haible.
31465
31466 2009-02-04  Jim Meyering  <meyering@redhat.com>
31467
31468         fsusage.c: correct copyright year
31469         * lib/fsusage.c: Reflect year in which the change is pushed into
31470
31471         avoid misc. warnings
31472         * lib/fsusage.c (UNUSED_PARAM): Define.
31473         (get_fs_usage): Mark parameter "disk" as unused.
31474         * lib/getugroups.c (getgrent): Use "void" in prototype.
31475         * lib/mountlist.c: Mark unused parameters.
31476         (read_file_system_list): Declare a local with "const".
31477         * lib/nanosleep.c (getnow): Declare static.
31478         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31479
31480         dirfd: set errno upon failure
31481         * lib/dirfd.c: Include <errno.h>.
31482         Set errno to ENOTSUP when returning -1.
31483         * modules/dirfd (Depends-on): Add errno.
31484         Suggested by John Kodis <kodis@comcast.net>.
31485
31486 2009-02-01  Bruno Haible  <bruno@clisp.org>
31487
31488         Don't assume sizeof (long) >= sizeof (void *).
31489         * lib/memcmp.c: Include stdint.h.
31490         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31491         srcp2 to 'const byte *'.
31492         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31493         types to uintptr_t.
31494         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31495         * modules/memcmp (Depends-on): Add stdint.
31496         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31497
31498 2009-01-30  Eric Blake  <ebb9@byu.net>
31499
31500         fix more require-before-expand issues
31501         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31502         expand, AC_PROG_AWK.
31503         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31504
31505 2009-01-28  Eric Blake  <ebb9@byu.net>
31506
31507         version-etc: use consistent URL formatting
31508         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31509         Improve formatting.  Use fputs for string without %.
31510
31511 2009-01-28  Jim Meyering  <meyering@redhat.com>
31512
31513         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31514         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31515         "underquoted definition of NAME" from autoconf-2.59.
31516
31517 2009-01-28  Bruno Haible  <bruno@clisp.org>
31518
31519         * doc/gnulib.texi: Add "Obsolete modules" to index.
31520
31521 2009-01-28  Jim Meyering  <meyering@redhat.com>
31522
31523         useless-if-before-free: recognize more variants
31524         * build-aux/useless-if-before-free: Also recognize e.g.,
31525         if (NULL != p) free (p);
31526
31527 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31528
31529         test-getaddrinfo: skip (don't fail) this test when there's no network
31530         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31531         on the presumption that it means you lack network access.
31532
31533 2009-01-26  Jim Meyering  <meyering@redhat.com>
31534
31535         fflush: avoid warnings on modern systems
31536         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31537         pos and result, into scopes where they're used.
31538
31539 2009-01-26  Eric Blake  <ebb9@byu.net>
31540
31541         Silence warning reintroduced by recent extensions patch.
31542         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31543         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31544         autoconf.
31545
31546         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31547         * m4/00gnulib.m4: New file.
31548         * gnulib-tool (func_get_filelist): Always use it.
31549         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31550         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31551
31552 2009-01-25  Bruno Haible  <bruno@clisp.org>
31553
31554         Make test-quotearg work on MacOS X and AIX.
31555         * tests/test-quotearg.sh: New file.
31556         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31557         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31558         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31559         include <libintl.h>.
31560         (fake_locale): Remove variable.
31561         (gettext, dgettext, dcgettext): Remove functions.
31562         (main): Instead of setting a fake locale, set a real locale. Call
31563         textdomain and bindtextdomain.
31564         * modules/quotearg-tests (Files): Add the new files.
31565         (Depends-on): Add gettext, setenv, unsetenv.
31566         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31567         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31568         Augment TESTS_ENVIRONMENT.
31569
31570 2009-01-25  Bruno Haible  <bruno@clisp.org>
31571
31572         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31573         fr_FR.ISO8859-1 locale on MacOS X.
31574         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31575         ja_JP.eucJP locale on MacOS X.
31576         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31577         zh_CN.GB18030 locale on MacOS X.
31578
31579 2009-01-25  Bruno Haible  <bruno@clisp.org>
31580
31581         Avoid link errors on MacOS X 10.3.
31582         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31583         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31584
31585 2009-01-25  Bruno Haible  <bruno@clisp.org>
31586
31587         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31588         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31589         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31590         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31591         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31592         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31593         posix_spawnattr_init, posix_spawnattr_setsigmask,
31594         posix_spawnattr_setflags, posix_spawnattr_destroy.
31595
31596         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31597         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31598         * modules/execute (Files): Remove m4/posix_spawn.m4.
31599         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31600         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31601         posix_spawnattr_init, posix_spawnattr_setsigmask,
31602         posix_spawnattr_setflags, posix_spawnattr_destroy.
31603
31604 2009-01-25  Bruno Haible  <bruno@clisp.org>
31605
31606         * lib/glthread/threadlib.c: Include <stdlib.h>.
31607
31608 2009-01-25  Bruno Haible  <bruno@clisp.org>
31609
31610         * lib/glthread/threadlib.c (dummy): New declaration.
31611
31612 2009-01-25  Bruno Haible  <bruno@clisp.org>
31613
31614         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31615         multibyte characters also for the GB18030 encoding. Don't crash when
31616         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31617
31618 2009-01-25  Bruno Haible  <bruno@clisp.org>
31619
31620         Avoid redefining 'struct random_data' on OSF/1 5.1.
31621         * lib/stdlib.in.h: Include <random.h> if it exists.
31622         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31623         HAVE_RANDOM_H. Include <random.h> when testing whether
31624         'struct random_data' exists.
31625         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31626
31627 2009-01-25  Bruno Haible  <bruno@clisp.org>
31628
31629         Don't install charset.alias on MacOS X >= 10.3.
31630         * lib/localcharset.c (DARWIN7): New macro.
31631         (get_charset_aliases): Hardcode the result for Darwin7.
31632         * modules/localcharset (install-exec-local): Don't install
31633         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31634
31635 2009-01-25  Bruno Haible  <bruno@clisp.org>
31636
31637         Don't install charset.alias on mingw and Cygwin.
31638         * modules/localcharset (install-exec-local): Don't install
31639         charset.alias on mingw and Cygwin, if the file does not yet exist.
31640         The result for these platforms is hardcoded in localcharset.c.
31641
31642 2009-01-25  Bruno Haible  <bruno@clisp.org>
31643
31644         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31646         before requiring AC_USE_SYSTEM_EXTENSIONS.
31647
31648 2009-01-25  Jim Meyering  <meyering@redhat.com>
31649
31650         c-strtod: avoid warnings
31651         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31652         "assignment discards qualifiers from pointer target type" warnings.
31653
31654 2009-01-24  Bruno Haible  <bruno@clisp.org>
31655
31656         Add support for non-UTF-8 locales on MacOS X.
31657         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31658         canonical encodings. For Darwin 7 and newer, don't map traditional
31659         encodings to UTF-8.
31660         Reported by Vincent Lefevre <vincent@vinc17.org>
31661         at <http://savannah.gnu.org/bugs/?25235>.
31662
31663 2009-01-24  Bruno Haible  <bruno@clisp.org>
31664
31665         * doc/gnulib.texi (Obsolete modules): New section.
31666         Reported by Mike Frysinger <vapier@gentoo.org>.
31667
31668 2009-01-24  Bruno Haible  <bruno@clisp.org>
31669
31670         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31671         (%.dvi): New rule.
31672
31673 2009-01-24  Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31676         Reported by Eric Blake.
31677
31678 2009-01-24  Bruno Haible  <bruno@clisp.org>
31679
31680         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31681         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31682         Reported by Gary V. Vaughan <gary@gnu.org>.
31683
31684 2009-01-24  Bruno Haible  <bruno@clisp.org>
31685
31686         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31687
31688 2009-01-23  Bruno Haible  <bruno@clisp.org>
31689
31690         Make c-strtod, c-strtold usable in libraries.
31691         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31692         (C_STRTOD): Call strdup instead of xstrdup.
31693         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31694         * modules/c-strtold (Depends-on): Likewise.
31695         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31696         * NEWS: Mention the change.
31697         Reported by Michael Gold <mgold@ncf.ca>.
31698
31699 2009-01-23  Jim Meyering  <meyering@redhat.com>
31700
31701         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31702         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31703         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31704
31705 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31706
31707         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31708         GNU CoreUtils.
31709         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31710         * modules/version-etc (Description): Update.
31711
31712 2009-01-22  Bruno Haible  <bruno@clisp.org>
31713
31714         Cache the C locale object.
31715         * lib/c-strtod.c (c_locale_cache): New variable.
31716         (c_locale): New function.
31717         (C_STRTOD): Use it, and don't call freelocale.
31718         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31719         Suggested by Paolo Bonzini.
31720
31721 2009-01-21  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31724         conditions other than overflow.
31725
31726 2009-01-21  Bruno Haible  <bruno@clisp.org>
31727
31728         * lib/c-strtod.c: Include errno.h.
31729         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31730         value from STRTOD_L and STRTOD.
31731
31732 2009-01-21  Bruno Haible  <bruno@clisp.org>
31733         and Jim Meyering  <meyering@redhat.com>
31734
31735         nanosleep: skip configure test (fail it) for apple universal builds
31736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31737         universal builds, assume that nanosleep does not work.
31738         * modules/nanosleep (Depends-on): Add multiarch.
31739
31740         mktime: skip configure test (fail it) for apple universal builds
31741         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31742         universal builds, assume that mktime does not work.
31743         * modules/mktime (Depends-on): Add multiarch.
31744
31745 2009-01-21  Eric Blake  <ebb9@byu.net>
31746
31747         multiarch: avoid expand-before-require warning
31748         * modules/multiarch (configure.ac): Require, rather than expand,
31749         gl_MULTIARCH.
31750         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31751         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31752         enforce that all clients require it.  Partial reversion of
31753         2008-12-29 patch.
31754
31755         error: avoid expand-before-require warning
31756         * modules/errno (configure.ac): Require, rather than expand,
31757         gl_HEADER_ERRNO_H.
31758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31759         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31760         enforce that all clients require it.
31761
31762         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31763         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31764         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31765         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31766
31767 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31768
31769         Revert:
31770         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31771
31772         regex: do not depend on obsolete modules.
31773         * modules/regex: Remove memcmp and memmove.
31774
31775 2009-01-20  Bruno Haible  <bruno@clisp.org>
31776
31777         Make the 'link' module link on Windows NT 4.
31778         * lib/link.c (_WIN32_WINNT): Don't define.
31779         (CreateHardLinkFuncType): New type.
31780         (CreateHardLinkFunc, initialized): New variables.
31781         (initialize): New function.
31782         (link): Invoke CreateHardLink indirectly through the function pointer.
31783
31784 2009-01-20  Bruno Haible  <bruno@clisp.org>
31785
31786         Fix compilation failure on mingw.
31787         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31788
31789 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31790
31791         * doc/c-strtod.texi: Mention a couple of restrictions.
31792
31793 2009-01-20  Jim Meyering  <meyering@redhat.com>
31794
31795         gettimeofday: move more declarations out of functions
31796         * lib/gettimeofday.c: Move extern declarations of tzset and
31797         gmtime out of containing functions.  Prompted by Bruno Haible.
31798
31799 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31800
31801         regex: do not depend on obsolete modules.
31802         * modules/regex: Remove memcmp and memmove.
31803
31804 2009-01-19  Bruno Haible  <bruno@clisp.org>
31805
31806         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31807         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31808         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31809         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31810         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31811
31812 2009-01-19  Bruno Haible  <bruno@clisp.org>
31813
31814         * tests/test-link.c: Include <errno.h>.
31815         (main): Exit with code 77 when a hard link cannot be created due to
31816         the file system.
31817         * tests/test-link.sh: Skip test when a hard link cannot be created due
31818         to the file system.
31819         Suggested by Eric Blake.
31820
31821 2009-01-19  Martin Lambers  <marlam@marlam.de>
31822
31823         * modules/link-tests: New file.
31824         * tests/test-link.sh: New file.
31825         * tests/test-link.c: New file.
31826
31827 2009-01-19  Eric Blake  <ebb9@byu.net>
31828
31829         doc: mention another function added in cygwin 1.7.0
31830         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31831         Another new function in cygwin 1.7.
31832
31833 2009-01-19  Bruno Haible  <bruno@clisp.org>
31834
31835         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31836         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31837         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31838         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31839         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31840         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31841         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31842         * m4/md4.m4 (gl_MD4): Likewise.
31843         * m4/md5.m4 (gl_MD5): Likewise.
31844         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31845         * m4/sha1.m4 (gl_SHA1): Likewise.
31846         * m4/sha256.m4 (gl_SHA256): Likewise.
31847         * m4/sha512.m4 (gl_SHA512): Likewise.
31848
31849 2009-01-19  Bruno Haible  <bruno@clisp.org>
31850
31851         * modules/uniname/uniname-tests (Depends-on): Add progname.
31852         * tests/uniname/test-uninames.c: Include progname.h.
31853         (main): Call set_program_name.
31854
31855         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31856         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31857         (main): Call set_program_name.
31858
31859         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31860         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31861         (main): Call set_program_name.
31862
31863         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31864         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31865         (main): Call set_program_name.
31866
31867         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31868         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31869         (main): Call set_program_name.
31870
31871         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31872         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31873         (main): Call set_program_name.
31874
31875         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31876         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31877         (main): Call set_program_name.
31878
31879         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31880         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31881         (main): Call set_program_name.
31882
31883         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31884         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31885         (main): Call set_program_name.
31886
31887 2009-01-19  Eric Blake  <ebb9@byu.net>
31888
31889         test-unistd: test previous patch
31890         * tests/test-unistd.c: Test *_FILENO macros.
31891
31892         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31893         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31894         Guarantee a definition.
31895         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31896         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31897         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31898         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31899         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31900         Likewise.
31901         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31902         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31903         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31904         Likewise.
31905         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31906         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31907         (STDERR_FILENO): Likewise.
31908         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31909         (STDERR_FILENO): Likewise.
31910         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31911         (STDERR_FILENO): Likewise.
31912         Reported by Elbert Pol.
31913
31914 2009-01-19  Eric Blake  <ebb9@byu.net>
31915
31916         doc: mention more functions added in cygwin 1.7.0
31917         * doc/posix-functions/abort.texi (abort): Update wording related
31918         to cygwin.
31919         * doc/posix-functions/daylight.texi (daylight): Likewise.
31920         * doc/posix-functions/optarg.texi (optarg): Likewise.
31921         * doc/posix-functions/optarg.texi (opterr): Likewise.
31922         * doc/posix-functions/optarg.texi (optind): Likewise.
31923         * doc/posix-functions/optarg.texi (optopt): Likewise.
31924         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31925         worked in 1.5.x, and was withdrawn in 1.7.
31926         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31927         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31928         cygwin versions.
31929         * doc/posix-functions/perror.texi (perror): Likewise.
31930         * doc/posix-functions/printf.texi (printf): Likewise.
31931         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31932         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31933         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31934         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31935         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31936         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31937         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31938         Likewise.
31939         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31940         Likewise.
31941         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31942         this function.
31943         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31944         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31945         Likewise.
31946         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31947         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31948         * doc/posix-functions/confstr.texi (confstr): Likewise.
31949         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31950         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31951         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31952         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31953         * doc/posix-functions/fputws.texi (fputws): Likewise.
31954         * doc/posix-functions/fwide.texi (fwide): Likewise.
31955         * doc/posix-functions/getwc.texi (getwc): Likewise.
31956         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31957         * doc/posix-functions/putwc.texi (putwc): Likewise.
31958         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31959         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31960         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31961         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31962         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31963         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31964         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31965         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31966         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31967         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31968         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31969
31970 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31971
31972         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31973         * lib/ioctl.c: Include <sys/ioctl.h>.
31974
31975 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31976
31977         * modules/getdate-tests (Depends-on): Add progname.
31978         * tests/test-getdate.c: Use progname module, to avoid link errors
31979         on non-glibc systems.
31980
31981 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31982
31983         * modules/filenamecat-tests (Depends-on): Add progname.
31984         * modules/fstrcmp-tests (Depends-on): Likewise.
31985
31986         * tests/test-filenamecat.c: Use progname module, to avoid link
31987         errors on non-glibc systems.
31988         * tests/test-fstrcmp.c: Likewise.
31989
31990 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31991
31992         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31993         * lib/gettimeofday.c: Move extern declaration out of function.
31994
31995 2009-01-18  Bruno Haible  <bruno@clisp.org>
31996
31997         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31998         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31999         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32000
32001 2009-01-18  Bruno Haible  <bruno@clisp.org>
32002
32003         * lib/strftime.c (MEMPCPY): Remove unused macro.
32004         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32005
32006 2009-01-18  Martin Lambers  <marlam@marlam.de>
32007
32008         New module 'link'.
32009         * lib/unistd.in.h (link): New declaration.
32010         * lib/link.c: New file.
32011         * m4/link.m4: New file.
32012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32013         HAVE_LINK.
32014         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32015         * modules/link: New file.
32016         * doc/posix-functions/link.texi: Mention the new module.
32017
32018 2009-01-18  Bruno Haible  <bruno@clisp.org>
32019
32020         * tests/test-avltree_list.c (main): Call set_program_name.
32021         * tests/test-avltree_oset.c (main): Likewise.
32022         * tests/test-obstack-printf.c: Include progname.h.
32023         (main): Call set_program_name.
32024         * tests/test-quotearg.c: Include progname.h.
32025         (main): Call set_program_name.
32026         * tests/test-xmemdup0.c: Include progname.h.
32027         (main): Call set_program_name.
32028
32029 2009-01-18  Bruno Haible  <bruno@clisp.org>
32030
32031         New module 'alphasort'.
32032         * lib/dirent.in.h (alphasort): New declaration.
32033         * lib/alphasort.c: New file, from glibc with modifications.
32034         * m4/alphasort.m4: New file.
32035         * modules/alphasort: New file.
32036         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32037         HAVE_ALPHASORT.
32038         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32039         HAVE_ALPHASORT.
32040         * doc/posix-functions/alphasort.texi: Mention the new module and the
32041         portability problems.
32042
32043 2009-01-18  Bruno Haible  <bruno@clisp.org>
32044
32045         New module 'scandir'.
32046         * lib/dirent.in.h (scandir): New declaration.
32047         * lib/scandir.c: New file, from glibc with modifications.
32048         * m4/scandir.m4: New file.
32049         * modules/scandir: New file.
32050         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32051         HAVE_SCANDIR.
32052         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32053         HAVE_SCANDIR.
32054         * doc/posix-functions/scandir.texi: Mention the new module and the
32055         portability problems.
32056
32057 2009-01-17  Bruno Haible  <bruno@clisp.org>
32058
32059         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32060         Update documentation.
32061         (func_remove_suffix): Escape all dots in the suffix. Update
32062         documentation.
32063         (func_filter_filelist): Update documentation.
32064         Reported by Ralf Wildenhues.
32065
32066 2009-01-17  Bruno Haible  <bruno@clisp.org>
32067
32068         * modules/dprintf-posix-tests: New file.
32069         * tests/test-dprintf-posix.sh: New file.
32070         * tests/test-dprintf-posix.c: New file.
32071
32072         New modules 'dprintf', 'dprintf-posix'.
32073         * lib/stdio.in.h (dprintf): New declaration.
32074         * lib/dprintf.c: New file.
32075         * m4/dprintf.m4: New file.
32076         * m4/dprintf-posix.m4: New file.
32077         * modules/dprintf: New file.
32078         * modules/dprintf-posix: New file.
32079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32080         HAVE_DPRINTF, REPLACE_DPRINTF.
32081         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32082         HAVE_DPRINTF, REPLACE_DPRINTF.
32083         * doc/posix-functions/dprintf.texi: Mention the new modules.
32084
32085 2009-01-17  Bruno Haible  <bruno@clisp.org>
32086
32087         * modules/vdprintf-posix-tests: New file.
32088         * tests/test-vdprintf-posix.sh: New file.
32089         * tests/test-vdprintf-posix.c: New file.
32090
32091         New modules 'vdprintf', 'vdprintf-posix'.
32092         * lib/stdio.in.h (vdprintf): New declaration.
32093         * lib/vdprintf.c: New file.
32094         * m4/vdprintf.m4: New file.
32095         * m4/vdprintf-posix.m4: New file.
32096         * modules/vdprintf: New file.
32097         * modules/vdprintf-posix: New file.
32098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32099         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32100         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32101         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32102         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32103
32104 2009-01-17  Bruno Haible  <bruno@clisp.org>
32105
32106         Fix replacement of fopen on mingw.
32107         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32108         mingw.
32109
32110 2009-01-17  Bruno Haible  <bruno@clisp.org>
32111
32112         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32113         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32114
32115 2009-01-17  Bruno Haible  <bruno@clisp.org>
32116
32117         Avoid test-fflush2.sh failure on mingw.
32118         * tests/test-fflush2.c: Include binary-io.h.
32119         (main): Put standard input into binary mode.
32120         * modules/fflush-tests (Depends-on): Add binary-io.
32121
32122 2009-01-17  Bruno Haible  <bruno@clisp.org>
32123
32124         * lib/wchar.in.h: In another particular situation, include only the
32125         system's <wchar.h> file.
32126         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32127         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32128         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32129
32130 2009-01-17  Bruno Haible  <bruno@clisp.org>
32131
32132         Support for stripping executables in --enable-relocatable.
32133         * build-aux/install-reloc: Expect one more argument, or an environment
32134         variable RELOC_STRIP_PROG. If set, strip the destination program and
32135         its wrapper.
32136         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32137         RELOC_STRIP_PROG.
32138         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32139         to set RELOCATABLE_STRIP.
32140         * NEWS: Mention the new Makefile requirement.
32141
32142 2009-01-17  Bruno Haible  <bruno@clisp.org>
32143
32144         * build-aux/install-reloc: Remove debugging information left over by
32145         C compiler on MacOS X.
32146
32147 2009-01-17  Bruno Haible  <bruno@clisp.org>
32148
32149         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32150         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32151         _NSGetExecutablePath.
32152
32153 2009-01-16  Jim Meyering  <meyering@redhat.com>
32154
32155         strerror: avoid warnings about discarding "const"
32156         * lib/strerror.c (rpl_strerror): Instead of returning a const
32157         string from each and every "case", use a variable, and add a single
32158         cast after the switch.
32159
32160 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32161
32162         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32163
32164 2009-01-16  Bruno Haible  <bruno@clisp.org>
32165
32166         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32167         array initializer syntax that also works in C++ mode.
32168         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32169
32170 2009-01-16  Jim Meyering  <meyering@redhat.com>
32171
32172         poll: suppress a warning
32173         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32174         to ignore "...unsigned expression < 0 is always false" warnings.
32175
32176 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32177
32178         poll: remove declarations of unused variables
32179         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32180         sockbuf and optlen.
32181
32182 2009-01-15  Bruno Haible  <bruno@clisp.org>
32183
32184         Make fflush-after-ungetc POSIX compliant on BSD systems.
32185         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32186         (clear_ungetc_buffer): Implement also for other systems.
32187         (rpl_fflush): On glibc systems, invoke
32188         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32189         clear_ungetc_buffer after fetching the stream's position, not before.
32190
32191 2009-01-15  Bruno Haible  <bruno@clisp.org>
32192
32193         Make fflush-after-ungetc POSIX compliant on glibc systems.
32194         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32195         after ungetc.
32196         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32197         (rpl_fflush): On glibc systems, simply call the system's fflush
32198         function after clearing the ungetc buffer.
32199         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32200         Instead, lseek only to the end of file, then use the system's fseeko
32201         for the rest. On glibc systems, reset the EOF indicator bit.
32202
32203 2009-01-15  Jim Meyering  <meyering@redhat.com>
32204
32205         openmp.m4: revert quote-adding change, for portability to older autoconf
32206         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32207         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32208         Simon Josefsson noticed the problem when using autoconf-2.61.
32209
32210 2009-01-15  Bruno Haible  <bruno@clisp.org>
32211
32212         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32213         * tests/test-fflush2.c (ASSERT): Always fail.
32214         (main): Add two tests for fflush() after ungetc(), taking into account
32215         the Austin Group's clarification.
32216         Suggested by Eric Blake.
32217
32218 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32219
32220         mktime.m4: remove K&R-style function prototypes
32221         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32222         for the Sun C++ compiler.
32223
32224 2009-01-14  Bruno Haible  <bruno@clisp.org>
32225
32226         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32227         while including <wchar.h>.
32228         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32229         the system's <wchar.h> file.
32230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32231
32232 2009-01-14  Bruno Haible  <bruno@clisp.org>
32233
32234         * m4/csharp.m4: Don't mention gettext on the serial number line.
32235         * m4/csharpexec.m4: Likewise.
32236         * m4/eaccess.m4: Likewise.
32237         * m4/javaexec.m4: Likewise.
32238         * m4/sig_atomic_t.m4: Likewise.
32239         * m4/tmpdir.m4: Likewise.
32240         * m4/intldir.m4: Bump gettext version.
32241         * m4/lib-ld.m4: Likewise.
32242
32243 2009-01-14  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/progname.c (set_program_name): Add more comments.
32246         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32247
32248 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32249
32250         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32251         were sys/stat.h does not define it.
32252
32253 2009-01-14  Jim Meyering  <meyering@redhat.com>
32254
32255         many *.m4 files: improve m4 quoting
32256         99% of this change was performed by running the following commands:
32257         git ls-files | grep '\.m4$' | xargs perl -pi \
32258           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32259           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32260           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32261           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32262         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32263         The remainder were to add Copyright dates, increment serial numbers,
32264         undo some changes in comments, exclude m4/intl.m4, and add quotes
32265         around the "1" in ",1" where the unusual spacing prohibited the
32266         above regexps from doing the job.  For more details, see
32267         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32268         * m4/acl.m4: Modified.
32269         * m4/afs.m4: Likewise.
32270         * m4/alloca.m4: Likewise.
32271         * m4/argp.m4: Likewise.
32272         * m4/argz.m4: Likewise.
32273         * m4/atexit.m4: Likewise.
32274         * m4/bison-i18n.m4: Likewise.
32275         * m4/bison.m4: Likewise.
32276         * m4/byteswap.m4: Likewise.
32277         * m4/c-stack.m4: Likewise.
32278         * m4/c-strtod.m4: Likewise.
32279         * m4/calloc.m4: Likewise.
32280         * m4/canonicalize-lgpl.m4: Likewise.
32281         * m4/chown.m4: Likewise.
32282         * m4/clock_time.m4: Likewise.
32283         * m4/codeset.m4: Likewise.
32284         * m4/copy-file.m4: Likewise.
32285         * m4/csharp.m4: Likewise.
32286         * m4/csharpcomp.m4: Likewise.
32287         * m4/csharpexec.m4: Likewise.
32288         * m4/d-ino.m4: Likewise.
32289         * m4/d-type.m4: Likewise.
32290         * m4/dirfd.m4: Likewise.
32291         * m4/double-slash-root.m4: Likewise.
32292         * m4/eaccess.m4: Likewise.
32293         * m4/eealloc.m4: Likewise.
32294         * m4/environ.m4: Likewise.
32295         * m4/errno_h.m4: Likewise.
32296         * m4/euidaccess.m4: Likewise.
32297         * m4/execute.m4: Likewise.
32298         * m4/fatal-signal.m4: Likewise.
32299         * m4/fchdir.m4: Likewise.
32300         * m4/fcntl_h.m4: Likewise.
32301         * m4/fileblocks.m4: Likewise.
32302         * m4/filenamecat.m4: Likewise.
32303         * m4/findprog.m4: Likewise.
32304         * m4/flexmember.m4: Likewise.
32305         * m4/fnmatch.m4: Likewise.
32306         * m4/fopen.m4: Likewise.
32307         * m4/fpending.m4: Likewise.
32308         * m4/fprintf-posix.m4: Likewise.
32309         * m4/free.m4: Likewise.
32310         * m4/frexp.m4: Likewise.
32311         * m4/frexpl.m4: Likewise.
32312         * m4/fsusage.m4: Likewise.
32313         * m4/ftruncate.m4: Likewise.
32314         * m4/gc-camellia.m4: Likewise.
32315         * m4/gc-random.m4: Likewise.
32316         * m4/gc.m4: Likewise.
32317         * m4/getaddrinfo.m4: Likewise.
32318         * m4/getcwd-abort-bug.m4: Likewise.
32319         * m4/getcwd-path-max.m4: Likewise.
32320         * m4/getdate.m4: Likewise.
32321         * m4/getdomainname.m4: Likewise.
32322         * m4/getgroups.m4: Likewise.
32323         * m4/gethostname.m4: Likewise.
32324         * m4/gethrxtime.m4: Likewise.
32325         * m4/getline.m4: Likewise.
32326         * m4/getloadavg.m4: Likewise.
32327         * m4/getndelim2.m4: Likewise.
32328         * m4/getpass.m4: Likewise.
32329         * m4/gettext.m4: Likewise.
32330         * m4/gettime.m4: Likewise.
32331         * m4/gettimeofday.m4: Likewise.
32332         * m4/gnulib-common.m4: Likewise.
32333         * m4/group-member.m4: Likewise.
32334         * m4/host-os.m4: Likewise.
32335         * m4/iconv.m4: Likewise.
32336         * m4/iconv_open.m4: Likewise.
32337         * m4/inet_ntop.m4: Likewise.
32338         * m4/inet_pton.m4: Likewise.
32339         * m4/inline.m4: Likewise.
32340         * m4/intldir.m4: Likewise.
32341         * m4/intlmacosx.m4: Likewise.
32342         * m4/intmax.m4: Likewise.
32343         * m4/intmax_t.m4: Likewise.
32344         * m4/inttypes.m4: Likewise.
32345         * m4/inttypes_h.m4: Likewise.
32346         * m4/inttypes-pri.m4: Likewise.
32347         * m4/isapipe.m4: Likewise.
32348         * m4/isnand.m4: Likewise.
32349         * m4/isnanf.m4: Likewise.
32350         * m4/isnanl.m4: Likewise.
32351         * m4/javacomp.m4: Likewise.
32352         * m4/javaexec.m4: Likewise.
32353         * m4/jm-winsz1.m4: Likewise.
32354         * m4/jm-winsz2.m4: Likewise.
32355         * m4/lchown.m4: Likewise.
32356         * m4/lcmessage.m4: Likewise.
32357         * m4/ldexpl.m4: Likewise.
32358         * m4/lib-ld.m4: Likewise.
32359         * m4/lib-link.m4: Likewise.
32360         * m4/libsigsegv.m4: Likewise.
32361         * m4/link-follow.m4: Likewise.
32362         * m4/localcharset.m4: Likewise.
32363         * m4/locale-fr.m4: Likewise.
32364         * m4/locale-ja.m4: Likewise.
32365         * m4/locale-tr.m4: Likewise.
32366         * m4/locale-zh.m4: Likewise.
32367         * m4/lock.m4: Likewise.
32368         * m4/longlong.m4: Likewise.
32369         * m4/ls-mntd-fs.m4: Likewise.
32370         * m4/lstat.m4: Likewise.
32371         * m4/malloc.m4: Likewise.
32372         * m4/mathl.m4: Likewise.
32373         * m4/mbrtowc.m4: Likewise.
32374         * m4/mbstate_t.m4: Likewise.
32375         * m4/mbswidth.m4: Likewise.
32376         * m4/memchr.m4: Likewise.
32377         * m4/memcmp.m4: Likewise.
32378         * m4/memcpy.m4: Likewise.
32379         * m4/memmem.m4: Likewise.
32380         * m4/memmove.m4: Likewise.
32381         * m4/mempcpy.m4: Likewise.
32382         * m4/memrchr.m4: Likewise.
32383         * m4/memset.m4: Likewise.
32384         * m4/minmax.m4: Likewise.
32385         * m4/mkdir-slash.m4: Likewise.
32386         * m4/mkdtemp.m4: Likewise.
32387         * m4/mktime.m4: Likewise.
32388         * m4/mmap-anon.m4: Likewise.
32389         * m4/mountlist.m4: Likewise.
32390         * m4/nanosleep.m4: Likewise.
32391         * m4/nls.m4: Likewise.
32392         * m4/nocrash.m4: Likewise.
32393         * m4/open.m4: Likewise.
32394         * m4/openat.m4: Likewise.
32395         * m4/openmp.m4: Likewise.
32396         * m4/pathmax.m4: Likewise.
32397         * m4/perl.m4: Likewise.
32398         * m4/physmem.m4: Likewise.
32399         * m4/pipe.m4: Likewise.
32400         * m4/po.m4: Likewise.
32401         * m4/poll.m4: Likewise.
32402         * m4/posixtm.m4: Likewise.
32403         * m4/posixver.m4: Likewise.
32404         * m4/printf-frexp.m4: Likewise.
32405         * m4/printf-frexpl.m4: Likewise.
32406         * m4/printf-posix.m4: Likewise.
32407         * m4/printf-posix-rpl.m4: Likewise.
32408         * m4/printf.m4: Likewise.
32409         * m4/progtest.m4: Likewise.
32410         * m4/putenv.m4: Likewise.
32411         * m4/readline.m4: Likewise.
32412         * m4/readlink.m4: Likewise.
32413         * m4/readutmp.m4: Likewise.
32414         * m4/realloc.m4: Likewise.
32415         * m4/regex.m4: Likewise.
32416         * m4/relocatable.m4: Likewise.
32417         * m4/relocatable-lib.m4: Likewise.
32418         * m4/rename-dest-slash.m4: Likewise.
32419         * m4/rename.m4: Likewise.
32420         * m4/rmdir-errno.m4: Likewise.
32421         * m4/rmdir.m4: Likewise.
32422         * m4/roundf.m4: Likewise.
32423         * m4/roundl.m4: Likewise.
32424         * m4/rpmatch.m4: Likewise.
32425         * m4/save-cwd.m4: Likewise.
32426         * m4/selinux-selinux-h.m4: Likewise.
32427         * m4/setenv.m4: Likewise.
32428         * m4/settime.m4: Likewise.
32429         * m4/sig2str.m4: Likewise.
32430         * m4/sig_atomic_t.m4: Likewise.
32431         * m4/signalblocking.m4: Likewise.
32432         * m4/signbit.m4: Likewise.
32433         * m4/sigpipe.m4: Likewise.
32434         * m4/sockets.m4: Likewise.
32435         * m4/sockpfaf.m4: Likewise.
32436         * m4/st_dm_mode.m4: Likewise.
32437         * m4/stat-time.m4: Likewise.
32438         * m4/stdbool.m4: Likewise.
32439         * m4/stdint.m4: Likewise.
32440         * m4/stdint_h.m4: Likewise.
32441         * m4/stpcpy.m4: Likewise.
32442         * m4/stpncpy.m4: Likewise.
32443         * m4/strcase.m4: Likewise.
32444         * m4/strchrnul.m4: Likewise.
32445         * m4/strcspn.m4: Likewise.
32446         * m4/strdup.m4: Likewise.
32447         * m4/strftime.m4: Likewise.
32448         * m4/strndup.m4: Likewise.
32449         * m4/strnlen.m4: Likewise.
32450         * m4/strpbrk.m4: Likewise.
32451         * m4/strptime.m4: Likewise.
32452         * m4/strsep.m4: Likewise.
32453         * m4/strtod.m4: Likewise.
32454         * m4/strtoimax.m4: Likewise.
32455         * m4/strtok_r.m4: Likewise.
32456         * m4/strtol.m4: Likewise.
32457         * m4/strtoll.m4: Likewise.
32458         * m4/strtoul.m4: Likewise.
32459         * m4/strtoull.m4: Likewise.
32460         * m4/strtoumax.m4: Likewise.
32461         * m4/strverscmp.m4: Likewise.
32462         * m4/threadlib.m4: Likewise.
32463         * m4/timegm.m4: Likewise.
32464         * m4/tm_gmtoff.m4: Likewise.
32465         * m4/tmpdir.m4: Likewise.
32466         * m4/tmpfile.m4: Likewise.
32467         * m4/tzset.m4: Likewise.
32468         * m4/uintmax_t.m4: Likewise.
32469         * m4/unlinkdir.m4: Likewise.
32470         * m4/unlocked-io.m4: Likewise.
32471         * m4/uptime.m4: Likewise.
32472         * m4/userspec.m4: Likewise.
32473         * m4/utimbuf.m4: Likewise.
32474         * m4/utime.m4: Likewise.
32475         * m4/utimes-null.m4: Likewise.
32476         * m4/utimes.m4: Likewise.
32477         * m4/vararrays.m4: Likewise.
32478         * m4/vasnprintf.m4: Likewise.
32479         * m4/vfprintf-posix.m4: Likewise.
32480         * m4/vprintf-posix.m4: Likewise.
32481         * m4/wait-process.m4: Likewise.
32482         * m4/wchar_t.m4: Likewise.
32483         * m4/wint_t.m4: Likewise.
32484         * m4/write-any-file.m4: Likewise.
32485         * m4/yield.m4: Likewise.
32486
32487 2009-01-13  Bruno Haible  <bruno@clisp.org>
32488
32489         Avoid test-copy-file.sh failures when ACL support insufficient.
32490         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32491         TESTS_ENVIRONMENT.
32492         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32493         Reported by Jim Meyering.
32494
32495 2009-01-13  Bruno Haible  <bruno@clisp.org>
32496
32497         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32498         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32499         * modules/unistdio/u8-printf-parse (Files): Likewise.
32500         * modules/unistdio/u32-printf-parse (Files): Likewise.
32501         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32502
32503 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32504
32505         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32506         and m4/inttypes_h.m4 too.
32507
32508 2009-01-12  Eric Blake  <ebb9@byu.net>
32509
32510         tests: IRIX 6.2 cc can't compile -0.0 into .data
32511         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32512         rather than at compile-time.
32513         * tests/test-floorl.c (minus_zero): Likewise.
32514         * tests/test-frexpl.c (minus_zero): Likewise.
32515         * tests/test-isnan.c (minus_zerol): Likewise.
32516         * tests/test-isnanl.h (minus_zero): Likewise.
32517         * tests/test-ldexpl.c (minus_zero): Likewise.
32518         * tests/test-roundl.c (minus_zero): Likewise.
32519         * tests/test-signbit.c (minus_zerol): Likewise.
32520         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32521         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32522         * tests/test-truncl.c (minus_zero): Likewise.
32523         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32524         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32525         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32526
32527 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32528
32529         regex: fix glibc bug 9697
32530         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32531         handling.
32532
32533 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32534
32535         regex: fix glibc bug 697
32536         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32537         being NULL also if there are no backreferences.
32538
32539 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32540
32541         regex: merge glibc changes
32542         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32543         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32544         re_string_skip_chars, re_string_reconstruct): Likewise.
32545         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32546
32547 2009-01-07  Jim Meyering  <meyering@redhat.com>
32548
32549         poll: filter through cppi
32550         * lib/poll.c: Indent cpp directives to reflect nesting.
32551
32552 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32553
32554         poll: don't return uninitialized
32555         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32556
32557 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32558
32559         avoid compile failure on AIX 6.1
32560         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32561         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32562
32563 2009-01-04  Jim Meyering  <meyering@redhat.com>
32564
32565         remove duplicate inclusion of <stdio.h>
32566         * tests/test-fprintf-posix.c: Likewise.
32567         * tests/test-printf-posix.c: Likewise.
32568         * tests/test-snprintf-posix.c: Likewise.
32569         * tests/test-sprintf-posix.c: Likewise.
32570         * tests/test-vasprintf-posix.c: Likewise.
32571         * tests/test-vfprintf-posix.c: Likewise.
32572         * tests/test-vprintf-posix.c: Likewise.
32573         * tests/test-vsnprintf-posix.c: Likewise.
32574         * tests/test-vsprintf-posix.c: Likewise.
32575
32576 2009-01-03  Jim Meyering  <meyering@redhat.com>
32577
32578         gnulib-tool: fix sed-based filtering
32579         * gnulib-tool (func_filter_filelist): Remove extra backslash
32580         in sed_fff_filter definition.
32581
32582 2009-01-02  Jim Meyering  <meyering@redhat.com>
32583
32584         strftime: avoid compilation failure on Solaris 2.6
32585         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32586         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32587         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32588         be available.  Reported by Tom G. Christensen.  Details in
32589         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32590
32591 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32592             Bruno Haible  <bruno@clisp.org>
32593
32594         Speed up gnulib-tool by doing more string processing through shell
32595         built-ins.
32596         * gnulib-tool (fast_func_append): New variable.
32597         (func_remove_prefix, func_remove_suffix): New functions.
32598         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32599         (func_filter_filelist): New function.
32600         (func_get_dependencies): Use func_remove_suffix instead of sed.
32601         (func_get_automake_snippet): Use func_filter_filelist instead of a
32602         subshell and sed invocation.
32603
32604 2009-01-01  Bruno Haible  <bruno@clisp.org>
32605
32606         Fix a security bug.
32607         * gnulib-tool (func_import, import, update): Don't allow the characters
32608         '"', '$', '`', '\' in macro arguments that become part of commands that
32609         are evaluated.
32610
32611 2009-01-01  Bruno Haible  <bruno@clisp.org>
32612
32613         * gnulib-tool (func_reset_sigpipe): Add more comments.
32614
32615 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32616
32617         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32618         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32619         already know the answer.
32620
32621 2009-01-01  Jim Meyering  <meyering@redhat.com>
32622
32623         * lib/version-etc.c (version_etc_va): Update copyright year.
32624
32625 2008-12-30  Bruno Haible  <bruno@clisp.org>
32626
32627         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32628         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32629         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32630
32631 2008-12-29  Eric Blake  <ebb9@byu.net>
32632
32633         multiarch: avoid autoconf AC_REQUIRE bug
32634         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32635         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32636         2.63 and older.
32637         Reported by Bruno Haible, and analyzed in
32638         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32639
32640 2008-12-29  Bruno Haible  <bruno@clisp.org>
32641
32642         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32643         files in subdirectories correctly.
32644         Reported by Ralf Wildenhues.
32645
32646 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32647
32648         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32649         rather than 'join FILE -', for Solaris join.
32650
32651 2008-12-29  Bruno Haible  <bruno@clisp.org>
32652
32653         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32654         quoting.
32655         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32656         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32657         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32658         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32659         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32660         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32661         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32662         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32663         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32664         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32665         * m4/nls.m4 (AM_NLS): Likewise.
32666         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32667         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32668         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32669         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32670         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32671         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32672         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32673         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32674         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32675         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32676         * m4/xsize.m4 (gl_XSIZE): Likewise.
32677         Suggested by Jim Meyering.
32678
32679 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32680
32681         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32682         * lib/parse-duration.c: use a switch instead of cascading if's.
32683
32684 2008-12-29  Eric Blake  <ebb9@byu.net>
32685
32686         wchar.h: supply WEOF on Irix 5.3
32687         * lib/wchar.in.h (wint_t): Also supply WEOF.
32688         * lib/wctype.in.h (wint_t): Likewise.
32689         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32690         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32691         Reported by Tom G. Christensen.
32692
32693 2008-12-26  Bruno Haible  <bruno@clisp.org>
32694
32695         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32696         i486, i586, i686.
32697
32698 2008-12-26  Bruno Haible  <bruno@clisp.org>
32699
32700         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32701
32702 2008-12-26  Bruno Haible  <bruno@clisp.org>
32703
32704         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32705         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32706         not __STDC_CONSTANT_MACROS.
32707         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32708
32709 2008-12-25  Bruno Haible  <bruno@clisp.org>
32710
32711         Add support for universal builds to vasnprintf.
32712         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32713         universal builds, guess no.
32714         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32715         * modules/vasprintf-posix (Depends-on): Likewise.
32716         * modules/fprintf-posix (Depends-on): Likewise.
32717         * modules/vfprintf-posix (Depends-on): Likewise.
32718         * modules/snprintf-posix (Depends-on): Likewise.
32719         * modules/vsnprintf-posix (Depends-on): Likewise.
32720         * modules/sprintf-posix (Depends-on): Likewise.
32721         * modules/vsprintf-posix (Depends-on): Likewise.
32722         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32723         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32724         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32725         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32726         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32727         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32728         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32729
32730         Add support for universal builds to <inttypes.h>.
32731         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32732         _SCNu64_PREFIX): In Apple
32733         universal builds, define directly, using _LP64.
32734         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32735         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32736         * modules/inttypes (Depends-on): Add multiarch.
32737         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32738
32739         Add support for universal builds to <stdint.h>.
32740         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32741         universal builds, define directly, using _LP64.
32742         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32743         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32744         and size_t.
32745         * modules/stdint (Depends-on): Add multiarch.
32746         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32747
32748         New module 'multiarch'.
32749         * modules/multiarch: New file.
32750         * m4/multiarch.m4: New file.
32751
32752 2008-12-25  Bruno Haible  <bruno@clisp.org>
32753
32754         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32755
32756 2008-12-25  Bruno Haible  <bruno@clisp.org>
32757
32758         * modules/btowc (License): Relicense under LGPLv2+.
32759         * modules/mbsinit (License): Likewise.
32760         * modules/mbrtowc (License): Likewise.
32761         * modules/wcrtomb (License): Likewise.
32762         * modules/streq (License): Likewise.
32763         Reported by David Lutterkort <lutter@redhat.com>.
32764
32765 2008-12-23  Bruno Haible  <bruno@clisp.org>
32766
32767         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32768
32769 2008-12-23  Bruno Haible  <bruno@clisp.org>
32770
32771         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32773         GETADDRINFO_LIB, not in LIBS.
32774         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32775         * modules/canon-host (Link): Likewise.
32776         * NEWS: Mention the change.
32777         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32778         GETADDRINFO_LIB.
32779
32780 2008-12-22  Bruno Haible  <bruno@clisp.org>
32781
32782         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32783         * doc/posix-functions/iswalpha_l.texi: Likewise.
32784         * doc/posix-functions/iswblank_l.texi: Likewise.
32785         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32786         * doc/posix-functions/iswctype_l.texi: Likewise.
32787         * doc/posix-functions/iswdigit_l.texi: Likewise.
32788         * doc/posix-functions/iswgraph_l.texi: Likewise.
32789         * doc/posix-functions/iswlower_l.texi: Likewise.
32790         * doc/posix-functions/iswprint_l.texi: Likewise.
32791         * doc/posix-functions/iswpunct_l.texi: Likewise.
32792         * doc/posix-functions/iswspace_l.texi: Likewise.
32793         * doc/posix-functions/iswupper_l.texi: Likewise.
32794         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32795         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32796         * doc/posix-functions/open_wmemstream.texi: Likewise.
32797         * doc/posix-functions/swscanf.texi: Likewise.
32798         * doc/posix-functions/towctrans_l.texi: Likewise.
32799         * doc/posix-functions/towlower.texi: Likewise.
32800         * doc/posix-functions/towlower_l.texi: Likewise.
32801         * doc/posix-functions/towupper.texi: Likewise.
32802         * doc/posix-functions/towupper_l.texi: Likewise.
32803         * doc/posix-functions/vfwprintf.texi: Likewise.
32804         * doc/posix-functions/vfwscanf.texi: Likewise.
32805         * doc/posix-functions/vswscanf.texi: Likewise.
32806         * doc/posix-functions/vwprintf.texi: Likewise.
32807         * doc/posix-functions/vwscanf.texi: Likewise.
32808         * doc/posix-functions/wcpcpy.texi: Likewise.
32809         * doc/posix-functions/wcpncpy.texi: Likewise.
32810         * doc/posix-functions/wcscasecmp.texi: Likewise.
32811         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32812         * doc/posix-functions/wcscoll_l.texi: Likewise.
32813         * doc/posix-functions/wcsdup.texi: Likewise.
32814         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32815         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32816         * doc/posix-functions/wcsnlen.texi: Likewise.
32817         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32818         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32819         * doc/posix-functions/wctrans_l.texi: Likewise.
32820         * doc/posix-functions/wctype_l.texi: Likewise.
32821         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32822         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32823         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32824         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32825         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32826         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32827         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32828         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32829         * doc/glibc-functions/wcschrnul.texi: Likewise.
32830         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32831         * doc/glibc-functions/wcstod_l.texi: Likewise.
32832         * doc/glibc-functions/wcstof_l.texi: Likewise.
32833         * doc/glibc-functions/wcstol_l.texi: Likewise.
32834         * doc/glibc-functions/wcstold_l.texi: Likewise.
32835         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32836         * doc/glibc-functions/wcstoq.texi: Likewise.
32837         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32838         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32839         * doc/glibc-functions/wcstouq.texi: Likewise.
32840         * doc/glibc-functions/wmempcpy.texi: Likewise.
32841
32842 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32843             Eric Blake  <ebb9@byu.net>
32844             Paolo Bonzini  <bonzini@gnu.org>
32845             Bruno Haible  <bruno@clisp.org>
32846
32847         Make c-stack work on Haiku.
32848         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32849         (c_stack_action): Use SA_ONSTACK flag.
32850
32851 2008-12-22  Bruno Haible  <bruno@clisp.org>
32852
32853         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32854
32855 2008-12-22  Bruno Haible  <bruno@clisp.org>
32856
32857         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32858         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32859         being overridden.
32860         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32861         New macros.
32862         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32864         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32865         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32866
32867 2008-12-22  Bruno Haible  <bruno@clisp.org>
32868
32869         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32870         from test code.
32871
32872 2008-12-22  Eric Blake  <ebb9@byu.net>
32873
32874         Avoid gcc warnings on cygwin.
32875         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32876         Avoid unused variable.
32877         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32878         Likewise.
32879
32880 2008-12-22  Bruno Haible  <bruno@clisp.org>
32881
32882         Remove HAVE_MBRTOWC conditionals.
32883         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32884         (mbscasecmp): Assume mbrtowc function.
32885         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32886         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32887         * lib/mbschr.c: Include mbuiter.h unconditionally.
32888         (mbschr): Assume mbrtowc function.
32889         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32890         (mbscspn): Assume mbrtowc function.
32891         * lib/mbslen.c: Include mbuiter.h unconditionally.
32892         (mbslen): Assume mbrtowc function.
32893         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32894         (mbsncasecmp): Assume mbrtowc function.
32895         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32896         (mbsnlen): Assume mbrtowc function.
32897         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32898         (mbspbrk): Assume mbrtowc function.
32899         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32900         (mbspcasecmp): Assume mbrtowc function.
32901         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32902         (mbsrchr): Assume mbrtowc function.
32903         * lib/mbssep.c: Include mbuiter.h unconditionally.
32904         (mbssep): Assume mbrtowc function.
32905         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32906         (mbsspn): Assume mbrtowc function.
32907         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32908         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32909         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32910         (mbstok_r): Assume mbrtowc function.
32911         * lib/propername.c: Include mbuiter.h unconditionally.
32912         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32913         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32914         (trim2): Assume mbrtowc function.
32915         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32916         (mbsnwidth): Assume mbrtowc function.
32917         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32918         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32919         fallback definitions.
32920         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32921
32922 2008-12-22  Bruno Haible  <bruno@clisp.org>
32923
32924         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32925
32926 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32927
32928         * modules/regex: Request emulations for the mb*/wc* functions we need.
32929         * m4/regex.m4: Don't look for those functions here.
32930         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32931
32932 2008-12-22  Bruno Haible  <bruno@clisp.org>
32933
32934         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32935
32936 2008-12-21  Bruno Haible  <bruno@clisp.org>
32937
32938         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32939         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32940         (Include): Remove conditionalization.
32941         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32942         (Include): Remove conditionalization.
32943         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32944         (Include): Remove conditionalization.
32945         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32946         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32947         * NEWS: Mention the change.
32948         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32949         via Sergey Poznyakoff <gray@gnu.org.ua>.
32950
32951 2008-12-21  Bruno Haible  <bruno@clisp.org>
32952
32953         * MODULES.html.sh (Extended multibyte and wide character utilities
32954         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32955         wcrtomb, wcsrtombs.
32956         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32957         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32958         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32959         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32960
32961 2008-12-21  Bruno Haible  <bruno@clisp.org>
32962
32963         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32964
32965 2008-12-21  Bruno Haible  <bruno@clisp.org>
32966
32967         * modules/wcsnrtombs-tests: New file.
32968         * tests/test-wcsnrtombs1.sh: New file.
32969         * tests/test-wcsnrtombs2.sh: New file.
32970         * tests/test-wcsnrtombs3.sh: New file.
32971         * tests/test-wcsnrtombs4.sh: New file.
32972         * tests/test-wcsnrtombs.c: New file.
32973
32974         New module 'wcsnrtombs'.
32975         * lib/wchar.in.h (wcsnrtombs): New declaration.
32976         * lib/wcsnrtombs.c: New file.
32977         * lib/wcsrtombs-state.c: New file.
32978         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32979         (internal_state): Remove variable.
32980         * m4/wcsnrtombs.m4: New file.
32981         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32982         compilation units.
32983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32984         HAVE_WCSNRTOMBS.
32985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32986         HAVE_WCSNRTOMBS.
32987         * modules/wcsnrtombs: New file.
32988         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32989         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32990
32991 2008-12-21  Bruno Haible  <bruno@clisp.org>
32992
32993         * modules/wcsrtombs-tests: New file.
32994         * tests/test-wcsrtombs1.sh: New file.
32995         * tests/test-wcsrtombs2.sh: New file.
32996         * tests/test-wcsrtombs3.sh: New file.
32997         * tests/test-wcsrtombs4.sh: New file.
32998         * tests/test-wcsrtombs.c: New file.
32999
33000         New module 'wcsrtombs'.
33001         * lib/wchar.in.h (wcsrtombs): New declaration.
33002         * lib/wcsrtombs.c: New file.
33003         * m4/wcsrtombs.m4: New file.
33004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33005         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33007         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33008         * modules/wcsrtombs: New file.
33009         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33010         bugs.
33011
33012 2008-12-21  Bruno Haible  <bruno@clisp.org>
33013
33014         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33015         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33017         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33018         if not correct.
33019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33020         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33021         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33022         m4/locale-zh.m4, m4/codeset.m4.
33023         * doc/posix-functions/wcrtomb.texi: Document the bug.
33024
33025 2008-12-21  Bruno Haible  <bruno@clisp.org>
33026
33027         Work around a btowc() bug on IRIX 6.5.
33028         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33029         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33030         REPLACE_WTOBC if not.
33031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33032         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33033         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33034
33035 2008-12-21  Bruno Haible  <bruno@clisp.org>
33036
33037         * modules/wcrtomb-tests: New file.
33038         * tests/test-wcrtomb.sh: New file.
33039         * tests/test-wcrtomb.c: New file.
33040
33041         New module 'wcrtomb'.
33042         * lib/wchar.in.h (wcrtomb): New declaration.
33043         * lib/wcrtomb.c: New file.
33044         * m4/wcrtomb.m4: New file.
33045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33046         HAVE_WCRTOMB.
33047         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33048         HAVE_WCRTOMB.
33049         * modules/wcrtomb: New file.
33050         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33051
33052 2008-12-21  Bruno Haible  <bruno@clisp.org>
33053
33054         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33055         * modules/mbsrtowcs (Files): Likewise.
33056         * modules/wctob (Files): Likewise.
33057         * modules/c-strcase-tests (Files): Likewise.
33058         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33059         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33060         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33061         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33062         * modules/vasnprintf-posix-tests (Files): Likewise.
33063
33064 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33065
33066         gitlog-to-changelog: pass all command-line arguments to git-log
33067         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33068         it is sometimes convenient to filter the commits in various ways.
33069         gitlog-to-changelog only allows --since to specify a start date,
33070         but git-log itself supports many other filtering mechanisms.
33071         At the moment, I want to filter by branch name.  Rather than
33072         adding a --branch option to gitlog-to-changelog, it seems more
33073         flexible to simply pass all options directly to git-log and let
33074         git do the work.  Notice that this effectively makes --since a
33075         redundant option for gitlog-to-changelog, but removing it would
33076         require current usage to change since calls would then require
33077         an additional '--'.
33078
33079 2008-12-21  Bruno Haible  <bruno@clisp.org>
33080
33081         * modules/mbsnrtowcs-tests: New file.
33082         * tests/test-mbsnrtowcs1.sh: New file.
33083         * tests/test-mbsnrtowcs2.sh: New file.
33084         * tests/test-mbsnrtowcs3.sh: New file.
33085         * tests/test-mbsnrtowcs4.sh: New file.
33086         * tests/test-mbsnrtowcs.c: New file.
33087
33088         New module 'mbsnrtowcs'.
33089         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33090         * lib/mbsnrtowcs.c: New file.
33091         * lib/mbsrtowcs-state.c: New file.
33092         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33093         (internal_state): Remove variable.
33094         * m4/mbsnrtowcs.m4: New file.
33095         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33096         compilation units.
33097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33098         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33099         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33100         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33101         * modules/mbsnrtowcs: New file.
33102         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33103         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33104         portability problem.
33105
33106 2008-12-21  Bruno Haible  <bruno@clisp.org>
33107
33108         Work around mbsrtowcs bug.
33109         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33110         (gl_FUNC_MBSRTOWCS): Invoke it.
33111         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33112         m4/locale-zh.m4.
33113         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33114
33115 2008-12-21  Bruno Haible  <bruno@clisp.org>
33116
33117         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33118
33119 2008-12-21  Bruno Haible  <bruno@clisp.org>
33120
33121         Update doc for AIX.
33122         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33123         16-bit wchar_t type.
33124         * doc/posix-functions/btowc.texi: Likewise.
33125         * doc/posix-functions/fgetwc.texi: Likewise.
33126         * doc/posix-functions/fgetws.texi: Likewise.
33127         * doc/posix-functions/fputwc.texi: Likewise.
33128         * doc/posix-functions/fputws.texi: Likewise.
33129         * doc/posix-functions/fwide.texi: Likewise.
33130         * doc/posix-functions/fwprintf.texi: Likewise.
33131         * doc/posix-functions/fwscanf.texi: Likewise.
33132         * doc/posix-functions/getwchar.texi: Likewise.
33133         * doc/posix-functions/getwc.texi: Likewise.
33134         * doc/posix-functions/iswalnum.texi: Likewise.
33135         * doc/posix-functions/iswalpha.texi: Likewise.
33136         * doc/posix-functions/iswblank.texi: Likewise.
33137         * doc/posix-functions/iswcntrl.texi: Likewise.
33138         * doc/posix-functions/iswctype.texi: Likewise.
33139         * doc/posix-functions/iswdigit.texi: Likewise.
33140         * doc/posix-functions/iswgraph.texi: Likewise.
33141         * doc/posix-functions/iswlower.texi: Likewise.
33142         * doc/posix-functions/iswprint.texi: Likewise.
33143         * doc/posix-functions/iswpunct.texi: Likewise.
33144         * doc/posix-functions/iswspace.texi: Likewise.
33145         * doc/posix-functions/iswupper.texi: Likewise.
33146         * doc/posix-functions/iswxdigit.texi: Likewise.
33147         * doc/posix-functions/mbrtowc.texi: Likewise.
33148         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33149         * doc/posix-functions/mbstowcs.texi: Likewise.
33150         * doc/posix-functions/mbtowc.texi: Likewise.
33151         * doc/posix-functions/putwchar.texi: Likewise.
33152         * doc/posix-functions/putwc.texi: Likewise.
33153         * doc/posix-functions/swprintf.texi: Likewise.
33154         * doc/posix-functions/tolower.texi: Likewise.
33155         * doc/posix-functions/toupper.texi: Likewise.
33156         * doc/posix-functions/towctrans.texi: Likewise.
33157         * doc/posix-functions/ungetwc.texi: Likewise.
33158         * doc/posix-functions/vswprintf.texi: Likewise.
33159         * doc/posix-functions/wcrtomb.texi: Likewise.
33160         * doc/posix-functions/wcscat.texi: Likewise.
33161         * doc/posix-functions/wcschr.texi: Likewise.
33162         * doc/posix-functions/wcscmp.texi: Likewise.
33163         * doc/posix-functions/wcscoll.texi: Likewise.
33164         * doc/posix-functions/wcscpy.texi: Likewise.
33165         * doc/posix-functions/wcscspn.texi: Likewise.
33166         * doc/posix-functions/wcsftime.texi: Likewise.
33167         * doc/posix-functions/wcslen.texi: Likewise.
33168         * doc/posix-functions/wcsncat.texi: Likewise.
33169         * doc/posix-functions/wcsncmp.texi: Likewise.
33170         * doc/posix-functions/wcsncpy.texi: Likewise.
33171         * doc/posix-functions/wcspbrk.texi: Likewise.
33172         * doc/posix-functions/wcsrchr.texi: Likewise.
33173         * doc/posix-functions/wcsrtombs.texi: Likewise.
33174         * doc/posix-functions/wcsspn.texi: Likewise.
33175         * doc/posix-functions/wcsstr.texi: Likewise.
33176         * doc/posix-functions/wcstod.texi: Likewise.
33177         * doc/posix-functions/wcstof.texi: Likewise.
33178         * doc/posix-functions/wcstoimax.texi: Likewise.
33179         * doc/posix-functions/wcstok.texi: Likewise.
33180         * doc/posix-functions/wcstold.texi: Likewise.
33181         * doc/posix-functions/wcstoll.texi: Likewise.
33182         * doc/posix-functions/wcstol.texi: Likewise.
33183         * doc/posix-functions/wcstombs.texi: Likewise.
33184         * doc/posix-functions/wcstoull.texi: Likewise.
33185         * doc/posix-functions/wcstoul.texi: Likewise.
33186         * doc/posix-functions/wcstoumax.texi: Likewise.
33187         * doc/posix-functions/wcswidth.texi: Likewise.
33188         * doc/posix-functions/wcsxfrm.texi: Likewise.
33189         * doc/posix-functions/wctob.texi: Likewise.
33190         * doc/posix-functions/wctomb.texi: Likewise.
33191         * doc/posix-functions/wctrans.texi: Likewise.
33192         * doc/posix-functions/wctype.texi: Likewise.
33193         * doc/posix-functions/wcwidth.texi: Likewise.
33194         * doc/posix-functions/wmemchr.texi: Likewise.
33195         * doc/posix-functions/wmemcmp.texi: Likewise.
33196         * doc/posix-functions/wmemcpy.texi: Likewise.
33197         * doc/posix-functions/wmemmove.texi: Likewise.
33198         * doc/posix-functions/wmemset.texi: Likewise.
33199         * doc/posix-functions/wprintf.texi: Likewise.
33200         * doc/posix-functions/wscanf.texi: Likewise.
33201
33202 2008-12-21  Bruno Haible  <bruno@clisp.org>
33203
33204         Update doc for HP-UX 11.11.
33205         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33206         in HP-UX version 11.00, not in all versions of HP-UX 11.
33207         * doc/posix-functions/fwide.texi: Likewise.
33208         * doc/posix-functions/fwprintf.texi: Likewise.
33209         * doc/posix-functions/fwscanf.texi: Likewise.
33210         * doc/posix-functions/inet_ntop.texi: Likewise.
33211         * doc/posix-functions/inet_pton.texi: Likewise.
33212         * doc/posix-functions/mbrlen.texi: Likewise.
33213         * doc/posix-functions/mbrtowc.texi: Likewise.
33214         * doc/posix-functions/mbsinit.texi: Likewise.
33215         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33216         * doc/posix-functions/swprintf.texi: Likewise.
33217         * doc/posix-functions/swscanf.texi: Likewise.
33218         * doc/posix-functions/towctrans.texi: Likewise.
33219         * doc/posix-functions/vfwprintf.texi: Likewise.
33220         * doc/posix-functions/vswprintf.texi: Likewise.
33221         * doc/posix-functions/vwprintf.texi: Likewise.
33222         * doc/posix-functions/wcrtomb.texi: Likewise.
33223         * doc/posix-functions/wcsrtombs.texi: Likewise.
33224         * doc/posix-functions/wcsstr.texi: Likewise.
33225         * doc/posix-functions/wctob.texi: Likewise.
33226         * doc/posix-functions/wctrans.texi: Likewise.
33227         * doc/posix-functions/wmemchr.texi: Likewise.
33228         * doc/posix-functions/wmemcmp.texi: Likewise.
33229         * doc/posix-functions/wmemcpy.texi: Likewise.
33230         * doc/posix-functions/wmemmove.texi: Likewise.
33231         * doc/posix-functions/wmemset.texi: Likewise.
33232         * doc/posix-functions/wprintf.texi: Likewise.
33233         * doc/posix-functions/wscanf.texi: Likewise.
33234
33235 2008-12-21  Bruno Haible  <bruno@clisp.org>
33236
33237         Work around a portability problem.
33238         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33239         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33240
33241 2008-12-20  Bruno Haible  <bruno@clisp.org>
33242
33243         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33244         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33245         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33247         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33248
33249         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33250         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33251         set.
33252         (GNULIB_defined_mbstate_t): New macro.
33253         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33254         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33255         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33256         reuses the system's mbrtowc function but works around the bugs.
33257         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33258         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33259         macros.
33260         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33261         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33262         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33263         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33264         REPLACE_MBSINIT if mbsinit needs to be overridden.
33265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33266         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33267         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33268         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33269         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33270         m4/locale-zh.m4.
33271         (Depends): Add mbsinit.
33272         * modules/mbsinit (Depends): Add mbrtowc.
33273         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33274
33275 2008-12-20  Bruno Haible  <bruno@clisp.org>
33276
33277         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33278         so that there are no conversion errors on AIX.
33279         * tests/test-mbsrtowcs.c (main): LIkewise.
33280
33281 2008-12-20  Bruno Haible  <bruno@clisp.org>
33282
33283         Work around wctob bug on Solaris <= 9.
33284         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33285         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33287         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33288         * modules/wctob (Files): Add m4/locale-fr.m4.
33289         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33290
33291 2008-12-20  Bruno Haible  <bruno@clisp.org>
33292
33293         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33294         /dev/null.
33295         * tests/test-select-in.sh: Likewise.
33296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33297
33298 2008-12-20  Bruno Haible  <bruno@clisp.org>
33299
33300         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33301         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33302         Cygwin 1.5.x.
33303
33304 2008-12-20  Bruno Haible  <bruno@clisp.org>
33305
33306         Ensure mbstate_t is defined on HP-UX 11.11.
33307         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33308         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33309         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33310         AC_USE_SYSTEM_EXTENSIONS.
33311         * modules/fnmatch (Depends-on): Add extensions.
33312         * modules/mbrlen (Depends-on): Likewise.
33313         * modules/mbrtowc (Depends-on): Likewise.
33314         * modules/mbsinit (Depends-on): Likewise.
33315         * modules/mbsrtowcs (Depends-on): Likewise.
33316         * modules/mbswidth (Depends-on): Likewise.
33317         * modules/quotearg (Depends-on): Likewise.
33318         * modules/strftime (Depends-on): Likewise.
33319
33320 2008-12-20  Bruno Haible  <bruno@clisp.org>
33321
33322         Ensure wctob is declared on IRIX 6.5.
33323         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33324         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33325         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33327         of HAVE_WCTOB.
33328         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33329         HAVE_WCTOB.
33330         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33331
33332 2008-12-19  Bruno Haible  <bruno@clisp.org>
33333
33334         * modules/mbsrtowcs-tests: New file.
33335         * tests/test-mbsrtowcs1.sh: New file.
33336         * tests/test-mbsrtowcs2.sh: New file.
33337         * tests/test-mbsrtowcs3.sh: New file.
33338         * tests/test-mbsrtowcs4.sh: New file.
33339         * tests/test-mbsrtowcs.c: New file.
33340
33341         New module 'mbsrtowcs'.
33342         * lib/wchar.in.h (mbsrtowcs): New declaration.
33343         * lib/mbsrtowcs.c: New file.
33344         * m4/mbsrtowcs.m4: New file.
33345         * modules/mbsrtowcs: New file.
33346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33347         HAVE_MBSRTOWCS.
33348         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33349         HAVE_MBSRTOWCS.
33350         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33351
33352 2008-12-19  Bruno Haible  <bruno@clisp.org>
33353
33354         New module 'mbrlen'.
33355         * lib/wchar.in.h (mbrlen): New declaration.
33356         * lib/mbrlen.c: New file.
33357         * m4/mbrlen.m4: New file.
33358         * modules/mbrlen: New file.
33359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33360         HAVE_MBRLEN.
33361         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33362         HAVE_MBRLEN.
33363         * doc/posix-functions/mbrlen.texi: Document the new module.
33364
33365 2008-12-19  Bruno Haible  <bruno@clisp.org>
33366
33367         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33368         * modules/mbrtowc (Depends-on): Add verify.
33369         Suggested by Paul Eggert.
33370
33371 2008-12-18  Bruno Haible  <bruno@clisp.org>
33372
33373         * modules/mbsinit-tests: New file.
33374         * tests/test-mbsinit.sh: New file.
33375         * tests/test-mbsinit.c: New file.
33376
33377 2008-12-18  Bruno Haible  <bruno@clisp.org>
33378
33379         * modules/mbrtowc-tests: New file.
33380         * tests/test-mbrtowc1.sh: New file.
33381         * tests/test-mbrtowc2.sh: New file.
33382         * tests/test-mbrtowc3.sh: New file.
33383         * tests/test-mbrtowc4.sh: New file.
33384         * tests/test-mbrtowc.c: New file.
33385
33386         New module 'mbrtowc'.
33387         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33388         mbsinit and mbrtowc.
33389         (mbrtowc): New declaration.
33390         * lib/mbrtowc.c: New file.
33391         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33392         * modules/mbrtowc: New file.
33393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33394         HAVE_MBRTOWC.
33395         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33396         HAVE_MBRTOWC.
33397         * doc/posix-functions/mbrtowc.texi: Document the new module.
33398
33399 2008-12-18  Bruno Haible  <bruno@clisp.org>
33400
33401         New module 'wctob'.
33402         * lib/wchar.in.h (wctob): New declaration.
33403         * lib/wctob.c: New file.
33404         * m4/wctob.m4: New file.
33405         * modules/wctob: New file.
33406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33407         HAVE_WCTOB.
33408         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33409         * doc/posix-functions/wctob.texi: Document the new module.
33410
33411 2008-12-18  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33414         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33415
33416 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33417
33418         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33419         G. Christensen" <tgc@jupiterrise.com>.
33420
33421         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33422         G. Christensen" <tgc@jupiterrise.com>.
33423
33424         * lib/flock.c: Need to include string.h.  Reported by "Tom
33425         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33426         <ebb9@byu.net>.
33427
33428 2008-12-18  Bruno Haible  <bruno@clisp.org>
33429
33430         * m4/locale-ja.m4: New file, from GNU gettext.
33431
33432 2008-12-17  Bruno Haible  <bruno@clisp.org>
33433
33434         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33435         Suggested by Eric Blake.
33436
33437 2008-12-17  Bruno Haible  <bruno@clisp.org>
33438
33439         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33440
33441 2008-12-17  Bruno Haible  <bruno@clisp.org>
33442
33443         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33444         * modules/mbsinit (Depends-on): Add verify.
33445         Suggested by Paul Eggert.
33446
33447 2008-12-17  Bruno Haible  <bruno@clisp.org>
33448
33449         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33450         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33451         gl_FUNC_MBRTOWC.
33452         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33453         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33454         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33455         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33456         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33457         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33458         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33459         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33460         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33461         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33462         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33463         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33464         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33465         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33466         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33468         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33469         * modules/trim (configure.ac): Likewise.
33470
33471 2008-12-17  Bruno Haible  <bruno@clisp.org>
33472
33473         * modules/btowc-tests: New file.
33474         * tests/test-btowc1.sh: New file.
33475         * tests/test-btowc2.sh: New file.
33476         * tests/test-btowc.c: New file.
33477
33478         New module 'btowc'.
33479         * lib/wchar.in.h (btowc): New declaration.
33480         * lib/btowc.c: New file.
33481         * m4/btowc.m4: New file.
33482         * modules/btowc: New file.
33483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33484         HAVE_BTOWC.
33485         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33486         * doc/posix-functions/btowc.texi: Document the new module.
33487
33488 2008-12-17  Bruno Haible  <bruno@clisp.org>
33489
33490         New module 'mbsinit'.
33491         * lib/wchar.in.h (mbsinit): New declaration.
33492         * lib/mbsinit.c: New file.
33493         * m4/mbsinit.m4: New file.
33494         * modules/mbsinit: New file.
33495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33496         HAVE_MBSINIT.
33497         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33498         HAVE_MBSINIT.
33499         * doc/posix-functions/mbsinit.texi: Document the new module.
33500
33501 2008-12-16  Bruno Haible  <bruno@clisp.org>
33502
33503         * lib/unistd.in.h: Add comment.
33504         * tests/test-environ.c: Don't include <stdlib.h>.
33505
33506 2008-12-16  Bruno Haible  <bruno@clisp.org>
33507
33508         * lib/parse-duration.h (parse_duration): Document return value
33509         convention.
33510         * lib/parse-duration.c: Include specification header first. Add
33511         comments.
33512         (_): Remove macro.
33513         (parse_year_month_day, parse_hour_minute_second): Move side effects
33514         outside of strchr call.
33515         (parse_non_iso8601): Move side effects outside of isspace call.
33516         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33517         call.
33518
33519 2008-12-16  Bruno Haible  <bruno@clisp.org>
33520
33521         * tests/test-parse-duration.sh: Produce no output when the test
33522         succeeds.
33523
33524 2008-12-16  Bruno Haible  <bruno@clisp.org>
33525
33526         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33527         expressions.
33528
33529 2008-12-15  Bruno Haible  <bruno@clisp.org>
33530
33531         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33532         * doc/glibc-functions/flistxattr.texi: Likewise.
33533         * doc/glibc-functions/fopencookie.texi: Likewise.
33534         * doc/glibc-functions/fremovexattr.texi: Likewise.
33535         * doc/glibc-functions/fsetxattr.texi: Likewise.
33536         * doc/glibc-functions/getxattr.texi: Likewise.
33537         * doc/glibc-functions/lgetxattr.texi: Likewise.
33538         * doc/glibc-functions/listxattr.texi: Likewise.
33539         * doc/glibc-functions/llistxattr.texi: Likewise.
33540         * doc/glibc-functions/lremovexattr.texi: Likewise.
33541         * doc/glibc-functions/lsetxattr.texi: Likewise.
33542         * doc/glibc-functions/removexattr.texi: Likewise.
33543         * doc/glibc-functions/setxattr.texi: Likewise.
33544         * doc/posix-functions/open_memstream.texi: Likewise.
33545
33546 2008-12-15  Eric Blake  <ebb9@byu.net>
33547
33548         Update doc for cygwin 1.7.
33549         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33550         functions.
33551         * doc/posix-functions/fchmodat.texi: Likewise.
33552         * doc/posix-functions/fchownat.texi: Likewise.
33553         * doc/posix-functions/fdopendir.texi: Likewise.
33554         * doc/posix-functions/fmemopen.texi: Likewise.
33555         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33556         * doc/posix-functions/fstatat.texi: Likewise.
33557         * doc/posix-functions/futimens.texi: Likewise.
33558         * doc/posix-functions/gai_strerror.texi: Likewise.
33559         * doc/posix-functions/getaddrinfo.texi: Likewise.
33560         * doc/posix-functions/getnameinfo.texi: Likewise.
33561         * doc/posix-functions/if_freenameindex.texi: Likewise.
33562         * doc/posix-functions/if_indextoname.texi: Likewise.
33563         * doc/posix-functions/if_nameindex.texi: Likewise.
33564         * doc/posix-functions/if_nametoindex.texi: Likewise.
33565         * doc/posix-functions/insque.texi: Likewise.
33566         * doc/posix-functions/linkat.texi: Likewise.
33567         * doc/posix-functions/llrint.texi: Likewise.
33568         * doc/posix-functions/llrintf.texi: Likewise.
33569         * doc/posix-functions/llrintl.texi: Likewise.
33570         * doc/posix-functions/lockf.texi: Likewise.
33571         * doc/posix-functions/lrintl.texi: Likewise.
33572         * doc/posix-functions/mkdirat.texi: Likewise.
33573         * doc/posix-functions/mkfifoat.texi: Likewise.
33574         * doc/posix-functions/mknodat.texi: Likewise.
33575         * doc/posix-functions/mq_close.texi: Likewise.
33576         * doc/posix-functions/mq_getattr.texi: Likewise.
33577         * doc/posix-functions/mq_notify.texi: Likewise.
33578         * doc/posix-functions/mq_open.texi: Likewise.
33579         * doc/posix-functions/mq_receive.texi: Likewise.
33580         * doc/posix-functions/mq_send.texi: Likewise.
33581         * doc/posix-functions/mq_setattr.texi: Likewise.
33582         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33583         * doc/posix-functions/mq_timedsend.texi: Likewise.
33584         * doc/posix-functions/mq_unlink.texi: Likewise.
33585         * doc/posix-functions/open_memstream.texi: Likewise.
33586         * doc/posix-functions/openat.texi: Likewise.
33587         * doc/posix-functions/posix_fadvise.texi: Likewise.
33588         * doc/posix-functions/posix_fallocate.texi: Likewise.
33589         * doc/posix-functions/posix_madvise.texi: Likewise.
33590         * doc/posix-functions/posix_memalign.texi: Likewise.
33591         * doc/posix-functions/posix_openpt.texi: Likewise.
33592         * doc/posix-functions/readlinkat.texi: Likewise.
33593         * doc/posix-functions/remque.texi: Likewise.
33594         * doc/posix-functions/renameat.texi: Likewise.
33595         * doc/posix-functions/rintl.texi: Likewise.
33596         * doc/posix-functions/sem_unlink.texi: Likewise.
33597         * doc/posix-functions/shm_open.texi: Likewise.
33598         * doc/posix-functions/shm_unlink.texi: Likewise.
33599         * doc/posix-functions/signgam.texi: Likewise.
33600         * doc/posix-functions/sigset.texi: Likewise.
33601         * doc/posix-functions/stpcpy.texi: Likewise.
33602         * doc/posix-functions/stpncpy.texi: Likewise.
33603         * doc/posix-functions/strerror.texi: Likewise.
33604         * doc/posix-functions/strtod.texi: Likewise.
33605         * doc/posix-functions/symlinkat.texi: Likewise.
33606         * doc/posix-functions/unlinkat.texi: Likewise.
33607         * doc/posix-functions/utimensat.texi: Likewise.
33608         * doc/glibc-functions/bindresvport.texi: Likewise.
33609         * doc/glibc-functions/dn_expand.texi: Likewise.
33610         * doc/glibc-functions/exp10.texi: Likewise.
33611         * doc/glibc-functions/exp10f.texi: Likewise.
33612         * doc/glibc-functions/fgetxattr.texi: Likewise.
33613         * doc/glibc-functions/flistxattr.texi: Likewise.
33614         * doc/glibc-functions/fopencookie.texi: Likewise.
33615         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33616         * doc/glibc-functions/fremovexattr.texi: Likewise.
33617         * doc/glibc-functions/fsetxattr.texi: Likewise.
33618         * doc/glibc-functions/getifaddrs.texi: Likewise.
33619         * doc/glibc-functions/getxattr.texi: Likewise.
33620         * doc/glibc-functions/lgetxattr.texi: Likewise.
33621         * doc/glibc-functions/listxattr.texi: Likewise.
33622         * doc/glibc-functions/llistxattr.texi: Likewise.
33623         * doc/glibc-functions/lremovexattr.texi: Likewise.
33624         * doc/glibc-functions/lsetxattr.texi: Likewise.
33625         * doc/glibc-functions/pow10.texi: Likewise.
33626         * doc/glibc-functions/pow10f.texi: Likewise.
33627         * doc/glibc-functions/rcmd_af.texi: Likewise.
33628         * doc/glibc-functions/removexattr.texi: Likewise.
33629         * doc/glibc-functions/res_init.texi: Likewise.
33630         * doc/glibc-functions/res_mkquery.texi: Likewise.
33631         * doc/glibc-functions/res_query.texi: Likewise.
33632         * doc/glibc-functions/res_querydomain.texi: Likewise.
33633         * doc/glibc-functions/res_send.texi: Likewise.
33634         * doc/glibc-functions/rresvport_af.texi: Likewise.
33635         * doc/glibc-functions/setxattr.texi: Likewise.
33636         * doc/glibc-functions/strcasestr.texi: Likewise.
33637
33638 2008-12-15  Bruno Haible  <bruno@clisp.org>
33639
33640         Fix compilation error on OSF/1 4.0.
33641         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33642         <sys/time.h>, simply delegate to the system header.
33643         Reported by Daniel Richard G. <oss@teragram.com>.
33644
33645 2008-12-15  Bruno Haible  <bruno@clisp.org>
33646
33647         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33648         * doc/posix-functions/fchmodat.texi: Likewise.
33649         * doc/posix-functions/fchownat.texi: Likewise.
33650         * doc/posix-functions/fdopendir.texi: Likewise.
33651         * doc/posix-functions/fstatat.texi: Likewise.
33652         * doc/posix-functions/mkdirat.texi: Likewise.
33653         * doc/posix-functions/unlinkat.texi: Likewise.
33654
33655 2008-12-14  Bruno Haible  <bruno@clisp.org>
33656
33657         Update doc for POSIX:2008.
33658         * doc/posix-functions/faccessat.texi: New file.
33659         * doc/posix-functions/fchmodat.texi: New file.
33660         * doc/posix-functions/fchownat.texi: New file.
33661         * doc/posix-functions/fdopendir.texi: New file.
33662         * doc/posix-functions/fstatat.texi: New file.
33663         * doc/posix-functions/futimens.texi: New file.
33664         * doc/posix-functions/linkat.texi: New file.
33665         * doc/posix-functions/mkdirat.texi: New file.
33666         * doc/posix-functions/mkfifoat.texi: New file.
33667         * doc/posix-functions/mknodat.texi: New file.
33668         * doc/posix-functions/open_wmemstream.texi: New file.
33669         * doc/posix-functions/openat.texi: New file.
33670         * doc/posix-functions/psiginfo.texi: New file.
33671         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33672         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33673         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33674         * doc/posix-functions/readlinkat.texi: New file.
33675         * doc/posix-functions/renameat.texi: New file.
33676         * doc/posix-functions/strerror_l.texi: New file.
33677         * doc/posix-functions/symlinkat.texi: New file.
33678         * doc/posix-functions/unlinkat.texi: New file.
33679         * doc/posix-functions/utimensat.texi: New file.
33680         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33681
33682 2008-12-14  Bruno Haible  <bruno@clisp.org>
33683
33684         Update doc for POSIX:2008.
33685         * doc/posix-functions/alphasort.texi: Renamed from
33686         doc/glibc-functions/alphasort.texi.
33687         * doc/posix-functions/dirfd.texi: Renamed from
33688         doc/glibc-functions/dirfd.texi.
33689         * doc/posix-functions/dprintf.texi: Renamed from
33690         doc/glibc-functions/dprintf.texi.
33691         * doc/posix-functions/duplocale.texi: Renamed from
33692         doc/glibc-functions/duplocale.texi.
33693         * doc/posix-functions/fexecve.texi: Renamed from
33694         doc/glibc-functions/fexecve.texi.
33695         * doc/posix-functions/fmemopen.texi: Renamed from
33696         doc/glibc-functions/fmemopen.texi.
33697         * doc/posix-functions/freelocale.texi: Renamed from
33698         doc/glibc-functions/freelocale.texi.
33699         * doc/posix-functions/getdate_err.texi: Renamed from
33700         doc/glibc-functions/getdate_err.texi.
33701         * doc/posix-functions/isalnum_l.texi: Renamed from
33702         doc/glibc-functions/isalnum_l.texi.
33703         * doc/posix-functions/isalpha_l.texi: Renamed from
33704         doc/glibc-functions/isalpha_l.texi.
33705         * doc/posix-functions/isblank_l.texi: Renamed from
33706         doc/glibc-functions/isblank_l.texi.
33707         * doc/posix-functions/iscntrl_l.texi: Renamed from
33708         doc/glibc-functions/iscntrl_l.texi.
33709         * doc/posix-functions/isdigit_l.texi: Renamed from
33710         doc/glibc-functions/isdigit_l.texi.
33711         * doc/posix-functions/isgraph_l.texi: Renamed from
33712         doc/glibc-functions/isgraph_l.texi.
33713         * doc/posix-functions/islower_l.texi: Renamed from
33714         doc/glibc-functions/islower_l.texi.
33715         * doc/posix-functions/isprint_l.texi: Renamed from
33716         doc/glibc-functions/isprint_l.texi.
33717         * doc/posix-functions/ispunct_l.texi: Renamed from
33718         doc/glibc-functions/ispunct_l.texi.
33719         * doc/posix-functions/isspace_l.texi: Renamed from
33720         doc/glibc-functions/isspace_l.texi.
33721         * doc/posix-functions/isupper_l.texi: Renamed from
33722         doc/glibc-functions/isupper_l.texi.
33723         * doc/posix-functions/iswalnum_l.texi: Renamed from
33724         doc/glibc-functions/iswalnum_l.texi.
33725         * doc/posix-functions/iswalpha_l.texi: Renamed from
33726         doc/glibc-functions/iswalpha_l.texi.
33727         * doc/posix-functions/iswblank_l.texi: Renamed from
33728         doc/glibc-functions/iswblank_l.texi.
33729         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33730         doc/glibc-functions/iswcntrl_l.texi.
33731         * doc/posix-functions/iswctype_l.texi: Renamed from
33732         doc/glibc-functions/iswctype_l.texi.
33733         * doc/posix-functions/iswdigit_l.texi: Renamed from
33734         doc/glibc-functions/iswdigit_l.texi.
33735         * doc/posix-functions/iswgraph_l.texi: Renamed from
33736         doc/glibc-functions/iswgraph_l.texi.
33737         * doc/posix-functions/iswlower_l.texi: Renamed from
33738         doc/glibc-functions/iswlower_l.texi.
33739         * doc/posix-functions/iswprint_l.texi: Renamed from
33740         doc/glibc-functions/iswprint_l.texi.
33741         * doc/posix-functions/iswpunct_l.texi: Renamed from
33742         doc/glibc-functions/iswpunct_l.texi.
33743         * doc/posix-functions/iswspace_l.texi: Renamed from
33744         doc/glibc-functions/iswspace_l.texi.
33745         * doc/posix-functions/iswupper_l.texi: Renamed from
33746         doc/glibc-functions/iswupper_l.texi.
33747         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33748         doc/glibc-functions/iswxdigit_l.texi.
33749         * doc/posix-functions/isxdigit_l.texi: Renamed from
33750         doc/glibc-functions/isxdigit_l.texi.
33751         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33752         doc/glibc-functions/mbsnrtowcs.texi.
33753         * doc/posix-functions/mkdtemp.texi: Renamed from
33754         doc/glibc-functions/mkdtemp.texi.
33755         * doc/posix-functions/newlocale.texi: Renamed from
33756         doc/glibc-functions/newlocale.texi.
33757         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33758         doc/glibc-functions/nl_langinfo_l.texi.
33759         * doc/posix-functions/open_memstream.texi: Renamed from
33760         doc/glibc-functions/open_memstream.texi.
33761         * doc/posix-functions/opterr.texi: Renamed from
33762         doc/glibc-functions/opterr.texi.
33763         * doc/posix-functions/optind.texi: Renamed from
33764         doc/glibc-functions/optind.texi.
33765         * doc/posix-functions/optopt.texi: Renamed from
33766         doc/glibc-functions/optopt.texi.
33767         * doc/posix-functions/psignal.texi: Renamed from
33768         doc/glibc-functions/psignal.texi.
33769         * doc/posix-functions/scandir.texi: Renamed from
33770         doc/glibc-functions/scandir.texi.
33771         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33772         doc/glibc-functions/sched_get_priority_min.texi.
33773         * doc/posix-functions/signgam.texi: Renamed from
33774         doc/glibc-functions/signgam.texi.
33775         * doc/posix-functions/stpcpy.texi: Renamed from
33776         doc/glibc-functions/stpcpy.texi.
33777         * doc/posix-functions/stpncpy.texi: Renamed from
33778         doc/glibc-functions/stpncpy.texi.
33779         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33780         doc/glibc-functions/strcasecmp_l.texi.
33781         * doc/posix-functions/strcoll_l.texi: Renamed from
33782         doc/glibc-functions/strcoll_l.texi.
33783         * doc/posix-functions/strfmon_l.texi: Renamed from
33784         doc/glibc-functions/strfmon_l.texi.
33785         * doc/posix-functions/strftime_l.texi: Renamed from
33786         doc/glibc-functions/strftime_l.texi.
33787         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33788         doc/glibc-functions/strncasecmp_l.texi.
33789         * doc/posix-functions/strndup.texi: Renamed from
33790         doc/glibc-functions/strndup.texi.
33791         * doc/posix-functions/strnlen.texi: Renamed from
33792         doc/glibc-functions/strnlen.texi.
33793         * doc/posix-functions/strsignal.texi: Renamed from
33794         doc/glibc-functions/strsignal.texi.
33795         * doc/posix-functions/strxfrm_l.texi: Renamed from
33796         doc/glibc-functions/strxfrm_l.texi.
33797         * doc/posix-functions/timer_gettime.texi: Renamed from
33798         doc/glibc-functions/timer_gettime.texi.
33799         * doc/posix-functions/tolower_l.texi: Renamed from
33800         doc/glibc-functions/tolower_l.texi.
33801         * doc/posix-functions/toupper_l.texi: Renamed from
33802         doc/glibc-functions/toupper_l.texi.
33803         * doc/posix-functions/towctrans_l.texi: Renamed from
33804         doc/glibc-functions/towctrans_l.texi.
33805         * doc/posix-functions/towlower_l.texi: Renamed from
33806         doc/glibc-functions/towlower_l.texi.
33807         * doc/posix-functions/towupper_l.texi: Renamed from
33808         doc/glibc-functions/towupper_l.texi.
33809         * doc/posix-functions/uselocale.texi: Renamed from
33810         doc/glibc-functions/uselocale.texi.
33811         * doc/posix-functions/vdprintf.texi: Renamed from
33812         doc/glibc-functions/vdprintf.texi.
33813         * doc/posix-functions/wcpcpy.texi:
33814         Renamed from doc/glibc-functions/wcpcpy.texi.
33815         * doc/posix-functions/wcpncpy.texi: Renamed from
33816         doc/glibc-functions/wcpncpy.texi.
33817         * doc/posix-functions/wcscasecmp.texi: Renamed from
33818         doc/glibc-functions/wcscasecmp.texi.
33819         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33820         doc/glibc-functions/wcscasecmp_l.texi.
33821         * doc/posix-functions/wcscoll_l.texi: Renamed from
33822         doc/glibc-functions/wcscoll_l.texi.
33823         * doc/posix-functions/wcsdup.texi: Renamed from
33824         doc/glibc-functions/wcsdup.texi.
33825         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33826         doc/glibc-functions/wcsncasecmp.texi.
33827         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33828         doc/glibc-functions/wcsncasecmp_l.texi.
33829         * doc/posix-functions/wcsnlen.texi: Renamed from
33830         doc/glibc-functions/wcsnlen.texi.
33831         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33832         doc/glibc-functions/wcsnrtombs.texi.
33833         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33834         doc/glibc-functions/wcsxfrm_l.texi.
33835         * doc/posix-functions/wctrans_l.texi: Renamed from
33836         doc/glibc-functions/wctrans_l.texi.
33837         * doc/posix-functions/wctype_l.texi: Renamed from
33838         doc/glibc-functions/wctype_l.texi.
33839         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33840         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33841         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33842         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33843         these subsections.
33844         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33845         Remove sections.
33846
33847 2008-12-14  Bruno Haible  <bruno@clisp.org>
33848
33849         Update doc for POSIX:2008.
33850         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33851
33852 2008-12-14  Bruno Haible  <bruno@clisp.org>
33853
33854         Update doc for POSIX:2008.
33855         * doc/pastposix-functions/bcmp.texi: Renamed from
33856         doc/posix-functions/bcmp.texi.
33857         * doc/pastposix-functions/bcopy.texi: Renamed from
33858         doc/posix-functions/bcopy.texi.
33859         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33860         doc/posix-functions/bsd_signal.texi.
33861         * doc/pastposix-functions/bzero.texi: Renamed from
33862         doc/posix-functions/bzero.texi.
33863         * doc/pastposix-functions/ecvt.texi: Renamed from
33864         doc/posix-functions/ecvt.texi.
33865         * doc/pastposix-functions/fcvt.texi: Renamed from
33866         doc/posix-functions/fcvt.texi.
33867         * doc/pastposix-functions/ftime.texi: Renamed from
33868         doc/posix-functions/ftime.texi.
33869         * doc/pastposix-functions/gcvt.texi: Renamed from
33870         doc/posix-functions/gcvt.texi.
33871         * doc/pastposix-functions/getcontext.texi: Renamed from
33872         doc/posix-functions/getcontext.texi.
33873         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33874         doc/posix-functions/gethostbyaddr.texi.
33875         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33876         doc/posix-functions/gethostbyname.texi.
33877         * doc/pastposix-functions/getwd.texi: Renamed from
33878         doc/posix-functions/getwd.texi.
33879         * doc/pastposix-functions/h_errno.texi: Renamed from
33880         doc/posix-functions/h_errno.texi.
33881         * doc/pastposix-functions/index.texi: Renamed from
33882         doc/posix-functions/index.texi.
33883         * doc/pastposix-functions/makecontext.texi: Renamed from
33884         doc/posix-functions/makecontext.texi.
33885         * doc/pastposix-functions/mktemp.texi: Renamed from
33886         doc/posix-functions/mktemp.texi.
33887         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33888         doc/posix-functions/pthread_attr_getstackaddr.texi.
33889         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33890         doc/posix-functions/pthread_attr_setstackaddr.texi.
33891         * doc/pastposix-functions/rindex.texi: Renamed from
33892         doc/posix-functions/rindex.texi.
33893         * doc/pastposix-functions/scalb.texi: Renamed from
33894         doc/posix-functions/scalb.texi.
33895         * doc/pastposix-functions/setcontext.texi: Renamed from
33896         doc/posix-functions/setcontext.texi.
33897         * doc/pastposix-functions/swapcontext.texi: Renamed from
33898         doc/posix-functions/swapcontext.texi.
33899         * doc/pastposix-functions/ualarm.texi: Renamed from
33900         doc/posix-functions/ualarm.texi.
33901         * doc/pastposix-functions/usleep.texi: Renamed from
33902         doc/posix-functions/usleep.texi.
33903         * doc/pastposix-functions/vfork.texi: Renamed from
33904         doc/posix-functions/vfork.texi.
33905         * doc/pastposix-functions/wcswcs.texi: Renamed from
33906         doc/posix-functions/wcswcs.texi.
33907         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33908         (Function Substitutes): Update.
33909
33910 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33911
33912         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33913         m4/strerror.m4.
33914
33915 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33916             Bruno Haible  <bruno@clisp.org>
33917
33918         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33919
33920 2008-12-13  Bruno Haible  <bruno@clisp.org>
33921
33922         * modules/strtoull (Depends-on): Remove unistd.
33923
33924 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33925
33926         * modules/strtoull (Depends-on): Add stdlib.
33927
33928 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33929
33930         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33931
33932 2008-12-10  Jim Meyering  <meyering@redhat.com>
33933
33934         gl_ASSERT: don't say assertions are disabled when they're not
33935         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33936         "checking whether to enable assertions... no", when they are in
33937         fact enabled.  This is solely a bug in the output of configure.
33938         In spite of saying "no", NDEBUG was not defined in that case.
33939         Also, as noted by Eric Blake, leave assertions enabled upon
33940         --enable-assert=INVALID.
33941
33942 2008-12-10  Bruno Haible  <bruno@clisp.org>
33943
33944         Change MODULES.html to refer to POSIX:2008 where possible.
33945         * MODULES.html.sh (POSIX2008_URL): New variable.
33946         (posix_headers): Remove sys/timeb, ucontext.
33947         (posix2001_headers): New variable.
33948         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33949         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33950         index, makecontext, mktemp, pthread_attr_getstackaddr,
33951         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33952         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33953         (posix2001_functions): New variable.
33954         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33955         otherwise.
33956
33957 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33958
33959         add missing include to parse-duration.c
33960         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33961         * modules/parse-duration (Depends-on): Add xalloc.
33962
33963         fix sed script reading maint.mk
33964         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33965         (syntax-check-rules): Use it.
33966
33967 2008-12-09  Bruno Haible  <bruno@clisp.org>
33968
33969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33970         MacOS X 10.4/PowerPC.
33971         Reported by Simon Josefsson.
33972
33973 2008-12-08  Jim Meyering  <meyering@redhat.com>
33974
33975         work around mingw's lack of some S_IF definitions
33976         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33977         Reported by Simon Josefsson.
33978
33979 2008-12-08  Bruno Haible  <bruno@clisp.org>
33980
33981         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33982         applied to variables. Needed on MacOS X 10.4/PowerPC.
33983         Reported by Simon Josefsson.
33984
33985 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33986         and Eric Blake  <ebb9@byu.net>
33987
33988         assert: honor --enable-assert
33989         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33990         order to honor --enable-assert, rather than treating it as a
33991         synonym for --disable-assert.
33992
33993 2008-12-08  Jim Meyering  <meyering@redhat.com>
33994
33995         * lib/posixtm.c: Remove now-useless declaration of mktime.
33996
33997         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33998
33999 2008-12-07  Bruno Haible  <bruno@clisp.org>
34000
34001         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34002         test_once): Mark functions as static.
34003         * tests/test-tls.c (test_tls): Likewise.
34004
34005 2008-12-07  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34008         iconv_register_autodetect.
34009
34010 2008-12-07  Jim Meyering  <meyering@redhat.com>
34011
34012         posixtm.c: avoid a warning
34013         * lib/posixtm.c (posixtime): Don't initialize tm0.
34014         It's no longer needed to placate gcc4's -Wuninitialized,
34015         and the attempt to placate would elicit a new warning.
34016
34017         unicodeio.c: mark unused parameters
34018         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34019         (fallback_failure_callback): Likewise.
34020
34021 2008-12-07  Bruno Haible  <bruno@clisp.org>
34022
34023         * gnulib-tool (func_create_testdir): When building the tests
34024         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34025         Reported by Simon Josefsson.
34026
34027 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34028
34029         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34030
34031 2008-12-06  Bruno Haible  <bruno@clisp.org>
34032
34033         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34034         Suggested by Eric Blake.
34035
34036 2008-12-06  Bruno Haible  <bruno@clisp.org>
34037
34038         Fix a c-stack test failure on MacOS X.
34039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34040         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34041         handler for SIGBUS as well.
34042         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34043         install a signal handler for SIGBUS as well.
34044         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34045
34046 2008-12-06  Bruno Haible  <bruno@clisp.org>
34047
34048         Advocacy documentation.
34049         * doc/gnulib-intro.texi (Benefits): New section.
34050         * doc/gnulib.texi: Update.
34051
34052 2008-12-06  Bruno Haible  <bruno@clisp.org>
34053
34054         Document the 'manywarnings' module.
34055         * doc/manywarnings.texi: New file.
34056         * doc/gnulib.texi: Include it.
34057
34058 2008-12-05  Eric Blake  <ebb9@byu.net>
34059
34060         tests: silence some gcc warnings
34061         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34062         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34063         type mismatches.
34064
34065 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34066             Bruno Haible  <bruno@clisp.org>
34067
34068         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34069
34070 2008-11-29  Jim Meyering  <meyering@redhat.com>
34071
34072         unicodeio.c: mark unused parameters
34073         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34074         (fallback_failure_callback): Likewise.
34075
34076         fts: fix a thinko
34077         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34078         (set_stat_type): Return S_IF*-valued "type" directly.
34079         Prompted by James Youngman's spotting a related bug.
34080         Confirmed by further testing through find.
34081
34082         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34083         * lib/fts.c (D_TYPE): Define.
34084         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34085         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34086         (s_ifmt_shift_bits): New function.
34087         (set_stat_type): New function.
34088         (fts_build): When not calling fts_stat, call set_stat_type
34089         to propagate dirent.d_type info to fts_read caller.
34090         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34091         fts_statp->st_mode type information may be valid.
34092
34093 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34094
34095         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34096         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34097         <sds@gnu.org>.
34098
34099 2008-11-20  Bruno Haible  <bruno@clisp.org>
34100
34101         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34102         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34103         INCLUDE_NEXT.
34104         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34105         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34106         * modules/math (Makefile.am): Substitute
34107         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34108         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34109
34110 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34111             Bruno Haible  <bruno@clisp.org>
34112
34113         * lib/stdint.in.h: Define all type macros so that their expansion is
34114         a single typedef'ed token. Fixes a compilation failure in Boost which
34115         does "using ::int8_t;".
34116
34117 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34118
34119         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34120         gl_MANYWARN_ALL_GCC.
34121         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34122         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34123         * modules/manywarnings: New file.
34124         * MODULES.html.sh: Mention manywarnings module.
34125
34126 2008-11-18  Bruno Haible  <bruno@clisp.org>
34127
34128         * doc/gnulib-tool.texi (Unit tests): New section.
34129
34130 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34131
34132         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34133         paths like 'lib/po/foo.po'.
34134
34135 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34136
34137         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34138         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34139
34140 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34141
34142         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34143         parameter works.
34144
34145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34146
34147         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34148
34149 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34150
34151         * modules/parse-duration-tests: New file.
34152         * tests/test-parse-duration.sh: New file.
34153         * tests/test-parse-duration.c: New file.
34154
34155         New module 'parse-duration'.
34156         * lib/parse-duration.h: New file.
34157         * lib/parse-duration.c: New file.
34158         * modules/parse-duration: New file.
34159
34160 2008-11-17  Bruno Haible  <bruno@clisp.org>
34161
34162         * tests/test-select-out.sh: Comment out the first pipe test.
34163         Reported by Simon Josefsson.
34164
34165 2008-11-17  Bruno Haible  <bruno@clisp.org>
34166
34167         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34169         gl_HOSTENT.
34170
34171 2008-11-17  Bruno Haible  <bruno@clisp.org>
34172
34173         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34174         -lnetwork and -lnet. Needed for Haiku and BeOS.
34175
34176 2008-11-16  Bruno Haible  <bruno@clisp.org>
34177
34178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34179
34180 2008-11-16  Bruno Haible  <bruno@clisp.org>
34181
34182         Avoid test failure on Haiku.
34183         * tests/test-fsync.c: Include <errno.h>.
34184         (main): Don't require that fsync (0) fails.
34185
34186 2008-11-15  Bruno Haible  <bruno@clisp.org>
34187
34188         New module 'hostent'.
34189         * modules/hostent: New file.
34190         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34191
34192 2008-11-15  Bruno Haible  <bruno@clisp.org>
34193
34194         New module 'servent'.
34195         * modules/servent: New file.
34196         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34197
34198 2008-11-15  Bruno Haible  <bruno@clisp.org>
34199
34200         Avoid generating same test program with two different rules.
34201         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34202         test-frexp to test-frexp-nolibm.
34203         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34204         test-frexpl to test-frexpl-nolibm.
34205
34206 2008-11-15  Bruno Haible  <bruno@clisp.org>
34207
34208         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34209         $(FREXPL_LIBM).
34210
34211 2008-11-15  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/netdb.in.h: Activate the definitions also when the system's
34214         <netdb.h> has 'struct addrinfo'.
34215         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34216         EAI_OVERFLOW or AI_NUMERICSERV.
34217         * doc/posix-headers/netdb.texi: Document the problem.
34218
34219 2008-11-15  Bruno Haible  <bruno@clisp.org>
34220
34221         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34222
34223         Make the 'sched' module work on platforms where <sched.h> exists but
34224         is incomplete (such as Haiku).
34225         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34226         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34227         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34228         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34229         HAVE_STRUCT_SCHED_PARAM.
34230         * modules/sched (Depends-on): Add include_next.
34231         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34232         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34233         * doc/posix-headers/sched.texi: Document the issue.
34234
34235 2008-11-13  Jim Meyering  <meyering@redhat.com>
34236
34237         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34238         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34239         test would fail due to the difference in the Report bugs to ...
34240         line.  The expected address is empty, "<>", while the actual
34241         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34242
34243 2008-11-12  Bruno Haible  <bruno@clisp.org>
34244
34245         lstat: don't compile lstat.c on systems lacking lstat
34246         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34247         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34248         Reported by Daniel P. Berrange via Jim Meyering.
34249
34250 2008-11-12  Jim Meyering  <meyering@redhat.com>
34251
34252         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34253
34254 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34255
34256         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34257         instead.
34258
34259 2008-11-12  Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/unicodeio.c: Include unistr.h.
34262         (utf8_wctomb): Remove function.
34263         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34264
34265 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34266
34267         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34268         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34269         <bruno@clisp.org>.
34270         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34271
34272 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34273
34274         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34275         * doc/gnulib.texi: Add section for warnings.
34276
34277 2008-11-11  Bruno Haible  <bruno@clisp.org>
34278
34279         * lib/sockets.h: Add a comment.
34280
34281 2008-11-11  Karl Berry  <karl@gnu.org>
34282
34283         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34284
34285 2008-11-11  Eric Blake  <ebb9@byu.net>
34286
34287         fdl.texi: avoid git symlinks
34288         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34289
34290 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34291
34292         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34293
34294 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34295
34296         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34297         (gl_WARN_ADD): Substitute $2 if literal.
34298
34299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34300
34301         * m4/warning.m4: Remove.
34302
34303 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34304
34305         * m4/warnings.m4: Almost complete rewrite. :-)
34306
34307 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34308
34309         * modules/warnings: New module.
34310         * m4/warnings.m4: New file.
34311         * MODULES.html.sh: Mention warnings module.
34312         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34313         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34314
34315 2008-11-10  Eric Blake  <ebb9@byu.net>
34316
34317         fdl.texi: make a symlink to the latest version
34318         * doc/standards.texi: Revert today's earlier change.
34319         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34320         * doc/fdl.texi: ...and replace this with a symlink to the newer
34321         fdl-1.3.texi.
34322
34323 2008-11-10  Bruno Haible  <bruno@clisp.org>
34324
34325         * tests/test-select-fd.c (main): Accept the result file name as fourth
34326         argument.
34327         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34328         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34329
34330 2008-11-10  Bruno Haible  <bruno@clisp.org>
34331
34332         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34333         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34334         as autoconf-substituted macros.
34335         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34337         gl_NETDB_H_DEFAULTS. Set these variables.
34338         * modules/netdb (Makefile.am): Substitute these variables.
34339
34340 2008-11-10  Eric Blake  <ebb9@byu.net>
34341
34342         standards.texi: include correct file for FDL 1.3
34343         * doc/standards.texi (GNU Free Documentation License): Change
34344         include file to pull in FDL 1.3, not 1.2.
34345
34346         fdl.texi: revert accidental change to license
34347         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34348
34349 2008-11-10  Bruno Haible  <bruno@clisp.org>
34350
34351         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34352         cross-compiling guesses also when the native compile gives no result.
34353
34354 2008-11-10  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/spawni.c (__spawni): Force variable into the stack.
34357
34358 2008-11-10  Bruno Haible  <bruno@clisp.org>
34359
34360         Add support for Haiku.
34361         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34362         glibc and BeOS, but also on Haiku.
34363         * lib/fpurge.c (fpurge): Likewise.
34364         * lib/freadable.c (freadable): Likewise.
34365         * lib/freadahead.c (freadahead): Likewise.
34366         * lib/freading.c (freading): Likewise.
34367         * lib/freadptr.c (freadptr): Likewise.
34368         * lib/freadseek.c (freadptrinc): Likewise.
34369         * lib/fseeko.c (rpl_fseeko): Likewise.
34370         * lib/fseterr.c (fseterr): Likewise.
34371         * lib/fwritable.c (fwritable): Likewise.
34372         * lib/fwriting.c (fwriting): Likewise.
34373         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34374
34375 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34376
34377         * lib/config.charset: Treat Haiku like BeOS.
34378
34379 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34380
34381         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34382         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34383
34384 2008-11-08  Bruno Haible  <bruno@clisp.org>
34385
34386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34387         AC_CACHE_CHECK.
34388
34389 2008-11-08  Bruno Haible  <bruno@clisp.org>
34390
34391         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34392
34393 2008-11-08  Bruno Haible  <bruno@clisp.org>
34394
34395         * tests/test-select-fd.c: New file.
34396         * tests/test-select-in.sh: New file.
34397         * tests/test-select-out.sh: New file.
34398         * tests/test-select-stdin.c: New file.
34399         * modules/select-tests (Files): Add the new files.
34400         (Depends-on): Add gettimeofday.
34401         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34402         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34403         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34404
34405 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34406             Bruno Haible  <bruno@clisp.org>
34407
34408         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34409
34410 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34411
34412         * build-aux/pmccabe2html: Added support for C++ source files.
34413
34414 2008-11-05  Ben Pfaff  <blp@gnu.org>
34415
34416         Fix lib/close.c build on Windows.
34417         * modules/close (Files): Add lib/w32sock.h.
34418
34419 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34420
34421         Accept Bison's NEWS format.
34422         * build-aux/announce-gen (print_news_deltas): Tweak
34423         $re_prefix.
34424
34425 2008-11-04  Bruno Haible  <bruno@clisp.org>
34426
34427         * modules/random_r (Maintainer): Add glibc.
34428
34429 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34430
34431         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34432         by karl@freefriends.org (Karl Berry).
34433         * doc/alloca.texi: Likewise.
34434         * doc/c-ctype.texi: Likewise.
34435         * doc/c-strcase.texi: Likewise.
34436         * doc/c-strcaseeq.texi: Likewise.
34437         * doc/c-strcasestr.texi: Likewise.
34438         * doc/c-strstr.texi: Likewise.
34439         * doc/c-strtod.texi: Likewise.
34440         * doc/c-strtold.texi: Likewise.
34441         * doc/ctime.texi: Likewise.
34442         * doc/error.texi: Likewise.
34443         * doc/fdl.texi: Likewise.
34444         * doc/gcd.texi: Likewise.
34445         * doc/getdate.texi: Likewise.
34446         * doc/gnulib-intro.texi: Likewise.
34447         * doc/gnulib-tool.texi: Likewise.
34448         * doc/gnulib.texi: Likewise.
34449         * doc/inet_ntoa.texi: Likewise.
34450         * doc/maintain.texi: Likewise.
34451         * doc/make-stds.texi: Likewise.
34452         * doc/quote.texi: Likewise.
34453         * doc/regexprops-generic.texi: Likewise.
34454         * doc/standards.texi: Likewise.
34455         * doc/verify.texi: Likewise.
34456         * doc/visibility.texi: Likewise.
34457         * doc/gnulib.texi (GNU Free Documentation License): Include
34458         fdl-1.3.texi instead of fdl.texi.
34459
34460 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34461
34462         * doc/fdl-1.3.texi: New file, from
34463         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34464         * modules/fdl-1.3: Add.
34465         * MODULES.html.sh: Add fdl-1.3.
34466
34467 2008-11-03  Bruno Haible  <bruno@clisp.org>
34468
34469         Make determination of absolute name of header file work with AIX xlc.
34470         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34471         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34472         preprocessing.
34473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34474         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34475
34476 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34477
34478         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34479         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34480         <ludo@gnu.org>.
34481
34482 2008-11-02  Bruno Haible  <bruno@clisp.org>
34483
34484         Mark 'strpbrk' obsolete.
34485         * modules/strpbrk (Status, Notice): New sections.
34486         * modules/strtok_r (Depends-on): Add strpbrk.
34487
34488 2008-11-02  Bruno Haible  <bruno@clisp.org>
34489
34490         Mark 'strdup' obsolete.
34491         * modules/strdup (Status, Notice): New sections.
34492         * modules/findprog (Depends-on): Add strdup.
34493         * modules/getaddrinfo (Depends-on): Likewise.
34494         * modules/localename (Depends-on): Likewise.
34495         * modules/relocatable-lib (Depends-on): Likewise.
34496         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34497         * modules/relocatable-prog (Depends-on): Likewise.
34498         * modules/trim (Depends-on): Likewise.
34499         * modules/unictype/gen-ctype (Depends-on): Likewise.
34500         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34501
34502 2008-11-02  Bruno Haible  <bruno@clisp.org>
34503
34504         Mark 'strcspn' obsolete.
34505         * modules/strcspn (Status, Notice): New sections.
34506
34507 2008-11-02  Bruno Haible  <bruno@clisp.org>
34508
34509         Mark 'rmdir' obsolete.
34510         * modules/rmdir (Status, Notice): New sections.
34511         * modules/clean-temp (Depends-on): Add rmdir.
34512         * modules/openat (Depends-on): Likewise.
34513
34514 2008-11-02  Bruno Haible  <bruno@clisp.org>
34515
34516         Mark 'raise' obsolete.
34517         * modules/raise (Status, Notice): New sections.
34518         (Include): Specify <signal.h>.
34519         * modules/stdio (Depends-on): Add raise.
34520         * modules/write (Depends-on): Likewise.
34521
34522 2008-11-02  Bruno Haible  <bruno@clisp.org>
34523
34524         Mark 'memset' obsolete.
34525         * modules/memset (Status, Notice): New sections.
34526
34527 2008-11-02  Bruno Haible  <bruno@clisp.org>
34528
34529         Mark 'memmove' obsolete.
34530         * modules/memmove (Status, Notice): New sections.
34531         * modules/argp (Depends-on): Add memmove.
34532         * modules/argz (Depends-on): Likewise.
34533         * modules/canonicalize (Depends-on): Likewise.
34534         * modules/canonicalize-lgpl (Depends-on): Likewise.
34535         * modules/fts (Depends-on): Likewise.
34536         * modules/getcwd (Depends-on): Likewise.
34537         * modules/human (Depends-on): Likewise.
34538         * modules/regex (Depends-on): Likewise.
34539         * modules/striconveh (Depends-on): Likewise.
34540         * modules/trim (Depends-on): Likewise.
34541         * modules/unistr/u8-move (Depends-on): Likewise.
34542         * modules/unistr/u16-move (Depends-on): Likewise.
34543         * modules/unistr/u32-move (Depends-on): Likewise.
34544
34545 2008-11-02  Bruno Haible  <bruno@clisp.org>
34546
34547         Mark 'memcpy' obsolete.
34548         * modules/memcpy (Status, Notice): New sections.
34549
34550 2008-11-02  Bruno Haible  <bruno@clisp.org>
34551
34552         Mark 'memcmp' obsolete.
34553         * modules/memcmp (Status, Notice): New sections.
34554         * modules/argmatch (Depends-on): Add memchr.
34555         * modules/backupfile (Depends-on): Likewise.
34556         * modules/c-strcasestr (Depends-on): Likewise.
34557         * modules/crypto/des (Depends-on): Likewise.
34558         * modules/csharpcomp (Depends-on): Likewise.
34559         * modules/fnmatch (Depends-on): Likewise.
34560         * modules/git-merge-changelog (Depends-on): Likewise.
34561         * modules/isnand (Depends-on): Likewise.
34562         * modules/isnand-nolibm (Depends-on): Likewise.
34563         * modules/isnanf (Depends-on): Likewise.
34564         * modules/isnanf-nolibm (Depends-on): Likewise.
34565         * modules/isnanl (Depends-on): Likewise.
34566         * modules/isnanl-nolibm (Depends-on): Likewise.
34567         * modules/mbchar (Depends-on): Likewise.
34568         * modules/memcoll (Depends-on): Likewise.
34569         * modules/quotearg (Depends-on): Likewise.
34570         * modules/regex (Depends-on): Likewise.
34571         * modules/relocatable-prog (Depends-on): Likewise.
34572         * modules/same (Depends-on): Likewise.
34573         * modules/signbit (Depends-on): Likewise.
34574         * modules/strcasestr-simple (Depends-on): Likewise.
34575         * modules/unictype/gen-ctype (Depends-on): Likewise.
34576         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34577         * modules/uniname/uniname (Depends-on): Likewise.
34578         * modules/unistr/u8-cmp (Depends-on): Likewise.
34579
34580 2008-11-02  Bruno Haible  <bruno@clisp.org>
34581
34582         Mark 'memchr' obsolete.
34583         * modules/memchr (Status, Notice): New sections.
34584         * modules/argp (Depends-on): Add memchr.
34585         * modules/base64 (Depends-on): Likewise.
34586         * modules/c-strcasestr (Depends-on): Likewise.
34587         * modules/chdir-long (Depends-on): Likewise.
34588         * modules/fnmatch (Depends-on): Likewise.
34589         * modules/getsubopt (Depends-on): Likewise.
34590         * modules/git-merge-changelog (Depends-on): Likewise.
34591         * modules/glob (Depends-on): Likewise.
34592         * modules/strcasestr-simple (Depends-on): Likewise.
34593         * modules/strnlen (Depends-on): Likewise.
34594
34595 2008-11-02  Bruno Haible  <bruno@clisp.org>
34596
34597         Mark 'atexit' obsolete.
34598         * modules/atexit (Status, Notice): New sections.
34599         * modules/chdir-long (Depends-on): Add atexit.
34600         * modules/wait-process (Depends-on): Likewise.
34601
34602 2008-11-02  Bruno Haible  <bruno@clisp.org>
34603
34604         * gnulib-tool: New option --with-obsolete.
34605         (func_usage): Document it.
34606         (func_modules_transitive_closure): Drop obsolete dependencies if
34607         incobsolete is not true.
34608         (func_import): Read and save the incobsolete variable to the cache.
34609
34610 2008-11-02  Bruno Haible  <bruno@clisp.org>
34611
34612         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34613         * gnulib-tool: New option --extract-status.
34614         (func_usage): Document it.
34615         (sed_extract_prog): Recognize it.
34616         (func_get_status): New function.
34617
34618 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34619
34620         * modules/sockets (License): Change from LGPL to LGPLv2+.
34621
34622 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34623
34624         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34625
34626 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34627
34628         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34629         Mention times and sys_times.
34630         * modules/sys_times, modules/sys_times-tests: New modules.
34631         * modules/times, modules/times-tests: Likewise
34632         * m4/sys_times_h.m4: New file.
34633         * lib/sys_times.in.h: Likewise
34634         * lib/times.c: Likewise.
34635         * tests/test-sys_times.c: Likewise.
34636         * tests/test-times.c: Likewise.
34637         * doc/posix-headers/sys_times.texi: Update.
34638         * doc/posix-functions/times.texi: Update.
34639
34640 2008-10-28  Jim Meyering  <meyering@redhat.com>
34641
34642         * modules/tempname (Depends-on): Add lstat.
34643
34644         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34645
34646 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34647
34648         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34649         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34650         using idiom used elsewhere in gnulib.
34651
34652 2008-10-27  Jim Meyering  <meyering@redhat.com>
34653
34654         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34655
34656 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34657
34658         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34659         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34660         programs.
34661         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34662
34663 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34664
34665         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34666
34667 2008-10-27  Bruno Haible  <bruno@clisp.org>
34668
34669         * tests/test-lstat.c: Include <stdio.h>.
34670
34671 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34672
34673         * modules/lstat-tests: New module.
34674         * tests/test-lstat.c: New file.
34675
34676 2008-10-26  Jim Meyering  <meyering@redhat.com>
34677
34678         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34679
34680 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34681             Bruno Haible  <bruno@clisp.org>
34682
34683         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34684         * modules/configmake (Include): Add a note that the include must come
34685         after all system headers.
34686         * lib/javaversion.c: Include configmake.h after all other includes.
34687
34688 2008-10-26  Bruno Haible  <bruno@clisp.org>
34689
34690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34691         HAVE_STRUCT_RANDOM_DATA to 1.
34692         (gl_STDLIB_H): Simplify.
34693
34694 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34695
34696         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34697         substitute HAVE_STRUCT_RANDOM_DATA.
34698         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34699         random_data.
34700         * modules/stdlib (Makefile.am): Substitute
34701         HAVE_STRUCT_RANDOM_DATA.
34702
34703 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34704
34705         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34706         * doc/gnulib-intro.texi (Copyright): Likewise.
34707
34708 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34709
34710         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34711         findings.
34712
34713 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34714             Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/unistd.in.h: Include <winsock2.h>.
34717         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34718         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34719         Provide dummy declarations.
34720         (gethostname): Override.
34721         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34722         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34723         gl_PREREQ_SYS_H_WINSOCK2.
34724         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34725         * doc/posix-functions/gethostname.texi: More details.
34726
34727 2008-10-25  Bruno Haible  <bruno@clisp.org>
34728
34729         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34730         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34731         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34732
34733         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34734         here ...
34735         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34736         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34737         gl_UNISTD_H_DEFAULTS.
34738
34739 2008-10-25  Eric Blake  <ebb9@byu.net>
34740
34741         signbit: avoid spurious compiler failure
34742         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34743         declarations inside function.
34744
34745 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34746             Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34749         * modules/random_r (Depends-on): Add stdint.
34750
34751 2008-10-24  Bruno Haible  <bruno@clisp.org>
34752
34753         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34754         Eggert.
34755         * modules/strerror (License): Likewise.
34756
34757 2008-10-24  Jim Meyering  <meyering@redhat.com>
34758
34759         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34760         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34761
34762 2008-10-24  Eric Blake  <ebb9@byu.net>
34763
34764         getgroups: fix compilation when getgroups is available
34765         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34766         but with <config.h> override of getgroups disabled.
34767
34768 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34769
34770         * doc/gnulib.texi (Header files): Add note about C++ problems.
34771         Explained by Bruno Haible <bruno@clisp.org>.
34772
34773 2008-10-23  Bruno Haible  <bruno@clisp.org>
34774
34775         Define a dummy SA_NODEFER macro on Interix.
34776         * lib/signal.in.h (SA_NODEFER): Define fallback.
34777         Reported by Aleksey Cheusov <cheusov@tut.by> via
34778         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34779
34780 2008-10-23  Bruno Haible  <bruno@clisp.org>
34781
34782         * modules/freadahead (License): Change to LGPLv2+.
34783         Suggested by Simon Josefsson.
34784
34785 2008-10-23  Jim Meyering  <meyering@redhat.com>
34786
34787         random_r: new module
34788         * modules/random_r: New file.
34789         * m4/random_r.m4: New file.
34790         * lib/random_r.c: New file, from glibc.
34791         * modules/random_r-tests: New file.
34792         * tests/test-random_r.c: New file.
34793         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34794          Declare.
34795         (RAND_MAX): Define.
34796         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34797         * modules/stdlib: Substitute them, too.
34798         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34799         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34800         * doc/glibc-functions/random_r.texi: Likewise.
34801         * doc/glibc-functions/setstate_r.texi: Likewise.
34802         * doc/glibc-functions/srandom_r.texi: Likewise.
34803         * config/srclist.txt: Mention it.
34804
34805 2008-10-23  David Lutterkort  <lutter@redhat.com>
34806
34807         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34808         link requirement
34809
34810 2008-10-23  Jim Meyering  <meyering@redhat.com>
34811
34812         selinux-h: mark parameters of stub functions as intentionally unused
34813         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34814         * lib/se-context.in.h: Likewise.
34815
34816 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34817
34818         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34819
34820 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34821
34822         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34823
34824 2008-10-22  Eric Blake  <ebb9@byu.net>
34825
34826         glthread/thread: avoid compiler warning
34827         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34828         Add unreachable abort to silence compiler.
34829
34830 2008-10-22  Eric Blake  <ebb9@byu.net>
34831
34832         netdb: also supply struct addrinfo for cygwin 1.5.x
34833         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34834         older cygwin.
34835         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34836         cygwin.
34837         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34838
34839 2008-10-22  Bruno Haible  <bruno@clisp.org>
34840
34841         * users.txt: Update entry about pspp.
34842
34843 2008-10-21  Bruno Haible  <bruno@clisp.org>
34844
34845         Simplification.
34846         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34847         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34848
34849         Simplification.
34850         * lib/ioctl.c (ioctl): Don't undefine.
34851         * lib/socket.c (socket): Don't undefine.
34852
34853         Remove unused module indicator macros.
34854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34855         GNULIB_$1 as a C macro.
34856
34857         * doc/posix-functions/close.texi: Undo last change.
34858         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34859         Windows platforms.
34860
34861 2008-10-21  Bruno Haible  <bruno@clisp.org>
34862
34863         Add gethostname() declaration to <unistd.h>.
34864         * lib/unistd.in.h (gethostname): New declaration.
34865         * lib/gethostname.c: Include <unistd.h>.
34866         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34867         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34869         and HAVE_GETHOSTNAME.
34870         * modules/gethostname (Depends-on): Add unistd.
34871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34872         (Include): Specify <unistd.h>.
34873         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34874         HAVE_GETHOSTNAME.
34875         * tests/test-gethostname.c: Include <unistd.h> first.
34876
34877 2008-10-21  Bruno Haible  <bruno@clisp.org>
34878
34879         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34880         * modules/select-tests (Depends-on): Likewise.
34881         Reported by Simon Josefsson.
34882
34883 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34884
34885         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34886         * lib/accept.c: New file, based on winsock.c.
34887         * lib/bind.c: New file, based on winsock.c.
34888         * lib/connect.c: New file, based on winsock.c.
34889         * lib/getpeername.c: New file, based on winsock.c.
34890         * lib/getsockname.c: New file, based on winsock.c.
34891         * lib/getsockopt.c: New file, based on winsock.c.
34892         * lib/ioctl.c: New file, based on winsock.c.
34893         * lib/listen.c: New file, based on winsock.c.
34894         * lib/recv.c: New file, based on winsock.c.
34895         * lib/recvfrom.c: New file, based on winsock.c.
34896         * lib/send.c: New file, based on winsock.c.
34897         * lib/sendto.c: New file, based on winsock.c.
34898         * lib/setsockopt.c: New file, based on winsock.c.
34899         * lib/shutdown.c: New file, based on winsock.c.
34900         * lib/socket.c: New file, based on winsock.c.
34901         * lib/w32sock.h: New file, based on winsock.c.
34902         * lib/winsock.c: Remove file.
34903         * modules/accept: Likewise.
34904         * modules/bind: Likewise.
34905         * modules/connect: Likewise.
34906         * modules/getpeername: Likewise.
34907         * modules/getsockname: Likewise.
34908         * modules/getsockopt: Likewise.
34909         * modules/ioctl: Likewise.
34910         * modules/listen: Likewise.
34911         * modules/recv: Likewise.
34912         * modules/recvfrom: Likewise.
34913         * modules/send: Likewise.
34914         * modules/sendto: Likewise.
34915         * modules/setsockopt: Likewise.
34916         * modules/shutdown: Likewise.
34917         * modules/socket: Use socket.c instead of winsock.c.
34918         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34919         * doc/posix-functions/accept.texi: Doc fix.
34920         * doc/posix-functions/bind.texi: Doc fix.
34921         * doc/posix-functions/close.texi: Doc fix.
34922         * doc/posix-functions/connect.texi: Doc fix.
34923         * doc/posix-functions/getpeername.texi: Doc fix.
34924         * doc/posix-functions/getsockname.texi: Doc fix.
34925         * doc/posix-functions/getsockopt.texi: Doc fix.
34926         * doc/posix-functions/ioctl.texi: Doc fix.
34927         * doc/posix-functions/listen.texi: Doc fix.
34928         * doc/posix-functions/recv.texi: Doc fix.
34929         * doc/posix-functions/recvfrom.texi: Doc fix.
34930         * doc/posix-functions/send.texi: Doc fix.
34931         * doc/posix-functions/sendto.texi: Doc fix.
34932         * doc/posix-functions/setsockopt.texi: Doc fix.
34933         * doc/posix-functions/shutdown.texi: Doc fix.
34934         * doc/posix-functions/socket.texi: Doc fix.
34935
34936 2008-10-20  Bruno Haible  <bruno@clisp.org>
34937
34938         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34939         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34940         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34941         as an alias for SIGABRT.
34942         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34943         (sigaction): Map it to SIGABRT.
34944         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34945
34946 2008-10-20  Bruno Haible  <bruno@clisp.org>
34947
34948         * lib/fts.c: Don't include lstat.h.
34949         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34950
34951         Move the lstat() declaration to <sys/stat.h>.
34952         * lib/lstat.h: Remove file.
34953         * lib/sys_stat.in.h: Add special invocation convention.
34954         (lstat): New declaration.
34955         * lib/lstat.c (orig_lstat): New function.
34956         (rpl_lstat): Use orig_lstat instead of lstat.
34957         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34958         AC_C_INLINE. Set REPLACE_LSTAT.
34959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34960         and REPLACE_LSTAT.
34961         * modules/lstat (Files): Remove lib/lstat.h.
34962         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34963         (Include): Specify <sys/stat.h> instead of lstat.h.
34964         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34965         REPLACE_LSTAT.
34966         * NEWS: Mention the change.
34967
34968 2008-10-20  Bruno Haible  <bruno@clisp.org>
34969
34970         * modules/posix_spawn-tests: New file.
34971         * tests/test-posix_spawn3.c: New file.
34972
34973 2008-10-20  Bruno Haible  <bruno@clisp.org>
34974
34975         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34976         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34977         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34978         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34979         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34980
34981 2008-10-20  Bruno Haible  <bruno@clisp.org>
34982
34983         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34984         of posix_spawn on AIX 5.3.
34985
34986 2008-10-20  Bruno Haible  <bruno@clisp.org>
34987
34988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34989
34990 2008-10-20  Bruno Haible  <bruno@clisp.org>
34991
34992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34993         of AC_LANG_PROGRAM.
34994
34995 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34996
34997         * lib/netdb.in.h: Don't define GNU specific constants until they
34998         are supported or needed.  Reported by Bruno Haible
34999         <bruno@clisp.org>.
35000
35001 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35002
35003         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35004
35005 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35006
35007         * lib/getaddrinfo.h: Remove file.
35008         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35009         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35010         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35011         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35012         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35013         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35014         * tests/test-getaddrinfo.c: Likewise.
35015         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35016         * NEWS: Mention change.
35017
35018 2008-10-19  Bruno Haible  <bruno@clisp.org>
35019
35020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35021
35022 2008-10-19  Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/wait-process.c: Include simply <sys/wait.h>.
35025         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35026         WIFSTOPPED): Remove fallback definitions.
35027         * modules/wait-process (Depends-on): Add sys_wait.
35028
35029         New module 'sys_wait'.
35030         * modules/sys_wait: New file.
35031         * lib/sys_wait.in.h: New file, partially copied from
35032         lib/wait-process.c.
35033         * m4/sys_wait_h.m4: New file.
35034         * doc/posix-headers/sys_wait.texi: Mention the new module.
35035
35036 2008-10-19  Bruno Haible  <bruno@clisp.org>
35037
35038         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35039
35040 2008-10-19  Bruno Haible  <bruno@clisp.org>
35041
35042         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35043         * lib/wait-process.c (WAIT_T): Remove type.
35044         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35045         (wait_subprocess): Update.
35046
35047 2008-10-19  Bruno Haible  <bruno@clisp.org>
35048
35049         New module 'atoll'.
35050         * modules/atoll: New file.
35051         * lib/stdlib.in.h (atoll): New declaration.
35052         * lib/atoll.c: New file, from glibc with modifications.
35053         * m4/atoll.m4: New file.
35054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35055         HAVE_ATOLL.
35056         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35057         * doc/posix-functions/atoll.texi: Mention the new module.
35058
35059 2008-10-19  Bruno Haible  <bruno@clisp.org>
35060
35061         Add strtoull() declaration to <stdlib.h>.
35062         * lib/stdlib.in.h (strtoull): New declaration.
35063         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35064         Set HAVE_STRTOULL.
35065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35066         HAVE_STRTOULL.
35067         * modules/strtoull (Depends-on): Add stdlib.
35068         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35069         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35070         HAVE_STRTOULL.
35071
35072 2008-10-19  Bruno Haible  <bruno@clisp.org>
35073
35074         Add strtoll() declaration to <stdlib.h>.
35075         * lib/stdlib.in.h (strtoll): New declaration.
35076         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35077         Set HAVE_STRTOLL.
35078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35079         HAVE_STRTOLL.
35080         * modules/strtoll (Depends-on): Add stdlib.
35081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35082         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35083
35084 2008-10-19  Bruno Haible  <bruno@clisp.org>
35085
35086         * modules/bcopy (Depends-on): Add strings.
35087         (Include): Specify <strings.h>.
35088
35089 2008-10-19  Bruno Haible  <bruno@clisp.org>
35090
35091         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35092
35093 2008-10-19  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35096         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35097         mingw.
35098
35099 2008-10-19  Bruno Haible  <bruno@clisp.org>
35100
35101         * lib/atanl.c: Don't include isnanl.h.
35102         * lib/cosl.c: Likewise.
35103         * lib/ldexpl.c: Likewise.
35104         * lib/logl.c: Likewise.
35105         * lib/sinl.c: Likewise.
35106         * lib/sqrtl.c: Likewise.
35107         * lib/tanl.c: Likewise.
35108
35109         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35110         * lib/isnanf.h: Remove file.
35111         * lib/isnand.h: Remove file.
35112         * lib/isnanl.h: Remove file.
35113         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35114         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35115         macros.
35116         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35117         HAVE_ISNANF, don't define it as a C macro.
35118         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35119         HAVE_ISNAND, don't define it as a C macro.
35120         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35121         HAVE_ISNANL, don't define it as a C macro.
35122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35123         HAVE_ISNAN[FDL].
35124         * modules/isnanf (Files): Remove lib/isnanf.h.
35125         (Depends-on): Add math.
35126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35127         (Include): Specify <math.h> instead of isnanf.h.
35128         * modules/isnand (Files): Remove lib/isnand.h.
35129         (Depends-on): Add math.
35130         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35131         (Include): Specify <math.h> instead of isnand.h.
35132         * modules/isnanl (Files): Remove lib/isnanl.h.
35133         (Depends-on): Add math.
35134         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35135         (Include): Specify <math.h> instead of isnanl.h.
35136         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35137         HAVE_ISNAN[FDL].
35138         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35139         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35140         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35141         * NEWS: Mention the change.
35142
35143 2008-10-18  Bruno Haible  <bruno@clisp.org>
35144
35145         Add getusershell(), setusershell(), endusershell() declarations to
35146         <unistd.h>.
35147         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35148         declarations.
35149         * lib/getusershell.c: Include unistd.h.
35150         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35151         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35152         HAVE_GETUSERSHELL.
35153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35154         and HAVE_GETUSERSHELL.
35155         * modules/getusershell (Depends-on): Add unistd, extensions.
35156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35157         (Include): Specify <unistd.h>.
35158         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35159         HAVE_GETUSERSHELL.
35160
35161 2008-10-18  Bruno Haible  <bruno@clisp.org>
35162
35163         Add a getloadavg() declaration to <stdlib.h>.
35164         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35165         getloadavg declaration.
35166         (getloadavg): New declaration.
35167         * lib/getloadavg.c: Include <stdlib.h> first.
35168         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35169         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35170         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35172         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35173         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35174         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35175         (Include): Specify <stdlib.h>.
35176         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35177         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35178
35179 2008-10-18  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/dirchownmod.c: Don't include lchmod.h.
35182
35183         Move the lchmod() declaration to <sys/stat.h>.
35184         * lib/lchmod.h: Remove file.
35185         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35186         (lchmod): New declaration, moved here from lib/lchown.h.
35187         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35188         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35190         and HAVE_LCHMOD.
35191         * modules/lchmod (Files): Remove lib/lchmod.h.
35192         (Depends-on): Add sys_stat, extensions.
35193         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35194         (Include): Specify <sys/stat.h> instead of lchmod.h.
35195         * modules/sys_stat (Depends-on): Add link-warning.
35196         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35197         definition of GL_LINK_WARNING.
35198         * NEWS: Mention the change.
35199
35200 2008-10-18  Bruno Haible  <bruno@clisp.org>
35201
35202         * lib/fchdir.c: Don't include dirfd.h.
35203         * lib/fts.c: Likewise.
35204         * lib/getcwd.c: Likewise.
35205         * lib/glob.c: Likewise.
35206
35207         Move the dirfd() declaration to <dirent.h>.
35208         * lib/dirfd.h: Remove file.
35209         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35210         (dirfd): New declaration.
35211         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35212         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35213         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35214         HAVE_DECL_DIRFD.
35215         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35216         HAVE_DECL_DIRFD.
35217         * modules/dirfd (Files): Remove lib/dirfd.h.
35218         (Depends-on): Add dirent, extensions.
35219         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35220         (Include): Specify <dirent.h> instead of dirfd.h.
35221         * modules/dirent (Depends-on): Add link-warning.
35222         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35223         definition of GL_LINK_WARNING.
35224         * NEWS: Mention the change.
35225
35226 2008-10-18  Bruno Haible  <bruno@clisp.org>
35227
35228         Move the euidaccess() declaration to <unistd.h>.
35229         * lib/euidaccess.h: Remove file.
35230         * lib/unistd.in.h (euidaccess): New declaration.
35231         * lib/euidaccess.c: Don't include euidaccess.h.
35232         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35233         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35235         and HAVE_EUIDACCESS.
35236         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35237         (Depends-on): Add unistd.
35238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35239         (Include): Specify <unistd.h> instead of euidaccess.h.
35240         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35241         HAVE_EUIDACCESS.
35242         * NEWS: Mention the change.
35243
35244 2008-10-18  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35247
35248         Move the getdomainname() declaration to <unistd.h>.
35249         * lib/getdomainname.h: Remove file.
35250         * lib/unistd.in.h (getdomainname): New declaration.
35251         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35252         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35253         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35254         HAVE_GETDOMAINNAME.
35255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35256         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35257         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35258         (Depends-on): Add unistd, extensions.
35259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35260         (Includes): Specify <unistd.h> instead of getdomainname.h.
35261         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35262         HAVE_GETDOMAINNAME.
35263         * NEWS: Mention the change.
35264
35265 2008-10-18  Bruno Haible  <bruno@clisp.org>
35266
35267         * modules/dirent: New file.
35268         * m4/dirent_h.m4: New file.
35269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35270         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35271         * modules/fchdir (Files): Remove lib/dirent.in.h.
35272         (Depends-on): Add dirent.
35273         (Makefile.am): Move rules to modules/dirent.
35274         * doc/posix-headers/dirent.texi: Mention the new module.
35275
35276 2008-10-18  Bruno Haible  <bruno@clisp.org>
35277
35278         Avoid -Wunused-parameter warnings in public gnulib header files.
35279         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35280         macro.
35281         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35282
35283 2008-10-18  Bruno Haible  <bruno@clisp.org>
35284
35285         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35286         * doc/glibc-functions/error.texi: Mention the module 'error'.
35287         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35288         * doc/glibc-functions/getdomainname.texi: Mention the module
35289         'getdomainname'.
35290         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35291         * doc/glibc-functions/getpagesize.texi: Mention the module
35292         'getpagesize'.
35293         * doc/glibc-functions/getusershell.texi: Mention the module
35294         'getusershell'.
35295         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35296         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35297         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35298         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35299         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35300         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35301         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35302         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35303         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35304         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35305         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35306         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35307         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35308         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35309
35310 2008-10-17  Bruno Haible  <bruno@clisp.org>
35311
35312         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35313         HP-UX and IRIX, use -0.0L.
35314         * tests/test-ceill.c (minus_zero): Likewise.
35315         * tests/test-floorl.c (minus_zero): Likewise.
35316         * tests/test-frexpl.c (minus_zero): Likewise.
35317         * tests/test-isnan.c (minus_zerol): Likewise.
35318         * tests/test-isnanl.h (minus_zero): Likewise.
35319         * tests/test-ldexpl.c (minus_zero): Likewise.
35320         * tests/test-roundl.c (minus_zero): Likewise.
35321         * tests/test-signbit.c (minus_zerol): Likewise.
35322         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35323         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35324         * tests/test-truncl.c (minus_zero): Likewise.
35325         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35326         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35327         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35328         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35329
35330 2008-10-17  Bruno Haible  <bruno@clisp.org>
35331
35332         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35333         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35334         that it gets activated only for gcc >= 3.0.
35335         * lib/dirent.in.h: Likewise.
35336         * lib/errno.in.h: Likewise.
35337         * lib/fcntl.in.h: Likewise.
35338         * lib/float.in.h: Likewise.
35339         * lib/iconv.in.h: Likewise.
35340         * lib/inttypes.in.h: Likewise.
35341         * lib/locale.in.h: Likewise.
35342         * lib/math.in.h: Likewise.
35343         * lib/netdb.in.h: Likewise.
35344         * lib/netinet_in.in.h: Likewise.
35345         * lib/search.in.h: Likewise.
35346         * lib/signal.in.h: Likewise.
35347         * lib/spawn.in.h: Likewise.
35348         * lib/stdarg.in.h: Likewise.
35349         * lib/stdint.in.h: Likewise.
35350         * lib/stdio.in.h: Likewise.
35351         * lib/stdlib.in.h: Likewise.
35352         * lib/string.in.h: Likewise.
35353         * lib/strings.in.h: Likewise.
35354         * lib/sys_file.in.h: Likewise.
35355         * lib/sys_ioctl.in.h: Likewise.
35356         * lib/sys_select.in.h: Likewise.
35357         * lib/sys_socket.in.h: Likewise.
35358         * lib/sys_stat.in.h: Likewise.
35359         * lib/sys_time.in.h: Likewise.
35360         * lib/sysexits.in.h: Likewise.
35361         * lib/time.in.h: Likewise.
35362         * lib/unistd.in.h: Likewise.
35363         * lib/wchar.in.h: Likewise.
35364         * lib/wctype.in.h: Likewise.
35365         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35366
35367 2008-10-17  Jim Meyering  <meyering@redhat.com>
35368
35369         ignore-value: don't depend on inline module
35370         * modules/ignore-value (Depends-on): Remove 'inline'.
35371         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35372         Suggestion from Bruno Haible.
35373
35374 2008-10-17  Bruno Haible  <bruno@clisp.org>
35375
35376         New implementation of condition variables for Win32.
35377         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35378         (gl_linked_waitqueue_t): New type.
35379         (gl_cond_t): Use it.
35380         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35381         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35382         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35383         (glthread_cond_init_func, glthread_cond_wait_func,
35384         glthread_cond_timedwait_func, glthread_cond_signal_func,
35385         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35386         Reimplemented on the basis of gl_linked_waitqueue_t.
35387         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35388         gl_waitqueue_t.
35389         (gl_rwlock_t): Update.
35390         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35391
35392 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35393
35394         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35395         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35396
35397 2008-10-17  Jim Meyering  <meyering@redhat.com>
35398
35399         ignore-value: new module
35400         * modules/ignore-value: New file.
35401         * lib/ignore-value.h: New file.
35402         * MODULES.html.sh (Compiler warning management): New section,
35403         just for this module.  More to come.
35404
35405 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35406
35407         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35408         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35409         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35410
35411 2008-10-16  Jim Meyering  <meyering@redhat.com>
35412
35413         openat-die.c: avoid 'no previous prototype' warning
35414         * lib/openat-die.c: Include "openat.h".
35415         Reported by Reuben Thomas <rrt@sc3d.org>.
35416
35417 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35418
35419         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35420         * lib/netdb.in.h: Fix typo.
35421         Reported by Bruno Haible  <bruno@clisp.org>
35422
35423         * lib/netdb.in.h: Include sys/socket.h for platforms without
35424         netdb.h, to get structures like hostent on MinGW.
35425         * modules/netdb (Depends-on): Add sys_socket.
35426
35427 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35428
35429         * modules/netdb, modules/netdb-tests: New file.
35430         * m4/netdb_h.m4: New file.
35431         * lib/netdb.in.h: Add, currently just an empty file pending
35432         definitions.
35433         * tests/test-netdb.c: New file.
35434         * doc/posix-headers/netdb.texi: Mention that we replace it if
35435         needed.
35436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35437         netdb.
35438
35439 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35440
35441         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35442         with code.
35443
35444 2008-10-13  Bruno Haible  <bruno@clisp.org>
35445
35446         * lib/glthread/cond.c (glthread_cond_wait_func,
35447         glthread_cond_timedwait_func): Add a comment.
35448
35449 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35450
35451         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35452         * tests/test-select.c: Likewise,
35453
35454 2008-10-13  Bruno Haible  <bruno@clisp.org>
35455
35456         * lib/glthread/cond.c (glthread_cond_wait_func,
35457         glthread_cond_timedwait_func): Fix variable name.
35458         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35459
35460 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35461
35462         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35464         struct sockaddr.sa_len.
35465         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35466
35467 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35468
35469         * build-aux/pmccabe2html: Add css and css_url parameters.
35470
35471 2008-10-12  Bruno Haible  <bruno@clisp.org>
35472
35473         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35474         calling aclx_get.
35475         Reported by Rainer Tammer <tammer@tammer.net>.
35476
35477 2008-10-12  Bruno Haible  <bruno@clisp.org>
35478
35479         Use msvcrt aware primitives for creation/termination of Win32 threads.
35480         * lib/glthread/thread.c: Include <process.h>.
35481         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35482         (wrapper_func): Update signature.
35483         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35484
35485 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35486             Bruno Haible  <bruno@clisp.org>
35487
35488         Provide a Win32 implementation of the 'cond' module.
35489         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35490         * lib/glthread/cond.c (glthread_cond_init_func,
35491         glthread_cond_wait_func, glthread_cond_timedwait_func,
35492         glthread_cond_signal_func, glthread_cond_broadcast_func,
35493         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35494         * modules/cond (Dependencies): Add gettimeofday.
35495
35496 2008-10-11  Bruno Haible  <bruno@clisp.org>
35497
35498         Make sleep work on older versions of mingw.
35499         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35500         only whether it exists.
35501         * doc/posix-functions/sleep.texi: Mention the problem with older
35502         versions of mingw.
35503
35504 2008-10-11  Bruno Haible  <bruno@clisp.org>
35505
35506         New module 'shutdown'.
35507         * modules/shutdown: New file.
35508         * lib/sys_socket.in.h (shutdown): New declaration.
35509         * lib/winsock.c (shutdown): New function.
35510         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35511         GNULIB_SHUTDOWN.
35512         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35513         * doc/posix-functions/shutdown.texi: Document the new module.
35514
35515 2008-10-11  Jim Meyering  <meyering@redhat.com>
35516
35517         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35518
35519 2008-10-11  Bruno Haible  <bruno@clisp.org>
35520
35521         New module 'fclose'.
35522         * modules/fclose: New file.
35523         * lib/stdio.in.h (fclose): New declaration.
35524         * lib/fclose.c: New file.
35525         * m4/fclose.m4: New file.
35526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35527         REPLACE_FCLOSE.
35528         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35529         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35530         REPLACE_FCLOSE.
35531         * modules/close (Depends-on): fclose.
35532         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35533
35534 2008-10-11  Bruno Haible  <bruno@clisp.org>
35535
35536         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35537         set errno and don't call _close.
35538
35539 2008-10-10  Bruno Haible  <bruno@clisp.org>
35540
35541         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35542         ACL, not afterwards. Fixes test failure on Cygwin.
35543
35544 2008-10-09  Ben Pfaff  <blp@gnu.org>
35545
35546         * build-aux/announce-gen: Fix gnulib version related part of usage
35547         message.  Die with a useful error message if no tarballs are
35548         found.
35549
35550 2008-10-10  Jim Meyering  <meyering@redhat.com>
35551
35552         bootstrap: use git's --depth=N option only if it's supported
35553         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35554         recognize the --depth option.  Reported by Pádraig Brady.
35555
35556 2008-10-09  Bruno Haible  <bruno@clisp.org>
35557
35558         New module 'ioctl'.
35559         * modules/ioctl: New file.
35560         * lib/sys_socket.in.h (ioctl): Remove declaration.
35561         * lib/winsock.c: Include <sys/ioctl.h>.
35562         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35563         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35564         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35565         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35566         * doc/posix-functions/ioctl.texi: Mention the new module.
35567
35568 2008-10-09  Bruno Haible  <bruno@clisp.org>
35569
35570         New module 'sys_ioctl'.
35571         * lib/sys_ioctl.in.h: New file.
35572         * m4/sys_ioctl_h.m4: New file.
35573         * modules/sys_ioctl: New file.
35574         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35575
35576 2008-10-09  Bruno Haible  <bruno@clisp.org>
35577
35578         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35579         * lib/winsock.c: Include <stdarg.h>.
35580         (rpl_ioctl): Change to second argument 'int' and then varargs.
35581
35582 2008-10-09  Bruno Haible  <bruno@clisp.org>
35583
35584         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35585         when the sys_socket module is present and the system has <winsock2.h>.
35586
35587 2008-10-09  Bruno Haible  <bruno@clisp.org>
35588
35589         * doc/posix-functions/close.texi: Mention module 'close' instead of
35590         module 'sys_socket'.
35591
35592 2008-10-09  Bruno Haible  <bruno@clisp.org>
35593
35594         * doc/glibc-headers/sys_ioctl.texi: New file.
35595         * doc/gnulib.texi: Include it.
35596
35597 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35598             Bruno Haible  <bruno@clisp.org>
35599
35600         Combine the two replacements of 'close'.
35601         * lib/sys_socket.in.h (close): Define to a reminder to include
35602         <unistd.h>.
35603         (_gl_close_fd_maybe_socket): New declaration.
35604         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35605         * lib/winsock.c (close): Remove undefinition.
35606         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35607         needed for the gnulib module 'close'.
35608         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35609         define to an error symbol or to a warning, if suitable.
35610         * lib/close.c: Include <sys/socket.h>.
35611         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35612         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35613         UNISTD_H_HAVE_WINSOCK2_H.
35614         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35616         UNISTD_H_HAVE_WINSOCK2_H.
35617         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35618         (configure.ac): Set a module indicator.
35619         (Makefile.am): Substitute GNULIB_CLOSE.
35620         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35621         * modules/poll-tests (Depends-on): Add close.
35622         * modules/select-tests (Depends-on): Likewise.
35623
35624 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35625             Bruno Haible  <bruno@clisp.org>
35626
35627         New module 'close'.
35628         * modules/close: New file.
35629         * lib/unistd.in.h (close): Move declaration out of the
35630         FCHDIR_REPLACEMENT scope.
35631         (_gl_unregister_fd): New declaration.
35632         * lib/close.c: New file.
35633         * lib/fchdir.c (rpl_close): Remove function.
35634         * m4/close.m4: New file.
35635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35636         close.
35637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35638         REPLACE_CLOSE.
35639         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35640         REPLACE_CLOSE.
35641         * modules/fchdir (Depends-on): Add close.
35642
35643 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35644             Bruno Haible  <bruno@clisp.org>
35645
35646         * lib/fcntl.in.h (open): Simplify conditionals.
35647         (_gl_register_fd): New declaration.
35648         * lib/fchdir.c (rpl_open): Remove function.
35649         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35650         also.
35651         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35653         open.
35654
35655 2008-10-09  Jim Meyering  <meyering@redhat.com>
35656
35657         GNUmakefile: use the more name-space-friendly "_version"
35658         * top/GNUmakefile (_dummy): Update.
35659         (_version): Rename from "version".
35660
35661 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35662             Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35665         rpl_close.
35666         (_gl_register_fd): New function, extracted from rpl_open.
35667         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35668         (rpl_open, rpl_opendir): Use _gl_register_fd.
35669
35670 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35671
35672         Fix organization of 'open' replacement.
35673         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35674         (gl_FUNC_OPEN): Use it.
35675         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35676
35677 2008-10-08  Bruno Haible  <bruno@clisp.org>
35678
35679         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35680
35681 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35682
35683         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35684         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35685         listen).
35686
35687 2008-10-08  Eric Blake  <ebb9@byu.net>
35688
35689         GNUmakefile: add 'make version' target
35690         * top/GNUmakefile (_curr-ver): Split version update rules...
35691         (version): ...into a target.
35692
35693 2008-10-07  Bruno Haible  <bruno@clisp.org>
35694
35695         Use a more portable replacement expression for -0.0L.
35696         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35697         instead of -0.0L. Fix m4 quotation.
35698
35699         * tests/test-signbit.c: Include <float.h>.
35700         (minus_zero): New variable.
35701         (test_signbitl): Use minus_zero instead of -zero.
35702         * modules/signbit-tests (Depends-on): Add float.
35703
35704         * tests/test-ceill.c: Include <float.h>.
35705         (zero): Remove variable.
35706         (minus_zero): New variable.
35707         (main): Use minus_zero instead of -zero.
35708         * modules/ceill-tests (Depends-on): Add float.
35709
35710         * tests/test-floorl.c: Include <float.h>.
35711         (zero): Remove variable.
35712         (minus_zero): New variable.
35713         (main): Use minus_zero instead of -zero.
35714         * modules/floorl-tests (Depends-on): Add float.
35715
35716         * tests/test-roundl.c: Include <float.h>.
35717         (zero): Remove variable.
35718         (minus_zero): New variable.
35719         (main): Use minus_zero instead of -zero.
35720         * modules/roundl-tests (Depends-on): Add float.
35721
35722         * tests/test-truncl.c: Include <float.h>.
35723         (zero): Remove variable.
35724         (minus_zero): New variable.
35725         (main): Use minus_zero instead of -zero.
35726         * modules/truncl-tests (Depends-on): Add float.
35727
35728         * tests/test-frexpl.c (zero): Remove variable.
35729         (minus_zero): New variable.
35730         (main): Use minus_zero instead of -zero.
35731         * modules/frexpl-tests (Depends-on): Add float.
35732
35733         * tests/test-isnan.c (zerol): Remove variable.
35734         (minus_zerol): New variable.
35735         (test_long_double): Use minus_zerol instead of -zerol.
35736         * modules/isnan-tests (Depends-on): Add float.
35737
35738         * tests/test-isnanl.h (zero): Remove variable.
35739         (minus_zero): New variable.
35740         (main): Use minus_zero instead of -zero.
35741         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35742         * modules/isnanl-tests (Depends-on): Add float.
35743
35744         * tests/test-ldexpl.c (zero): Remove variable.
35745         (minus_zero): New variable.
35746         (main): Use minus_zero instead of -zero.
35747         * modules/ldexpl-tests (Depends-on): Add float.
35748
35749         * tests/test-snprintf-posix.h (zerol): Remove variable.
35750         (minus_zerol): New variable.
35751         (test_function): Use minus_zerol instead of -zerol.
35752         * modules/snprintf-posix-tests (Depends-on): Add float.
35753         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35754
35755         * tests/test-sprintf-posix.h (zerol): Remove variable.
35756         (minus_zerol): New variable.
35757         (test_function): Use minus_zerol instead of -zerol.
35758         * modules/sprintf-posix-tests (Depends-on): Add float.
35759         * modules/vsprintf-posix-tests (Depends-on): Add float.
35760
35761         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35762         (minus_zerol): New variable.
35763         (test_function): Use minus_zerol instead of -zerol.
35764         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35765
35766         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35767         (minus_zerol): New variable.
35768         (test_function): Use minus_zerol instead of -zerol.
35769         * modules/vasprintf-posix-tests (Depends-on): Add float.
35770
35771 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35772
35773         * MODULES.html.sh (Support for building documentation): Mention
35774         pmccabe2html.  Sort entries.
35775
35776         Add pmccabe2html module, from gnupdf.
35777         * build-aux/pmccabe.css: New file.
35778         * build-aux/pmccabe2html: New file.
35779         * m4/pmccabe2html.m4: New file.
35780         * modules/pmccabe2html: New file.
35781
35782 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35783
35784         flock: new module
35785         * MODULES.html.sh: Add to list of modules.
35786         * lib/flock.c: flock implementation for Windows and Unix systems
35787         which have fcntl.
35788         * doc/glibc-functions/flock.texi: Update documentation.
35789         * lib/sys_file.in.h: <sys/file.h> header file.
35790         * m4/flock.m4: M4 macros.
35791         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35792         * modules/flock: flock module.
35793         * modules/flock-tests: flock tests module.
35794         * modules/sys_file: sys/file.h module.
35795         * tests/test-flock.c: test suite for flock.
35796
35797 2008-10-06  Jim Meyering  <meyering@redhat.com>
35798
35799         bootstrap: check for LT_INIT more portably still ;-)
35800         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35801         Spotted by Bruno Haible.
35802
35803 2008-10-06  Eric Blake  <ebb9@byu.net>
35804
35805         test-signbit: avoid tripping Irix cc bug on -0.0L
35806         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35807         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35808         entire testsuite consistent and avoids an Irix 6.2 bug.
35809
35810 2008-10-05  Bruno Haible  <bruno@clisp.org>
35811             Jim Meyering  <jim@meyering.net>
35812
35813         Add an option for ignoring EPIPE during close_stdout.
35814         * lib/closeout.h: Include <stdbool.h>.
35815         (close_stdout_set_ignore_EPIPE): New declaration.
35816         * lib/closeout.c: Include <stdbool.h>.
35817         (ignore_EPIPE): New variable.
35818         (close_stdout_set_ignore_EPIPE): New function.
35819         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35820         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35821         failure.
35822         * modules/closeout (Depends-on): Add stdbool.
35823
35824 2008-10-05  Bruno Haible  <bruno@clisp.org>
35825
35826         * modules/accept: New file.
35827         * modules/bind: New file.
35828         * modules/connect: New file.
35829         * modules/getpeername: New file.
35830         * modules/getsockname: New file.
35831         * modules/getsockopt: New file.
35832         * modules/listen: New file.
35833         * modules/recv: New file.
35834         * modules/recvfrom: New file.
35835         * modules/send: New file.
35836         * modules/sendto: New file.
35837         * modules/setsockopt: New file.
35838         * modules/socket: New file.
35839         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35840         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35841         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35842         the particular module is requested. Add a link warning when the
35843         particular module is not requested.
35844         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35845         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35846         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35847         the particular module is requested.
35848         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35849         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35850         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35851         * modules/sys_socket (Depends-on): Add link-warning.
35852         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35853         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35854         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35855         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35856         GL_LINK_WARNING.
35857         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35858         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35859         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35860         * doc/posix-functions/getpeername.texi: Mention the new module
35861         'getpeername'.
35862         * doc/posix-functions/getsockname.texi: Mention the new module
35863         'getsockname'.
35864         * doc/posix-functions/getsockopt.texi: Mention the new module
35865         'getsockopt'.
35866         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35867         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35868         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35869         * doc/posix-functions/send.texi: Mention the new module 'send'.
35870         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35871         * doc/posix-functions/setsockopt.texi: Mention the new module
35872         'setsockopt'.
35873         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35874         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35875         listen, connect, accept.
35876         * modules/select-tests (Depends-on): Likewise.
35877
35878 2008-10-05  Bruno Haible  <bruno@clisp.org>
35879
35880         * lib/winsock.c (strerror): Remove unused #undef.
35881         (rpl_close): Remove unused local variable.
35882
35883         * modules/sys_socket (Depends-on); Add errno.
35884
35885 2008-10-05  Bruno Haible  <bruno@clisp.org>
35886
35887         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35888         (select): Add a link warning when the 'select' module is not used.
35889         * modules/sys_select (Depends-on): Add link-warning.
35890         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35891         Suggested by Paolo Bonzini.
35892
35893 2008-10-05  Jim Meyering  <meyering@redhat.com>
35894
35895         bootstrap: check for LT_INIT more portably
35896         * build-aux/bootstrap: Avoid using grep -E, since it's not
35897         portable enough.  Suggestion from Bruno Haible.
35898
35899 2008-10-05  Bruno Haible  <bruno@clisp.org>
35900
35901         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35902         as being fixed by gnulib.
35903
35904 2008-10-05  Bruno Haible  <bruno@clisp.org>
35905
35906         * modules/select-tests: New file, mostly copied from
35907         modules/sys_select-tests.
35908         * tests/test-select.c: New file, mostly copied from
35909         tests/test-sys_select.c.
35910         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35911         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35912         (Makefile.am): Remove test_sys_select_LDADD.
35913
35914         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35915         to an undefined symbol, for an error message.
35916         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35917         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35918         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35919         winsock-select.c here.
35920         * modules/sys_select (Files): Remove lib/winsock-select.c.
35921         (Depends-on): Remove alloca.
35922         (Makefile.am): Substitute GNULIB_SELECT.
35923         * modules/select: New file.
35924         * doc/posix-functions/select.texi: Update.
35925
35926 2008-10-05  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35929         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35930         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35931         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35932         getdtablesize.
35933         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35934         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35935
35936 2008-10-05  Bruno Haible  <bruno@clisp.org>
35937
35938         * modules/getdtablesize-tests: New file.
35939         * tests/test-getdtablesize.c: New file.
35940
35941         New module 'getdtablesize'.
35942         * lib/unistd.in.h (getdtablesize): New declaration.
35943         * lib/getdtablesize.c: New file.
35944         * m4/getdtablesize.m4: New file.
35945         * modules/getdtablesize: New file.
35946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35947         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35948         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35949         HAVE_GETDTABLESIZE.
35950         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35951
35952 2008-10-05  Bruno Haible  <bruno@clisp.org>
35953
35954         * modules/sched (Makefile.am): Fix typo.
35955         Reported by Simon Josefsson.
35956
35957 2008-10-05  Jim Meyering  <meyering@redhat.com>
35958
35959         bootstrap: check for LT_INIT, too
35960         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35961         are deprecated.  Suggestion from Ralf Wildenhues.
35962
35963 2008-10-05  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35966         overriding them by ours.
35967         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35968
35969 2008-10-05  Jim Meyering  <meyering@redhat.com>
35970
35971         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35972         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35973         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35974
35975 2008-10-04  Bruno Haible  <bruno@clisp.org>
35976
35977         * modules/dup2 (License): Change to LGPLv2+.
35978         * modules/sleep (License): Likewise.
35979         * modules/perror (License): Likewise.
35980         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35981         Blake.
35982         * modules/signal (License): Likewise.
35983         * modules/sigprocmask (License): Likewise.
35984         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35985         Meyering.
35986
35987 2008-10-04  Bruno Haible  <bruno@clisp.org>
35988
35989         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35990         Reported by Rainer Tammer <tammer@tammer.net>.
35991
35992 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35993             Bruno Haible  <bruno@clisp.org>
35994
35995         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35996         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35997         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35998
35999 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36000
36001         filevercmp: new module
36002         * lib/filevercmp.h: New function filevercmp comparing version strings.
36003         * lib/filevercmp.c: Implementation of filevercmp function.
36004         * modules/filevercmp: Module metadata.
36005         * tests/test-filevercmp.c: Unit test for new module.
36006         * modules/filevercmp-tests: Unit test metadata.
36007         * MODULES.html.sh: Add filevercmp module.
36008
36009 2008-10-03  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/c-ctype.h: Add comment.
36012         Reported by Jim Meyering.
36013
36014 2008-10-02  Bruno Haible  <bruno@clisp.org>
36015
36016         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36017
36018 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36019
36020         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36021         name of bootstrap.conf accordingly.
36022
36023 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36024
36025         * build-aux/bootstrap: Install git-merge-changelog configuration
36026         items into .gitconfig if needed.
36027
36028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36029
36030         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36031         git repository, and initialize/update it accordingly.
36032
36033 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36034
36035         * modules/fsync-tests: New file.
36036         * tests/test-fsync.c: New file.
36037
36038         New module 'fsync'.
36039         * lib/fsync.c: New file.
36040         * m4/fsync.m4: New file.
36041         * modules/fsync: New file.
36042         * lib/unistd.in.h (fsync): New declaration.
36043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36044         GNULIB_FSYNC and HAVE_FSYNC.
36045         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36046         * MODULES.html.sh (posix_functions): Add fsync.
36047         * doc/posix-functions/fsync.texi: Mention the new module.
36048
36049 2008-10-02  Jim Meyering  <meyering@redhat.com>
36050
36051         fts.c: sync with similar code from coreutils' remove.c
36052         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36053         Guard also with "#if defined __linux__", since for now at least,
36054         this code is Linux-kernel-specific.
36055
36056 2008-10-02  Jim Meyering  <meyering@redhat.com>
36057
36058         fts: bug fixes
36059         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36060         Include <sys/vfs.h>, not <sys/statfs.h>.
36061
36062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36063         Include <sys/vfs.h>, not <sys/statfs.h>.
36064
36065 2008-10-01  Bruno Haible  <bruno@clisp.org>
36066
36067         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36068         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36069         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36070         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36071         * doc/posix-functions/posix_spawnp.texi: Likewise.
36072         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36073         whether posix_spawn actually works.
36074         * m4/pipe.m4 (gl_PIPE): Likewise.
36075         * modules/execute (Files): Add m4/posix_spawn.m4.
36076         * modules/pipe (Files): Add m4/posix_spawn.m4.
36077         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36078
36079 2008-10-01  Jim Meyering  <meyering@redhat.com>
36080
36081         remove trailing spaces
36082         * NEWS: Likewise.
36083         * lib/poll.c (poll): Likewise.
36084         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36085         * lib/winsock.c (rpl_close): Likewise.
36086         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36087         * modules/yield: Likewise.
36088         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36089         * tests/test-sys_select.c (connect_to_socket): Likewise.
36090
36091         fts.c: adjust a new interface to be more generally useful
36092         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36093         (fts_build): Adjust caller.
36094
36095 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36096
36097         * modules/cond-tests: New file.
36098         * tests/test-cond.c: New file.
36099
36100 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36101             Bruno Haible  <bruno@clisp.org>
36102
36103         * modules/cond (Dependencies): Add errno, time.
36104         * lib/glthread/cond.h: Include <time.h>.
36105         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36106         across platforms.
36107
36108 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36109             Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36112
36113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36114             Bruno Haible  <bruno@clisp.org>
36115
36116         * modules/tls-tests (Depends-on): Add thread, yield.
36117         (configure.ac): Remove all checks.
36118         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36119         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36120         gl_thread_self): Remove definitions. Include glthread/thread.h and
36121         glthread/yield.h instead.
36122         (test_tls): Pass an additional NULL argument to gl_thread_join.
36123
36124 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36125             Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/lock-tests (Depends-on): Add thread, yield.
36128         (configure.ac): Remove all checks.
36129         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36130         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36131         gl_thread_self): Remove definitions. Include glthread/thread.h and
36132         glthread/yield.h instead.
36133         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36134         additional NULL argument to gl_thread_join.
36135
36136 2008-09-30  Bruno Haible  <bruno@clisp.org>
36137
36138         Fix the Win32 implementation of the 'thread' module.
36139         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36140         pointer type.
36141         (gl_thread_self): Invoke gl_thread_self_func.
36142         (gl_thread_self_func): New declaration.
36143         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36144         (do_init_self_key, init_self_key): New functions.
36145         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36146         Remove some fields.
36147         (running_threads, running_lock): Remove variables.
36148         (get_current_thread_handle): New function.
36149         (gl_thread_self_func, wrapper_func, glthread_create_func,
36150         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36151         simplified.
36152
36153 2008-09-30  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36156         files.
36157
36158 2008-09-30  Jim Meyering  <meyering@redhat.com>
36159
36160         fts.m4: correct the test for statfs.f_type
36161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36162         when checking for statfs.f_type.
36163
36164 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36165
36166         tests: avoid some compiler warnings
36167         * tests/test-memchr.c (main): Pass NULL indirectly.
36168         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36169
36170 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36171
36172         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36173         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36174         exactly specified dayshifts.
36175         (dayshift): New rule.
36176         (rel): Add dayshift.
36177         (relative_time_table) [tomorrow, yesterday, today, now]:
36178         Use tDAY_SHIFT in place of tDAY_UNIT.
36179         * tests/test-getdate.c: Add tests for now-disallowed countable
36180         dayshifts, e.g., "4 yesterday ago".
36181
36182 2008-09-29  Bruno Haible  <bruno@clisp.org>
36183
36184         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36185         * tests/test-posix_spawn1.in.sh: Renamed from
36186         tests/test-posix_spawn.in.sh.
36187         * tests/test-posix_spawn2.c: New file.
36188         * tests/test-posix_spawn2.in.sh: New file.
36189         * modules/posix_spawnp-tests (Files): Update.
36190         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36191
36192 2008-09-29  Bruno Haible  <bruno@clisp.org>
36193
36194         Propagate effects of putenv/setenv/unsetenv to child processes.
36195         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36196         * lib/pipe.c (create_pipe): Likewise.
36197
36198 2008-09-29  Bruno Haible  <bruno@clisp.org>
36199
36200         Enable use of shell scripts as executables in mingw.
36201         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36202         run the program as a shell script.
36203         * lib/pipe.c (create_pipe): Likewise.
36204         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36205         resulting array.
36206
36207 2008-09-29  Eric Blake  <ebb9@byu.net>
36208
36209         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36210
36211 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36212
36213         * doc/posix-functions/accept.texi: Update mingw problems.
36214         * doc/posix-functions/bind.texi: Update mingw problems.
36215         * doc/posix-functions/close.texi: Update mingw problems.
36216         * doc/posix-functions/connect.texi: Update mingw problems.
36217         * doc/posix-functions/getpeername.texi: Update mingw problems.
36218         * doc/posix-functions/getsockname.texi: Update mingw problems.
36219         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36220         * doc/posix-functions/ioctl.texi: Update mingw problems.
36221         * doc/posix-functions/listen.texi: Update mingw problems.
36222         * doc/posix-functions/recv.texi: Update mingw problems.
36223         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36224         * doc/posix-functions/select.texi: Update mingw problems.
36225         * doc/posix-functions/send.texi: Update mingw problems.
36226         * doc/posix-functions/sendto.texi: Update mingw problems.
36227         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36228         * doc/posix-functions/socket.texi: Update mingw problems.
36229
36230 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36231             Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/sys_select.in.h: Include sys/time.h.
36234         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36235         * modules/sys_select: Depend on sys_time.
36236         * tests/test-sys_select.c: Test that sys/select.h defines struct
36237         timeval fully.
36238
36239 2008-09-29  Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36242         * lib/sys_select.in.h: Likewise.
36243
36244 2008-09-29  Bruno Haible  <bruno@clisp.org>
36245
36246         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36247
36248 2008-09-29  Bruno Haible  <bruno@clisp.org>
36249
36250         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36251         Set LIBSOCKET instead of augmenting LIBS.
36252         * modules/sockets (Link): New section.
36253         * modules/sockets-tests (test_sockets_LDADD): New variable.
36254         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36255         * modules/poll-tests (test_poll_LDADD): New variable.
36256         * NEWS: Document the change.
36257
36258 2008-09-29  Bruno Haible  <bruno@clisp.org>
36259
36260         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36261         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36262         ARPA_INET_H directly.
36263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36264
36265 2008-09-28  Bruno Haible  <bruno@clisp.org>
36266
36267         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36268         from gl_HEADER_SYS_SOCKET.
36269         (gl_HEADER_SYS_SOCKET): Invoke it.
36270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36271
36272 2008-09-28  Bruno Haible  <bruno@clisp.org>
36273
36274         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36275         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36276         Needed on OSF/1 4.0.
36277
36278 2008-09-28  Bruno Haible  <bruno@clisp.org>
36279
36280         Override open more carefully.
36281         * lib/open.c (orig_open): New function.
36282         (rpl_open): Use orig_open instead of open.
36283         * lib/fcntl.in.h: Add special invocation convention.
36284         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36285         (gl_FUNC_OPEN): Invoke it.
36286
36287         Override freopen more carefully.
36288         * lib/freopen.c (orig_freopen): New function.
36289         (rpl_freopen): Use orig_freopen instead of freopen.
36290         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36291         (gl_FUNC_FREOPEN): Invoke it.
36292
36293         Override fopen more carefully.
36294         * lib/fopen.c (orig_fopen): New function.
36295         (rpl_fopen): Use orig_fopen instead of fopen.
36296         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36297         (gl_FUNC_FOPEN): Invoke it.
36298         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36299
36300 2008-09-28  Bruno Haible  <bruno@clisp.org>
36301
36302         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36303         SIGPIPE.
36304
36305 2008-09-28  Bruno Haible  <bruno@clisp.org>
36306
36307         * tests/test-sigaction.c (handler, main): Disable the check whether
36308         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36309         glibc systems with LinuxThreads.
36310
36311 2008-09-28  Bruno Haible  <bruno@clisp.org>
36312
36313         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36314
36315         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36316         with AIX xlc.
36317         * lib/fcntl.in.h (open): Likewise.
36318         Reported by Rainer Tammer <tammer@tammer.net>.
36319
36320 2008-09-28  Bruno Haible  <bruno@clisp.org>
36321
36322         * modules/posix_spawnp-tests: New file.
36323         * tests/test-posix_spawn.c: New file.
36324         * tests/test-posix_spawn.in.sh: New file.
36325
36326         New module 'posix_spawnp'.
36327         * modules/posix_spawnp: New file.
36328         * lib/spawnp.c: New file, from GNU libc with modifications.
36329         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36330
36331         New module 'posix_spawn'.
36332         * modules/posix_spawn: New file.
36333         * lib/spawn.c: New file, from GNU libc with modifications.
36334         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36335
36336         New module 'posix_spawnattr_destroy'.
36337         * modules/posix_spawnattr_destroy: New file.
36338         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36339         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36340         module.
36341
36342         New module 'posix_spawnattr_setsigmask'.
36343         * modules/posix_spawnattr_setsigmask: New file.
36344         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36345         modifications.
36346         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36347         new module.
36348
36349         New module 'posix_spawnattr_getsigmask'.
36350         * modules/posix_spawnattr_getsigmask: New file.
36351         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36352         modifications.
36353         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36354         new module.
36355
36356         New module 'posix_spawnattr_setsigdefault'.
36357         * modules/posix_spawnattr_setsigdefault: New file.
36358         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36359         modifications.
36360         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36361         new module.
36362
36363         New module 'posix_spawnattr_getsigdefault'.
36364         * modules/posix_spawnattr_getsigdefault: New file.
36365         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36366         modifications.
36367         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36368         new module.
36369
36370         New module 'posix_spawnattr_setschedpolicy'.
36371         * modules/posix_spawnattr_setschedpolicy: New file.
36372         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36373         modifications.
36374         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36375         new module.
36376
36377         New module 'posix_spawnattr_getschedpolicy'.
36378         * modules/posix_spawnattr_getschedpolicy: New file.
36379         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36380         modifications.
36381         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36382         new module.
36383
36384         New module 'posix_spawnattr_setschedparam'.
36385         * modules/posix_spawnattr_setschedparam: New file.
36386         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36387         modifications.
36388         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36389         new module.
36390
36391         New module 'posix_spawnattr_getschedparam'.
36392         * modules/posix_spawnattr_getschedparam: New file.
36393         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36394         modifications.
36395         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36396         new module.
36397
36398         New module 'posix_spawnattr_setpgroup'.
36399         * modules/posix_spawnattr_setpgroup: New file.
36400         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36401         modifications.
36402         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36403         module.
36404
36405         New module 'posix_spawnattr_getpgroup'.
36406         * modules/posix_spawnattr_getpgroup: New file.
36407         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36408         modifications.
36409         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36410         module.
36411
36412         New module 'posix_spawnattr_setflags'.
36413         * modules/posix_spawnattr_setflags: New file.
36414         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36415         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36416         module.
36417
36418         New module 'posix_spawnattr_getflags'.
36419         * modules/posix_spawnattr_getflags: New file.
36420         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36421         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36422         module.
36423
36424         New module 'posix_spawnattr_init'.
36425         * modules/posix_spawnattr_init: New file.
36426         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36427         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36428         module.
36429
36430         New module 'posix_spawn_file_actions_destroy'.
36431         * modules/posix_spawn_file_actions_destroy: New file.
36432         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36433         modifications.
36434         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36435         the new module.
36436
36437         New module 'posix_spawn_file_actions_addopen'.
36438         * modules/posix_spawn_file_actions_addopen: New file.
36439         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36440         modifications.
36441         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36442         the new module.
36443
36444         New module 'posix_spawn_file_actions_adddup2'.
36445         * modules/posix_spawn_file_actions_adddup2: New file.
36446         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36447         modifications.
36448         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36449         the new module.
36450
36451         New module 'posix_spawn_file_actions_addclose'.
36452         * modules/posix_spawn_file_actions_addclose: New file.
36453         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36454         modifications.
36455         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36456         the new module.
36457
36458         New module 'posix_spawn_file_actions_init'.
36459         * modules/posix_spawn_file_actions_init: New file.
36460         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36461         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36462         new module.
36463
36464         New module 'posix_spawn-internal'.
36465         * modules/posix_spawn-internal: New file.
36466         * lib/spawn_int.h: New file, from GNU libc with modifications.
36467         * lib/spawni.c: New file, from GNU libc with modifications.
36468         * m4/posix_spawn.m4: New file.
36469
36470         New module 'spawn'.
36471         * modules/spawn: New file.
36472         * lib/spawn.in.h: New file, from GNU libc with modifications.
36473         * m4/spawn_h.m4: New file.
36474         * doc/posix-headers/spawn.texi: Mention the new module.
36475
36476 2008-09-28  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/sched-tests: New file.
36479         * tests/test-sched.c: New file.
36480
36481         New module 'sched'.
36482         * modules/sched: New file.
36483         * lib/sched.in.h: New file.
36484         * m4/sched_h.m4: New file.
36485         * doc/posix-headers/sched.texi: Mention the new module.
36486
36487 2008-09-27  Eric Blake  <ebb9@byu.net>
36488
36489         Fix previous patch, and tweak references to $0.
36490         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36491         (func_version, func_gnulib_dir): Don't call this program
36492         gnulib-tool.
36493         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36494         with using $0 in function.
36495         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36496         (func_fatal_error): Reuse the name the user invoked us with.
36497
36498 2008-09-27  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36501         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36502         (gl_ICONV_H): Not here.
36503         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36504         instead of assigning ICONV_H directly.
36505
36506         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36508         WCHAR_H directly.
36509
36510 2008-09-27  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36513         * modules/arpa_inet (Depends-on): Add link-warning.
36514         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36515         * modules/unistd (Makefile.am): Likewise.
36516
36517 2008-09-26  Bruno Haible  <bruno@clisp.org>
36518
36519         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36520         variables.
36521         (func_version): Essentially copied from gnulib-tool.
36522         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36523         func_readlink): Copied from gnulib-tool.
36524
36525 2008-09-26  Bruno Haible  <bruno@clisp.org>
36526
36527         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36528         invoking git-version-gen.
36529
36530 2008-09-26  Bruno Haible  <bruno@clisp.org>
36531
36532         * posix-modules: Update to directory names changed on 2008-01-19.
36533         Remove commas in output before splitting into words. No more need to
36534         avoid 'ftruncate' since 2007-02-19.
36535
36536 2008-09-26  Bruno Haible  <bruno@clisp.org>
36537
36538         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36539
36540 2008-09-26  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36543         * modules/fwriteerror (Depends-on): Add errno.
36544
36545 2008-09-26  Bruno Haible  <bruno@clisp.org>
36546
36547         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36548         * tests/test-vc-list-files-cvs.sh: Likewise.
36549
36550 2008-09-26  Bruno Haible  <bruno@clisp.org>
36551
36552         * doc/posix-headers/sys_resource.texi: Reorder items.
36553
36554 2008-09-26  Jim Meyering  <meyering@redhat.com>
36555
36556         fts: tweak inode comparison function
36557         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36558         inode numbers, as documented.
36559
36560         fts: sort dirent entries on inode number before traversing
36561         This avoids a quadratic, seek-related performance penalty when
36562         operating on a directory containing many entries (measurable at 10k;
36563         3.5 hours at 2 million entries with a cold cache) on certain types
36564         of file systems, including ext3 and ext4, but not tmpfs.
36565         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36566         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36567         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36568         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36569         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36570         (fts_build): Set the stat.st_ino member from D_INO.
36571         If it is likely to be useful, sort dirent entries on inode number.
36572
36573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36574         and the struct statfs.f_type member.
36575         * modules/fts (Depends-on): Add d-ino.
36576
36577 2008-09-26  Bruno Haible  <bruno@clisp.org>
36578
36579         * modules/sigpipe-die (Depends-on): Add sigpipe.
36580
36581         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36582         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36583         and GNULIB_STDIO_H_SIGPIPE are set.
36584         * lib/stdio-write.c: New file.
36585         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36586         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36587         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36588         REPLACE_STDIO_WRITE_FUNCS.
36589         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36590         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36591         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36592         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36593         * modules/stdio (Files): Add lib/stdio-write.c.
36594         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36595         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36596         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36597         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36598         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36599         REPLACE_FPRINTF_POSIX.
36600         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36601         REPLACE_PRINTF_POSIX.
36602         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36603         REPLACE_VFPRINTF_POSIX.
36604         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36605         REPLACE_VPRINTF_POSIX.
36606         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36607         SIGPIPE issue.
36608         * doc/posix-functions/fputc.texi: Likewise.
36609         * doc/posix-functions/fputs.texi: Likewise.
36610         * doc/posix-functions/fwrite.texi: Likewise.
36611         * doc/posix-functions/printf.texi: Likewise.
36612         * doc/posix-functions/putc.texi: Likewise.
36613         * doc/posix-functions/putchar.texi: Likewise.
36614         * doc/posix-functions/puts.texi: Likewise.
36615         * doc/posix-functions/vfprintf.texi: Likewise.
36616         * doc/posix-functions/vprintf.texi: Likewise.
36617
36618         * modules/safe-write (Depends-on): Add write.
36619
36620         * modules/sigpipe-tests: New file.
36621         * tests/test-sigpipe.c: New file.
36622         * tests/test-sigpipe.sh: New file.
36623
36624         * modules/write: New file.
36625         * lib/unistd.in.h: Include <sys/types.h>.
36626         (write): New declaration.
36627         * lib/write.c: New file.
36628         * m4/write.m4: New file.
36629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36630         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36631         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36632         GNULIB_WRITE, REPLACE_WRITE.
36633         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36634         and the SIGPIPE issue.
36635
36636         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36637         (raise): New declaration.
36638         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36639         (ext_signal): New function.
36640         (rpl_raise): New function.
36641         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36642         GNULIB_SIGNAL_H_SIGPIPE.
36643         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36644         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36645
36646         * modules/sigpipe: New file.
36647         * m4/sigpipe.m4: New file.
36648
36649 2008-09-25  Derek Price  <derek@ximbiot.com>
36650             Bruno Haible  <bruno@clisp.org>
36651
36652         * gnulib-tool (func_import): Report all license incompatibilities, not
36653         just the first one.
36654
36655 2008-09-25  Bruno Haible  <bruno@clisp.org>
36656
36657         * gnulib-tool (func_import): When computing the edits, consider not
36658         only the Makefile.ams that exist but also those that will be generated.
36659
36660 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36661
36662         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36663         fixes gnulib-tool --test warning about duplicate dependency.
36664
36665 2008-09-25  Bruno Haible  <bruno@clisp.org>
36666
36667         * gnulib-tool: Don't ask the user to perform edits in the generated
36668         Makefile.ams.
36669         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36670         apply to the Makefile.am being generated.
36671         (func_emit_tests_Makefile_am): Execute edits that apply to the
36672         Makefile.am being generated.
36673         (func_import): Setup list of Makefile.am edits before emitting the
36674         Makefile.ams, not at the end.
36675         (func_create_testdir): Update.
36676         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36677
36678 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36679
36680         * gnulib-tool (func_import): Store the --tests-base option in the
36681         comment in gnulib-cache.m4.
36682
36683 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36684
36685         * NEWS: Document increased portability that sys_select now provides.
36686
36687         * lib/sys_select.in.h: Install select wrapper.
36688         * lib/sys_socket.in.h: Use more descriptive name when there is no
36689         select wrapper.
36690         * lib/winsock-select.c: New.
36691         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36692         Require gl_HEADER_SYS_SOCKET.
36693         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36694         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36695         * tests/test-sys_select.c: Add functional tests.
36696
36697 2008-09-24  Eric Blake  <ebb9@byu.net>
36698
36699         open, fopen: close fd leak in last patch
36700         * lib/open.c (rpl_open): Close fd before returning error.
36701         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36702         * doc/posix-functions/open.texi (open): Document that Irix also
36703         has the bug.
36704         * doc/posix-functions/fopen.texi (fopen): Likewise.
36705         Reported by Paolo Bonzini.
36706
36707 2008-09-24  Bruno Haible  <bruno@clisp.org>
36708
36709         Ensure that a filename ending in a slash cannot be used to access a
36710         non-directory.
36711         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36712         to check whether it's really a directory.
36713         * lib/fopen.c: Include fcntl.h, unistd.h.
36714         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36715         and fdopen().
36716         * modules/fopen (Depends-on): Add unistd.
36717         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36718         * tests/test-fopen.c (main): Likewise.
36719         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36720         * doc/posix-functions/fopen.texi: Likewise.
36721         Reported by Eric Blake.
36722
36723 2008-09-23  Eric Blake  <ebb9@byu.net>
36724
36725         c-stack: avoid compiler optimizations when provoking overflow
36726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36727         recursion harder to optimize, to ensure a stack overflow occurs.
36728         * tests/test-c-stack.c (recurse): Likewise.
36729         Borrowed from libsigsegv.
36730
36731         c-stack: work around Irix sigaltstack bug
36732         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36733         whether sigaltstack uses wrong end of stack_t (copied in part from
36734         libsigsegv).
36735         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36736         Irix bug, without requiring an over-allocation.
36737         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36738         bug.
36739
36740         fopen: document mingw bug on directories
36741         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36742         not allowing a stream visiting a directory, even though reading
36743         from such a stream is not portable.
36744
36745 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36746
36747         * lib/poll.c: Rewrite.
36748         * modules/poll: Depend on alloca.
36749
36750 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36751
36752         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36753         instead define prototypes for a full set of wrappers.  Ensure
36754         that Cygwin does not use the compatibility code, which is only
36755         for MinGW.
36756         * lib/winsock.c: New.
36757         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36758         * modules/sys_socket: Add lib/winsock.c.
36759
36760         * modules/poll-tests: Add errno and perror.
36761         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36762
36763 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36764
36765         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36766
36767 2008-09-23  Bruno Haible  <bruno@clisp.org>
36768
36769         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36770         * doc/glibc-functions/*: Likewise.
36771
36772 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36773
36774         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36775         success.
36776
36777 2008-09-22  Eric Blake  <ebb9@byu.net>
36778             Bruno Haible  <bruno@clisp.org>
36779
36780         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36781         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36782         supply %A but mishandle pseudo-NaN.
36783         Reported by Simon Josefsson.
36784
36785 2008-09-21  Bruno Haible  <bruno@clisp.org>
36786
36787         * tests/test-lock.c (main): Tweak skip message.
36788         * tests/test-tls.c (main): Likewise.
36789
36790 2008-09-21  Bruno Haible  <bruno@clisp.org>
36791
36792         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36793         whether 'struct sigaction' has sa_sigaction here...
36794         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36795         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36796
36797 2008-09-21  Bruno Haible  <bruno@clisp.org>
36798
36799         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36800         section.
36801         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36802         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36803         the new section.
36804         (Support for obsolete systems lacking POSIX:2001): New section.
36805         (String handling <string.h>): Move strdup to the new section.
36806         Suggested by Simon Josefsson and Paolo Bonzini.
36807
36808 2008-09-21  Bruno Haible  <bruno@clisp.org>
36809
36810         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36811         exponents in %e and %g results on 'long double'. Needed for mingw's
36812         improved *printf functions.
36813         * tests/test-vasprintf-posix.c (test_function): Likewise.
36814         * tests/test-snprintf-posix.h (test_function): Likewise.
36815         * tests/test-sprintf-posix.h (test_function): Likewise.
36816         Reported by Eric Blake.
36817
36818 2008-09-21  Bruno Haible  <bruno@clisp.org>
36819
36820         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36821         * tests/test-sprintf-posix.h (test_function): Likewise.
36822
36823 2008-09-21  Bruno Haible  <bruno@clisp.org>
36824
36825         * modules/getpass (Depends-on): Add strdup-posix.
36826
36827         New module 'strdup-posix'.
36828         * modules/strdup-posix: New file.
36829         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36830         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36832         REPLACE_STRDUP.
36833         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36834         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36836         strdup-posix.
36837
36838         * modules/strdup (Depends-on): Remove malloc-posix.
36839
36840 2008-09-20  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36843         Wildenhues.
36844
36845 2008-09-20  Bruno Haible  <bruno@clisp.org>
36846
36847         Ensure that wint_t gets defined on IRIX 5.3.
36848         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36849         * lib/wctype.in.h (wint_t): Likewise.
36850         (__wctype_wint_t): Remove type.
36851         (isw*): Use wint_t instead of __wctype_wint_t.
36852         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36853         * modules/wchar (Files): Add m4/wint_t.m4.
36854         (Makefile.am): Substitute HAVE_WINT_T.
36855         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36856         * tests/test-wctype.c: Check that wint_t is defined.
36857         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36858         * doc/posix-headers/wctype.texi: Likewise.
36859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36860
36861 2008-09-18  Bruno Haible  <bruno@clisp.org>
36862
36863         * gnulib-tool (func_exit): Update comment.
36864
36865 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36866
36867         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36868         assumes strdup exists and does not depend on strdup to return
36869         ENOMEM on out of memory conditions.
36870
36871 2008-09-18  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36874         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36875         digits for the exponent.
36876
36877 2008-09-18  Jim Meyering  <meyering@redhat.com>
36878             Bruno Haible  <bruno@clisp.org>
36879
36880         * lib/vasnprintf.c (decimal_point_char): Define also if
36881         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36882
36883 2008-09-16  Bruno Haible  <bruno@clisp.org>
36884         and Eric Blake  <ebb9@byu.net>
36885
36886         vasnprintf: support Irix 5.3
36887         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36888         that mishandle long double infinity.
36889         Reported by Tom G. Christensen.
36890
36891 2008-09-16  Bruno Haible  <bruno@clisp.org>
36892
36893         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36894         Solaris 9.
36895         * doc/glibc-functions/alphasort.texi: Likewise.
36896         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36897
36898 2008-09-16  Jim Meyering  <meyering@redhat.com>
36899
36900         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36901         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36902         a umask modification leak out of a subshell.  Otherwise, the
36903         opensolaris /bin/sh would be accepted and thus cause unwarranted
36904         failures in the coreutils test suite.
36905
36906 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36907
36908         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36909         to succeed.
36910
36911 2008-09-16  Jim Meyering  <meyering@redhat.com>
36912
36913         avoid spurious test failure when library is built without ACL support
36914         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36915         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36916         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36917         * tests/test-copy-acl.sh: Likewise.
36918
36919 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36920
36921         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36922         based on character occurrence counts.
36923
36924 2008-09-15  Eric Blake  <ebb9@byu.net>
36925
36926         tests: avoid some compiler warnings
36927         * tests/test-memchr.c (main): Pass NULL indirectly.
36928         * tests/test-closein.c (main): Avoid unused variable.
36929
36930 2008-09-15  Bruno Haible  <bruno@clisp.org>
36931
36932         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36933         are missing on OpenBSD 4.0 individually.
36934         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36935
36936 2008-09-15  Bruno Haible  <bruno@clisp.org>
36937
36938         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36939         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36940         * doc/posix-functions/perror.texi: Likewise.
36941         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36942         is missing.
36943         Reported by Eric Blake.
36944
36945         * lib/errno.in.h: Use replacement values >= 2000.
36946         Reported by Eric Blake.
36947
36948 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36949
36950         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36951         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36952         limit.
36953         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36954         compareseq was aborted.
36955
36956 2008-09-14  Bruno Haible  <bruno@clisp.org>
36957
36958         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36959         yvec_edit_count.
36960         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36961         (fstrcmp_bounded): Simplify result computation accordingly.
36962
36963 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36964
36965         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36966         (fstrcmp): Define in terms of fstrcmp_bounded.
36967         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36968         lower_bound argument.
36969         Return quickly if the result is certainly < lower_bound.
36970         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36971
36972 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36973
36974         * lib/diffseq.h (EARLY_ABORT): New macro.
36975         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36976         evaluates to true.
36977
36978 2008-09-14  Bruno Haible  <bruno@clisp.org>
36979
36980         * modules/perror-tests: New file.
36981         * tests/test-perror.sh: New file.
36982         * tests/test-perror.c: New file.
36983
36984         New module 'perror'.
36985         * lib/stdio.in.h (perror): New declaration.
36986         * lib/perror.c: New file.
36987         * m4/perror.m4: New file.
36988         * modules/perror: New file.
36989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36990         * doc/posix-functions/perror.texi: Mention the perror module.
36991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36992         REPLACE_PERROR.
36993         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36994         REPLACE_PERROR.
36995
36996 2008-09-14  Bruno Haible  <bruno@clisp.org>
36997
36998         * modules/stdio (Makefile.am): Reorder to match the order in
36999         lib/stdio.in.h.
37000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37001
37002 2008-09-13  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37005
37006 2008-09-13  Bruno Haible  <bruno@clisp.org>
37007
37008         Extend strerror to cover the added errno values.
37009         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37010         (rpl_strerror): Provide error messages for the added errno values and
37011         for the WSA* values.
37012         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37013         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37014         strerror.
37015         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37016         * modules/strerror (Depends-on): Add errno.
37017         * doc/posix-functions/strerror.texi: Document the change.
37018         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37019         and EOVERFLOW.
37020
37021 2008-09-13  Bruno Haible  <bruno@clisp.org>
37022
37023         * modules/EOVERFLOW: Remove file.
37024         * m4/eoverflow.m4: Remove file.
37025         * modules/EOVERFLOW-tests: Remove file.
37026         * tests/test-EOVERFLOW.c: Remove file.
37027         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37028         * modules/ftell (Depends-on): Likewise.
37029         * modules/getdelim (Depends-on): Likewise.
37030         * modules/getugroups (Depends-on): Likewise.
37031         * modules/poll (Depends-on): Likewise.
37032         * modules/snprintf (Depends-on): Likewise.
37033         * modules/sprintf-posix (Depends-on): Likewise.
37034         * modules/vasnprintf (Depends-on): Likewise.
37035         * modules/vasprintf (Depends-on): Likewise.
37036         * modules/vfprintf-posix (Depends-on): Likewise.
37037         * modules/vsnprintf (Depends-on): Likewise.
37038         * modules/vsprintf-posix (Depends-on): Likewise.
37039         * modules/xvasprintf (Depends-on): Likewise.
37040         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37041         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37042         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37043         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37044         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37045         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37046         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37047         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37048         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37049         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37050         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37051         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37052         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37053         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37054         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37055         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37056         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37057         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37058         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37059         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37060         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37061         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37062         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37063         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37064         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37066         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37067         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37068         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37069         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37070         * MODULES.html.sh: Remove EOVERFLOW.
37071         * NEWS: Mention the change.
37072
37073 2008-09-13  Bruno Haible  <bruno@clisp.org>
37074
37075         * modules/errno-tests: New file.
37076         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37077
37078         * lib/errno.in.h: New file.
37079         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37080         * modules/errno: New file.
37081         * doc/posix-headers/errno.texi: Update documentation.
37082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37083
37084 2008-09-13  Bruno Haible  <bruno@clisp.org>
37085
37086         * tests/test-poll.c: Use #if for native Windows, rather than testing
37087         __MSVCRT__.
37088
37089 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37090             Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/glob.c: Don't include <pwd.h> on native Windows.
37093         (WINDOWS32): New macro.
37094         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37095
37096 2008-09-13  Bruno Haible  <bruno@clisp.org>
37097
37098         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37099         (ETIMEDOUT): Remove macro.
37100         (glthread_cond_timedwait_multithreaded): New declaration.
37101         (glthread_cond_timedwait): Use it.
37102         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37103         (glthread_cond_timedwait_multithreaded): New function.
37104
37105 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37106
37107         * modules/poll-tests: Do not check for io.h.
37108         * tests/test-poll.c: Check for __MSVCRT__ instead.
37109
37110 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37111
37112         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37113         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37114         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37115
37116 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37117
37118         * modules/poll-tests: New.
37119         * tests/test-poll.c: New.
37120
37121 2008-09-12  Eric Blake  <ebb9@byu.net>
37122
37123         frexp: test for NetBSD failure on -0.0
37124         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37125         not all, bugs from NetBSD 3.0 have been fixed.
37126         * doc/posix-functions/frexp.texi (frexp): Document bug.
37127         Reported by Thomas Klausner.
37128
37129         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37131         literal -0.0.
37132         Reported by Jonathan C. Patschke <jp@centtech.com>.
37133
37134 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37135
37136         * lib/glthread/cond.h: Use dummy implementation also if
37137         USE_WIN32_THREADS.
37138
37139 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37140
37141         * modules/fnmatch-posix (License): Change to LGPLv2+.
37142         * modules/fnmatch-gnu (License): Likewise.
37143
37144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37145
37146         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37147
37148 2008-09-11  Jim Meyering  <meyering@redhat.com>
37149
37150         * users.txt: Add gtk-vnc.
37151
37152 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37153
37154         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37155         rotate amounts.
37156
37157         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37158         required for 16-bit and 8-bit rotates.
37159         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37160         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37161         UINT8_MAX instead of hard-coded constants.
37162         Suggested by Paul Eggert.
37163
37164 2008-09-07  Bruno Haible  <bruno@clisp.org>
37165
37166         * tests/test-striconveh.c (main): Check behaviour when converting from
37167         UTF-7.
37168
37169         Make striconveh work better with stateful encodings.
37170         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37171         that iconv does not increment the inptr when returning -1/EINVAL.
37172
37173 2008-09-07  Bruno Haible  <bruno@clisp.org>
37174
37175         * build-aux/config.rpath: Update according to libtool-2.2.6.
37176         * build-aux/config.libpath: Likewise.
37177
37178 2008-09-06  Bruno Haible  <bruno@clisp.org>
37179
37180         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37181         * lib/freadptr.c (freadptr): Likewise.
37182         * lib/freadseek.c (freadptrinc): Likewise.
37183         Reported by Simon Josefsson.
37184
37185 2008-09-06  Bruno Haible  <bruno@clisp.org>
37186
37187         * modules/freadptr (License): Change to LGPLv2+.
37188         * modules/freadseek (License): Likewise.
37189         Suggested by Eric Blake.
37190
37191         * modules/memchr2 (License): Change to LGPLv2+.
37192         Approved by Eric Blake.
37193
37194 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37195             Bruno Haible  <bruno@clisp.org>
37196
37197         Make gnulib-tool work with native 'sed' on AIX.
37198         * gnulib-tool (sed_noop): New variable.
37199         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37200         func_add_or_update, func_create_testdir): Use it to initialize sed
37201         script variables.
37202         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37203
37204 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37205             Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37208         also works after #include directives.
37209
37210 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37211
37212         getdate.y: reject an out-of-range timezone value
37213         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37214         the range [-24...+24].  When specified with only one or two digits,
37215         * tests/test-getdate.c: Tests for the fix.
37216         * doc/getdate.texi: Document this change.
37217
37218 2008-09-03  Bruno Haible  <bruno@clisp.org>
37219
37220         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37221
37222 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37223
37224         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37225         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37226         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37227         Blake <ebb9@byu.net>.
37228
37229         * tests/test-bitrotate.c: Add more test vectors.
37230
37231 2008-09-02  Eric Blake  <ebb9@byu.net>
37232
37233         vasnprintf-posix: handle large precision via %.*d
37234         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37235         when handling it ourselves.
37236         * tests/test-vasnprintf-posix.c (test_function): Add test.
37237         * tests/test-snprintf-posix.h (test_function): Likewise.
37238         * tests/test-sprintf-posix.h (test_function): Likewise.
37239         * tests/test-vasprintf-posix.c (test_function): Likewise.
37240         Reported by Alain Guibert.
37241
37242 2008-09-01  Eric Blake  <ebb9@byu.net>
37243
37244         c-stack: make configure-time check more robust
37245         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37246         successful sigaction call.
37247         Reported by Tom G. Christensen.
37248
37249 2008-09-01  Bruno Haible  <bruno@clisp.org>
37250
37251         New module 'findprog-lgpl'.
37252         * modules/findprog-lgpl: New file.
37253         * lib/findprog-lgpl.c: New file.
37254         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37255         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37256         to decide whether to use strdup or xstrdup, concatenated_filename or
37257         xconcatenated_filename.
37258
37259 2008-09-01  Bruno Haible  <bruno@clisp.org>
37260
37261         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37262         'xconcat-filename' (GPL).
37263         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37264         (License): Change to LGPLv2+.
37265         * modules/xconcat-filename: New file.
37266         * lib/concat-filename.h (concatenated_filename): Change specification.
37267         (xconcatenated_filename): New declaration.
37268         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37269         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37270         memory situations.
37271         * lib/xconcat-filename.c: New file.
37272         * NEWS: Mention the change.
37273         * lib/findprog.c: Include concat-filename.h, not filename.h.
37274         (find_in_path): Use xconcatenated_filename instead of
37275         concatenated_filename.
37276         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37277         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37278         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37279         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37280         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37281         instead of concatenated_filename.
37282         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37283         (execute_java_class): Use xconcatenated_filename instead of
37284         concatenated_filename.
37285         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37286         * modules/javacomp (Depends-on): Likewise.
37287         * modules/javaexec (Depends-on): Likewise.
37288
37289 2008-09-01  Bruno Haible  <bruno@clisp.org>
37290
37291         Split module 'filename' into 'filename' and 'concat-filename'.
37292         * modules/filename: Keep only lib/filename.h.
37293         (License): Change to LGPLv2+.
37294         * modules/concat-filename: New file, extracted from modules/filename.
37295         * lib/filename.h (concatenated_filename): Remove declaration.
37296         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37297         * lib/concat-filename.c: Include concat-filename.h.
37298         * NEWS: Mention the change.
37299
37300 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37301
37302         * lib/bitrotate.h (rotl8, rotr8): Add.
37303
37304         * modules/bitrotate (configure.ac): Need
37305         AC_REQUIRE([AC_C_INLINE]).
37306         (Description): Mention stdint.h.  Reported by Bruno Haible
37307         <bruno@clisp.org>.
37308
37309         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37310         Paolo Bonzini <bonzini@gnu.org>.
37311
37312 2008-08-31  Bruno Haible  <bruno@clisp.org>
37313
37314         Assume Solaris specific bi-arch conventions on Solaris systems.
37315         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37316         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37318         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37319         like acl_libdirstem.
37320         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37321         acl_libdirstem.
37322         * NEWS: Mention the change.
37323         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37324
37325 2008-08-31  Jim Meyering  <meyering@redhat.com>
37326
37327         * lib/strftime.h: Add comments describing the two added arguments.
37328
37329         remove duplicate #include directives
37330         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37331         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37332
37333 2008-08-31  Bruno Haible  <bruno@clisp.org>
37334
37335         New module 'sigpipe-die'.
37336         * modules/sigpipe-die: New file.
37337         * lib/sigpipe-die.h: New file.
37338         * lib/sigpipe-die.c: New file.
37339         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37340
37341 2008-08-31  Bruno Haible  <bruno@clisp.org>
37342
37343         Don't override previously installed signal handlers.
37344         * lib/fatal-signal.c (saved_sigactions): New variable.
37345         (uninstall_handlers): Reset the signal to the saved handler, not
37346         to SIG_DFL (except when ignored).
37347         (install_handlers): Save the previous handlers.
37348
37349 2008-08-30  Bruno Haible  <bruno@clisp.org>
37350
37351         * gnulib-tool (func_reset_sigpipe): New function.
37352         (func_get_automake_snippet, func_modules_transitive_closure,
37353         func_import): Invoke it before a join command that reads from stdin,
37354         to avoid "echo: write error: Broken pipe" error messages on stderr.
37355         Reported by Sam Steingold <sds@gnu.org>.
37356
37357 2008-08-30  Bruno Haible  <bruno@clisp.org>
37358
37359         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37360         Code copied from m4/open.m4.
37361         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37362         access and the filename ends in a slash. Code copied from lib/open.c.
37363         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37364         * tests/test-fopen.c (main): Check against bug with trailing slash.
37365
37366 2008-08-29  Bruno Haible  <bruno@clisp.org>
37367
37368         Avoid some "gcc -pedantic" warnings.
37369         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37370         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37371         * lib/dirent.in.h: Likewise.
37372         * lib/fcntl.in.h: Likewise.
37373         * lib/float.in.h: Likewise.
37374         * lib/iconv.in.h: Likewise.
37375         * lib/inttypes.in.h: Likewise.
37376         * lib/locale.in.h: Likewise.
37377         * lib/math.in.h: Likewise.
37378         * lib/netinet_in.in.h: Likewise.
37379         * lib/search.in.h: Likewise.
37380         * lib/signal.in.h: Likewise.
37381         * lib/stdarg.in.h: Likewise.
37382         * lib/stdint.in.h: Likewise.
37383         * lib/stdio.in.h: Likewise.
37384         * lib/stdlib.in.h: Likewise.
37385         * lib/string.in.h: Likewise.
37386         * lib/strings.in.h: Likewise.
37387         * lib/sys_select.in.h: Likewise.
37388         * lib/sys_socket.in.h: Likewise.
37389         * lib/sys_stat.in.h: Likewise.
37390         * lib/sys_time.in.h: Likewise.
37391         * lib/sysexits.in.h: Likewise.
37392         * lib/time.in.h: Likewise.
37393         * lib/unistd.in.h: Likewise.
37394         * lib/wchar.in.h: Likewise.
37395         * lib/wctype.in.h: Likewise.
37396         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37397         * modules/fchdir (Makefile.am): Likewise.
37398         * modules/fcntl (Makefile.am): Likewise.
37399         * modules/float (Makefile.am): Likewise.
37400         * modules/iconv_open (Makefile.am): Likewise.
37401         * modules/inttypes (Makefile.am): Likewise.
37402         * modules/locale (Makefile.am): Likewise.
37403         * modules/math (Makefile.am): Likewise.
37404         * modules/netinet_in (Makefile.am): Likewise.
37405         * modules/search (Makefile.am): Likewise.
37406         * modules/signal (Makefile.am): Likewise.
37407         * modules/stdarg (Makefile.am): Likewise.
37408         * modules/stdint (Makefile.am): Likewise.
37409         * modules/stdio (Makefile.am): Likewise.
37410         * modules/stdlib (Makefile.am): Likewise.
37411         * modules/string (Makefile.am): Likewise.
37412         * modules/strings (Makefile.am): Likewise.
37413         * modules/sys_select (Makefile.am): Likewise.
37414         * modules/sys_socket (Makefile.am): Likewise.
37415         * modules/sys_stat (Makefile.am): Likewise.
37416         * modules/sys_time (Makefile.am): Likewise.
37417         * modules/sysexits (Makefile.am): Likewise.
37418         * modules/time (Makefile.am): Likewise.
37419         * modules/unistd (Makefile.am): Likewise.
37420         * modules/wchar (Makefile.am): Likewise.
37421         * modules/wctype (Makefile.am): Likewise.
37422         Reported by Reuben Thomas <rrt@sc3d.org>.
37423
37424 2008-08-29  Bruno Haible  <bruno@clisp.org>
37425
37426         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37427         any more.
37428
37429 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37430
37431         * MODULES.html.sh (Misc): Add bitrotate.
37432
37433         * modules/bitrotate: New file.
37434
37435         * lib/bitrotate.h: New file.
37436
37437         * modules/bitrotate-tests: New file.
37438
37439         * tests/test-bitrotate.c: New file.
37440
37441         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37442         on the bitrotate module.
37443
37444         * lib/arctwo.c: Use new bitrotate module.
37445
37446 2008-08-29  Jim Meyering  <meyering@redhat.com>
37447
37448         bootstrap: merge changes from coreutils
37449         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37450         of copied files.  Remove a kludge, now that this is fixed.
37451         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37452         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37453         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37454
37455 2008-08-29  Bruno Haible  <bruno@clisp.org>
37456
37457         * MODULES.html.sh: Remove --cvs-urls option.
37458
37459 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37460
37461         maint.mk: adjust to file name change
37462         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37463
37464 2008-08-28  Jim Meyering  <meyering@redhat.com>
37465
37466         * modules/getndelim2 (License): Relicense to LGPLv2+.
37467         Approved by Richard Stallman for the version of 1995, and by
37468         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37469
37470 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37471
37472         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37473         dummy if one is not available.  Do not touch them if
37474         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37475         (getc_maybe_unlocked): New.
37476         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37477
37478 2008-08-26  Eric Blake  <ebb9@byu.net>
37479
37480         doc/INSTALL: resync from autoconf
37481         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37482         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37483         moving...
37484         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37485         * INSTALL: Regenerate.
37486         * INSTALL.ISO: New file.
37487         * INSTALL.UTF-8: Likewise.
37488
37489 2008-08-26  Jim Meyering  <meyering@redhat.com>
37490
37491         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37492         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37493         these definitions conditional, so that they may be overridden, too.
37494
37495 2008-08-26  Bruno Haible  <bruno@clisp.org>
37496
37497         Generate INSTALL file variants with prettier quotes.
37498         * doc/Makefile (INSTALL_PRELUDE): New macro.
37499         (INSTALL): Use it.
37500         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37501
37502 2008-08-26  Bruno Haible  <bruno@clisp.org>
37503
37504         Run makeinfo in an English locale.
37505         * doc/Makefile (MAKEINFO): New variable.
37506
37507 2008-08-26  Bruno Haible  <bruno@clisp.org>
37508
37509         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37510         Suggested by Eric Blake.
37511
37512 2008-08-25  Bruno Haible  <bruno@clisp.org>
37513
37514         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37515
37516 2008-08-25  Eric Blake  <ebb9@byu.net>
37517
37518         c-stack: test that stack overflow can be caught
37519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37520         that platform allows handling stack overflow; at least OS/2 EMX
37521         has sigaltstack, but crashes before transferring control to
37522         handler on stack overflow.
37523         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37524         check for HAVE_STACK_OVERFLOW_HANDLING.
37525         Reported by Elbert Pol.
37526
37527 2008-08-25  Bruno Haible  <bruno@clisp.org>
37528
37529         * doc/posix-functions/strftime.texi: Fix description of strftime
37530         module.
37531
37532 2008-08-24  Bruno Haible  <bruno@clisp.org>
37533
37534         * tests/uniwidth/test-uc_width2.c: New file.
37535         * tests/uniwidth/test-uc_width2.sh: New file.
37536         * modules/uniwidth/width-tests (Files): Add the new files.
37537         (TESTS): Add uniwidth/test-uc_width2.sh.
37538         (TESTS_ENVIRONMENT): New variable.
37539         (check_PROGRAMS): Add test-uc_width2.
37540         (test_uc_width2_SOURCES): New variable.
37541
37542         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37543         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37544         not 0x00AB.
37545         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37546
37547 2008-08-22  Eric Blake  <ebb9@byu.net>
37548
37549         test-lock, test-tls: mention why a test is skipped
37550         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37551         skipped.
37552         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37553
37554         count-one-bits: relax license
37555         * modules/count-one-bits (License): Relicense to LGPLv2+.
37556         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37557
37558 2008-08-22  Andreas Schwab  <schwab@suse.de>
37559
37560         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37561         Remove spurious space in assignment.
37562
37563 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37564
37565         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37566         Paul Eggert <eggert@CS.UCLA.EDU>.
37567
37568 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37569
37570         * modules/gettext: Add m4/threadlib.m4.
37571
37572 2008-08-19  Eric Blake  <ebb9@byu.net>
37573
37574         test-c-stack: fix compilation failure on FreeBSD 5.0
37575         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37576         headers before <sys/resource.h>.
37577         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37578         the bug.
37579         Reported by Nelson H. F. Beebe.
37580
37581         strverscmp: migrate from "strverscmp.h" to <string.h>
37582         * modules/string (Makefile.am): Add new hooks.
37583         * modules/strverscmp (Files): Remove strverscmp.h.
37584         (Depends-on): Add string.
37585         (configure.ac): Add indicator.
37586         (Include): Mention new header.
37587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37588         defaults.
37589         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37590         results.
37591         * lib/strverscmp.h: Delete.
37592         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37593         * tests/test-strverscmp.c (includes): Adjust client.
37594         * lib/check-version.c (includes): Likewise.
37595         * NEWS: Document the change.
37596
37597         strverscmp: add unit test
37598         * modules/strverscmp-tests: New file.
37599         * tests/test-strverscmp.c: Likewise.
37600
37601 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37602
37603         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37604         regarding Windows crypto stuff, from Mono.
37605
37606 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37607
37608         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37609         if present, for intel RND.  Return error on failures.
37610
37611 2008-08-18  Ben Pfaff  <blp@gnu.org>
37612
37613         gitlog-to-changelog: give better diagnostic for failed pipe-open
37614         * build-aux/gitlog-to-changelog: Improve error message: suggest
37615         that the version of Git may be too old.
37616
37617 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37618
37619         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37620         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37621
37622 2008-08-18  Bruno Haible  <bruno@clisp.org>
37623
37624         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37625         pthread_in_use().
37626
37627 2008-08-18  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/glthread/threadlib.c: Include <pthread.h>.
37630
37631 2008-08-18  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37634         glthread_recursive_lock_* macros.
37635         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37636         Fix syntax error.
37637
37638 2008-08-18  Bruno Haible  <bruno@clisp.org>
37639
37640         * lib/glthread/thread.c: Avoid forcing a context switch right after
37641         thread creation.
37642
37643 2008-08-17  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37646         * lib/glthread/thread.h: Provide Win32 specific implementation.
37647         * modules/thread (Files): Add lib/glthread/thread.c.
37648         (Depends-on): Add lock.
37649         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37650
37651 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37652
37653         New module 'yield'.
37654         * modules/yield: New file.
37655         * lib/glthread/yield.h: New file.
37656         * m4/yield.m4: New file.
37657         * MODULES.html.sh (Multithreading): Add yield.
37658
37659 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37660
37661         New module 'thread'.
37662         * modules/thread: New file.
37663         * lib/glthread/thread.h: New file.
37664         * m4/thread.m4: New file.
37665         * MODULES.html.sh (Multithreading): Add thread.
37666
37667 2008-08-17  Bruno Haible  <bruno@clisp.org>
37668
37669         * lib/glthread/lock.h: Include <stdlib.h> always.
37670         * lib/glthread/tls.h: Likewise.
37671         * lib/glthread/cond.h: Likewise.
37672
37673 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37674
37675         New module 'cond'.
37676         * modules/cond: New file.
37677         * lib/glthread/cond.h: New file.
37678         * lib/glthread/cond.c: New file.
37679         * m4/cond.m4: New file.
37680         * MODULES.html.sh (Multithreading): Add cond.
37681
37682 2008-08-16  Eric Blake  <ebb9@byu.net>
37683
37684         c-stack: fix regression on Irix 5.3 from 2008-06-21
37685         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37686         sa_sigaction...
37687         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37688         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37690         * modules/signal (Makefile.am): Use the value.
37691         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37692         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37693         * doc/posix-headers/signal.texi (signal.h): Document this
37694         portability issue.
37695         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37696         Reported by Tom G. Christensen.
37697
37698 2008-08-17  Bruno Haible  <bruno@clisp.org>
37699
37700         New module 'threadlib'.
37701         * modules/threadlib: New file.
37702         * lib/glthread/threadlib.c: New file, extracted from
37703         lib/glthread/lock.c.
37704         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37705         functions.
37706         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37707         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37708         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37709         macros.
37710         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37711         (gl_DISABLE_THREADS): Remove macro.
37712         * modules/lock (Files): Remove build-aux/config.rpath.
37713         (Depends-on): Remove havelib. Add threadlib.
37714         (configure.ac-early): Remove section.
37715         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37716         * modules/tls (Depends-on): Remove lock. Add threadlib.
37717         (Link): New section, copied from threadlib.
37718         * MODULES.html.sh (Multithreading): Add threadlib.
37719
37720 2008-08-14  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37723         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37724         glthread_rwlock_unlock, glthread_rwlock_destroy,
37725         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37726         glthread_recursive_lock_destroy): Define as macros always.
37727         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37728         glthread_lock_lock.
37729         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37730         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37731         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37732         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37733         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37734         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37735         (glthread_recursive_lock_lock_func): Renamed from
37736         glthread_recursive_lock_lock.
37737         (glthread_recursive_lock_unlock_func): Renamed from
37738         glthread_recursive_lock_unlock.
37739         (glthread_recursive_lock_destroy_func): Renamed from
37740         glthread_recursive_lock_destroy.
37741
37742 2008-08-14  Bruno Haible  <bruno@clisp.org>
37743
37744         * lib/glthread/lock.h: Renamed from lib/lock.h.
37745         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37746         * lib/glthread/tls.h: Renamed from lib/tls.h.
37747         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37748         * lib/fstrcmp.c: Update includes.
37749         * lib/strsignal.c: Update includes.
37750         * modules/lock (Files, Makefile.am): Update.
37751         (Include): Change to "glthread/lock.h".
37752         * modules/tls (Files, Makefile.am): Update.
37753         (Include): Change to "glthread/tls.h".
37754         * tests/test-lock.c: Update includes.
37755         * tests/test-tls.c: Update includes.
37756         * NEWS: Mention the renamed header files.
37757
37758 2008-08-11  Jim Meyering  <meyering@redhat.com>
37759
37760         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37761
37762 2008-08-11  Eric Blake  <ebb9@byu.net>
37763
37764         test-c-stack: avoid C99-ism
37765         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37766         before statement.
37767         Reported by Alain Guibert.
37768
37769 2008-08-10  Jim Meyering  <meyering@redhat.com>
37770
37771         ensure that return value of uinttostr et al are not ignored
37772         * lib/inttostr.h (__GNUC_PREREQ): Define.
37773         (__attribute_warn_unused_result__): Define.
37774         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37775
37776 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37777
37778         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37779         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37780
37781 2008-08-07  Jim Meyering  <meyering@redhat.com>
37782
37783         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37784
37785         * modules/mkstemp (License): Relicense under LGPLv2+.
37786         * modules/tempname (License): Likewise.
37787
37788 2008-08-06  Bruno Haible  <bruno@clisp.org>
37789
37790         * lib/poll.c (poll): Further micro-optimization.
37791
37792 2008-08-06  Jim Meyering  <meyering@redhat.com>
37793
37794         inet_pton.c: use locale-independent tolower
37795         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37796         (inet_pton6): Use c_tolower rather than tolower.
37797         * modules/inet_pton (Depends-on): Add c-ctype.
37798
37799 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37800
37801         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37802         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37803
37804 2008-08-06  Jim Meyering  <meyering@redhat.com>
37805
37806         * modules/inet_pton (License): Relicense under LGPLv2+.
37807
37808 2008-08-03  Bruno Haible  <bruno@clisp.org>
37809
37810         Additional non-aborting API for lock and tls.
37811         * lib/lock.h: Include <errno.h>.
37812         (glthread_lock_init): New macro/function.
37813         (gl_lock_init): Define as wrapper around glthread_lock_init.
37814         (glthread_lock_lock): New macro/function.
37815         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37816         (glthread_lock_unlock): New macro/function.
37817         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37818         (glthread_lock_destroy): New macro/function.
37819         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37820         (glthread_rwlock_init): New macro/function.
37821         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37822         (glthread_rwlock_rdlock): New macro/function.
37823         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37824         (glthread_rwlock_wrlock): New macro/function.
37825         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37826         (glthread_rwlock_unlock): New macro/function.
37827         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37828         (glthread_rwlock_destroy): New macro/function.
37829         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37830         (glthread_recursive_lock_init): New macro/function.
37831         (gl_recursive_lock_init): Define as wrapper around
37832         glthread_recursive_lock_init.
37833         (glthread_recursive_lock_lock): New macro/function.
37834         (gl_recursive_lock_lock): Define as wrapper around
37835         glthread_recursive_lock_lock.
37836         (glthread_recursive_lock_unlock): New macro/function.
37837         (gl_recursive_lock_unlock): Define as wrapper around
37838         glthread_recursive_lock_unlock.
37839         (glthread_recursive_lock_destroy): New macro/function.
37840         (gl_recursive_lock_destroy): Define as wrapper around
37841         glthread_recursive_lock_destroy.
37842         (glthread_once): New macro/function.
37843         (gl_once): Define as wrapper around glthread_once.
37844         Update function declarations.
37845         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37846         glthread_rwlock_init. Return error code.
37847         (glthread_rwlock_rdlock_multithreaded): Renamed from
37848         glthread_rwlock_rdlock. Return error code.
37849         (glthread_rwlock_wrlock_multithreaded): Renamed from
37850         glthread_rwlock_wrlock. Return error code.
37851         (glthread_rwlock_unlock_multithreaded): Renamed from
37852         glthread_rwlock_unlock. Return error code.
37853         (glthread_rwlock_destroy_multithreaded): Renamed from
37854         glthread_rwlock_destroy. Return error code.
37855         (glthread_recursive_lock_init_multithreaded): Renamed from
37856         glthread_recursive_lock_init. Return error code.
37857         (glthread_recursive_lock_lock_multithreaded): Renamed from
37858         glthread_recursive_lock_lock. Return error code.
37859         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37860         glthread_recursive_lock_unlock. Return error code.
37861         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37862         glthread_recursive_lock_destroy. Return error code.
37863         (glthread_once_call): Make static.
37864         (glthread_once_multithreaded): Renamed from glthread_once.
37865         * lib/tls.h: Include <errno.h>.
37866         (glthread_tls_key_init): New macro/function.
37867         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37868         (glthread_tls_set): New macro/function.
37869         (gl_tls_set): Define as wrapper around glthread_tls_set.
37870         (glthread_tls_key_destroy): New macro/function.
37871         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37872         Update function declarations.
37873         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37874         glthread_tls_get.
37875         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37876
37877 2008-08-04  Eric Blake  <ebb9@byu.net>
37878
37879         gnumakefile: use space, not TAB, outside of targets
37880         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37881
37882 2008-08-02  Jim Meyering  <meyering@redhat.com>
37883
37884         getdate.y: avoid locale-dependent date parsing failure
37885         In Turkish locales, getdate would fail to recognize keywords
37886         containing a lowercase "i".  The solution is not to rely on
37887         locale-sensitive case-conversion.
37888         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37889         (lookup_word): Use c_toupper in place of toupper.
37890         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37891         Reported by Vefa Bicakci <bicave@superonline.com> in
37892         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37893         * modules/getdate (Depends-on): Add c-ctype.
37894
37895 2008-08-02  Bruno Haible  <bruno@clisp.org>
37896
37897         * gnulib-tool (func_import): When updating or creating a .gitignore
37898         file, prepend each added line with a slash, and ignore leading slashes
37899         from the existing lines.
37900         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37901
37902 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37903
37904         Portability fix for GNU make 3.79.1.
37905         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37906         versions do not understand.
37907
37908 2008-08-01  Bruno Haible  <bruno@clisp.org>
37909
37910         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37911         * tests/test-isnanf.h (zero): New variable.
37912         (main): Avoid literal -0.0f.
37913         * tests/test-isnand.h (zero): New variable.
37914         (main): Avoid literal -0.0.
37915         * tests/test-isnanl.h (zero): New variable.
37916         (main): Avoid literal -0.0L.
37917         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37918         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37919         -0.0, -0.0L.
37920         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37921         (test_signbitd): Avoid literal -0.0.
37922         (test_signbitl): Avoid literal -0.0L.
37923         * tests/test-ceilf1.c (zero): New variable.
37924         (main): Avoid literal -0.0f.
37925         * tests/test-ceill.c (zero): New variable.
37926         (main): Avoid literal -0.0L.
37927         * tests/test-floorf1.c (zero): New variable.
37928         (main): Avoid literal -0.0f.
37929         * tests/test-floorl.c (zero): New variable.
37930         (main): Avoid literal -0.0L.
37931         * tests/test-roundf1.c (zero): New variable.
37932         (main): Avoid literal -0.0f.
37933         * tests/test-round1.c (zero): New variable.
37934         (main): Avoid literal -0.0.
37935         * tests/test-roundl.c (zero): New variable.
37936         (main): Avoid literal -0.0L.
37937         * tests/test-truncf1.c (zero): New variable.
37938         (main): Avoid literal -0.0f.
37939         * tests/test-trunc1.c (zero): New variable.
37940         (main): Avoid literal -0.0.
37941         * tests/test-truncl.c (zero): New variable.
37942         (main): Avoid literal -0.0L.
37943         * tests/test-frexp.c (zero): New variable.
37944         (main): Avoid literal -0.0.
37945         * tests/test-frexpl.c (zero): New variable.
37946         (main): Avoid literal -0.0L.
37947         * tests/test-ldexpl.c (zero): New variable.
37948         (main): Avoid literal -0.0L.
37949         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37950         (zerod, zerol): New variables.
37951         (test_function): Avoid literals -0.0, -0.0L.
37952         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37953         (zerod, zerol): New variables.
37954         (test_function): Avoid literals -0.0, -0.0L.
37955         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37956         (zerod, zerol): New variables.
37957         (test_function): Avoid literals -0.0, -0.0L.
37958         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37959         (zerod, zerol): New variables.
37960         (test_function): Avoid literals -0.0, -0.0L.
37961         * tests/test-strtod.c (zero): New variable.
37962         (main): Avoid literal -0.0.
37963         Reported by Jonathan C. Patschke <jp@centtech.com>.
37964
37965 2008-07-31  Jim Meyering  <meyering@redhat.com>
37966
37967         sha256.h: correct definition of SHA224_DIGEST_SIZE
37968         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37969         Reported by Paulie Pena IV <paulie4@gmail.com>.
37970         Define as 224 / 8, rather than as a literal.
37971         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37972         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37973         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37974
37975 2008-07-31  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37978         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37979         Reported by Jonathan Patschke <jp@centtech.com>.
37980
37981 2008-07-31  Bruno Haible  <bruno@clisp.org>
37982
37983         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37984         Reported by Paolo Bonzini <bonzini@gnu.org>.
37985
37986 2008-07-30  Eric Blake  <ebb9@byu.net>
37987
37988         test-strtod: allow compilation without -lm
37989         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37990         Reported by Dennis Clarke <blastwave@gmail.com>.
37991
37992 2008-07-28  Jim Meyering  <meyering@redhat.com>
37993
37994         bootstrap: work also when there are no .po files in po/
37995         * build-aux/bootstrap (update_po_files): Complete the change
37996         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37997
37998 2008-07-27  Jim Meyering  <meyering@redhat.com>
37999
38000         * users.txt: Add zile.
38001
38002 2008-07-26  Ben Pfaff  <blp@gnu.org>
38003
38004         Add missing dependencies on new m4/exponent[fdl].m4 files.
38005         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38006         * modules/isnand-nolibm: Add m4/exponentd.m4.
38007         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38008         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38009         m4/isnan[fdl].m4, because the macros actually used moved.
38010         Reported by Jim Meyering.
38011
38012 2008-07-14  Ben Pfaff  <blp@gnu.org>
38013
38014         Add isinf module.
38015         * lib/isinf.c: New file.
38016         * lib/math.in.h: Define isinf macro if we have decided to replace
38017         it.
38018         * m4/isinf.m4: New file.
38019         * m4/math_h.m4: Initialize and substitute variables for isinf
38020         module.
38021         * modules/isinf: New file.
38022         * modules/isinf-tests: New file.
38023         * modules/math: Add substitutions for new module.
38024         * tests/test-isinf.c: New file.
38025         * doc/posix-functions/isinf.texi: Mention new module.
38026         * MODULES.html.sh: Mention new module.
38027
38028 2008-07-14  Ben Pfaff  <blp@gnu.org>
38029
38030         Factor out some macros for use by additional modules.
38031         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38032         exponentf.m4.
38033         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38034         exponentd.m4.
38035         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38036         file exponentl.m4.
38037         * m4/exponentf.m4: New file.
38038         * m4/exponentd.m4: New file.
38039         * m4/exponentl.m4: New file.
38040         * modules/isnanf: Use new file m4/exponentf.m4.
38041         * modules/isnand: Use new file m4/exponentd.m4.
38042         * modules/isnanl: Use new file m4/exponentl.m4.
38043
38044 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38045
38046         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38047         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38048         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38049         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38050
38051         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38052         readlink on platforms without PATH_MAX.
38053
38054 2008-07-21  Eric Blake  <ebb9@byu.net>
38055
38056         Warn, not fail, on stale version.
38057         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38058
38059         Don't allow installation with stale devel version number.
38060         * top/GNUmakefile (_is-install-target): New macro.
38061         (_curr-ver): Forbid installation with stale version number.
38062
38063 2008-07-20  Bruno Haible  <bruno@clisp.org>
38064
38065         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38066         TESTS_ENVIRONMENT.
38067         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38068
38069 2008-07-20  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/c-stack.h (c_stack_action): Add documentation.
38072         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38073
38074 2008-07-20  Bruno Haible  <bruno@clisp.org>
38075
38076         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38077         * modules/readlink (License): Likewise.
38078
38079 2008-07-17  Eric Blake  <ebb9@byu.net>
38080
38081         * modules/c-stack (Link): Fix typo.
38082
38083         Make c-stack use libsigsegv, when available.
38084         * modules/c-stack (Depends-on): Add libsigsegv.
38085         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38086         needed.
38087         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38088         (segv_handler, overflow_handler, c_stack_action)
38089         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38090         implementation when libsigsegv is available, but only when using
38091         the library is necessary.
38092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38093         comment, explaining why XSI check fails on Linux.
38094         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38095         * tests/test-c-stack2.sh: Tweak skip message.
38096         * NEWS: Document new link-time requirements.
38097
38098 2008-07-16  Eric Blake  <ebb9@byu.net>
38099
38100         c-stack: Expose false positives when not using libsigsegv.
38101         * modules/c-stack-tests (Files): Expand test.
38102         * tests/test-c-stack.c (main): Add means to conditionally trigger
38103         non-overflow SIGSEGV.
38104         * tests/test-c-stack2.sh: New file.
38105
38106 2008-07-14  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38109         Reported by Eric Blake.
38110
38111 2008-07-14  Sam Steingold  <sds@gnu.org>
38112             Bruno Haible  <bruno@clisp.org>
38113
38114         New module libsigsegv.
38115         * modules/libsigsegv: New file.
38116         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38117         modifications.
38118         * MODULES.html.sh (Signal handling): New section.
38119
38120 2008-07-14  Bruno Haible  <bruno@clisp.org>
38121
38122         * modules/unictype/ctype-* (Description): Add the word "function".
38123         Improves the resulting doc in MODULES.html.
38124
38125 2008-07-12  Ben Pfaff  <blp@gnu.org>
38126
38127         Add longlong module.
38128         * modules/longlong: New file.
38129
38130 2008-07-12  Bruno Haible  <bruno@clisp.org>
38131
38132         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38133         to empty.
38134
38135 2008-07-10  Ben Pfaff  <blp@gnu.org>
38136
38137         Add isnan module.
38138         * doc/posix-functions/isnan.texi: Mention new module.
38139         * lib/math.in.h: Define isnan macro if we have decided to replace
38140         it.
38141         * m4/isnan.m4: New file.
38142         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38143         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38144         also.
38145         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38146         redundancy.
38147         * m4/math_h.m4: Initialize and substitute variables for isnan
38148         module.
38149         * modules/isnan: New file.
38150         * modules/isnan-tests: New file.
38151         * modules/math: Add substitutions for new module.
38152         * tests/test-isnan.c: New file.
38153         * MODULES.html.sh: Mention new module.
38154
38155 2008-07-10  Ben Pfaff  <blp@gnu.org>
38156
38157         Add isnanf module.
38158         * lib/isnanf.m4: New file.
38159         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38160         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38161         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38162         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38163         * modules/isnanf: New file.
38164         * modules/isnanf-tests: New file.
38165         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38166         files.
38167         * tests/test-isnanf-nolibm.c: factored most of its contents into
38168         new file tests/test-isnanf.h.
38169         * tests/test-isnanf.h: New file.
38170         * tests/test-isnanf.c: New file.
38171         * MODULES.html.sh: Mention new module.
38172         * doc/glibc-functions/isnanf.texi: Mention new module.
38173
38174 2008-07-10  Ben Pfaff  <blp@gnu.org>
38175
38176         Add isnand module.
38177         * lib/isnand.h: New file.
38178         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38179         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38180         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38181         functionality also.
38182         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38183         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38184         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38185         * modules/isnand: New file.
38186         * modules/isnand-tests: New file.
38187         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38188         files.
38189         * tests/test-isnand-nolibm.c: factored most of its contents into
38190         new file tests/test-isnand.h.
38191         * tests/test-isnand.h: New file.
38192         * tests/test-isnand.c: New file.
38193         * MODULES.html.sh: Mention new module.
38194
38195 2008-07-10  Ben Pfaff  <blp@gnu.org>
38196
38197         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38198         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38199         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38200         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38201         * modules/isnanf-nolibm: Update references to renamed files.
38202         * modules/isnand-nolibm: Likewise.
38203         * modules/isnanf-nolibm-tests: Likewise.
38204         * modules/isnand-nolibm-tests: Likewise.
38205         * lib/frexp.c: Likewise.
38206         * lib/isfinite.c: Likewise.
38207         * lib/signbitd.c: Likewise.
38208         * lib/signbitf.c: Likewise.
38209         * lib/vasnprintf.c: Likewise.
38210         * tests/test-ceilf1.c: Likewise.
38211         * tests/test-ceilf2.c: Likewise.
38212         * tests/test-floorf1.c: Likewise.
38213         * tests/test-floorf2.c: Likewise.
38214         * tests/test-frexp.c: Likewise.
38215         * tests/test-round1.c: Likewise.
38216         * tests/test-round2.c: Likewise.
38217         * tests/test-roundf1.c: Likewise.
38218         * tests/test-strtod.c: Likewise.
38219         * tests/test-trunc1.c: Likewise.
38220         * tests/test-trunc2.c: Likewise.
38221         * tests/test-truncf1.c: Likewise.
38222         * tests/test-truncf2.c: Likewise.
38223         * NEWS: Mention the renamed header files.
38224
38225 2008-07-11  Jim Meyering  <meyering@redhat.com>
38226
38227         vc-list-files: make the last-resort awk code more portable
38228         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38229         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38230         does not support it.
38231
38232 2008-07-10  Eric Blake  <ebb9@byu.net>
38233
38234         Work with tar's bootstrap.
38235         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38236         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38237         an m4 comment.
38238
38239 2008-07-09  Jim Meyering  <meyering@redhat.com>
38240
38241         posix-shell.m4: fix typo that made this test malfunction
38242         * m4/posix-shell.m4: Remove capitalization in variable name.
38243
38244 2008-07-08  Bruno Haible  <bruno@clisp.org>
38245
38246         * m4/onceonly.m4: Update comments.
38247         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38248
38249 2008-07-04  Jim Meyering  <meyering@redhat.com>
38250
38251         * users.txt: Add vc-dwim.
38252         (bison, coreutils): Use the gitweb URL.
38253
38254 2008-07-03  Jim Meyering  <meyering@redhat.com>
38255
38256         * users.txt: Add libffcall.  From Sam Steingold.
38257
38258 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38259
38260         getdate.y: do not ignore TZ with relative day, month or year offset
38261         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38262         relative-date-handling, since otherwise, the latter would clobber the
38263         sole output (an updated Start value) of the tz-handling block.
38264         * tests/test-getdate.c: Tests for the fix
38265
38266 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38267
38268         Recognize 'foo_LIBRARIES += libgnu.a'.
38269         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38270         makefile snippet has already specified an installation location,
38271         also using '+='.
38272
38273 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38274
38275         getdate.y: factor out common actions
38276         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38277         Use them in place of open-coded actions.
38278
38279 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38280
38281         Add self-test for getdate module.
38282         * modules/getdate-tests: New file.
38283         * tests/test-getdate.c: New file.
38284
38285 2008-06-29  Bruno Haible  <bruno@clisp.org>
38286
38287         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38288         .gitignore.
38289         Reported by Sylvain Beucler <beuc@beuc.net>.
38290
38291 2008-06-29  Bruno Haible  <bruno@clisp.org>
38292
38293         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38294         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38295
38296 2008-06-29  Bruno Haible  <bruno@clisp.org>
38297
38298         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38299         EXTRA_DIST.
38300         Reported by Sylvain Beucler <beuc@beuc.net>.
38301
38302 2008-06-26  Jim Meyering  <meyering@redhat.com>
38303
38304         make several modules depend on the "open" module
38305         This provides slightly increased consistency when opening-for-write
38306         the name of a non-directory spelled with a trailing slash.
38307         * modules/chdir-safer: Likewise.
38308         * modules/chown: Likewise.
38309         * modules/clean-temp: Likewise.
38310         * modules/copy-file: Likewise.
38311         * modules/fchdir: Likewise.
38312         * modules/fcntl-safer: Likewise.
38313         * modules/pipe: Likewise.
38314         * modules/utime: Likewise.
38315         Prompted by Eric Blake and Bruno Haible.
38316
38317 2008-06-24  Andreas Schwab  <schwab@suse.de>
38318
38319         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38320         literals can be used as initializers for global variables.
38321
38322 2008-06-23  Eric Blake  <ebb9@byu.net>
38323
38324         Make gnulib-cache.m4 easier to diff.
38325         * gnulib-tool (func_import): Allow newlines when reading cached
38326         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38327
38328 2008-06-23  Bruno Haible  <bruno@clisp.org>
38329
38330         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38331         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38332         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38333         m4/signalblocking.m4.
38334         (gl_PREREQ_SIGACTION): Don't invoke it.
38335         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38336         gl_PREREQ_SIG_HANDLER_H.
38337         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38338         Don't check for sigaction here.
38339
38340 2008-06-23  Bruno Haible  <bruno@clisp.org>
38341
38342         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38343         (install_handlers): Don't set the SA_RESETHAND flag.
38344
38345 2008-06-23  Bruno Haible  <bruno@clisp.org>
38346
38347         * m4/sigaction.m4: Comment fixes.
38348         * lib/signal.in.h: Likewise.
38349
38350 2008-06-23  Eric Blake  <ebb9@byu.net>
38351
38352         Fix typo.
38353         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38354
38355         Avoid SA_ namespace.
38356         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38357         Reported by Ralf Wildenhues.
38358
38359         Avoid test failure due to SA_RESTORER.
38360         * tests/test-sigaction.c (SA_MASK): New macro.
38361         (main): Avoid failing due to extension flags being set.
38362         Reported by Jim Meyering.
38363
38364         Revert use of sig-handler.h in sigprocmask.c.
38365         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38366         it requires the existence of struct sigaction.
38367         * lib/sigprocmask.c (handler_t): Restore typedef.
38368         (rpl_signal, old_handlers): Use local type.
38369
38370 2008-06-22  Bruno Haible  <bruno@clisp.org>
38371
38372         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38373         conditionally.
38374         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38375
38376 2008-06-22  Bruno Haible  <bruno@clisp.org>
38377
38378         * doc/posix-functions/siginterrupt.texi: Move note.
38379
38380         * lib/signal.in.h (SA_RESTART): New macro.
38381         * lib/sigaction.c: Update comment.
38382
38383         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38384
38385         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38386         (gl_PREREQ_SIGPROCMASK): Invoke it.
38387         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38388
38389         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38390
38391         * lib/sigprocmask.c: Update a comment.
38392
38393 2008-06-21  Eric Blake  <ebb9@byu.net>
38394
38395         Use sigaction module rather than signal().
38396         * modules/c-stack (Depends-on): Add sigaction.
38397         * modules/fatal-signal (Depends-on): Likewise.
38398         * modules/nanosleep (Depends-on): Likewise.
38399         * modules/sigprocmask (Files): Add sig-handler.h.
38400         * modules/sigaction (Files): Likewise.
38401         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38402         Eggert.
38403         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38404         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38405         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38406         (init_fatal_signals): Likewise.
38407         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38408         (siginterrupt): Delete fallback.
38409         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38410         instead.
38411         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38412         siginterrupt.
38413
38414         New module sigaction, for mingw.
38415         * modules/sigaction: New module...
38416         * modules/sigaction-tests: ...and its test.
38417         * m4/sigaction.m4: New file.
38418         * lib/sigaction.c: Likewise.
38419         * tests/test-sigaction.c: Likewise.
38420         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38421         * modules/signal (Makefile.am): Likewise.
38422         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38423         needed.
38424         * doc/posix-headers/signal.texi (signal.h): Mention provided
38425         types.
38426         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38427         that sigaction is preferable.
38428         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38429         module.
38430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38431         sigaction.
38432
38433         Improve robustness of sigprocmask by overriding signal.
38434         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38435         is in use.
38436         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38437         (SIGKILL, SIGSTOP): Provide fallbacks.
38438         (rpl_signal): Implement.
38439         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38440         signal can be called inside handlers.
38441
38442         Fix nanosleep module on mingw.
38443         * modules/nanosleep (Depends-on): Add sys_select.
38444         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38445
38446         Fix licensing of sigprocmask.
38447         * modules/raise (License): Relicense as LGPL.
38448
38449 2008-06-21  Bruno Haible  <bruno@clisp.org>
38450
38451         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38452         result if it contains question marks.
38453         Reported by Michael Geng <linux@michaelgeng.de>.
38454
38455 2008-06-19  Bruno Haible  <bruno@clisp.org>
38456
38457         Fix CVS-ism.
38458         * doc/gnulib.texi: Include updated-stamp.texi.
38459         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38460         (updated-stamp.texi): New rule.
38461         (gnulib.info): Depend on it.
38462         * doc/.gitignore: Add updated-stamp.texi.
38463         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38464
38465 2008-06-19  Bruno Haible  <bruno@clisp.org>
38466
38467         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38468         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38469
38470 2008-06-19  Eric Blake  <ebb9@byu.net>
38471
38472         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38473         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38474         Reported by Stepan Kasal.
38475
38476 2008-06-18  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38479         Reported by Eric Blake.
38480
38481 2008-06-18  Eric Blake  <ebb9@byu.net>
38482
38483         Work around cygwin 1.5.25 strsignal bug.
38484         * tests/test-strsignal.c: Allow for const char *.
38485         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38486
38487 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38488
38489         * users.txt: Update URL to article and add author/date
38490         information.
38491
38492 2008-06-17  Bruno Haible  <bruno@clisp.org>
38493
38494         New macro gl_DISABLE_THREADS.
38495         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38496         if the user did not pass --enable-threads or --disable-threads option.
38497         (gl_DISABLE_THREADS): New macro.
38498         Reported by Eric Blake <ebb9@byu.net>.
38499
38500 2008-06-17  Bruno Haible  <bruno@clisp.org>
38501
38502         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38503         when the macro ignores it.
38504         Based on a patch by Eric Blake <ebb9@byu.net>.
38505
38506 2008-06-17  Bruno Haible  <bruno@clisp.org>
38507
38508         * modules/tls (License): Change to LGPLv2+.
38509         Reported by Eric Blake.
38510
38511 2008-06-17  Eric Blake  <ebb9@byu.net>
38512
38513         Simplify c-stack prerequisites.
38514         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38516         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38517         check.
38518         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38519         <sys/resource.h>.
38520
38521         Move c-stack test into testsuite.
38522         * modules/c-stack-tests: New file.
38523         * lib/c-stack.c [DEBUG]: Move test program...
38524         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38525         fail test if sigaltstack is lacking.
38526         * tests/test-c-stack.sh: New driver file.
38527
38528 2008-06-16  Eric Blake  <ebb9@byu.net>
38529
38530         Use raise module consistently.
38531         * modules/fatal-signal (Depends-on): Add raise.
38532         * modules/sigprocmask (Depends-on): Likewise.
38533         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38534         * lib/sigprocmask.c (sigprocmask): Likewise.
38535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38536         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38537
38538         Fix compliance bug in sigpending.
38539         * lib/sigprocmask.c (sigpending): Return pending array via
38540         parameter, not return value.
38541
38542 2008-06-14  Eric Blake  <ebb9@byu.net>
38543
38544         Improve obstack-printf test code.
38545         * tests/test-obstack-printf.c (test_function): Fix comment, and
38546         simplify usage of obstack_* in macros.  Add a test for coverage.
38547         Reported by Bruno Haible.
38548
38549 2008-06-14  Bruno Haible  <bruno@clisp.org>
38550
38551         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38552         array size as a constant, not as a const variable.
38553         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38554         AC_USE_SYSTEM_EXTENSIONS.
38555         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38556         Test whether the obstack_printf function actually exists.
38557         * modules/obstack-printf (Depends-on): Add extensions.
38558         (Include): Remove obstack.h.
38559         * modules/obstack-printf-posix (Depends-on): Add extensions.
38560         (Include): Remove obstack.h.
38561
38562 2008-06-13  Eric Blake  <ebb9@byu.net>
38563
38564         Add obstack-printf and obstack-printf-posix modules.
38565         * modules/obstack-printf: New file.
38566         * modules/obstack-printf-posix: Likewise.
38567         * MODULES.html.sh (Misc): Mention them.
38568         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38569         Likewise.
38570         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38571         Likewise.
38572         * modules/stdio (Makefile.am): Accomodate new modules.
38573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38574         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38575         Declare.
38576         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38577         functions.
38578         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38579         (gl_REPLACE_OBSTACK_PRINTF): New macros
38580         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38581         * tests/test-obstack-printf.c: New file.
38582         * modules/obstack-printf-tests: Likewise.
38583         * modules/obstack-printf-posix-tests: Likewise.
38584
38585 2008-06-11  Bruno Haible  <bruno@clisp.org>
38586
38587         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38588         * lib/open.c: Include errno.h.
38589         (open): Fail when attempting to write to a file that has a trailing
38590         slash.
38591         * tests/test-open.c (main): Test against trailing slash bug.
38592         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38593
38594 2008-06-10  Bruno Haible  <bruno@clisp.org>
38595
38596         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38597         for $? to work inside the trap command, with various /bin/sh-s.
38598         * tests/test-vc-list-files-cvs.sh: Likewise.
38599
38600 2008-06-10  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/acl-internal.h: Don't include gettext.h here.
38603         * lib/set-mode-acl.c: Include gettext.h here.
38604         * lib/copy-acl.c: Likewise.
38605
38606 2008-06-10  Bruno Haible  <bruno@clisp.org>
38607
38608         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38609         * lib/wait-process.c (wait_subprocess): Likewise.
38610         * lib/execute.h (execute): Add termsigp argument.
38611         * lib/execute.c (execute): Likewise.
38612         * lib/csharpcomp.c (compile_csharp_using_pnet,
38613         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38614         * lib/csharpexec.c (execute_csharp_using_pnet,
38615         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38616         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38617         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38618         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38619         is_jikes_present): Update.
38620         * lib/javaexec.c (execute_java_class): Update.
38621         * lib/javaversion.c (execute_and_read_line): Update.
38622         * NEWS: Document the changes.
38623         Reported by Eric Blake.
38624
38625 2008-06-10  Eric Blake  <ebb9@byu.net>
38626
38627         Add missing include.
38628         * tests/test-strstr.c (includes): Add <signal.h>.
38629         * tests/test-strcasestr.c (includes): Likewise.
38630         * tests/test-memmem.c (includes): Likewise.
38631
38632 2008-06-10  Bruno Haible  <bruno@clisp.org>
38633
38634         * lib/wait-process.c (wait_subprocess): Add an assertion.
38635
38636 2008-06-10  Bruno Haible  <bruno@clisp.org>
38637
38638         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38639
38640 2008-06-10  Bruno Haible  <bruno@clisp.org>
38641
38642         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38643         using alarm().
38644         * tests/test-strcasestr.c (main): Likewise.
38645         * tests/test-strstr.c (main): Likewise.
38646
38647 2008-06-09  Bruno Haible  <bruno@clisp.org>
38648
38649         Work around the Solaris 10 ACE ACLs ABI change.
38650         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38651         declare if ACL_NO_TRIVIAL is present.
38652         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38653         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38654         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38655         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38656         define if ACL_NO_TRIVIAL is present.
38657         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38658         and use the current ABI.
38659         (file_has_acl): Use same #if condition as elsewhere.
38660         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38661         in use, and use the current ABI.
38662         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38663         Reported by Jim Meyering.
38664
38665 2008-06-09  Eric Blake  <ebb9@byu.net>
38666
38667         Work around environments that (stupidly) ignore SIGALRM.
38668         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38669         before using alarm().
38670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38671         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38672         Reported by Ian Beckwith <ianb@erislabs.net>.
38673
38674         Produce autobuild blurb earlier in log.
38675         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38676
38677 2008-06-09  Jim Meyering  <meyering@redhat.com>
38678         and OndÅ™ej Vašík  <ovasik@redhat.com>
38679
38680         utimens.c: correct kernel bug work-around
38681         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38682         failure, not success, and the kernel bug we're trying to work
38683         around affects not just the utimensat call, but also the fallback
38684         futimens call.
38685         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38686         not success.
38687         [HAVE_FUTIMENS]: Use the same work-around, here.
38688
38689 2008-06-09  Jim Meyering  <meyering@redhat.com>
38690
38691         add more guards around definition of ACE_-related code
38692         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38693         ALLOW and ACE_OWNER are also defined.
38694
38695 2008-06-08  Bruno Haible  <bruno@clisp.org>
38696
38697         * lib/acl-internal.h: Add me as co-author.
38698         * lib/file-has-acl.c: Likewise.
38699         * lib/set-mode-acl.c: Likewise.
38700         * lib/copy-acl.c: Likewise.
38701
38702 2008-06-08  Bruno Haible  <bruno@clisp.org>
38703
38704         Add support for AIX ACLs.
38705         * lib/acl-internal.h (acl_nontrivial): New declaration.
38706         * lib/file-has-acl.c (acl_nontrivial): New function.
38707         (file_has_acl): Add implementation using AIX 4 ACL API.
38708         * lib/set-mode-acl.c (qset_acl): Likewise.
38709         * lib/copy-acl.c (qcopy_acl): Likewise.
38710
38711 2008-06-08  Bruno Haible  <bruno@clisp.org>
38712
38713         Add support for HP-UX ACLs.
38714         * lib/acl-internal.h (acl_nontrivial): New declaration.
38715         * lib/file-has-acl.c (acl_nontrivial): New function.
38716         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38717         * lib/set-mode-acl.c (qset_acl): Likewise.
38718         * lib/copy-acl.c (qcopy_acl): Likewise.
38719
38720 2008-06-08  Bruno Haible  <bruno@clisp.org>
38721
38722         Add support for Cygwin ACLs.
38723         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38724         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38725         the chmod_or_fchmod call.
38726         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38727
38728 2008-06-08  Bruno Haible  <bruno@clisp.org>
38729
38730         Fix bug with setuid modes in Solaris 10+ code.
38731         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38732         succeeded, when the mode contains some special bits.
38733
38734 2008-06-08  Bruno Haible  <bruno@clisp.org>
38735
38736         Add support for Solaris 7..10 ACLs.
38737         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38738         declarations.
38739         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38740         functions.
38741         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38742         * lib/set-mode-acl.c (qset_acl): Likewise.
38743         * lib/copy-acl.c (qcopy_acl): Likewise.
38744
38745 2008-06-08  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38748         declaration.
38749         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38750         (acl_access_nontrivial): Remove MacOS X case.
38751         (file_has_acl): Use acl_extended_nontrivial.
38752         * lib/copy-acl.c (qcopy_acl): Likewise.
38753
38754 2008-06-08  Bruno Haible  <bruno@clisp.org>
38755
38756         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38757
38758 2008-06-08  Jim Meyering  <meyering@redhat.com>
38759
38760         * modules/acl (Maintainer): Add Bruno Haible.
38761
38762 2008-06-07  Bruno Haible  <bruno@clisp.org>
38763
38764         Improve support for Tru64 ACLs.
38765         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38766         ACL on OSF/1.
38767
38768 2008-06-07  Bruno Haible  <bruno@clisp.org>
38769
38770         Add support for MacOS X ACLs.
38771         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38772         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38773         * lib/set-mode-acl.c (qset_acl): Likewise.
38774         * lib/copy-acl.c (qcopy_acl): Likewise.
38775
38776 2008-06-07  Bruno Haible  <bruno@clisp.org>
38777
38778         Fix memory leak introduced on 2008-05-22.
38779         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38780         use.
38781
38782 2008-06-07  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38785         to construct an empty ACL.
38786
38787 2008-06-07  Bruno Haible  <bruno@clisp.org>
38788
38789         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38790         precisely.
38791         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38792
38793 2008-06-07  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38796         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38797
38798 2008-06-07  Bruno Haible  <bruno@clisp.org>
38799
38800         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38801         regardless of POSIX.
38802         * doc/posix-functions/_longjmp.texi: Likewise.
38803         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38804         SystemV platform in this case.
38805
38806 2008-06-06  Eric Blake  <ebb9@byu.net>
38807
38808         Document abort() bugs.
38809         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38810
38811         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38812         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38813         sigsetjmp.
38814         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38815         siglongjmp, but only as a macro.
38816         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38817         is obsolete.
38818         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38819
38820         Tweak documentation to cover cygwin argz bugs.
38821         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38822         argz bug fix; no code change needed since no cygwin releases
38823         occurred between the last fix and the bug being tested.
38824         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38825         module and recently fixed cygwin bugs.
38826         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38827         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38828         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38829         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38830         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38831         Likewise.
38832         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38833         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38834         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38835         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38836         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38837         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38838         Likewise.
38839
38840         Avoid gcc warning on cygwin.
38841         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38842         !ACL_NO_TRIVIAL]: Avoid unused variable.
38843
38844 2008-06-05  Eric Blake  <ebb9@byu.net>
38845
38846         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38847         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38848         git-version-gen fails to come up with a version.
38849         Reported by Simon Josefsson.
38850
38851 2008-06-05  Jim Meyering  <meyering@redhat.com>
38852             Paul Eggert  <eggert@cs.ucla.edu>
38853
38854         utimens.c: work around a probable Linux kernel bug
38855         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38856         appears to be a kernel bug that causes utimensat to return 280
38857         instead of 0, indicating success.
38858
38859 2008-06-04  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38862         2008-06-01 commit.
38863
38864 2008-06-04  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38867         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38868         (file_has_acl): Use it. Save errno afterwards.
38869         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38870
38871 2008-06-03  Bruno Haible  <bruno@clisp.org>
38872
38873         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38874         draft code. Simplify #ifs.
38875         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38876         Put Solaris code after POSIX-draft code. Fix comments regarding
38877         Solaris 10, HP-UX. Mention Cygwin.
38878         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38879
38880 2008-06-03  Eric Blake  <ebb9@byu.net>
38881
38882         Provide fallback for older kernels.
38883         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38884         Provide runtime fallback if kernel lacks support.
38885         Reported by Mike Frysinger.
38886
38887 2008-06-02  Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38890         it exists.
38891
38892 2008-06-02  Bruno Haible  <bruno@clisp.org>
38893
38894         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38895         * lib/copy-acl.c (qcopy_acl): Update comment.
38896
38897 2008-06-02  Bruno Haible  <bruno@clisp.org>
38898
38899         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38900         like ACL APIs.
38901
38902 2008-06-02  Bruno Haible  <bruno@clisp.org>
38903
38904         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38905         * tests/test-set-mode-acl.sh: Likewise.
38906         * tests/test-copy-acl.sh: Likewise.
38907         * tests/test-copy-file.sh: Likewise.
38908
38909 2008-06-02  Bruno Haible  <bruno@clisp.org>
38910
38911         * tests/test-file-has-acl.sh: Remove unused code.
38912
38913 2008-06-01  Bruno Haible  <bruno@clisp.org>
38914
38915         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38916         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38917         messages.
38918         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38919
38920 2008-06-01  Bruno Haible  <bruno@clisp.org>
38921
38922         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38923         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38924         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38925         APIs.
38926         * modules/acl-tests (configure.ac): Remove tests now contained in
38927         m4/acl.m4.
38928
38929 2008-06-02  Jim Meyering  <meyering@redhat.com>
38930
38931         announce-gen: use a better key-server host name
38932         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38933         it may be more consistently reliable.  Suggested by Werner Koch
38934         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38935
38936 2008-06-01  Bruno Haible  <bruno@clisp.org>
38937
38938         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38939         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38940
38941 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38942
38943         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38944
38945 2008-06-01  Bruno Haible  <bruno@clisp.org>
38946
38947         New ACL tests.
38948         * tests/test-file-has-acl.sh: New file.
38949         * tests/test-file-has-acl.c: New file.
38950         * tests/test-set-mode-acl.sh: New file.
38951         * tests/test-set-mode-acl.c: New file.
38952         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38953         * tests/test-copy-acl.c: New file.
38954         * modules/acl-tests: New file, based on modules/copy-file-tests.
38955         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38956         (Depends-on): Add acl-tests.
38957         (configure.ac): Remove checks.
38958         (Makefile.am): Don't create test-sameacls program here any more.
38959
38960 2008-06-01  Bruno Haible  <bruno@clisp.org>
38961
38962         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38963         * tests/test-sameacls.c: Include progname.h.
38964         (main): Invoke set_program_name. Portability fixes for MacOS X,
38965         Solaris, HP-UX.
38966
38967 2008-06-01  Bruno Haible  <bruno@clisp.org>
38968
38969         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38970         function.
38971         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38972
38973 2008-06-01  Bruno Haible  <bruno@clisp.org>
38974
38975         * modules/rpmatch (Depends-on): Add strdup.
38976
38977 2008-06-01  Bruno Haible  <bruno@clisp.org>
38978
38979         * lib/pipe.c: Include unistd-safer.h.
38980         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38981         * modules/pipe (Depends-on): Add unistd-safer.
38982
38983 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38984
38985         * modules/autobuild (configure.ac): Call AB_INIT.
38986
38987 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38988
38989         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38990         Suggested by Bruno Haible <bruno@clisp.org>.
38991
38992 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38993
38994         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38995         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38996         <bruno@clisp.org>.
38997
38998 2008-05-29  Eric Blake  <ebb9@byu.net>
38999
39000         Prefer new POSIX 200x interfaces over futimesat.
39001         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39002         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39003         when available.
39004         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39005
39006 2008-05-28  Bruno Haible  <bruno@clisp.org>
39007
39008         * modules/stpcpy (License): Change to LGPLv2+.
39009         Requested by David Lutterkort <dlutter@redhat.com>.
39010
39011 2008-05-27  Bruno Haible  <bruno@clisp.org>
39012
39013         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39014         current mingw.
39015         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39016
39017 2008-05-27  Bruno Haible  <bruno@clisp.org>
39018
39019         * modules/iconv_open (Link): New section, from module 'iconv'.
39020         * modules/striconv (Link): Likewise.
39021         * modules/striconveh (Link): Likewise.
39022         * modules/xstriconv (Link): Likewise.
39023         * modules/unicodeio (Link): Likewise.
39024         * modules/propername (Link): Likewise.
39025         Reported by Jim Meyering.
39026
39027 2008-05-26  Jim Meyering  <meyering@redhat.com>
39028
39029         sha256: do not artificially restrict buffer length to be < 2^32
39030         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39031         uint32_t to size_t.
39032         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39033         to match.
39034
39035         avoid unaligned access errors, e.g., on sparc
39036         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39037         direct access through a possibly-unaligned uint64* pointer.
39038         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39039         direct access through a possibly-unaligned uint32* pointer.
39040         Prompted by this patch from Tom "spot" Callaway:
39041         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39042
39043         sha512.c: fix typo in comment
39044         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39045
39046 2008-05-25  Bruno Haible  <bruno@clisp.org>
39047
39048         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39049         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39050         (Makefile.am): Update lib_SOURCES.
39051
39052 2008-05-25  Bruno Haible  <bruno@clisp.org>
39053
39054         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39055
39056 2008-05-25  Jim Meyering  <meyering@redhat.com>
39057
39058         useless-if-before-free: freed expr may have white-space differences
39059         * build-aux/useless-if-before-free: Recognize cases in which the
39060         freed expression differs from the tested one in embedded white
39061         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39062         $1 was used, so we can't make any regexp shy.  Improved tests now
39063         detect this.
39064
39065         useless-if-before-free: accept white space in the expression.
39066         * build-aux/useless-if-before-free: For now, any white space
39067         in the expression must be identical in the free argument.
39068
39069         useless-if-before-free: efficiency tweak
39070         * build-aux/useless-if-before-free: Make the expression-matching
39071         regexp "shy".
39072         Make the *outer* regexp shy, not the expr-matching one.
39073
39074         update code-in-comment to accept cast of free arg
39075         * build-aux/useless-if-before-free: Update regexp.
39076
39077 2008-05-25  Bruno Haible  <bruno@clisp.org>
39078
39079         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39080         * modules/copy-file-tests (Files, Makefile.am): Update.
39081         * tests/test-copy-file.c (func_test_copy): Update.
39082
39083 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39084
39085         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39086
39087 2008-05-23  Bruno Haible  <bruno@clisp.org>
39088
39089         Improve support for ACLs on OSF/1.
39090         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39091         Remove fallback for unknown flavors of ACLs.
39092
39093 2008-05-22  Bruno Haible  <bruno@clisp.org>
39094
39095         Add support for ACLs on OSF/1.
39096         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39097         replacements.
39098         (acl_free_text): New macro fallback.
39099         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39100         acl_free.
39101         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39102         acl_free_text function. Require AC_C_INLINE.
39103
39104 2008-05-22  Bruno Haible  <bruno@clisp.org>
39105
39106         Make copy_acl work on MacOS X 10.5.
39107         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39108         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39109         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39110         If MODE_INSIDE_ACL, don't assume that every system has the same text
39111         representation for ACLs as FreeBSD.
39112         * lib/copy-acl.c (copy_acl): Add support for platforms with
39113         !MODE_INSIDE_ACL.
39114         * lib/file-has-acl.c (file_has_acl): Likewise.
39115         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39116         FreeBSD, MacOS X, or IRIX, respectively.
39117
39118 2008-05-22  Bruno Haible  <bruno@clisp.org>
39119
39120         * lib/acl.h: Don't include <sys/acl.h>.
39121         (GETACLCNT): Move fallback to lib/acl-internal.h.
39122         * lib/acl-internal.h: Include <sys/acl.h> here.
39123         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39124
39125 2008-05-22  Bruno Haible  <bruno@clisp.org>
39126
39127         Split off copy_acl function to separate file.
39128         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39129         * lib/acl.c (copy_acl): Moved function to separate file.
39130         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39131         * modules/acl (Files): Add lib/copy-acl.c.
39132         (Makefiles.am): Augment lib_SOURCES.
39133
39134 2008-05-22  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/copy-file-tests: New file.
39137         * tests/test-copy-file.sh: New file.
39138         * tests/test-copy-file.c: New file.
39139         * tests/test-copy-file-sameacls.c: New file.
39140
39141 2008-05-22  Eric Blake  <ebb9@byu.net>
39142
39143         Avoid gcc warning.
39144         * tests/test-memcmp.c (main): Pass NULL indirectly.
39145
39146 2008-05-21  Bruno Haible  <bruno@clisp.org>
39147
39148         Add reference doc about ACLs.
39149         * doc/acl-resources.txt: New file.
39150         * doc/acl-cygwin.txt: New file.
39151
39152 2008-05-21  Bruno Haible  <bruno@clisp.org>
39153
39154         Avoid one more warning from gcc.
39155         * lib/vasnprintf.c (IF_LINT): Update comments.
39156         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39157
39158 2008-05-21  Jim Meyering  <meyering@redhat.com>
39159
39160         avoid a warning from gcc
39161         * lib/vasnprintf.c (IF_LINT): Define.
39162         (scale10_round_decimal_long_double):
39163         Use it to avoid a "may be used uninitialized" warning.
39164         (scale10_round_decimal_double): Likewise.
39165
39166 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39167
39168         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39169         declared.
39170
39171 2008-05-20  Bruno Haible  <bruno@clisp.org>
39172
39173         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39174         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39175
39176 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39177
39178         * modules/memcmp-tests: New file.
39179         * tests/test-memcmp.c: New file.
39180
39181 2008-05-19  Bruno Haible  <bruno@clisp.org>
39182
39183         * modules/propername (Notice, configure.ac): Put quoted "..." into
39184         --keyword option.
39185         * lib/propername.h: Update comments accordingly.
39186         Reported by Eric Blake.
39187
39188 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39189
39190         * modules/getpass-gnu (Depends-on): Add fseeko.
39191
39192 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39193
39194         * modules/base64-tests: New file.
39195
39196 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39197
39198         * lib/base64.c (base64_decode_ctx): If a decode context structure
39199         was passed in use it to ignore newlines.  If a context structure
39200         was _not_ passed in, continue to treat newlines as garbage (this
39201         is the historical behavior).  Formerly base64_decode.
39202         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39203         takes a decode context structure.
39204         * lib/base64.h (base64_decode): Macro for four-argument calls.
39205         (base64_decode_alloc): Likewise.
39206         * lib/base64.c (base64_decode_ctx): If a decode context structure
39207         was passed in use it to ignore newlines.  If a context structure
39208         was _not_ passed in, continue to treat newlines as garbage (this
39209         is the historical behavior).  Formerly base64_decode.
39210         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39211         takes a decode context structure.
39212         * lib/base64.h (base64_decode): Macro for four-argument calls.
39213         (base64_decode_alloc): Likewise.
39214
39215 2008-05-19  Jim Meyering  <meyering@redhat.com>
39216
39217         avoid a warning from gcc
39218         * lib/trim.c (IF_LINT): Define.
39219         (trim2): Use it to avoid a "may be used uninitialized" warning.
39220
39221         Fix doc typo.
39222         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39223
39224 2008-05-19  Bruno Haible  <bruno@clisp.org>
39225
39226         * doc/glibc-functions/getpass.texi: Document limits of other
39227         implementations.
39228
39229 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39230             Bruno Haible <bruno@clisp.org>
39231
39232         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39233
39234 2008-05-18  Bruno Haible  <bruno@clisp.org>
39235
39236         * modules/propername: New file, from GNU gettext.
39237         * lib/propername.h: New file, from GNU gettext.
39238         * lib/propername.c: New file, from GNU gettext.
39239         * MODULES.html.sh (Internationalization functions): Add propername.
39240
39241 2008-05-16  Jim Meyering  <meyering@redhat.com>
39242             Bruno Haible  <bruno@clisp.org>
39243
39244         Avoid some warnings from "gcc -Wshadow".
39245         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39246
39247 2008-05-15  Eric Blake  <ebb9@byu.net>
39248
39249         Extend previous patch to cygwin 1.7.0.
39250         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39251         fast implementation in cygwin >= 1.7.0.
39252         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39254
39255 2008-05-15  Bruno Haible  <bruno@clisp.org>
39256
39257         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39258         implementation in glibc >= 2.9.
39259         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39261
39262 2008-05-15  Bruno Haible  <bruno@clisp.org>
39263
39264         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39265         (Unicode string functions): Add unilbrk/*.
39266         Reported by Karl Berry.
39267
39268 2008-05-15  Eric Blake  <ebb9@byu.net>
39269
39270         Fix violation of <stdbool.h> replacement in regex.
39271         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39272         * lib/regexec.c (re_search_internal): Likewise.
39273         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39274
39275 2008-05-15  Jim Meyering  <meyering@redhat.com>
39276
39277         avoid distracting test output when git or cvs is not found
39278         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39279         * tests/test-vc-list-files-git.sh: Likewise.
39280
39281 2008-05-15  Eric Blake  <ebb9@byu.net>
39282
39283         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39284         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39285         glibc version.
39286         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39287         * doc/posix-functions/strstr.texi (strstr): Likewise.
39288         * lib/str-two-way.h (MAX): Sychronize with glibc.
39289
39290 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39291
39292         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39293         opr.ctx_type.
39294         (calc_first): Initialize constraint field.
39295         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39296         Fix grammar.
39297         (duplicate_node): Merge constraint field for all node types.
39298         (calc_eclosure_iter): Look at constraint field for all node types.
39299         * lib/regex_internal.c (create_cd_newstate): Don't look at
39300         opr.ctx_type.
39301
39302 2008-05-14  Bruno Haible  <bruno@clisp.org>
39303
39304         Help GCC to do better code generation.
39305         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39306         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39307         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39308         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39309         Declare with attribute 'malloc' if supported.
39310
39311 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39312
39313         use "echo STR|wc -c" rather than unportable "expr length STR"
39314         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39315         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39316
39317 2008-05-14  Jim Meyering  <meyering@redhat.com>
39318
39319         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39320         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39321         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39322         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39323         via Collin Lasse.
39324
39325 2008-05-14  Eric Blake  <ebb9@byu.net>
39326
39327         Avoid quadratic growth in gl_LIBSOURCES.
39328         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39329         Suggested by Bruno Haible.
39330
39331         Test xmemdup0.
39332         * modules/xmemdup0-tests: New file.
39333         * tests/test-xmemdup0.c: Likewise.
39334
39335 2008-05-13  Eric Blake  <ebb9@byu.net>
39336
39337         Split xmemdup0 into its own module.
39338         * modules/xmemdup0: New file.
39339         * lib/xmemdup0.h: Likewise.
39340         * lib/xmemdup0.c: Likewise.
39341         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39342         * lib/xalloc.h (xmemdup0): Remove.
39343         * lib/xmalloc.c (xmemdup0): Likewise.
39344
39345 2008-05-13  Eric Blake  <ebb9@byu.net>
39346             Bruno Haible  <bruno@clisp.org>
39347
39348         Reduce number of forks required during autoconf.
39349         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39350         and gl_LIBSOURCES_DIR.
39351         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39352         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39353         m4_syscmd per file.
39354         <m4_foreach_w>: Move...
39355         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39356
39357 2008-05-13  Eric Blake  <ebb9@byu.net>
39358
39359         * gnulib-tool: Fix various comment typos.
39360
39361 2008-05-12  Bruno Haible  <bruno@clisp.org>
39362
39363         Tailor the linebreaking algorithm.
39364         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39365
39366 2008-05-12  Bruno Haible  <bruno@clisp.org>
39367
39368         Update to Unicode 5.0.0.
39369         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39370         LBP_JV, LBP_JT. Redistribute values.
39371         (unilbrk_table): Change size.
39372         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39373         Unicode TR#14 rev. 22.
39374         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39375         LBP_JV, LBP_JT. Redistribute values.
39376         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39377         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39378         Update.
39379         * lib/unilbrk/lbrkprop1.h: Regenerated.
39380         * lib/unilbrk/lbrkprop2.h: Regenerated.
39381         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39382         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39383         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39384         Likewise.
39385         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39386         Likewise.
39387         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39388         result.
39389         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39390         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39391         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39392         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39393         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39394         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39395
39396 2008-05-11  Bruno Haible  <bruno@clisp.org>
39397
39398         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39399
39400 2008-05-11  Bruno Haible  <bruno@clisp.org>
39401
39402         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39403         * modules/unilbrk/gen-lbrk: New file.
39404
39405 2008-05-11  Bruno Haible  <bruno@clisp.org>
39406
39407         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39408         * m4/sha512.m4 (gl_SHA512): Likewise.
39409
39410 2008-05-11  Jim Meyering  <meyering@redhat.com>
39411
39412         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39413         * modules/crypto/sha256: New file.
39414         * modules/crypto/sha512: Likewise.
39415         * lib/sha256.c: Likewise.
39416         * lib/sha256.h: Likewise.
39417         * lib/sha512.c: Likewise.
39418         * lib/sha512.h: Likewise.
39419         * lib/u64.h: Likewise.
39420         * m4/sha256.m4: Likewise.
39421         * m4/sha512.m4: Likewise.
39422         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39423
39424 2008-05-10  Bruno Haible  <bruno@clisp.org>
39425
39426         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39427         (Input/Output <stdio.h>): Add xprintf.
39428         (Signal handling <signal.h>): Add strsignal.
39429         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39430         (Core language properties): Add func.
39431         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39432         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39433         strings.
39434         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39435         (Input/output): New section.
39436         (File system functions): Add openat-die, stat-macros.
39437         (Networking functions): Add sockets.
39438         (Unicode string functions): Add unictype/*.
39439         (Support for building libraries and executables): Add gperf.
39440         (Support for building documentation): Add agpl-3.0.
39441         (Misc): Add nocrash.
39442
39443 2008-05-10  Bruno Haible  <bruno@clisp.org>
39444
39445         * modules/unictype/gen-ctype: New file.
39446
39447 2008-05-10  Jim Meyering  <meyering@redhat.com>
39448
39449         Make chdir-safer.c more efficient on a system with no symlinks.
39450         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39451         also if ELOOP is zero.  Suggested by Bruno Haible.
39452
39453         Make chdir-safer.c slightly safer.
39454         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39455         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39456
39457         Avoid compile failure on systems without ELOOP (like mingw).
39458         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39459         Reported by Bruno Haible.
39460
39461 2008-05-10  Bruno Haible  <bruno@clisp.org>
39462
39463         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39464         (is_utf8_encoding): Use a case-insensitive comparison.
39465         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39466         streq.
39467
39468 2008-05-10  Bruno Haible  <bruno@clisp.org>
39469
39470         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39471         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39472         * lib/unilbrk/ulc-common.h (iconv_string_length,
39473         iconv_string_keeping_offsets): Remove declarations.
39474         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39475         Don't include <iconv.h>, streq.h, xsize.h.
39476         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39477         conversion.
39478         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39479         <iconv.h>, streq.h, xsize.h.
39480         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39481         conversion.
39482         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39483         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39484         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39485         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39486
39487 2008-05-10  Bruno Haible  <bruno@clisp.org>
39488
39489         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39490         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39491
39492         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39493         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39494
39495         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39496         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39497
39498         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39499         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39500
39501         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39502         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39503
39504         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39505         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39506
39507         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39508         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39509
39510         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39511         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39512
39513 2008-05-10  Bruno Haible  <bruno@clisp.org>
39514
39515         Split up 'linebreak' module.
39516         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39517         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39518         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39519         modifications.
39520         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39521         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39522         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39523         lib/linebreak.c.
39524         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39525         lib/linebreak.c.
39526         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39527         lib/linebreak.c.
39528         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39529         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39530         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39531         lib/linebreak.c.
39532         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39533         lib/linebreak.c.
39534         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39535         lib/linebreak.c.
39536         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39537         lib/linebreak.c.
39538         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39539         lib/linebreak.c.
39540         * modules/unilbrk/base: New file.
39541         * modules/unilbrk/tables: New file.
39542         * modules/unilbrk/u8-possible-linebreaks: New file.
39543         * modules/unilbrk/u16-possible-linebreaks: New file.
39544         * modules/unilbrk/u32-possible-linebreaks: New file.
39545         * modules/unilbrk/ulc-common: New file.
39546         * modules/unilbrk/ulc-possible-linebreaks: New file.
39547         * modules/unilbrk/u8-width-linebreaks: New file.
39548         * modules/unilbrk/u16-width-linebreaks: New file.
39549         * modules/unilbrk/u32-width-linebreaks: New file.
39550         * modules/unilbrk/ulc-width-linebreaks: New file.
39551         * lib/linebreak.h: Remove file.
39552         * lib/linebreak.c: Remove file.
39553         * m4/linebreak.m4: Remove file.
39554         * modules/linebreak: Remove file.
39555         * NEWS: Mention the changes.
39556
39557 2008-05-09  Eric Blake  <ebb9@byu.net>
39558
39559         Add xmemdup0.
39560         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39561         implementation.
39562         * lib/xmalloc.c (xmemdup0): New C implementation.
39563
39564 2008-05-08  Bruno Haible  <bruno@clisp.org>
39565
39566         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39567
39568 2008-05-07  Eric Blake  <ebb9@byu.net>
39569
39570         Support cross-compilation of <wctype.h>.
39571         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39572         AC_CACHE_CHECK.
39573
39574 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39575
39576         * build-aux/vc-list-files: Add support for bzr.
39577
39578 2008-05-03  Jim Meyering  <meyering@redhat.com>
39579
39580         avoid failed assertion with tight malloc
39581         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39582
39583 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39584
39585         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39586         are needed from arpa/inet.h.
39587         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39588         Reported by Bruno Haible.
39589
39590 2008-05-02  Jim Meyering  <meyering@redhat.com>
39591
39592         avoid compilation error on FreeBSD 6
39593         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39594
39595 2008-05-01  Jim Meyering  <meyering@redhat.com>
39596
39597         useless-if-before-free: correct --help's exit status description
39598         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39599         for one or more matches, etc.  Reported by Bruno Haible.
39600
39601         vc-list-files: make the stand-alone gnulib test work
39602         * modules/vc-list-files-tests (configure.ac):
39603         Define and AC_SUBST abs_aux_dir.
39604         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39605         $(abs_top_srcdir) to each script and having each of them
39606         duplicate the work of setting PATH, set PATH here, using
39607         the new variable, abs_aux_dir instead.
39608         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39609         * tests/test-vc-list-files-git.sh: Likewise.
39610         Reported by Bruno Haible.
39611
39612 2008-05-01  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39615         reallocation. Rename 'done' to 'found_delimiter'.
39616
39617 2008-05-01  Jim Meyering  <meyering@redhat.com>
39618
39619         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39620         * build-aux/vc-list-files: Use `...`, not $(...).
39621
39622 2008-04-30  Jim Meyering  <meyering@redhat.com>
39623
39624         add tests for vc-list-files
39625         * modules/vc-list-files-tests: New module.
39626         * tests/test-vc-list-files-cvs.sh: New file.
39627         * tests/test-vc-list-files-git.sh: New file.
39628
39629         avoid a warning from gcc
39630         * lib/getndelim2.c (IF_LINT): Define.
39631         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39632
39633         vc-list-files: work properly with build-aux/cvsu, too
39634         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39635         to all cvs-based clauses.
39636
39637         vc-list-files: work properly in the CVS+awk case, too
39638         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39639
39640         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39641         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39642         take more than one file argument, so .  Add quotes, just in case $dir
39643         ever contains a shell meta-character.  Prompted by Soren Hansen in
39644         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39645
39646 2008-04-29  Eric Blake  <ebb9@byu.net>
39647
39648         Optimize getndelim2 to use block operations when possible.
39649         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39650         freadseek, and memchr2.
39651         * lib/getndelim2.c (getndelim2): Use them for block reads.
39652
39653 2008-04-29  Bruno Haible  <bruno@clisp.org>
39654
39655         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39656         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39657         * modules/inet_ntop (Depends-on): Add extensions.
39658         * modules/inet_pton (Depends-on): Likewise.
39659         Reported by Simon Josefsson.
39660
39661 2008-04-29  Jim Meyering  <meyering@redhat.com>
39662
39663         When the is more than one match in a block, match all of them.
39664         * build-aux/useless-if-before-free: Iterate through each block
39665         until there are no more matches.
39666
39667         Fix broken useless-if-before-free script.
39668         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39669         the expression to match cast of argument to free-like function.
39670
39671 2008-04-29  Eric Blake  <ebb9@byu.net>
39672
39673         Use new header.
39674         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39675
39676 2008-04-29  Jim Meyering  <meyering@redhat.com>
39677
39678         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39679         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39680         by gnulib to exist and to declare e.g., inet_ntop.
39681         Don't include "inet_ntop.h", now removed.
39682
39683         * m4/arpa_inet_h.m4: Remove trailing blanks.
39684
39685 2008-04-29  Eric Blake  <ebb9@byu.net>
39686
39687         Silence valgrind on safe reads beyond potential array bounds.
39688         * lib/rawmemchr.valgrind: New file.
39689         * lib/strchrnul.valgrind: Likewise.
39690         * modules/rawmemchr (Files): Distribute new file.
39691         * modules/strchrnul (Files): Likewise.
39692         Suggested by Bruno Haible.
39693
39694 2008-04-29  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39697         (inet_ntop, inet_pton): Change portability warning's wording.
39698         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39699         Invoke gl_CHECK_NEXT_HEADERS.
39700         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39701         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39702         set ARPA_INET_H.
39703         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39704         * modules/arpa_inet (Description): No longer only for systems that
39705         lack it.
39706         (Depends-on): Add include_next.
39707         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39708         HAVE_ARPA_INET_H.
39709
39710 2008-04-29  Jim Meyering  <meyering@redhat.com>
39711
39712         * modules/mkdir (License): Re-license as LGPLv2+.
39713
39714 2008-04-29  Bruno Haible  <bruno@clisp.org>
39715
39716         * modules/rawmemchr (Maintainer): Set to Eric.
39717         * modules/strchrnul (Maintainer): Likewise.
39718
39719 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39720
39721         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39722         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39723
39724         * modules/arpa_inet (arpa/inet.h): Use them.
39725
39726 2008-04-28  Eric Blake  <ebb9@byu.net>
39727
39728         Test getndelim2.
39729         * modules/getndelim2-tests: New file.
39730         * tests/test-getndelim2.c: Likewise.
39731         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39732         stream.
39733         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39734
39735         * MODULES.html.sh: Document new module.
39736
39737 2008-04-20  Bruno Haible  <bruno@clisp.org>
39738
39739         * lib/c-stack.c (die): Use raise.
39740         * modules/c-stack (Depends-on): Add raise.
39741
39742 2008-04-28  Bruno Haible  <bruno@clisp.org>
39743
39744         Expect rpmatch to be declared.
39745         * lib/yesno.c (rpmatch): Remove declaration.
39746
39747         Declare rpmatch.
39748         * lib/stdlib.in.h (rpmatch): New declaration.
39749         * lib/rpmatch.c: Include <stdlib.h> first.
39750         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39751         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39753         HAVE_RPMATCH.
39754         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39756         (Include): Set to <stdlib.h>.
39757         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39758         HAVE_RPMATCH.
39759         * NEWS: Document the change.
39760
39761 2008-04-28  Bruno Haible  <bruno@clisp.org>
39762
39763         Change rpmatch to use nl_langinfo when appropriate.
39764         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39765         (N_): New macro.
39766         (localized_pattern): New function/macro.
39767         (try): Remove match, nomatch arguments. Copy the pattern into safe
39768         memory before caching it.
39769         (rpmatch): Use localized_pattern. Add translator comments.
39770         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39771         Suggested by Eric Blake.
39772         * modules/rpmatch (Depends-on): Add stdbool.
39773
39774 2008-04-28  Eric Blake  <ebb9@byu.net>
39775
39776         Add rawmemchr module, matching glibc.
39777         * modules/string (Makefile.am): New indicator.
39778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39779         * lib/string.in.h (rawmemchr): Declare when appropriate.
39780         * modules/rawmemchr: New file.
39781         * m4/rawmemchr.m4: Likewise.
39782         * lib/rawmemchr.c: Likewise.
39783         * modules/rawmemchr-tests: Likewise.
39784         * tests/test-rawmemchr.c: Likewise.
39785         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39786         module.
39787         * modules/strchrnul (Depends-on): Add rawmemchr.
39788         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39789
39790         Whitespace cleanup.
39791         * tests/test-strchrnul.c: Reindent.
39792         * lib/strchrnul.c: Likewise.
39793
39794         Optimize and test strchrnul.
39795         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39796         * modules/strchrnul-tests: New file.
39797         * tests/test-strchrnul.c: Likewise.
39798
39799         Remove intprops dependency.
39800         * modules/memchr (Depends-on): Remove intprops.
39801         * modules/memrchr (Depends-on): Likewise.
39802         * modules/memchr2 (Depends-on): Likewise.
39803         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39804         * lib/memrchr.c (__memrchr): Likewise.
39805         * lib/memrchr2.c (memchr2): Likewise.
39806         Reported by Simon Josefsson.
39807
39808 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39809
39810         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39811         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39812
39813 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39814
39815         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39816
39817         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39818
39819         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39820
39821         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39822         declarations.
39823         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39824
39825         * m4/inet_pton.m4: Don't check for header files.
39826
39827         * m4/inet_ntop.m4: Don't check for header files.
39828
39829 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39830
39831         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39832         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39833         trigger for cygwin).
39834         Reported by Bruno Haible  <bruno@clisp.org>.
39835
39836 2008-04-28  Bruno Haible  <bruno@clisp.org>
39837
39838         * doc/posix-functions/strdup.texi: Mention mingw problem.
39839
39840 2008-04-27  Bruno Haible  <bruno@clisp.org>
39841
39842         * modules/stat-time-tests (Depends-on): Add sleep.
39843         * tests/test-stat-time.c (force_unlink): New function.
39844         (cleanup): Use it.
39845         (test_mtime): Remove the ctime related tests.
39846         (test_ctime): New function, containing the ctime related tests.
39847         (main): Call test_ctime, except on native Windows platforms.
39848
39849 2008-04-27  Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/rpmatch.c (rpmatch): Add some comments.
39852         Reported by James Youngman <jay@gnu.org>.
39853
39854 2008-04-27  Bruno Haible  <bruno@clisp.org>
39855
39856         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39857         quiet NaNs.
39858
39859 2008-04-27  Bruno Haible  <bruno@clisp.org>
39860
39861         Make test-yesno.sh work on mingw.
39862         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39863         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39864         (main): Set stdin to binary mode.
39865         * modules/yesno-tests (Depends-on): Add binary-io.
39866
39867 2008-04-27  Bruno Haible  <bruno@clisp.org>
39868
39869         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39870         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39871         argument that lie outside the IEEE 854 domain.
39872         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39873         (gl_ISFINITE): Use it.
39874         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39875
39876 2008-04-27  Bruno Haible  <bruno@clisp.org>
39877
39878         Allow local renaming in config.h.
39879         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39880
39881 2008-04-27  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/memchr.c (__memchr): Change type of 'i'.
39884         * lib/memchr2.c (memchr2): Likewise.
39885
39886 2008-04-26  Eric Blake  <ebb9@byu.net>
39887         and Bruno Haible  <bruno@clisp.org>
39888
39889         Optimize and test memrchr.
39890         * modules/memrchr (Depends-on): Add intprops.
39891         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39892         * modules/memrchr-tests: New file.
39893         * tests/test-memrchr.c: New file.
39894
39895 2008-04-26  Bruno Haible  <bruno@clisp.org>
39896
39897         Add tentative support for DragonFly BSD.
39898         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39899         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39900         fp.
39901         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39902         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39903         * lib/fpurge.c (fpurge): Likewise.
39904         * lib/freadable.c (freaadable): Likewise.
39905         * lib/freadahead.c (freadahead): Likewise.
39906         * lib/freading.c (freading): Likewise.
39907         * lib/freadptr.c (freadptr): Likewise.
39908         * lib/freadseek.c (freadptrinc): Likewise.
39909         * lib/fseeko.c (fseeko): Likewise.
39910         * lib/fseterr.c (fseterr): Likewise.
39911         * lib/fwritable.c (fwritable): Likewise.
39912         * lib/fwriting.c (fwriting): Likewise.
39913
39914 2008-04-26  Bruno Haible  <bruno@clisp.org>
39915
39916         * lib/stdio-impl.h: New file.
39917         * lib/fbufmode.c: Include stdio-impl.h.
39918         (fbufmode): Use fp_, remove redundant #defines.
39919         * lib/fflush.c: Include stdio-impl.h.
39920         (clear_ungetc_buffer): Remove redundant #defines.
39921         * lib/fpurge.c: Include stdio-impl.h.
39922         (fpurge): Remove redundant #defines.
39923         * lib/freadable.c: Include stdio-impl.h.
39924         (freadable): Remove redundant #defines.
39925         * lib/freadahead.c: Include stdio-impl.h.
39926         (freadahead): Remove redundant #defines.
39927         * lib/freading.c: Include stdio-impl.h.
39928         (freading): Remove redundant #defines.
39929         * lib/freadptr.c: Include stdio-impl.h.
39930         (freadptr): Remove redundant #defines.
39931         * lib/freadseek.c: Include stdio-impl.h.
39932         (freadptrinc): Remove redundant #defines.
39933         * lib/fseeko.c: Include stdio-impl.h.
39934         (rpl_fseeko): Remove redundant #defines.
39935         * lib/fseterr.c: Include stdio-impl.h.
39936         (fseterr): Remove redundant #defines.
39937         * lib/fwritable.c: Include stdio-impl.h.
39938         (fwritable: Remove redundant #defines.
39939         * lib/fwriting.c: Include stdio-impl.h.
39940         (fwriting): Remove redundant #defines.
39941         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39942         * modules/fflush (Files): Likewise.
39943         * modules/fpurge (Files): Likewise.
39944         * modules/freadable (Files): Likewise.
39945         * modules/freadahead (Files): Likewise.
39946         * modules/freading (Files): Likewise.
39947         * modules/freadptr (Files): Likewise.
39948         * modules/freadseek (Files): Likewise.
39949         * modules/fseeko (Files): Likewise.
39950         * modules/fseterr (Files): Likewise.
39951         * modules/fwritable (Files): Likewise.
39952         * modules/fwriting (Files): Likewise.
39953
39954 2008-04-26  Bruno Haible  <bruno@clisp.org>
39955
39956         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39957         restore_seek_optimization, update_fpos_cache): New functions, extracted
39958         from rpl_fflush.
39959         (rpl_fflush): Use them.
39960         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39961         (gl_REPLACE_FFLUSH): Use it.
39962
39963 2008-04-26  Bruno Haible  <bruno@clisp.org>
39964
39965         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39966         on Solaris.
39967         * tests/test-xstrtoimax.sh: Likewise.
39968         * tests/test-xstrtoumax.sh: Likewise.
39969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39970
39971 2008-04-26  Bruno Haible  <bruno@clisp.org>
39972
39973         * modules/memchr-tests: New file.
39974         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39975
39976 2008-04-26  Eric Blake  <ebb9@byu.net>
39977             Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/memchr.c: Include intprops.h.
39980         (__memchr): Optimize parallel detection of matching bytes. Rename local
39981         variables. Add explanatory comments.
39982
39983 2008-04-26  Bruno Haible  <bruno@clisp.org>
39984
39985         Fix module 'memchr', broken since 2000-10-28.
39986         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39987
39988 2008-04-26  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39991         comments.
39992
39993 2008-04-25  Eric Blake  <ebb9@byu.net>
39994
39995         Use native fstatat on cygwin 1.7.0.
39996         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39997         first.
39998
39999 2008-04-23  Eric Blake  <ebb9@byu.net>
40000
40001         Improve memchr2 performance.
40002         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40003         NUL bytes.
40004         * modules/memchr2 (Depends-on): Use intprops.h.
40005
40006 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40007
40008         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40009         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40010         <blp@cs.stanford.edu>.
40011
40012 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40013
40014         * lib/arpa_inet.in.h: New file.
40015
40016         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40017         (Makefile.am): Sed in substitute header file.
40018
40019         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40020         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40021
40022         * modules/inet_ntop (configure.ac): Use
40023         gl_ARPA_INET_MODULE_INDICATOR.
40024
40025         * modules/inet_pton (configure.ac): Use
40026         gl_ARPA_INET_MODULE_INDICATOR.
40027
40028 2008-04-22  Jim Meyering  <meyering@redhat.com>
40029
40030         * modules/verify (License): Re-license as LGPLv2+.
40031
40032 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40033
40034         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40035         parameter to void* as per POSIX standard (MinGW uses char*).
40036
40037 2008-04-21  Bruno Haible  <bruno@clisp.org>
40038
40039         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40040         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40041         Define to replacements if REPLACE_ISWCNTRL is 1.
40042         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40043         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40044         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40045         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40046         what it fixes.
40047         * doc/posix-functions/iswalpha.texi: Likewise.
40048         * doc/posix-functions/iswblank.texi: Likewise.
40049         * doc/posix-functions/iswcntrl.texi: Likewise.
40050         * doc/posix-functions/iswdigit.texi: Likewise.
40051         * doc/posix-functions/iswgraph.texi: Likewise.
40052         * doc/posix-functions/iswlower.texi: Likewise.
40053         * doc/posix-functions/iswprint.texi: Likewise.
40054         * doc/posix-functions/iswpunct.texi: Likewise.
40055         * doc/posix-functions/iswspace.texi: Likewise.
40056         * doc/posix-functions/iswupper.texi: Likewise.
40057         * doc/posix-functions/iswxdigit.texi: Likewise.
40058         Reported by Alain Guibert.
40059
40060 2008-04-21  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40063         Patch by Alain Guibert.
40064
40065 2008-04-21  Bruno Haible  <bruno@clisp.org>
40066
40067         Fix test failures on mingw.
40068         * tests/test-xstrtol.c (print_no_progname): New function.
40069         (main): Install it in error_print_progname hook.
40070         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40071         * tests/test-xstrtoimax.sh: Likewise.
40072         * tests/test-xstrtoumax.sh: Likewise.
40073
40074 2008-04-21  Bruno Haible  <bruno@clisp.org>
40075
40076         Fix test failure on mingw.
40077         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40078
40079 2008-04-21  Bruno Haible  <bruno@clisp.org>
40080
40081         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40082         Actually assign a value.
40083
40084 2008-04-20  Bruno Haible  <bruno@clisp.org>
40085
40086         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40087         take 2.
40088         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40089         'canonicalize-lgpl' module is also used.
40090         * lib/canonicalize-lgpl.c: Undo last change.
40091         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40092
40093 2008-04-20  Bruno Haible  <bruno@clisp.org>
40094
40095         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40096         config.h. Provide _mkdir based fallback for mingw.
40097         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40098         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40099         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40100         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40101         rather than defining mkdir in config.h.
40102         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40103         (gl_SYS_STAT_H_DEFAULTS): New macro.
40104         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40105         HAVE_IO_H any more.
40106         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40107         HAVE_DECL_MKDIR and HAVE_IO_H.
40108
40109 2008-04-20  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/isapipe.c: Port to native Windows platforms.
40112
40113 2008-04-20  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40116
40117 2008-04-21  Eric Blake  <ebb9@byu.net>
40118
40119         Work around preprocessors that don't handle UINTMAX_MAX.
40120         * lib/memchr2.c (memchr2): Avoid embedded #if.
40121         Reported by Alain Guibert, fix suggested by Bruno Haible.
40122
40123 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40124
40125         * doc/posix-functions/strftime.texi (strftime): Explain better
40126         Windows incompatibility.  Suggested by Micah Cowan
40127         <micah@cowan.name>.
40128
40129 2008-04-20  Bruno Haible  <bruno@clisp.org>
40130
40131         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40132         unistr/u8-mblen.
40133
40134 2008-04-20  Bruno Haible  <bruno@clisp.org>
40135
40136         Fix test failure on platforms with non-GNU iconv.
40137         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40138         (U_TO_U8): Use it, rather than u16_to_u8.
40139         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40140         units at the end of the input string.
40141         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40142
40143 2008-04-20  Bruno Haible  <bruno@clisp.org>
40144
40145         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40146         when the resulting length is 0.
40147         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40148
40149 2008-04-20  Bruno Haible  <bruno@clisp.org>
40150
40151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40152         works.
40153         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40154
40155 2008-04-20  Bruno Haible  <bruno@clisp.org>
40156
40157         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40158         * modules/tsearch-tests (configure.ac): Test for initstate function.
40159
40160 2008-04-20  Bruno Haible  <bruno@clisp.org>
40161
40162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40163         for nlink_t if missing.
40164         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40165
40166 2008-04-19  Bruno Haible  <bruno@clisp.org>
40167
40168         Work around snprintf bug on Linux libc5.
40169         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40170         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40171         gl_SNPRINTF_SIZE1.
40172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40173         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40174         that test failed.
40175         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40176         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40177         * modules/snprintf (Files): Add m4/printf.m4.
40178         * modules/vsnprintf (Files): Likewise.
40179         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40180         * doc/posix-functions/vsnprintf.texi: Likewise.
40181
40182 2008-04-19  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40185         from 0.0058 to less than 10^-7.
40186
40187 2008-04-19  Bruno Haible  <bruno@clisp.org>
40188
40189         Fix rounding when a precision is given.
40190         * lib/vasnprintf.c (is_borderline): New function.
40191         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40192         9...9x.
40193         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40194         %e, %g.
40195         * tests/test-vasprintf-posix.c (test_function): Likewise.
40196         * tests/test-snprintf-posix.h (test_function): Likewise.
40197         * tests/test-sprintf-posix.h (test_function): Likewise.
40198         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40199         * tests/test-printf-posix.h (test_function): Likewise.
40200         * tests/test-printf-posix.output: Update.
40201         Reported by John Darrington <john@darrington.wattle.id.au> via
40202         Ben Pfaff <blp@cs.stanford.edu>.
40203
40204 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40205
40206         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40207         Suggested by Bruno Haible <bruno@clisp.org>.
40208
40209 2008-04-17  Bruno Haible  <bruno@clisp.org>
40210
40211         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40212         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40213         implementation.
40214         Patch by Bruce Merry <bmerry@gmail.com>.
40215
40216 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40217
40218         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40219         doesn't work under Windows.
40220
40221 2008-04-16  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40224         New macros.
40225         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40226         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40227         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40228         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40229         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40230         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40231         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40232         macros.
40233         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40234         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40235         Northern Sotho, Uighur.
40236
40237 2008-04-16  Bruno Haible  <bruno@clisp.org>
40238
40239         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40240         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40241         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40242         Reported by Daniel Bergström <daniel@octocode.com>.
40243
40244 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40245             Bruno Haible  <bruno@clisp.org>
40246
40247         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40248         function.
40249         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40250         New functions, mostly extracted from gl_locale_name_default.
40251         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40252
40253 2008-04-16  Eric Blake  <ebb9@byu.net>
40254
40255         Adjust strtod detection to catch glibc 2.7 bug.
40256         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40257         Reported by John Gatewood Ham.
40258
40259 2008-04-16  Bruno Haible  <bruno@clisp.org>
40260
40261         Add tentative support for Linux libc5.
40262         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40263         * lib/fpurge.c (fpurge): Likewise.
40264         * lib/freadable.c (freadable): Likewise.
40265         * lib/freadahead.c (freadahead): Likewise.
40266         * lib/freading.c (freading): Likewise.
40267         * lib/freadptr.c (freadptr): Likewise.
40268         * lib/freadseek.c (freadptrinc): Likewise.
40269         * lib/fseeko.c (rpl_fseeko): Likewise.
40270         * lib/fseterr.c (fseterr): Likewise.
40271         * lib/fwritable.c (fwritable): Likewise.
40272         * lib/fwriting.c (fwriting): Likewise.
40273         Reported by Alain Guibert <alguibert+bts@free.fr>.
40274
40275 2008-04-15  Bruno Haible  <bruno@clisp.org>
40276
40277         * modules/mathl (configure.ac): Define module indicator.
40278
40279 2008-04-15  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/logl.c (logl): Remove unused variables.
40282
40283 2008-04-15  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40286         fails.
40287
40288 2008-04-15  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/trim.c (trim2): Fix argument of isspace() macro.
40291
40292 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40293
40294         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40295         to 0.
40296         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40297
40298 2008-04-14  Bruno Haible  <bruno@clisp.org>
40299
40300         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40301         AC_LANG_PROGRAM argument.
40302         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40303         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40305         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40306         * m4/math_h.m4 (gl_MATH_H): Likewise.
40307         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40310         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40311         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40312         * m4/regex.m4 (gl_REGEX): Likewise.
40313         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40314         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40316         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40317         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40318         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40321
40322 2008-04-14  Jim Meyering  <meyering@redhat.com>
40323
40324         test-strtod: fix typos: s/abs/fabs/
40325         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40326
40327 2008-04-13  Bruno Haible  <bruno@clisp.org>
40328
40329         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40330         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40331         module is also used and while not building the reloc-wrapper.
40332
40333 2008-04-13  Bruno Haible  <bruno@clisp.org>
40334
40335         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40336
40337 2008-04-13  Bruno Haible  <bruno@clisp.org>
40338
40339         Fix AIX compilation failure introduced on 2008-04-02.
40340         * tests/test-frexp.c (exp): Undefine before redefining.
40341         * tests/test-frexpl.c (exp): Likewise.
40342
40343 2008-04-13  Bruno Haible  <bruno@clisp.org>
40344
40345         Work around a HP-UX stdio bug.
40346         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40347         * tests/test-ftello.c (main): Likewise.
40348         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40349         * doc/posix-functions/ftello.texi: Likewise.
40350
40351 2008-04-13  Bruno Haible  <bruno@clisp.org>
40352
40353         Make test-signbit pass on HP-UX/hppa.
40354         * tests/test-signbit.c (minus_zerol): New variable.
40355         (test_signbitl): Use it.
40356
40357 2008-04-13  Bruno Haible  <bruno@clisp.org>
40358
40359         Make truncl work on OSF/1 4.0.
40360         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40361         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40362         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40364         HAVE_DECL_TRUNCL.
40365         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40366         HAVE_DECL_TRUNCL.
40367         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40368
40369 2008-04-13  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40372
40373 2008-04-13  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40376         expression, so as to avoid HP-UX 11 cc compiler bug.
40377
40378 2008-04-13  Bruno Haible  <bruno@clisp.org>
40379
40380         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40381
40382 2008-04-13  Bruno Haible  <bruno@clisp.org>
40383
40384         * lib/git-merge-changelog.c: Remove empty declaration outside of
40385         functions.
40386
40387 2008-04-13  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40390
40391 2008-04-13  Bruno Haible  <bruno@clisp.org>
40392
40393         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40394         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40396         also if it exists but lacks definitions of the SHUT_* macros.
40397         * modules/sys_socket (Description): Update.
40398         Reported by Elbert Pol <e.pol@chello.nl>.
40399
40400 2008-04-13  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/localcharset.c (OS2): Don't redefine if already defined.
40403         Reported by Elbert Pol <e.pol@chello.nl>.
40404
40405 2008-04-13  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/binary-io.h [__EMX__]: Include <io.h>.
40408         Reported by Elbert Pol <e.pol@chello.nl>.
40409
40410 2008-04-12  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/fpucw.h: Enable the definitions also for x86_64.
40413         Needed for NetBSD/x86_64.
40414         Reported by Thomas Klausner <tk@giga.or.at>.
40415
40416 2008-04-12  Bruno Haible  <bruno@clisp.org>
40417
40418         * tests/test-strtod.c: Include isnand.h.
40419         (main): Use isnand instead of isnan.
40420         Reported by Jim Meyering.
40421
40422 2008-04-12  Bruno Haible  <bruno@clisp.org>
40423
40424         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40425         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40426
40427 2008-04-12  Jim Meyering  <meyering@redhat.com>
40428
40429         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40430
40431 2008-04-12  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40434         Reported by Elbert Pol <e.pol@chello.nl>.
40435
40436 2008-04-12  Eric Blake  <ebb9@byu.net>
40437
40438         Work around Solaris 10 math.h bug.
40439         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40440         (gl_MATH_H_DEFAULTS): Set up default.
40441         * modules/math (Makefile.am): Replace new indicators.
40442         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40443         * tests/test-math.c (main): Test this.
40444         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40445         * doc/posix-headers/math.texi (math.h): Mention bug.
40446         Reported by Nelson H. F. Beebe and Jim Meyering.
40447
40448 2008-04-11  Bruno Haible  <bruno@clisp.org>
40449
40450         Adapt to future versions of Apple GCC.
40451         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40452         Reported by Peter O'Gorman <peter@pogma.com>.
40453
40454 2008-04-11  Bruno Haible  <bruno@clisp.org>
40455
40456         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40457
40458 2008-04-11  Bruno Haible  <bruno@clisp.org>
40459
40460         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40461
40462         * modules/getaddrinfo-tests (Makefile.am): Define
40463         test_getaddrinfo_LDADD.
40464
40465 2008-04-11  Bruno Haible  <bruno@clisp.org>
40466
40467         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40468         (init): Fix syntax error.
40469         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40470         is declared.
40471
40472 2008-04-11  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40475         * modules/glob (Depends-on): Add stdbool.
40476
40477 2008-04-11  Bruno Haible  <bruno@clisp.org>
40478
40479         * lib/trim.c: Include <string.h>.
40480
40481 2008-04-11  Eric Blake  <ebb9@byu.net>
40482
40483         Avoid compile failure on OS/2.
40484         * lib/regex_internal.h (internal_function): Disable optimization
40485         on OS/2 (__EMX__), where it caused compiler error.
40486         Reported by Elbert Pol.
40487
40488 2008-04-11  Bruno Haible  <bruno@clisp.org>
40489
40490         Flush the standard error stream before aborting. Needed on mingw.
40491         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40492         * tests/test-array_list.c (ASSERT): Likewise.
40493         * tests/test-array_oset.c (ASSERT): Likewise.
40494         * tests/test-avltree_list.c (ASSERT): Likewise.
40495         * tests/test-avltree_oset.c (ASSERT): Likewise.
40496         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40497         * tests/test-binary-io.c (ASSERT): Likewise.
40498         * tests/test-byteswap.c (ASSERT): Likewise.
40499         * tests/test-c-ctype.c (ASSERT): Likewise.
40500         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40501         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40502         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40503         * tests/test-c-strstr.c (ASSERT): Likewise.
40504         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40505         * tests/test-canonicalize.c (ASSERT): Likewise.
40506         * tests/test-carray_list.c (ASSERT): Likewise.
40507         * tests/test-ceilf1.c (ASSERT): Likewise.
40508         * tests/test-ceilf2.c (ASSERT): Likewise.
40509         * tests/test-ceill.c (ASSERT): Likewise.
40510         * tests/test-count-one-bits.c (ASSERT): Likewise.
40511         * tests/test-fbufmode.c (ASSERT): Likewise.
40512         * tests/test-fflush2.c (ASSERT): Likewise.
40513         * tests/test-floorf1.c (ASSERT): Likewise.
40514         * tests/test-floorf2.c (ASSERT): Likewise.
40515         * tests/test-floorl.c (ASSERT): Likewise.
40516         * tests/test-fopen.c (ASSERT): Likewise.
40517         * tests/test-fpending.c (ASSERT): Likewise.
40518         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40519         * tests/test-fpurge.c (ASSERT): Likewise.
40520         * tests/test-freadable.c (ASSERT): Likewise.
40521         * tests/test-freadahead.c (ASSERT): Likewise.
40522         * tests/test-freading.c (ASSERT): Likewise.
40523         * tests/test-freadptr.c (ASSERT): Likewise.
40524         * tests/test-freadptr2.c (ASSERT): Likewise.
40525         * tests/test-freadseek.c (ASSERT): Likewise.
40526         * tests/test-freopen.c (ASSERT): Likewise.
40527         * tests/test-frexp.c (ASSERT): Likewise.
40528         * tests/test-frexpl.c (ASSERT): Likewise.
40529         * tests/test-fseek.c (ASSERT): Likewise.
40530         * tests/test-fseeko.c (ASSERT): Likewise.
40531         * tests/test-fstrcmp.c (ASSERT): Likewise.
40532         * tests/test-ftell.c (ASSERT): Likewise.
40533         * tests/test-ftello.c (ASSERT): Likewise.
40534         * tests/test-func.c (ASSERT): Likewise.
40535         * tests/test-fwritable.c (ASSERT): Likewise.
40536         * tests/test-fwriting.c (ASSERT): Likewise.
40537         * tests/test-getdelim.c (ASSERT): Likewise.
40538         * tests/test-getline.c (ASSERT): Likewise.
40539         * tests/test-i-ring.c (ASSERT): Likewise.
40540         * tests/test-iconv-utf.c (ASSERT): Likewise.
40541         * tests/test-iconv.c (ASSERT): Likewise.
40542         * tests/test-isfinite.c (ASSERT): Likewise.
40543         * tests/test-isnand.c (ASSERT): Likewise.
40544         * tests/test-isnanf.c (ASSERT): Likewise.
40545         * tests/test-isnanl.h (ASSERT): Likewise.
40546         * tests/test-ldexpl.c (ASSERT): Likewise.
40547         * tests/test-linked_list.c (ASSERT): Likewise.
40548         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40549         * tests/test-localename.c (ASSERT): Likewise.
40550         * tests/test-lseek.c (ASSERT): Likewise.
40551         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40552         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40553         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40554         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40555         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40556         * tests/test-mbschr.c (ASSERT): Likewise.
40557         * tests/test-mbscspn.c (ASSERT): Likewise.
40558         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40559         * tests/test-mbspbrk.c (ASSERT): Likewise.
40560         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40561         * tests/test-mbsrchr.c (ASSERT): Likewise.
40562         * tests/test-mbsspn.c (ASSERT): Likewise.
40563         * tests/test-mbsstr1.c (ASSERT): Likewise.
40564         * tests/test-mbsstr2.c (ASSERT): Likewise.
40565         * tests/test-mbsstr3.c (ASSERT): Likewise.
40566         * tests/test-memchr2.c (ASSERT): Likewise.
40567         * tests/test-memmem.c (ASSERT): Likewise.
40568         * tests/test-open.c (ASSERT): Likewise.
40569         * tests/test-printf-frexp.c (ASSERT): Likewise.
40570         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40571         * tests/test-printf-posix.c (ASSERT): Likewise.
40572         * tests/test-quotearg.c (ASSERT): Likewise.
40573         * tests/test-rbtree_list.c (ASSERT): Likewise.
40574         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40575         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40576         * tests/test-round1.c (ASSERT): Likewise.
40577         * tests/test-roundf1.c (ASSERT): Likewise.
40578         * tests/test-roundl.c (ASSERT): Likewise.
40579         * tests/test-signbit.c (ASSERT): Likewise.
40580         * tests/test-sleep.c (ASSERT): Likewise.
40581         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40582         * tests/test-snprintf.c (ASSERT): Likewise.
40583         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40584         * tests/test-stat-time.c (ASSERT): Likewise.
40585         * tests/test-strcasestr.c (ASSERT): Likewise.
40586         * tests/test-strerror.c (ASSERT): Likewise.
40587         * tests/test-striconv.c (ASSERT): Likewise.
40588         * tests/test-striconveh.c (ASSERT): Likewise.
40589         * tests/test-striconveha.c (ASSERT): Likewise.
40590         * tests/test-strsignal.c (ASSERT): Likewise.
40591         * tests/test-strstr.c (ASSERT): Likewise.
40592         * tests/test-strtod.c (ASSERT): Likewise.
40593         * tests/test-trunc1.c (ASSERT): Likewise.
40594         * tests/test-trunc2.c (ASSERT): Likewise.
40595         * tests/test-truncf1.c (ASSERT): Likewise.
40596         * tests/test-truncf2.c (ASSERT): Likewise.
40597         * tests/test-truncl.c (ASSERT): Likewise.
40598         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40599         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40600         * tests/test-vasnprintf.c (ASSERT): Likewise.
40601         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40602         * tests/test-vasprintf.c (ASSERT): Likewise.
40603         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40604         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40605         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40606         * tests/test-vsnprintf.c (ASSERT): Likewise.
40607         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40608         * tests/test-wcwidth.c (ASSERT): Likewise.
40609         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40610         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40611         * tests/test-xvasprintf.c (ASSERT): Likewise.
40612         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40613         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40614         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40615         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40616         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40617         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40618         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40619         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40620         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40621         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40622         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40623         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40624         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40625         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40626         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40627         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40628         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40629         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40630         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40631         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40632         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40633         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40634         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40635         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40636         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40637         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40638         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40639         * tests/unictype/test-combining.c (ASSERT): Likewise.
40640         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40641         * tests/unictype/test-digit.c (ASSERT): Likewise.
40642         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40643         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40644         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40645         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40646         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40647         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40648         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40649         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40650         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40651         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40652         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40653         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40654         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40655         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40656         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40657         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40658         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40659         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40660         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40661         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40662         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40663         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40664         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40665         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40666         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40667         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40668         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40669         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40670         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40671         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40672         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40673         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40674         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40675         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40676         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40677         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40678         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40679         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40680         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40681         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40682         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40683         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40684         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40685         Reported by Eric Blake.
40686
40687 2008-04-11  Bruno Haible  <bruno@clisp.org>
40688
40689         * lib/wchar.in.h: Tweak comment.
40690
40691 2008-04-11  Bruno Haible  <bruno@clisp.org>
40692
40693         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40694         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40695         gl_COMMON.
40696         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40697
40698 2008-04-11  Bruno Haible  <bruno@clisp.org>
40699
40700         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40701
40702 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40703
40704         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40705         of attempting to use non-existing /dev/*random.  Based on patch
40706         from Adam Strzelecki <ono@java.pl> in
40707         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40708
40709 2008-04-08  Bruno Haible  <bruno@clisp.org>
40710
40711         Add tentative support for emx+gcc.
40712         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40713         * lib/fpurge.c (fpurge): Likewise.
40714         * lib/freadable.c (freadable): Likewise.
40715         * lib/freadahead.c (freadahead): Likewise.
40716         * lib/freading.c (freading): Likewise.
40717         * lib/freadptr.c (freadptr): Likewise.
40718         * lib/freadseek.c (freadptrinc): Likewise.
40719         * lib/fseeko.c (rpl_fseeko): Likewise.
40720         * lib/fseterr.c (fseterr): Likewise.
40721         * lib/fwritable.c (fwritable): Likewise.
40722         * lib/fwriting.c (fwriting): Likewise.
40723         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40724
40725 2008-04-09  Eric Blake  <ebb9@byu.net>
40726
40727         Avoid some autoconf warnings.
40728         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40729         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40730         * m4/afs.m4 (gl_AFS): Likewise.
40731         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40732         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40734         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40735         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40736         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40737         (AC_CHECK_DECLS_ONCE): Likewise.
40738         Rename file...
40739         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40740         gnulib-tool requires autoconf 2.59 or better.
40741         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40742
40743 2008-04-08  Eric Blake  <ebb9@byu.net>
40744
40745         Use 'git describe --match' if present (added in git 1.5.5).
40746         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40747         if possible.
40748
40749 2008-04-08  Bruno Haible  <bruno@clisp.org>
40750
40751         Add tentative support for OpenServer.
40752         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40753         _ptr, _cnt.
40754         * lib/fpurge.c (fpurge): Likewise.
40755         * lib/freadable.c (freadable): Likewise.
40756         * lib/freadahead.c (freadahead): Likewise.
40757         * lib/freading.c (freading): Likewise.
40758         * lib/freadptr.c (freadptr): Likewise.
40759         * lib/freadseek.c (freadptrinc): Likewise.
40760         * lib/fseeko.c (rpl_fseeko): Likewise.
40761         * lib/fseterr.c (fseterr): Likewise.
40762         * lib/fwritable.c (fwritable): Likewise.
40763         * lib/fwriting.c (fwriting): Likewise.
40764         Reported by Roger Cornelius <rac@tenzing.org> and
40765         Brian K. White <brian@aljex.com>.
40766
40767 2008-04-06  Jim Meyering  <meyering@redhat.com>
40768
40769         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40770
40771 2008-04-06  Bruno Haible  <bruno@clisp.org>
40772
40773         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40774         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40775         * tests/test-printf-posix.sh: Likewise.
40776         * tests/test-vfprintf-posix.sh: Likewise.
40777         * tests/test-vprintf-posix.sh: Likewise.
40778         * tests/test-xprintf-posix.sh: Likewise.
40779
40780 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40781
40782         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40783         hide error from 'ls', needed on OS/2.
40784         Report by Elbert Pol <elbert.pol@gmail.com>.
40785
40786 2008-04-04  Eric Blake  <ebb9@byu.net>
40787
40788         Make test-fseeko.c failures meaningful.
40789         * tests/test-fseeko.c: Print line number on failure.
40790         * tests/test-fseek.c: Likewise.
40791         Reported by Nelson H. F. Beebe.
40792
40793         Improve strtod bug detection check.
40794         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40795         required for Solaris 10.
40796         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40797
40798 2008-04-04  Bruno Haible  <bruno@clisp.org>
40799
40800         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40801         by m4/setenv.m4.
40802
40803 2008-04-03  Eric Blake  <ebb9@byu.net>
40804
40805         Ensure sane .version contents.
40806         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40807         version string.
40808         * build-aux/git-version-gen: Improve documentation.
40809
40810         Make GNU make output nicer.
40811         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40812         MAKECMDGOALS to enforce message for all command line targets.  Set
40813         srcdir for use in maint.mk.
40814
40815         Another maintainer tweak.
40816         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40817         a target that regenerates version.
40818
40819 2008-04-03  Jim Meyering  <meyering@redhat.com>
40820
40821         vc-list-files: don't cause coreutils "make po-check" failure
40822         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40823
40824 2008-04-03  Eric Blake  <ebb9@byu.net>
40825
40826         Allow VPATH usage of vc-list-files.
40827         * build-aux/vc-list-files (scriptversion): Add timestamp.
40828         (options): Add --help, --version, -C.
40829         (CVS): Support installed cvsu.
40830
40831 2008-04-02  Bruno Haible  <bruno@clisp.org>
40832
40833         Avoid some "statement with no effect" warnings from gcc.
40834         * tests/test-wctype.c (main): Explicitly ignore unused values.
40835         Reported by Jim Meyering.
40836
40837 2008-04-02  Jim Meyering  <meyering@redhat.com>
40838
40839         Avoid some warnings from "gcc -Wshadow".
40840         * tests/test-frexp.c (exp): Define to a different identifier.
40841         * tests/test-frexpl.c (exp): Likewise.
40842
40843 2008-04-03  Jim Meyering  <meyering@redhat.com>
40844
40845         bootstrap: remove dangling *.[ch] symlinks from lib
40846         * build-aux/bootstrap [dangling symlink removal]: Move find's
40847         -depth option to precede all others, to avoid a warning.
40848         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40849
40850 2008-04-02  Bruno Haible  <bruno@clisp.org>
40851
40852         Avoid some warnings from "gcc -Wshadow".
40853         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40854         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40855         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40856         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40857         Reported by Jim Meyering.
40858
40859 2008-04-01  Bruno Haible  <bruno@clisp.org>
40860
40861         Fix test to work on IRIX 6.5 with cc.
40862         * tests/test-math.c (numeric_equal): New function.
40863         (main): Use it.
40864
40865 2008-04-01  Bruno Haible  <bruno@clisp.org>
40866
40867         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40868
40869 2008-04-01  Bruno Haible  <bruno@clisp.org>
40870
40871         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40872         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40873         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40874         (Depends-on): Remove math.
40875
40876         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40877         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40878         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40879         (Depends-on): Remove math.
40880
40881         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40883         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40884         (Depends-on): Remove math.
40885         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40886         (Depends-on): Remove math.
40887
40888         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40889         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40890         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40891         (Depends-on): Remove math.
40892         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40893         (Depends-on): Remove math.
40894
40895         * tests/test-round1.c: Include nan.h.
40896         (main): Use NaNd instead of NAN.
40897         * modules/round-tests (Files): Add tests/nan.h.
40898
40899         * tests/test-trunc1.c: Include nan.h.
40900         (main): Use NaNd instead of NAN.
40901         * modules/trunc-tests (Files): Add tests/nan.h.
40902
40903         * tests/test-roundf1.c: Include nan.h.
40904         (main): Use NaNf instead of NAN.
40905         * modules/roundf-tests (Files): Add tests/nan.h.
40906
40907         * tests/test-truncf1.c: Include nan.h.
40908         (main): Use NaNf instead of NAN.
40909         * modules/truncf-tests (Files): Add tests/nan.h.
40910
40911         * tests/test-ceilf1.c: Include nan.h.
40912         (main): Use NaNf instead of NAN.
40913         * modules/ceilf-tests (Files): Add tests/nan.h.
40914
40915         * tests/test-floorf1.c: Include nan.h.
40916         (main): Use NaNf instead of NAN.
40917         * modules/floorf-tests (Files): Add tests/nan.h.
40918
40919         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40920         (main): Use NaNf instead of NAN.
40921         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40922
40923         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40924         (main): Use NaNd instead of NAN.
40925         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40926
40927         * tests/test-frexp.c: Include nan.h.
40928         (main): Use NaNd instead of NAN.
40929         * modules/frexp-tests (Files): Add tests/nan.h.
40930
40931         * lib/isnan.c: Don't include <math.h>.
40932         (FUNC): Don't use NAN macro.
40933         * modules/isnand-nolibm (Depends-on): Remove math.
40934         * modules/isnanf-nolibm (Depends-on): Remove math.
40935         * modules/isnanl (Depends-on): Remove math.
40936         * modules/isnanl-nolibm (Depends-on): Remove math.
40937
40938         * tests/nan.h: New file.
40939
40940 2008-04-01  Eric Blake  <ebb9@byu.net>
40941
40942         Fix typos.
40943         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40944         values to be the right type.
40945
40946         For now, cater to gnulib strtod inaccuracies.
40947         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40948         fractional results.  While not as nice from a QoI perspective, it
40949         is a quicker patch than correctly implementing decimal to binary
40950         rounding.
40951
40952 2008-03-31  Eric Blake  <ebb9@byu.net>
40953
40954         Guarantee a definition of NAN.
40955         * lib/math.in.h (NAN): Define if missing.
40956         * tests/test-math.c (main): Test it.
40957         * doc/posix-headers/math.texi (math.h): Document this.
40958         * lib/isnan.c (rpl_isnand): Use it.
40959         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40960         * tests/test-floorf1.c (NaN): Likewise.
40961         * tests/test-frexp.c (NaN): Likewise.
40962         * tests/test-isnand.c (NaN): Likewise.
40963         * tests/test-isnanf.c (NaN): Likewise.
40964         * tests/test-round1.c (NaN): Likewise.
40965         * tests/test-roundf1.c (NaN): Likewise.
40966         * tests/test-snprintf-posix.h (NaN): Likewise.
40967         * tests/test-sprintf-posix.h (NaN): Likewise.
40968         * tests/test-trunc1.c (NaN): Likewise.
40969         * tests/test-truncf1.c (NaN): Likewise.
40970         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40971         * tests/test-vasprintf-posix.c (NaN): Likewise.
40972         * modules/isnand-nolibm (Depends-on): Add math.
40973         * modules/isnanf-nolibm (Depends-on): Likewise.
40974         * modules/isnanl (Depends-on): Likewise.
40975         * modules/isnanl-nolibm (Depends-on): Likewise.
40976         * modules/snprintf-posix-tests (Depends-on): Likewise.
40977         * modules/sprintf-posix-tests (Depends-on): Likewise.
40978         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40979         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40980         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40981         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40982
40983 2008-03-31  Bruno Haible  <bruno@clisp.org>
40984
40985         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40986         * doc/posix-functions/strtod.texi: Likewise.
40987
40988 2008-03-31  Bruno Haible  <bruno@clisp.org>
40989
40990         * tests/test-strtod.c (main): Don't use C99 syntax.
40991
40992 2008-03-31  Bruno Haible  <bruno@clisp.org>
40993
40994         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40995         Reported by Eric Blake.
40996
40997 2008-03-31  Jim Meyering  <meyering@redhat.com>
40998
40999         Don't compare actual signbit return values.
41000         * tests/test-strtod.c (main): Rather, compare only their
41001         zero/non-zero nature.
41002
41003 2008-03-31  Eric Blake  <ebb9@byu.net>
41004
41005         More strtod documentation.
41006         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41007         failures as distinct bugs.
41008
41009 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41010
41011         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41012         Problem reported by Erik Benada in
41013         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41014
41015 2008-03-30  Bruno Haible  <bruno@clisp.org>
41016
41017         * tests/test-strtod.c: Add comments about which assertion fails on which
41018         platform.
41019         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41020
41021 2008-03-30  Eric Blake  <ebb9@byu.net>
41022
41023         Test signbit behavior on zeros.
41024         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41025         (test_signbitd, test_signbitl): Likewise.
41026
41027         More strtod touchups.
41028         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41029         sign of negative underflow, for now.  Use .5, not .1.
41030         * doc/posix-functions/strtod.texi (strtod): Mention these
41031         limitations.
41032         Reported by Jim Meyering.
41033
41034 2008-03-30  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41037         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41038
41039 2008-03-30  Bruno Haible  <bruno@clisp.org>
41040
41041         Avoid failure when attempting to return empty iconv results on some
41042         platforms.
41043         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41044         allocation, don't report ENOMEM when the resulting string is empty.
41045
41046 2008-03-30  Bruno Haible  <bruno@clisp.org>
41047
41048         Fix buffer overrun.
41049         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41050         Don't consider the width for tmp_length. Check count against tmp_length
41051         before doing the padding. Ensure enough allocation during padding.
41052
41053 2008-03-30  Eric Blake  <ebb9@byu.net>
41054
41055         strtod touchups.
41056         * lib/strtod.c (strtod): Avoid compiler warnings.
41057         Reported by Jim Meyering.
41058
41059 2008-03-30  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41062         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41063         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41064         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41065         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41066         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41067         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41068         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41069
41070         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41071         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41072         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41073         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41074         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41075         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41076         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41077         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41078
41079         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41080         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41081         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41082         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41083         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41084         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41085         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41086         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41087
41088         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41089         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41090
41091         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41092         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41093
41094         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41095         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41096
41097         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41099         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41100
41101         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41103         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41104
41105         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41107         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41108
41109         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41111         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41112
41113         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41114         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41116         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41117         (Depends-on): Add EOVERFLOW.
41118         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41119         (Depends-on): Add EOVERFLOW.
41120         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41121         (Depends-on): Add EOVERFLOW.
41122         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41123         (Depends-on): Add EOVERFLOW.
41124         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41125         (Depends-on): Add EOVERFLOW.
41126         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41127         (Depends-on): Add EOVERFLOW.
41128         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41129         (Depends-on): Add EOVERFLOW.
41130         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41131         (Depends-on): Add EOVERFLOW.
41132
41133         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41135         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41136
41137         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41139         * modules/snprintf (Depends-on): Add EOVERFLOW.
41140
41141         * lib/poll.c (EOVERFLOW): Remove fallback.
41142         * modules/poll (Depends-on): Add EOVERFLOW.
41143
41144         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41145         * modules/getugroups (Depends-on): Add EOVERFLOW.
41146
41147         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41148         * modules/getdelim (Depends-on): Add EOVERFLOW.
41149
41150         * lib/ftell.c (EOVERFLOW): Remove fallback.
41151         * modules/ftell (Depends-on): Add EOVERFLOW.
41152
41153         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41154         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41155         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41156
41157         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41158
41159         * modules/EOVERFLOW-tests: New file.
41160         * tests/test-EOVERFLOW.c: New file.
41161
41162         * modules/EOVERFLOW: New file.
41163         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41164
41165 2008-03-30  Bruno Haible  <bruno@clisp.org>
41166
41167         Fix bug introduced on 2007-06-10.
41168         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41169         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41170
41171 2008-03-30  Bruno Haible  <bruno@clisp.org>
41172
41173         Improve freadseek's efficiency after ungetc.
41174         * lib/freadseek.c: Include freadahead.h.
41175         (freadptrinc): New function, extracted from freadseek.
41176         (freadseek): Use it in a loop. Use freadahead to determine the number
41177         of loop iterations.
41178         * modules/freadseek (Depends-on): Add freadahead.
41179         (configure.ac): Require AC_C_INLINE.
41180
41181 2008-03-30  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/freadseek.c (freadseek): Don't ignore the return value of
41184         freadptr.
41185
41186 2008-03-29  Eric Blake  <ebb9@byu.net>
41187
41188         Add hex float support.
41189         * modules/strtod (Depends-on): Add c-ctype.
41190         (Link): Mention POW_LIB.
41191         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41192         whitespace between 'e' and exponent.
41193         * tests/test-strtod.c (main): Enable hex float tests.
41194         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41195         now provides.
41196
41197         Document various strtod bugs, with some fixes.
41198         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41199         "-0x", "inf", "nan", and hex constants.
41200         * doc/posix-functions/atof.texi (atof): Likewise.
41201         * modules/stdlib (Makefile.am): Support strtod.
41202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41203         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41204         detect additional strtod bugs.
41205         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41206         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41207         bool where appropriate.  Parse 'inf' and 'nan'.
41208         * tests/test-strtod.c: New file.
41209         * modules/strtod (Depends-on): Add stdbool, stdlib.
41210         (configure.ac): Turn on module indicator.
41211         * modules/strtod-tests: New module.
41212
41213 2008-03-29  Eric Blake  <ebb9@byu.net>
41214
41215         Fix ftell on mingw.
41216         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41217         * modules/ftell-tests (Depends-on): Add binary-io.
41218         * modules/ftello-tests (Depends-on): Likewise.
41219         * tests/test-ftell.c (main): Enhance test to cover behavior after
41220         ungetc.  Enforce binary mode.
41221         * tests/test-ftello.c (main): Likewise.
41222
41223         Pass test-freadseek on cygwin.
41224         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41225         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41226         ungetc buffer.
41227
41228         * tests/test-fflush2.c (main): Fix typo.
41229
41230 2008-03-29  Bruno Haible  <bruno@clisp.org>
41231
41232         * tests/test-fflush2.c (main): Temporarily disable the contents of
41233         this test.
41234         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41235         Reported by Eric Blake.
41236
41237 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41238
41239         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41240         (GC_SHA224_DIGEST_SIZE): Add.
41241
41242         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41243         (gc_hash_digest_length): Likewise.
41244         (gc_hash_buffer): Likewise.
41245
41246 2008-03-25  Bruno Haible  <bruno@clisp.org>
41247
41248         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41249         detail which gettext release to use.
41250         Reported by Simon Josefsson.
41251
41252 2008-03-26  Jim Meyering  <meyering@redhat.com>
41253
41254         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41255         * modules/gnumakefile (clean-GNUmakefile): Also, use
41256         test ... && ... || : syntax rather than if-then ... fi.
41257
41258         gnumakefile: Don't double-quote-expand $(VPATH) value.
41259         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41260
41261 2008-03-24  Eric Blake  <ebb9@byu.net>
41262
41263         Alter GNUmakefile to install into top directory.
41264         * modules/maintainer-makefile: Split, and add dependency...
41265         * modules/gnumakefile: to this new module.
41266         * build-aux/GNUmakefile: Move...
41267         * top/GNUmakefile: ...here.
41268         * build-aux/maint.mk: Move...
41269         * top/maint.mk: ...here.
41270         * MODULES.html.sh (Support for maintaining...): Document new
41271         module.
41272
41273 2008-03-23  Bruno Haible  <bruno@clisp.org>
41274
41275         * gnulib-tool: New options --vc-files, --no-vc-files.
41276         (func_usage): Document them.
41277         (vc_files): New variable.
41278         (func_import): Consider vc_files.
41279         (func_create_testdir): Set vc_files to empty.
41280         Suggested by Jim Meyering and Karl Berry.
41281
41282 2008-03-23  Bruno Haible  <bruno@clisp.org>
41283
41284         Fix regex compilation error on HP-UX 11.
41285         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41286         * modules/regex (Files): Add m4/mbstate_t.m4.
41287         Reported by Ton Voon <ton.voon@altinity.com>.
41288
41289 2008-03-23  Bruno Haible  <bruno@clisp.org>
41290
41291         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41292
41293 2008-03-23  Eric Blake  <ebb9@byu.net>
41294             Bruno Haible  <bruno@clisp.org>
41295
41296         Install files from top/ in the destination directory.
41297         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41298         augmentation also for the files from top/.
41299         (func_import, func_create_testdir): Rewrite file names:
41300         top/filename -> filename.
41301
41302 2008-03-23  Bruno Haible  <bruno@clisp.org>
41303
41304         Tweak "gnulib --version" output.
41305         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41306
41307 2008-03-23  Bruno Haible  <bruno@clisp.org>
41308
41309         Tweak "gnulib --version" output.
41310         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41311         rather than contents of ChangeLog, when possible.
41312
41313 2008-03-21  Eric Blake  <ebb9@byu.net>
41314
41315         More --version tweaks.
41316         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41317         date of last ChangeLog entry.
41318
41319 2008-03-21  Jim Meyering  <meyering@redhat.com>
41320
41321         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41322
41323 2008-03-20  Eric Blake  <ebb9@byu.net>
41324
41325         VPATH fix.
41326         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41327
41328 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41329
41330         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41331         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41332
41333 2008-03-20  Eric Blake  <ebb9@byu.net>
41334
41335         Sync GNUmakefile with coreutils.
41336         * build-aux/GNUmakefile (have-Makefile): Rename...
41337         (_have-Makefile): ...to this, for namespace consideration.
41338         (GNUmakefile.cfg): Include, if present.
41339         (_autoreconf): Define a default.
41340         (_is-dist-target): New rule for rebuilds to pick up intra-release
41341         version.
41342         (maint-cfg.mk): Rename...
41343         (cfg.mk): ...to this.
41344
41345 2008-03-18  Jim Meyering  <meyering@redhat.com>
41346
41347         New script and module: mktempd
41348         * MODULES.html.sh (maint+release support): Add mktempd.
41349         * build-aux/mktempd: New file.
41350         * modules/mktempd: New file.
41351
41352 2008-03-15  Jim Meyering  <meyering@redhat.com>
41353
41354         Undo last change.
41355         * lib/sha1.c, lib/md5.c: 63 != ~63.
41356         Reported by Andreas Schwab.
41357
41358         sha1.c, md5.c: Hoist a redundant expression.
41359         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41360         "ctx->buflen" only once, before calling *_process_block.
41361         * lib/md5.c (md5_process_bytes): Likewise.
41362
41363 2008-03-14  Eric Blake  <ebb9@byu.net>
41364
41365         Bump copyright year in files generated by gnulib-tool.
41366         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41367         gnulib-tool, rather than hard-coding it.
41368
41369         Fix 'gnulib-tool --version' output to work with git.
41370         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41371         (startup): ...here.
41372         (func_version): Use it to invoke git-version-gen, rather than
41373         relying on CVS keyword expansion.  Modernize wording.
41374         (cvsdatestamp, last_checkin_date, version): Kill unused
41375         variables.
41376
41377 2008-03-12  Jim Meyering  <meyering@redhat.com>
41378
41379         Recognize optional cast of the argument to free.
41380         * build-aux/useless-if-before-free: Update regexps.
41381
41382         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41383
41384 2008-03-11  Bruno Haible  <bruno@clisp.org>
41385
41386         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41387         by a single package.
41388         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41389         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41390         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41391         Reported by Sam Steingold <sds@gnu.org>.
41392
41393 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41394
41395         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41396         repositories.
41397
41398 2008-03-11  Bruno Haible  <bruno@clisp.org>
41399
41400         Avoid conflicts between local macro definitions.
41401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41402         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41403
41404 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41405             Bruno Haible  <bruno@clisp.org>
41406
41407         Make va_copy work with some version of xlc on AIX 5.1.
41408         * lib/stdarg.in.h: New file.
41409         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41410         On AIX, use a <stdarg.h> file substitute.
41411         * modules/stdarg (Files): Add lib/stdarg.in.h.
41412         (Depends-on): Add include_next.
41413         (Makefile.am): Build a stdarg.h substitute if requested.
41414         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41415
41416 2008-03-10  Bruno Haible  <bruno@clisp.org>
41417
41418         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41420         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41421
41422 2008-03-10  Bruno Haible  <bruno@clisp.org>
41423
41424         * modules/stdlib (Depends-on): Add include_next, remove
41425         absolute-header.
41426
41427 2008-03-09  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/freadahead.h (freadahead): Document more precisely.
41430         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41431         the sum of both buffer sizes.
41432         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41433         * NEWS: Document the change.
41434
41435 2008-03-09  Bruno Haible  <bruno@clisp.org>
41436
41437         Extend freadptr to return also the buffer size.
41438         * lib/freadptr.h (freadptr): Add sizep argument.
41439         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41440         (freadptr): Add sizep argument. Determine buffer size like freadahead
41441         does.
41442         * tests/test-freadptr.c: Don't include freadahead.h.
41443         (main): Adapt for new calling convention of freadptr.
41444         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41445         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41446         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41447         tests/test-freadptr2.sh.
41448         (Depends): Remove freadahead.
41449         (TESTS): Add test-freadptr2.sh.
41450         (check_PROGRAMS): Add test-freadptr2.
41451
41452 2008-03-09  Bruno Haible  <bruno@clisp.org>
41453
41454         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41455         Report and solution by Simon Josefsson.
41456
41457 2008-03-06  Bruno Haible  <bruno@clisp.org>
41458
41459         Make fflush after ungetc work on BSD platforms.
41460         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41461         * tests/test-fflush2.c: New file.
41462         * tests/test-fflush2.sh: New file.
41463         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41464         tests/test-fflush2.c.
41465         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41466         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41467
41468 2008-03-06  Eric Blake  <ebb9@byu.net>
41469
41470         Likewise for ftello.
41471         * modules/ftello (Dependencies): Add extensions.
41472         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41473
41474 2008-03-06  Bruno Haible  <bruno@clisp.org>
41475
41476         * modules/fseeko (Dependencies): Add extensions.
41477         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41478         Needed on glibc systems.
41479
41480 2008-03-06  Bruno Haible  <bruno@clisp.org>
41481
41482         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41483         email address.
41484         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41485
41486 2008-03-06  Bruno Haible  <bruno@clisp.org>
41487
41488         * users.txt: Add libgnupdf.
41489
41490 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41491
41492         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41493         (Header File Substitutes, Function Substitutes,
41494         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41495         (Build robot for gnulib): Fix typo.
41496
41497 2008-03-06  Bruno Haible  <bruno@clisp.org>
41498
41499         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41500         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41501
41502 2008-03-06  Bruno Haible  <bruno@clisp.org>
41503
41504         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41505         * doc/gnulib.texi: Include it.
41506
41507 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41508
41509         * modules/func (License): Change license to unlimited; there was
41510         no LGPL parts in the module anyway.
41511
41512 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41513
41514         * modules/__func__: Renamed to modules/func.
41515         * modules/__func__-tests: Renamed to modules/func-tests.
41516         * tests/test-__func__.c: Renamed to tests/test-func.c.
41517         * m4/__func__.m4: Renamed to m4/func.m4.
41518         * doc/gnulib.texi (__func__): Section renamed to func.
41519         Suggested by Eric Blake <ebb9@byu.net>.
41520
41521 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41522
41523         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41524         about __func__.  Make example self-contained.  Suggested by Eric
41525         Blake <ebb9@byu.net>.
41526
41527         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41528         Suggested by Eric Blake <ebb9@byu.net>.
41529
41530 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41531
41532         * modules/__func__: New file.
41533         * modules/__func__-tests: New file.
41534         * tests/test-__func__.c: New file.
41535         * m4/__func__.m4: New file.
41536         * doc/gnulib.texi (__func__): Document __func__ module.
41537
41538 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41539
41540         * modules/byteswap (License): Re-license as LGPLv2+.
41541
41542 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41543
41544         * doc/Makefile: Add pdf target.
41545
41546 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41547
41548         * modules/inline (License): Use 'unlimited', since there are only
41549         *.m4 files in this module.
41550
41551 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41552             Bruno Haible  <bruno@clisp.org>
41553
41554         Add support for HP C 7.1 on OpenVMS 8.3.
41555         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41556
41557 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41558
41559         Update VMS specifics.
41560         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41561
41562 2008-03-02  Jim Meyering  <meyering@redhat.com>
41563
41564         Remove the last dependency on the "free" module.
41565         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41566         Reported by Bob Proulx.
41567
41568         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41569
41570         Remove useless "if" tests before free.  Deprecate "free" module.
41571         * doc/posix-functions/free.texi: Mention that this
41572         module is no longer useful.
41573         * modules/free (Notice): Say this module is obsolete.
41574         * modules/readutmp (Depends-on): Remove free.
41575         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41576         * lib/putenv.c (putenv): Likewise.
41577         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41578         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41579         * tests/test-c-strcasestr.c (main): Likewise.
41580         * tests/test-c-strstr.c (main): Likewise.
41581         * tests/test-mbscasestr1.c (main): Likewise.
41582         * tests/test-mbscasestr2.c (main): Likewise.
41583         * tests/test-mbsstr1.c (main): Likewise.
41584         * tests/test-mbsstr2.c (main): Likewise.
41585         * tests/test-memmem.c (main): Likewise.
41586         * tests/test-strcasestr.c (main): Likewise.
41587         * tests/test-striconv.c (main): Likewise.
41588         * tests/test-striconveh.c (main): Likewise.
41589         * tests/test-striconveha.c (main): Likewise.
41590         * tests/test-strstr.c (main): Likewise.
41591
41592         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41593
41594         bootstrap: sync from coreutils again
41595         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41596
41597 2008-03-01  Jim Meyering  <meyering@redhat.com>
41598
41599         bootstrap: sync from coreutils
41600         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41601         also when the target doesn't exist.
41602
41603 2008-03-01  Eric Blake  <ebb9@byu.net>
41604
41605         Fix bugs in last patch.
41606         * lib/memchr2.c (memchr2): Fix typo.
41607         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41608         extension.
41609         Reported by Bruce Korb.
41610
41611         New module 'memchr2'.
41612         * modules/memchr2: New file.
41613         * modules/memchr2-tests: Likewise.
41614         * lib/memchr2.h: Likewise.
41615         * lib/memchr2.c: Likewise, based on memchr.c.
41616         * tests/test-memchr2.c: New test.
41617         * MODULES.html.sh (String handling): Add memchr2.
41618
41619 2008-02-29  Bruno Haible  <bruno@clisp.org>
41620
41621         * modules/freadseek-tests: New file.
41622         * tests/test-freadseek.sh: New file.
41623         * tests/test-freadseek.c: New file.
41624
41625         New module 'freadseek'.
41626         * modules/freadseek: New file.
41627         * lib/freadseek.h: New file.
41628         * lib/freadseek.c: New file.
41629         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41630
41631 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41632
41633         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41634         wydawca.
41635
41636         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41637         program_invocation_name and program_invocation_short_name are
41638         present.
41639
41640 2008-02-28  Bruno Haible  <bruno@clisp.org>
41641
41642         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41643         * tests/test-freadptr.sh: Also test non-seekable stdin.
41644
41645 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41646
41647         * build-aux/bootstrap (source_base, m4_base)
41648         (doc_base, tests_base): New variables.
41649         (gnulib_tool_options): Do not hardcode base directories, use
41650         the above variables instead.
41651
41652 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41653
41654         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41655
41656 2008-02-28  Bruno Haible  <bruno@clisp.org>
41657
41658         * modules/freadptr-tests: New file.
41659         * tests/test-freadptr.sh: New file.
41660         * tests/test-freadptr.c: New file.
41661
41662         New module 'freadptr'.
41663         * modules/freadptr: New file.
41664         * lib/freadptr.h: New file.
41665         * lib/freadptr.c: New file.
41666         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41667
41668 2008-02-26  Karl Berry  <karl@freefriends.org>
41669
41670         Sync from Libtool:
41671         * libltdl/argz.c (argz_add, argz_count): New functions.
41672         * libltdl/argz.in.h: Declare them.
41673         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41674
41675 2008-02-22  Bruno Haible  <bruno@clisp.org>
41676
41677         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41678         is a pointer type.  Needed for HP-UX 10.
41679         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41680         * doc/posix-functions/gmtime_r.texi: Likewise.
41681         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41682
41683 2008-02-24  Bruno Haible  <bruno@clisp.org>
41684
41685         * modules/environ-tests: New file.
41686         * tests/test-environ.c: New file.
41687
41688         New module 'environ'.
41689         * modules/environ: New file.
41690         * lib/unistd.in.h (environ): New declaration.
41691         * m4/environ.m4: New file.
41692         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41693         after use.
41694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41695         HAVE_DECL_ENVIRON.
41696         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41697         HAVE_DECL_ENVIRON.
41698         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41699         wrong claim that 'environ' is missing on some systems.
41700         * modules/execute (Depends-on): Add environ.
41701         * lib/execute.c (environ): Remove fallback declaration.
41702         * modules/pipe (Depends-on): Add environ.
41703         * lib/pipe.c (environ): Remove fallback declaration.
41704         * modules/setenv (Depends-on): Add environ.
41705         * lib/setenv.c (environ): Remove fallback declaration.
41706         * modules/unsetenv (Depends-on): Add environ.
41707         * lib/unsetenv.c (environ): Remove fallback declaration.
41708         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41709         m4/environ.m4.
41710         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41711         (gl_PREREQ_UNSETENV): Likewise.
41712
41713 2008-02-24  Bruno Haible  <bruno@clisp.org>
41714
41715         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41716
41717 2008-02-20  Bob Proulx  <bob@proulx.com>
41718
41719         Enable use of older two part flavor 'git describe'.
41720         * build-aux/git-version-gen: If using the older two part flavor of
41721         git version then recreate the third part now present in the
41722         newer three part flavor of git describe.
41723
41724 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41725
41726         * lib/fts.c (fts_build): Typo correction to comment.
41727
41728 2008-02-17  Bruno Haible  <bruno@clisp.org>
41729
41730         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41731         generating no-op conflicts.
41732
41733 2008-02-17  Bruno Haible  <bruno@clisp.org>
41734
41735         Speed up by 10%.
41736         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41737         result_entries, rather than an index-based loop.
41738
41739 2008-02-17  Bruno Haible  <bruno@clisp.org>
41740
41741         Speed up by 25%.
41742         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41743         'hashcode_cached'.
41744         (entry_create): New function.
41745         (entry_hashcode): Use the cached hashcode if possible.
41746         (read_changelog_file, try_split_merged_entry): Use entry_create.
41747
41748 2008-02-17  Bruno Haible  <bruno@clisp.org>
41749
41750         Speed up from O(n^2) to O(n) for long ChangeLog files.
41751         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41752         (read_changelog_file): Change implementation of entries_reversed list
41753         to rbtreehash.
41754         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41755
41756 2008-02-17  Bruno Haible  <bruno@clisp.org>
41757
41758         New option --split-merged-entry.
41759         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41760         (find_paragraph_end, try_split_merged_entry): New functions.
41761         (long_options): Add option --split-merged-entry.
41762         (usage): Document option --split-merged-entry.
41763         (main): Implement option --split-merged-entry.
41764         Reported by Eric Blake.
41765
41766 2008-02-17  Bruno Haible  <bruno@clisp.org>
41767
41768         * lib/git-merge-changelog.c: Include c-strstr.h.
41769         (main): Support the "git pull --rebase" situation.
41770         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41771         Reported by Eric Blake.
41772
41773 2008-02-16  Eric Blake  <ebb9@byu.net>
41774
41775         Avoid doubling \ in common case of "c-maybe" quoting style.
41776         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41777         eliding outer quotes.
41778         * lib/quotearg.h: Document this.
41779         * tests/test-quotearg.c (result_strings, inputs, results_g)
41780         (flag_results, locale_results): Test it by adding a new string to
41781         each test group.
41782         (compare_strings): Test new string.
41783
41784 2008-02-13  Eric Blake  <ebb9@byu.net>
41785
41786         Avoid trigraph quoting in default output.
41787         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41788         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41789         unless explicitly requested.
41790         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41791
41792 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41793
41794         Don't rely on signed integer overflowing to negative value.
41795         * lib/getugroups.c (getugroups): Include <limits.h>.
41796         Instead, compare against INT_MAX, and increment only if the test passes.
41797
41798 2008-02-13  Jim Meyering  <meyering@redhat.com>
41799         and Eric Blake  <ebb9@byu.net>
41800
41801         Avoid shadowing warning and compile errors on Linux.
41802         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41803         forwarding macros on Linux.
41804         (dcgettext): Define a stub, for Linux.
41805         (results_g, main): Avoid warnings.
41806
41807 2008-02-12  Eric Blake  <ebb9@byu.net>
41808
41809         Silence warning in last patch.
41810         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41811
41812         Quotearg part 4: add tests, fix c-maybe colon quoting.
41813         * lib/quotearg.h: Improve documentation.
41814         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41815         escapes when adding outer quotes.  When quoting trigraphs, use
41816         valid C notation.  When quoting NUL, omit extra characters if next
41817         character is not digit.  Alter prototype.
41818         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41819         callers.
41820         * modules/quotearg-tests: New module.
41821         * tests/test-quotearg.c: New test.
41822
41823 2008-02-07  Eric Blake  <ebb9@byu.net>
41824
41825         Quotearg part 3: add flag to control outer quote elision.
41826         * lib/quotearg.h (c_maybe_quoting_style): New style.
41827         (enum quoting_flags): Better documentation of flags.
41828         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41829         c-maybe style.
41830         (quotearg_buffer_restyled): Handle new flag to elide outer
41831         quotes.
41832
41833         Quotearg part 2: add flag that can control NUL elision.
41834         * lib/quotearg.h (set_quoting_flags): New prototype.
41835         * lib/quotearg.c (struct quoting_options): Add flag field.
41836         (set_quoting_flags): New function.
41837         (quotearg_buffer_restyled): Add flags parameter.
41838         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41839         (quotearg_n_options): Set the flag, since length cannot be
41840         returned.
41841         (quoting_options_from_style): Default flags correctly.
41842
41843         Quotearg part 1: more wrappers, restore quotearg_char state.
41844         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41845         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41846         (quotearg_colon_mem): New wrappers.
41847         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41848         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41849         functions.
41850         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41851         (quotearg_colon_mem): New functions.
41852
41853 2008-02-11  Bruno Haible  <bruno@clisp.org>
41854
41855         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41856         library in the current directory: it does not work with parallel make.
41857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41858
41859 2008-02-11  Bruno Haible  <bruno@clisp.org>
41860
41861         * .gitattributes: New file.
41862
41863 2008-02-11  Jim Meyering  <meyering@redhat.com>
41864
41865         useless-if-before-free: Fix reversed exit values.
41866         * build-aux/useless-if-before-free: Use correct values
41867         for EXIT_MATCH and EXIT_NO_MATCH.
41868
41869         * build-aux/useless-if-before-free: Close stdout carefully.
41870
41871 2008-02-10  Bruno Haible  <bruno@clisp.org>
41872
41873         New module 'git-merge-changelog'.
41874         * modules/git-merge-changelog: New file.
41875         * lib/git-merge-changelog.c: New file.
41876
41877 2008-02-10  Jim Meyering  <meyering@redhat.com>
41878
41879         useless-if-before-free: New option: --list (-l).
41880
41881         useless-if-before-free: Don't exit immediately upon open failure.
41882         * build-aux/useless-if-before-free: Exit 2 for errors.
41883         Upon failure to open a file, don't exit immediately.
41884         Rather, just warn and continue with any remaining files.
41885
41886 2008-02-10  Bruno Haible  <bruno@clisp.org>
41887
41888         New abstract list operation 'node_set_value'.
41889         * lib/gl_list.h (gl_list_node_set_value): New function.
41890         (struct gl_list_implementation): New field node_set_value.
41891         * lib/gl_list.c (gl_list_node_set_value): New function.
41892         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41893         (gl_array_list_implementation): Update.
41894         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41895         (gl_carray_list_implementation): Update.
41896         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41897         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41898         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41899         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41900         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41901         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41902         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41903         Update.
41904         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41905         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41906         (gl_sublist_list_implementation): Update.
41907
41908 2008-02-10  Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41911         Needed when ELEMENT is #defined to 'some_type *'.
41912
41913 2008-02-10  Jim Meyering  <meyering@redhat.com>
41914
41915         New script and module: useless-if-before-free
41916         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41917         * build-aux/useless-if-before-free: New file.
41918         * modules/useless-if-before-free: New file.
41919
41920         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41921
41922         xstrtol_error: Fix typo.
41923         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41924         s/exit_failure/exit_status/.
41925
41926 2008-02-09  Jim Meyering  <meyering@redhat.com>
41927
41928         New script and module: gitlog-to-changelog
41929         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41930         * modules/gitlog-to-changelog: New file.
41931         * build-aux/gitlog-to-changelog: New file.
41932
41933 2008-02-08  Jim Meyering  <meyering@redhat.com>
41934
41935         Avoid two "parameter unused" warnings.
41936         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41937         Mark "st" as used.
41938
41939         Use "git COMMAND", not "git-COMMAND".
41940         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41941         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41942         * build-aux/git-version-gen: Use "git status", not "git-status".
41943
41944 2008-02-07  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41947         Avoids a crash on Windows Vista.
41948         Reported by Adam Strzelecki <ono@java.pl> via
41949         Simon Josefsson <simon@josefsson.org>.
41950
41951 2008-02-06  Bruno Haible  <bruno@clisp.org>
41952
41953         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41954         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41955         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41957         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41959         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41960         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41968         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41969         left-adjust flag.
41970         * tests/test-snprintf-posix.h (test_function): Likewise.
41971         * tests/test-sprintf-posix.h (test_function): Likewise.
41972         * tests/test-vasprintf-posix.c (test_function): Likewise.
41973         * doc/posix-functions/fprintf.texi: Update.
41974         * doc/posix-functions/printf.texi: Update.
41975         * doc/posix-functions/snprintf.texi: Update.
41976         * doc/posix-functions/sprintf.texi: Update.
41977         * doc/posix-functions/vfprintf.texi: Update.
41978         * doc/posix-functions/vprintf.texi: Update.
41979         * doc/posix-functions/vsnprintf.texi: Update.
41980         * doc/posix-functions/vsprintf.texi: Update.
41981         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41982
41983 2008-02-06  Bruno Haible  <bruno@clisp.org>
41984
41985         Fix bug introduced on 2008-01-26.
41986         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41987
41988 2008-02-06  Bruno Haible  <bruno@clisp.org>
41989
41990         Fix bug introduced on 2007-06-10.
41991         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41992         !NEED_PRINTF_FLAG_ZERO.
41993
41994 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41995
41996         getloadavg: use libperfstat on AIX5
41997         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41998
41999 2008-02-03  Bruno Haible  <bruno@clisp.org>
42000
42001         * lib/diffseq.h: Add comments about required #includes.
42002         Reported by Michael Biggs <gnulib@doubleplum.net>.
42003
42004 2008-02-01  Bruno Haible  <bruno@clisp.org>
42005
42006         * users.txt: Add gnuit.
42007
42008 2008-01-31  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/md4.c (set_uint32): Mark as inline.
42011         * lib/md5.c (set_uint32): Likewise.
42012         * lib/sha1.c (set_uint32): Likewise.
42013         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42014         * m4/md5.m4 (gl_MD5): Likewise.
42015         * m4/sha1.m4 (gl_SHA1): Likewise.
42016
42017 2008-01-31  Jim Meyering  <meyering@redhat.com>
42018
42019         Use "sizeof VAR", rather than a literal "4".
42020         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42021         * lib/md4.c (md4_read_ctx): Likewise.
42022         * lib/sha1.c (sha1_read_ctx): Likewise.
42023
42024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42025
42026         * tests/test-sha1.c: New file, based on test-md5.c.
42027
42028         * modules/crypto/sha1-tests: New file.
42029
42030 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42031
42032         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42033
42034 2008-01-31  Jim Meyering  <meyering@redhat.com>
42035
42036         Prefer "sizeof v" over the equivalent "4".
42037         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42038         * lib/md5.c (set_uint32): Likewise.
42039         * lib/sha1.c (set_uint32): Likewise.
42040
42041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42042
42043         * lib/sha1.c (set_uint32): Mark function as static.
42044
42045 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42046
42047         md2: clarify comments to say that alignment is not required.
42048         * lib/md2.h: Remove warning about alignment in comment.
42049         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42050         never been required.
42051
42052 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42053
42054         md4: adapt alignment constraint fix from sha1.
42055         * lib/md4.c (set_uint32): New function, from sha1.c
42056         (md4_read_ctx): Use it.
42057         (md4_finish_ctx): Doc fix.
42058         * lib/md4.h: Doc fix.
42059
42060 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42061
42062         md5: adapt alignment constraint fix from sha1.
42063         * lib/md5.c (set_uint32): New function, from sha1.c
42064         (md5_read_ctx): Use it.
42065         (md5_finish_ctx): Doc fix.
42066         * lib/md5.h: Doc fix.
42067
42068 2008-01-30  Peter Palfrader  <weasel@debian.org>
42069
42070         sha1: remove the result buffer alignment constraint
42071         * lib/sha1.c (set_uint32): New function.
42072         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42073         constraint.
42074         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42075         * lib/sha1.h: Likewise.
42076
42077 2008-01-30  Andreas Schwab  <schwab@suse.de>
42078             Bruno Haible  <bruno@clisp.org>
42079
42080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42081         correct definition of LDBL_MIN_EXP.
42082
42083 2008-01-30  Karl Berry  <karl@gnu.org>
42084
42085         * config/srclist-update: try to preserve x bit on updates.
42086         * config/srclistvars.sh: update for karl.
42087
42088 2008-01-29  Jim Meyering  <meyering@redhat.com>
42089
42090         vasnprintf.c: Avoid warning about unused label
42091         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42092         "overflow" label definition and associated code with the
42093         same cpp condition that guards the sole use of that label.
42094
42095 2008-01-26  Bruno Haible  <bruno@clisp.org>
42096
42097         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42098         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42099         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42100         * lib/isnanl-nolibm.h (isnanl): Likewise.
42101         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42102
42103 2008-01-26  Bruno Haible  <bruno@clisp.org>
42104
42105         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42106         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42107
42108 2008-01-26  Bruno Haible  <bruno@clisp.org>
42109
42110         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42111         GCC >= 4.0 built-in.
42112         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42113
42114 2008-01-26  Bruno Haible  <bruno@clisp.org>
42115
42116         Rename isnan, applicable to 'double' only, to isnand.
42117         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42118         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42119         (configure.ac): Update.
42120         (Include): Replace "isnan.h" with "isnand.h".
42121         * m4/isnand.m4: Renamed from m4/isnan.m4.
42122         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42123         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42124         instead of isnan.c.
42125         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42126         instead of HAVE_ISNAN_IN_LIBC.
42127         (isnand): Renamed from isnan.
42128         * lib/isnand.c: New file.
42129         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42130         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42131         (Makefile.am): Update.
42132         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42133         Include isnand.h instead of isnan.h.
42134         (main): Test isnand instead of isnan.
42135         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42136         isnan-nolibm.
42137         * modules/frexp (Depends-on): Likewise.
42138         * modules/frexp-tests (Depends-on): Likewise.
42139         * modules/frexp-nolibm (Depends-on): Likewise.
42140         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42141         * modules/isfinite (Depends-on): Likewise.
42142         * modules/round-tests (Depends-on): Likewise.
42143         * modules/signbit (Depends-on): Likewise.
42144         * modules/signbit-tests (Depends-on): Likewise.
42145         * modules/snprintf-posix (Depends-on): Likewise.
42146         * modules/sprintf-posix (Depends-on): Likewise.
42147         * modules/trunc-tests (Depends-on): Likewise.
42148         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42151         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42152         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42153         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42154         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42155         * modules/vasnprintf-posix (Depends-on): Likewise.
42156         * modules/vasprintf-posix (Depends-on): Likewise.
42157         * modules/vfprintf-posix (Depends-on): Likewise.
42158         * modules/vsnprintf-posix (Depends-on): Likewise.
42159         * modules/vsprintf-posix (Depends-on): Likewise.
42160         * lib/frexp.c: Include isnand.h instead of isnan.h.
42161         (ISNAN): Set to isnand instead of isnan.
42162         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42163         (gl_isfinited): Use isnand instead of isnan.
42164         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42165         (gl_signbitd): Use isnand instead of isnan.
42166         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42167         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42168         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42169         (main): Use isnand instead of isnan.
42170         * tests/test-round1.c: Include isnand.h.
42171         (main): Use isnand instead of isnan.
42172         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42173         (ISNAN): Set to isnand instead of isnan.
42174         * tests/test-trunc1.c: Include isnand.h.
42175         (main): Use isnand instead of isnan.
42176         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42177         (equal): Use isnand instead of isnan.
42178         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42179         isnand-nolibm.
42180         * NEWS: Mention the change.
42181
42182 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42183             Bruno Haible  <bruno@clisp.org>
42184
42185         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42186         the GCC builtins for signbits are present and set
42187         REPLACE_SIGNBIT_USING_GCC if so.
42188         * lib/math.in.h (signbit): Define using GCC builtins if
42189         REPLACE_SIGNBIT_USING_GCC is set.
42190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42191         REPLACE_SIGNBIT_USING_GCC.
42192         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42193
42194 2008-01-25  Jim Meyering  <meyering@redhat.com>
42195
42196         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42197         * lib/poll.c: Include <config.h>, not "config.h".
42198         * tests/test-getaddrinfo.c: Likewise.
42199
42200 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42201
42202         * modules/sockets-tests: New file.
42203
42204 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42205
42206         * modules/sockets: New module, can be used to call WSA_Startup and
42207         WSA_Cleanup when needed.
42208
42209         * lib/sockets.h, lib/sockets.c: New files.
42210
42211         * m4/sockets.m4: New file.
42212
42213         * tests/test-sockets.c: New file.
42214
42215 2008-01-19  Bruno Haible  <bruno@clisp.org>
42216
42217         * doc/posix-headers: Renamed from doc/headers.
42218         * doc/posix-functions: Renamed from doc/functions.
42219         * doc/gnulib.texi: Update.
42220
42221 2008-01-19  Bruno Haible  <bruno@clisp.org>
42222
42223         * doc/glibc-functions/strcasestr.texi: Include contents of
42224         doc/functions/strcasestr.texi, fixing the list of platforms.
42225         * doc/functions/strcasestr.texi: Remove file.
42226
42227 2008-01-19  Bruno Haible  <bruno@clisp.org>
42228
42229         * doc/glibc-functions/memmem.texi: Include contents of
42230         doc/functions/memmem.texi.
42231         * doc/functions/memmem.texi: Remove file.
42232
42233 2008-01-18  Bruno Haible  <bruno@clisp.org>
42234
42235         * doc/glibc-functions/*.texi: New files.
42236         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42237         to use the new files.
42238
42239 2008-01-17  Bruno Haible  <bruno@clisp.org>
42240
42241         * tests/test-gethostname.c (main): Fix printf statement.
42242
42243 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42244
42245         * modules/gethostname-tests: New file.
42246
42247         * tests/test-gethostname.c: New file.
42248
42249 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42250
42251         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42252         used by the UNAME case.  Reported by Bruno Haible
42253         <bruno@clisp.org>.
42254
42255 2008-01-17  Eric Blake  <ebb9@byu.net>
42256
42257         Convert c-strcasestr to be more efficient.
42258         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42259         (Depends-on): Add c-strcase, remove malloca, strnlen.
42260         * tests/test-c-strcasestr.c (main): Enhance test.
42261         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42262
42263 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42264
42265         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42266         Use it in creating po/Makevars.
42267
42268 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42269
42270         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42271         Applications that requires it should initialize libgcrypt
42272         manually.
42273
42274 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42275
42276         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42277
42278 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42279
42280         Fix problem with getdate on mingw32 reported by Simon Josefsson
42281         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42282         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42283         tzname", when deciding whether to declare tzname.
42284         * lib/strftime.c (tzname): Likewise.
42285
42286 2008-01-15  Bruno Haible  <bruno@clisp.org>
42287
42288         Work around a MacOS X 10.5 bug in frexpl().
42289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42290         * doc/functions/frexpl.texi: Document the bug.
42291         Reported by Elias Pipping <pipping@gentoo.org>.
42292
42293 2008-01-14  Eric Blake  <ebb9@byu.net>
42294
42295         Touch up previous patch.
42296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42297         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42298
42299         Convert strcasestr module to use Two-Way algorithm.
42300         * modules/strcasestr-simple: New module, based on the old
42301         strcasestr, but with Two-Way rather than KMP.
42302         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42303         * lib/string.in.h (rpl_strcasestr): Declare.
42304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42305         performance.
42306         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42307         * modules/string (Makefile.am): Support strcasestr.
42308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42309         * modules/strcasestr-tests (Depends-on): Check for alarm.
42310         * tests/test-strcasestr.c: Augment test.
42311         * lib/str-two-way.h: Clean up stray macro.
42312         * NEWS: Document new module.
42313         * MODULES.html.sh (string handling): Likewise.
42314         * doc/functions/strcasestr.texi: New file.
42315         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42316         here, since it is not a POSIX function.
42317
42318 2008-01-14  Colin Watson  <cjwatson@debian.org>
42319             Bruno Haible  <bruno@clisp.org>
42320
42321         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42322         works fine; if not, set REPLACE_STRSIGNAL.
42323         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42325         REPLACE_STRSIGNAL.
42326         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42327         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42328         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42329
42330 2008-01-14  Bruno Haible  <bruno@clisp.org>
42331
42332         * modules/strsignal (Include): Change to <string.h>.
42333
42334 2008-01-14  Colin Watson  <cjwatson@debian.org>
42335
42336         * modules/argp (Notice): Add a notice recommending to change
42337         XGETTEXT_OPTIONS.
42338         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42339
42340 2008-01-13  Colin Watson  <cjwatson@debian.org>
42341
42342         * modules/strsignal-tests: New file.
42343         * tests/test-strsignal.c: New file.
42344
42345         * lib/strsignal.c: New file, from glibc with modifications.
42346         * lib/siglist.h: New file, from glibc with modifications.
42347         * lib/string.in.h (strsignal): New declaration.
42348         * m4/strsignal.m4: New file.
42349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42350         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42351         * modules/strsignal: New file.
42352         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42353         HAVE_DECL_STRSIGNAL.
42354
42355 2008-01-13  Bruno Haible  <bruno@clisp.org>
42356
42357         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42358         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42359         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42361
42362 2008-01-13  Bruno Haible  <bruno@clisp.org>
42363
42364         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42365         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42366         * lib/argp.h (__attribute__): Likewise.
42367         * lib/c-stack.c (__attribute__): Likewise.
42368         * lib/error.h (__attribute__): Likewise.
42369         * lib/fts.c (__attribute__): Likewise.
42370         * lib/openat.h (__attribute__): Likewise.
42371         * lib/stdio.in.h (__attribute__): Likewise.
42372         * lib/string.in.h (__attribute__): Likewise.
42373         * lib/utimens.c (__attribute__): Likewise.
42374         * lib/vasnprintf.h (__attribute__): Likewise.
42375         * lib/xalloc.h (__attribute__): Likewise.
42376         * lib/xprintf.h (__attribute__): Likewise.
42377         * lib/xstrtol.h (__attribute__): Likewise.
42378         * lib/xvasprintf.h (__attribute__): Likewise.
42379
42380 2008-01-12  Bruno Haible  <bruno@clisp.org>
42381
42382         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42383         * doc/glibc-headers/a.out.texi: New file.
42384         * doc/glibc-headers/aliases.texi: New file.
42385         * doc/glibc-headers/alloca.texi: New file.
42386         * doc/glibc-headers/ar.texi: New file.
42387         * doc/glibc-headers/argp.texi: New file.
42388         * doc/glibc-headers/argz.texi: New file.
42389         * doc/glibc-headers/byteswap.texi: New file.
42390         * doc/glibc-headers/crypt.texi: New file.
42391         * doc/glibc-headers/endian.texi: New file.
42392         * doc/glibc-headers/envz.texi: New file.
42393         * doc/glibc-headers/err.texi: New file.
42394         * doc/glibc-headers/error.texi: New file.
42395         * doc/glibc-headers/execinfo.texi: New file.
42396         * doc/glibc-headers/fpu_control.texi: New file.
42397         * doc/glibc-headers/fstab.texi: New file.
42398         * doc/glibc-headers/fts.texi: New file.
42399         * doc/glibc-headers/getopt.texi: New file.
42400         * doc/glibc-headers/ieee754.texi: New file.
42401         * doc/glibc-headers/ifaddrs.texi: New file.
42402         * doc/glibc-headers/libintl.texi: New file.
42403         * doc/glibc-headers/mcheck.texi: New file.
42404         * doc/glibc-headers/mntent.texi: New file.
42405         * doc/glibc-headers/obstack.texi: New file.
42406         * doc/glibc-headers/paths.texi: New file.
42407         * doc/glibc-headers/printf.texi: New file.
42408         * doc/glibc-headers/pty.texi: New file.
42409         * doc/glibc-headers/resolv.texi: New file.
42410         * doc/glibc-headers/shadow.texi: New file.
42411         * doc/glibc-headers/sysexits.texi: New file.
42412         * doc/glibc-headers/ttyent.texi: New file.
42413
42414 2008-01-12  Jim Meyering  <meyering@redhat.com>
42415
42416         announce-gen: emit Gnulib's git-based version string.
42417         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42418         New option --gnulib-version=V, where V is expected to be
42419         the output of running git describe in the gnulib directory.
42420         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42421         not useful, and plan to stop publishing an xdelta file with each
42422         coreutils release.
42423
42424         * build-aux/announce-gen: Also check for lzma-compressed files.
42425
42426 2008-01-11  Bruno Haible  <bruno@clisp.org>
42427
42428         * tests/test-memmem.c (main): Increase maximum allowed time.
42429         * tests/test-strstr.c (main): Likewise.
42430
42431 2008-01-11  Bruno Haible  <bruno@clisp.org>
42432
42433         * doc/functions/memmem.texi: Add more precisions about platforms.
42434         * doc/functions/strstr.texi: Likewise.
42435
42436 2008-01-10  Eric Blake  <ebb9@byu.net>
42437
42438         * m4/strstr.m4: Delete cruft from copy-n-paste.
42439         Reported by Bruno Haible.
42440
42441 2008-01-10  Bruno Haible  <bruno@clisp.org>
42442
42443         Make c-strstr rely on strstr.
42444         * lib/c-strstr.c: Don't include str-kmp.h.
42445         (c_strstr): Define in terms of strstr.
42446         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42447         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42448
42449 2008-01-10  Bruno Haible  <bruno@clisp.org>
42450
42451         * doc/gnulib.texi (String Functions in C Locale): New section.
42452         * doc/c-ctype.texi: New file.
42453         * doc/c-strcase.texi: New file.
42454         * doc/c-strcaseeq.texi: New file.
42455         * doc/c-strcasestr.texi: New file.
42456         * doc/c-strstr.texi: New file.
42457         * doc/c-strtod.texi: New file.
42458         * doc/c-strtold.texi: New file.
42459
42460 2008-01-10  Eric Blake  <ebb9@byu.net>
42461
42462         * lib/relocatable.h: Fix a comment.
42463
42464 2008-01-10  Eric Blake  <ebb9@byu.net>
42465
42466         Share two-way algorithm.
42467         * lib/str-two-way.h: New file, merged from...
42468         * lib/memmem.c: ...here...
42469         * lib/strstr.c: ...and here.
42470         * modules/memmem (Files): Use it.
42471         * modules/strstr (Files): Likewise.
42472
42473         Avoid quadratic strstr implementations.
42474         * lib/strstr.c: New file.
42475         * m4/strstr.m4: Likewise.
42476         * modules/strstr: Likewise.
42477         * modules/strstr-tests: Likewise.
42478         * tests/test-strstr.c: Likewise.
42479         * lib/string.in.h (rpl_strstr): Declare.
42480         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42482         * modules/string (Makefile.am): Likewise.
42483         * MODULES.html.sh (string handling): Mention new module.
42484         * doc/functions/strstr.texi (strstr): Document the bug.
42485
42486 2008-01-10  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/relocatable.h (relocate): State whether result is freshly
42489         allocated or not.
42490         * lib/relocatable.c (relocate): Return a freshly allocated string
42491         instead of a pointer to a privately held string.
42492         Reported by Sylvain Beucler <beuc@gnu.org>.
42493
42494 2008-01-10  Colin Watson  <cjwatson@debian.org>
42495
42496         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42497         s/S_ISNLK/S_ISLNK/.
42498
42499 2008-01-09  Bruno Haible  <bruno@clisp.org>
42500
42501         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42502         and other files.
42503         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42504         if it's only a guess.
42505         * modules/memmem: Simplify by depending on memmem-simple.
42506
42507 2008-01-09  Bruno Haible  <bruno@clisp.org>
42508
42509         Work around OpenBSD 4.0 tdelete() bug.
42510         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42511         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42512         macros and don't redefine the enum values.
42513         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42514         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42515         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42516
42517 2008-01-09  Bruno Haible  <bruno@clisp.org>
42518
42519         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42520         (main): Don't perform the tests if setlocale did not install a UTF-8
42521         locale. Needed on OpenBSD 4.0.
42522         * modules/wcwidth-tests (Depends-on): Add localcharset.
42523
42524 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42525
42526         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42527         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42528         * NEWS: announce this.
42529         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42530
42531 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42532         and Eric Blake  <ebb9@byu.net>
42533
42534         Add memmem-simple module.
42535         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42536         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42537         * modules/memmem-simple: New file.
42538         * modules/memmem (Description): Tweak.
42539         * MODULES.html.sh (string handling): Mention new module.
42540         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42541         addressed by memmem-simple.
42542         * NEWS: Document the difference.
42543
42544 2008-01-09  Eric Blake  <ebb9@byu.net>
42545
42546         Give gcc some memmem optimization hints.
42547         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42548         (strcasestr): Declare as pure.
42549         * modules/memmem (Maintainer): Claim my implementation.
42550
42551 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42552
42553         Support AIX 6.1 and higher.
42554         * build-aux/config.libpath: Likewise.
42555         * build-aux/config.rpath: Likewise.
42556
42557 2008-01-08  Jim Meyering  <meyering@redhat.com>
42558             Bruno Haible  <bruno@clisp.org>
42559
42560         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42561         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42562         Reported by Peter Fales in
42563         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42564
42565 2008-01-08  Bruno Haible  <bruno@clisp.org>
42566
42567         * modules/unictype/category-of (Depends-on): Add
42568         unictype/category-none.
42569         * modules/unictype/category-and-tests (Depends-on): Add
42570         unictype/category-{L,N,Lu,Nd}.
42571         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42572         * modules/unictype/category-or-tests (Depends-on): Add
42573         unictype/category-{L,N}.
42574         * modules/unictype/category-name-tests (Depends-on): Add
42575         unictype/category-{Z,Nl}.
42576         Reported by Simon Josefsson.
42577
42578 2008-01-08  Bruno Haible  <bruno@clisp.org>
42579
42580         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42581         convention better.
42582         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42583         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42584         Reported by Peter Miller <millerp@canb.auug.org.au>.
42585
42586 2008-01-08  Eric Blake  <ebb9@byu.net>
42587
42588         Rewrite memmem to guarantee linear complexity without malloc.
42589         * lib/memmem.c (memmem): Use Two-Way rather than
42590         Knuth-Morris-Pratt, to allow O(1) space usage.
42591         (critical_factorization, two_way_short_needle)
42592         (two_way_long_needle): New functions.
42593         (knuth_morris_pratt): Delete.
42594         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42595         Add stdint.
42596         * tests/test-memmem.c (main): Add tests for periodic needle and
42597         sublinear performance.
42598         * doc/functions/memmem.texi (memmem): Document other deficiencies
42599         in cygwin and older glibc.
42600
42601 2008-01-08  Bruno Haible  <bruno@clisp.org>
42602
42603         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42604         augmentation.
42605
42606 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42607
42608         Add a configure time option: --disable-acl.
42609         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42610         AC_ARG_ENABLE(acl).
42611
42612 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42613
42614         * tests/test-localename.c: Don't include obsolete "setenv.h".
42615
42616         * modules/localename-tests (Depends-on): Need unsetenv.
42617
42618 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42619
42620         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42621
42622 2008-01-06  Colin Watson  <cjwatson@debian.org>
42623
42624         * users.txt: Add man-db.
42625
42626 2008-01-07  Bruno Haible  <bruno@clisp.org>
42627
42628         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42629         previous section name.
42630
42631 2008-01-07  Bruno Haible  <bruno@clisp.org>
42632
42633         * lib/progname.c (set_program_name): Don't strip off a leading
42634         "lt-" prefix outside a .libs directory.
42635         Suggested by Paul Eggert.
42636
42637 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42638             Bruno Haible  <bruno@clisp.org>
42639
42640         Improve memory cleanup in 'relocatable' module.
42641         * lib/relocatable.h (compute_curr_prefix): Change return type to
42642         'char *'.
42643         * lib/relocatable.c (compute_curr_prefix): Change return type to
42644         'char *'. Free curr_installdir after use.
42645         (relocate): Free curr_prefix_better after use.
42646         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42647
42648 2008-01-01  Bruno Haible  <bruno@clisp.org>
42649
42650         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42651         failure on older glibc systems.
42652         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42653
42654 2008-01-05  Eric Blake  <ebb9@byu.net>
42655
42656         Avoid quadratic system memmem.
42657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42658         Reported by Ralf Wildenhues.
42659
42660         Fix memmem test for mingw.
42661         * modules/memmem-tests (configure.ac): Check for alarm.
42662         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42663         it.
42664         * doc/functions/memmem.texi: New file.
42665         * doc/gnulib.texi (Function Substitutes): Add memmem.
42666         Reported by Bruno Haible.
42667
42668 2008-01-04  Bruno Haible  <bruno@clisp.org>
42669
42670         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42671         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42672         gl_HEADER_STRING_H_DEFAULTS.
42673
42674 2008-01-04  Eric Blake  <ebb9@byu.net>
42675
42676         Shorten duration of memmem test.
42677         * tests/test-memmem.c (main): Use alarm to declare failure if test
42678         is taking too long.
42679         Reported by Ralf Wildenhues.
42680
42681 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42682
42683         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42684         string, needed by strerror.
42685
42686 2008-01-03  Colin Watson  <cjwatson@debian.org>
42687             Bruno Haible  <bruno@clisp.org>
42688
42689         * doc/gnulib-tool.texi (Localization): New section.
42690
42691 2008-01-02  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42694         variables to 'unsigned char *' type.
42695         Reported by Paul Eggert.
42696
42697 2008-01-02  Jim Meyering  <jim@meyering.net>
42698
42699         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42700
42701 2007-12-31  Jim Meyering  <jim@meyering.net>
42702
42703         Avoid use of private FTS type name.
42704         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42705
42706 2007-12-30  Karl Berry  <karl@gnu.org>
42707
42708         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42709         work around defect in Texinfo and/or the standalone Info browser.
42710
42711 2007-12-30  Bruno Haible  <bruno@clisp.org>
42712
42713         Unify 5 copies of the KMP code.
42714         * lib/str-kmp.h: New file.
42715         * lib/c-strcasestr.c: Include str-kmp.h.
42716         (knuth_morris_pratt): Remove function.
42717         (c_strcasestr): Update.
42718         * lib/c-strstr.c: Include str-kmp.h.
42719         (knuth_morris_pratt): Remove function.
42720         (c_strcasestr): Update.
42721         * lib/mbscasestr.c: Include str-kmp.h.
42722         (knuth_morris_pratt_unibyte): Remove function.
42723         * lib/mbsstr.c: Include str-kmp.h.
42724         (knuth_morris_pratt_unibyte): Remove function.
42725         * lib/strcasestr.c: Include str-kmp.h.
42726         (knuth_morris_pratt): Remove function.
42727         (strcasestr): Update.
42728         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42729         * modules/c-strstr (Files): Likewise.
42730         * modules/mbscasestr (Files): Likewise.
42731         * modules/mbsstr (Files): Likewise.
42732         * modules/strcasestr (Files): Likewise.
42733         Suggested by Paul Eggert.
42734
42735 2007-12-30  Bruno Haible  <bruno@clisp.org>
42736
42737         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42738         defined.
42739
42740 2007-12-30  Bruno Haible  <bruno@clisp.org>
42741
42742         * lib/xmalloca.h: Include xalloc.h.
42743         (xnmalloca): New macro.
42744
42745 2007-12-30  Bruno Haible  <bruno@clisp.org>
42746
42747         * lib/malloca.h (nmalloca): New macro.
42748         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42749         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42750         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42751         knuth_morris_pratt_multibyte): Likewise.
42752         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42753         knuth_morris_pratt_multibyte): Likewise.
42754         * lib/memmem.c (knuth_morris_pratt): Likewise.
42755         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42756
42757 2007-12-25  Bruno Haible  <bruno@clisp.org>
42758
42759         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42760         * lib/glob.c: Don't include openat.h.
42761         (link_exists2_p): Add back the code that deals with the
42762         !GLOB_ALTDIRFUNC case.
42763         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42764         let it do the filename concatenation.
42765         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42766         * modules/glob (Depends-on): Remove openat.
42767
42768 2007-12-31  Bruno Haible  <bruno@clisp.org>
42769
42770         * modules/dirfd (License): Change to LGPLv2+.
42771         Approved by Jim Meyering.
42772
42773 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42774
42775         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42776         when multiplying M by sizeof (size_t).
42777
42778 2007-12-10  Martin Lambers  <marlam@marlam.de>
42779
42780         Override getpagesize on mingw.
42781         * lib/getpagesize.c: New file.
42782         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42783         * modules/getpagesize (Files): Add lib/getpagesize.c.
42784         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42786         REPLACE_GETPAGESIZE.
42787         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42788
42789 2007-12-25  Bruno Haible  <bruno@clisp.org>
42790
42791         * modules/localcharset (Notice): New field.
42792         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42793         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42794
42795 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42796             Bruno Haible  <bruno@clisp.org>
42797
42798         Avoid using the syntax symbol() in formatted documentation.
42799         * MODULES.html.sh (func_module): When replacing symbol() with a
42800         hyperlink, remove the parentheses. Show an error if some remain.
42801         Recognize and render the '...' syntax.
42802         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42803         Rework. Add paragraph about GCC's inlining.
42804         * doc/alloca.texi: Likewise.
42805         * doc/error.texi: Remove parentheses from symbol reference.
42806         * doc/gnulib-intro.texi: Likewise.
42807         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42808         * modules/fnmatch (Description): Reword to say "the ... function".
42809         * modules/full-read (Description): Likewise.
42810         * modules/full-write (Description): Likewise.
42811         * modules/safe-read (Description): Likewise.
42812         * modules/safe-write (Description): Likewise.
42813         * modules/strchrnul (Description): Likewise.
42814         * modules/trim (Description): Likewise.
42815         * modules/error (Description): Remove parentheses from symbol
42816         references.
42817         * modules/verror (Description): Likewise.
42818         Reported by Karl Berry.
42819
42820 2007-12-25  Bruno Haible  <bruno@clisp.org>
42821
42822         Fixup after 2007-10-16 commit.
42823         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42824
42825 2007-12-24  Bruno Haible  <bruno@clisp.org>
42826
42827         Make --enable-relocatable work with DESTDIR.
42828         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42829         to compute installdir from destprog.
42830         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42831         also set the RELOC_DESTDIR variable.
42832         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42833
42834 2007-12-24  Bruno Haible  <bruno@clisp.org>
42835
42836         Fix link error due to xalloc_die().
42837         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42838         of xreadlink.
42839         * lib/relocwrapper.c: Update comments.
42840         * build-aux/install-reloc: Remove xreadlink.c from file list.
42841         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42842         xreadlink.c.
42843         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42844
42845 2007-12-24  Bruno Haible  <bruno@clisp.org>
42846
42847         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42848         * lib/setenv.h: Remove file.
42849         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42850         lib/setenv.h.
42851         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42852         (Depends-on): Add stdlib.
42853         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42854         gl_FUNC_UNSETENV.
42855         (Include): Replace setenv.h with <stdlib.h>.
42856         * modules/unsetenv: New file.
42857         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42858         * lib/unsetenv.c: Include <stdlib.h> first.
42859         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42860         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42861         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42862         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42863         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42864         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42866         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42867         * doc/functions/unsetenv.texi: Update.
42868         * modules/xsetenv (Depends-on): Add unsetenv.
42869         * modules/getdate (Depends-on): Likewise.
42870         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42871         * lib/xsetenv.c: Don't include setenv.h.
42872         * lib/getdate.y: Likewise.
42873         * lib/relocwrapper.c: Likewise.
42874         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42875         (Depends-on): Add stdlib.
42876         * NEWS: Mention the changes.
42877         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42878
42879 2007-12-23  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42882         indentation.
42883
42884 2007-12-23  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/c-strcasestr.c: Add more comments.
42887         * lib/c-strstr.c: Likewise.
42888         * lib/mbscasestr.c: Likewise.
42889         * lib/mbsstr.c: Likewise.
42890         * lib/strcasestr.c: Likewise.
42891         * lib/memmem.c: Likewise.
42892
42893 2007-12-23  Bruno Haible  <bruno@clisp.org>
42894
42895         * tests/test-memmem.c: Include <string.h> first.
42896
42897 2007-12-22  Bruno Haible  <bruno@clisp.org>
42898
42899         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42900         the contents of $testsbase.
42901         Reported by Ralf Wildenhues.
42902
42903 2007-12-22  Bruno Haible  <bruno@clisp.org>
42904
42905         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42906         two variables local_ldadd_before, local_ldadd_last.
42907
42908 2007-12-20  Eric Blake  <ebb9@byu.net>
42909
42910         Work around circular library issue when cross-compiling.
42911         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42912         that progname.o does not need to pull in rpl_memcmp.
42913
42914 2007-12-19  Eric Blake  <ebb9@byu.net>
42915
42916         Fix memmem to avoid O(n^2) worst-case complexity.
42917         * lib/memmem.c (knuth_morris_pratt): New function.
42918         (memmem): Use it if first few naive iterations fail.
42919         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42920         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42921         * modules/memchr (License): Likewise.
42922         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42923         malloca.
42924         * tests/test-memmem.c: Rewrite, borrowing ideas from
42925         test-mbsstr1.c; the old version wouldn't even compile!
42926         * modules/memmem-tests: New file.
42927         * lib/string.in.h (rpl_memmem): Add declaration.
42928         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42930         REPLACE_MEMMEM.
42931
42932 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42935         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42936         before any system include files, and undef after them all.  This
42937         should fix a problem on VMS reported by John E. Malmberg in
42938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42939
42940 2007-12-17  Eric Blake  <ebb9@byu.net>
42941
42942         Revert addition of verify, for BSD/OS.
42943         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42944         can't handle large files, for the sake of obsolete platforms.
42945         * modules/fseeko (Depends-on): Remove verify.
42946         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42947         * doc/functions/ftello.texi (ftello): Likewise.
42948         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42949         Reported by Larry Jones.
42950
42951 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42952
42953         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42954         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42955
42956 2007-12-17  Jim Meyering  <meyering@redhat.com>
42957
42958         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42959         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42960         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42961         * modules/getcwd (Depends-on): Add openat.
42962         Reported by Petr Salinger.
42963
42964 2007-12-17  Bruno Haible  <bruno@clisp.org>
42965
42966         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42967         avoid a segmentation fault of the configure test on x86_64 systems.
42968
42969 2007-12-15  Jim Meyering  <meyering@redhat.com>
42970
42971         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42972
42973 2007-12-13  Eric Blake  <ebb9@byu.net>
42974
42975         Another fseek test.
42976         * tests/test-fseek.c (main): Also test ungetc handling.
42977         * tests/test-fseeko.c (main): Likewise.
42978         * modules/fseeko (Depends-on): Add verify.
42979         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42980         large.
42981         Reported by Larry Jones.
42982
42983         Fix fseeko on mingw.
42984         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42985         seek.
42986
42987         Beef up fseek tests.
42988         * tests/test-fseek.c (main): Also test eof handling.
42989         * tests/test-fseeko.c (main): Likewise.
42990         Reported by Larry Jones.
42991
42992 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42993
42994         Fix fseeko on BSD-based platforms.
42995         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42996         successful seek.
42997
42998 2007-12-12  Eric Blake  <ebb9@byu.net>
42999
43000         Allow circular dependency of separate libtests.a
43001         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43002         when use_libtests.
43003
43004 2007-12-11  Eric Blake  <ebb9@byu.net>
43005
43006         Fix bug with -0.0L in previous patch.
43007         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43008         * tests/test-isnan.c (main): Also test on zeroes.
43009         * tests/test-isnanf.c (main): Likewise.
43010         * tests/test-isnanl.h (main): Likewise.
43011
43012         Detect pseudo-denormals on x86 even when cross-compiling.
43013         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43014         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43015         invalid bit patterns that happen to satisfy ==.
43016
43017         Avoid link failures with separate libtests.a.
43018         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43019         last, to satisfy circular dependencies.
43020
43021 2007-12-11  Eric Blake  <ebb9@byu.net>
43022         and Bruno Haible  <bruno@clisp.org>
43023
43024         Fix OpenBSD 4.0 <float.h> handling of long double.
43025         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43026         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43027         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43028
43029 2007-12-11  Jim Meyering  <meyering@redhat.com>
43030
43031         * users.txt: Add libvirt.
43032
43033         Support versions of autoconf prior to 2.59c.
43034         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43035         if it is not already defined.
43036
43037 2007-12-09  Bruno Haible  <bruno@clisp.org>
43038
43039         Let 'gnulib-tool --import' collect sources needed for the tests in
43040         tests/ rather than in lib/.
43041         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43042         argument. If true, add rules to generate libtests.a, and put libtests.a
43043         into $(LDADD). Consider source files in subdirectories and set
43044         uses_subdirs.
43045         (func_emit_initmacro_start, func_emit_initmacro_end,
43046         func_emit_initmacro_done): Pass all arguments explicitly.
43047         (func_import): Determine two module lists main_modules,
43048         testsrelated_modules. Determine use_libtests. Determine two variables
43049         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43050         instead of just sed_transform_lib_file. Determine two variables
43051         main_files and testsrelated_files. Compute 'files' as the union of
43052         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43053         func_add_or_update. In the generated gnulib-comp.m4, collect the
43054         object files for tests/ in different variables than those for lib/.
43055         Substitute LIBTESTS_LIBDEPS.
43056         (func_create_testdir): Combine the uses_subdirs results from
43057         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43058
43059 2007-12-09  Bruno Haible  <bruno@clisp.org>
43060
43061         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43062         the build-aux directory.
43063
43064 2007-12-09  Bruno Haible  <bruno@clisp.org>
43065
43066         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43067         introduced on 2006-09-09.
43068
43069 2007-12-07  Jim Meyering  <meyering@redhat.com>
43070
43071         Let these macros work also with autoconf-2.59.
43072         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43073         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43074         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43075
43076 2007-12-06  Jim Meyering  <meyering@redhat.com>
43077
43078         Avoid a configure-time syntax error in gl_FUNC_ACL.
43079         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43080         function in each branch, before testing the cache variable.
43081
43082 2007-12-04  Eric Blake  <ebb9@byu.net>
43083
43084         Make scripts executable.
43085         * build-aux/config.guess: Add execute permissions.
43086         * build-aux/config.sub: Likewise.
43087         * build-aux/gendocs.sh: Likewise.
43088
43089         Fix frexp on mingw.
43090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43091         cross-compiling.
43092         * doc/functions/frexp.texi (frexp): Document the bug.
43093
43094         Make cygwin fseeko check more reliable.
43095         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43096         version numbers, rather than unrelated feature check.
43097         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43098         * doc/functions/ftello.texi (ftello): Likewise.
43099         Reported by Bruno Haible.
43100
43101         * m4/strerror.m4: Bump version number.
43102
43103 2007-12-03  Bruno Haible  <bruno@clisp.org>
43104
43105         * doc/functions/mprotect.texi: Mention the mingw problem.
43106
43107 2007-12-03  Eric Blake  <ebb9@byu.net>
43108
43109         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43110         REPLACE_STRERROR is initialized before this macro.
43111
43112 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43113
43114         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43115         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43116         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43117         put -lsec in even for programs other than 'ls'.  This fixes a problem
43118         for gettext reported by Bruno Haible in
43119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43120         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43121         Add support for Solaris 10.  This isn't efficient, but should get the
43122         job done for now.
43123
43124 2007-12-03  James Youngman  <jay@gnu.org>
43125
43126         * doc/regexprops-generic.texi: change "an close-group" to "a
43127         close-group" and "illegal" to "not allowed".
43128
43129 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43130
43131         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43132         pr_byname.h. Needed for the rare case when the maintainer has done
43133         "make maintainer-clean" in the source directory and then attempts a
43134         build outside the source directory.
43135         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43136         scripts_byname.h.
43137
43138 2007-12-02  Martin Lambers <marlam@marlam.de>
43139             Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/getpagesize.h: Remove file.
43142         * lib/unistd.in.h: Include declaration of getpagesize here.
43143         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43144         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43145         HAVE_SYS_PARAM_H.
43146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43147         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43148         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43149         (Depends-on): Add unistd.
43150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43151         (Include): Use <unistd.h> instead of getpagesize.h.
43152         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43153         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43154         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43155         gl_GETPAGESIZE invocation, already handled by module dependency.
43156         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43157
43158 2007-12-02  Bruno Haible  <bruno@clisp.org>
43159
43160         * modules/strings-tests: New file.
43161         * tests/test-strings.c: New file.
43162
43163         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43164         * lib/strings.in.h: New file.
43165         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43166         * m4/strings_h.m4: New file.
43167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43168         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43169         * modules/strings: New file.
43170         * modules/string (Makefile.am): Update.
43171         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43172         Reported by Karl Berry.
43173
43174 2007-12-01  Eric Blake  <ebb9@byu.net>
43175
43176         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43177         accomodate fix in cygwin 1.5.25.
43178
43179 2007-12-01  Jim Meyering  <meyering@redhat.com>
43180
43181         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43182         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43183         that would inhibit utf8-optimization of a regexp containing line-
43184         or buffer-anchors, e.g., `^', `$'.
43185
43186 2007-11-30  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43189         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43190         glthread_recursive_lock_init.
43191         * lib/lock.c (glthread_recursive_lock_init)
43192         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43193         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43194
43195 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43196
43197         New function qset_acl, like set_acl but with syscall semantics.
43198         * lib/acl.h (qset_acl): New decl.
43199         * lib/acl.c (qset_acl): New function.
43200         (set_acl): Use new function.  Use more-consistent diagnostics.
43201
43202 2007-11-28  Jim Meyering  <meyering@redhat.com>
43203
43204         * modules/physmem (License): Change from GPL to LGPLv2+.
43205
43206 2007-11-26  Bruno Haible  <bruno@clisp.org>
43207
43208         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43209         'long double' type has excess precision.
43210         Reported by Jim Meyering in
43211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43212
43213 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43214
43215         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43216         Sync from <http://gnu.org/licenses>.
43217         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43218         with license text from same location.
43219         * doc/maintain.texi, doc/standards.texi:  Sync from
43220         <http://savannah.gnu.org/projects/gnustandards>.
43221
43222 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43223         and Jim Meyering  <meyering@redhat.com>
43224
43225         Adjust getdate' grammar to accept a slightly more regular language.
43226         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43227         Before, the former was rejected.
43228         * lib/getdate.y (digits_to_date_time): New function, factored
43229         out of ...
43230         (number): ...here.  Just call digits_to_date_time.
43231         (hybrid): New non-terminal to handle an <unsigned number,
43232         signed relative offset> sequence consistently.
43233
43234 2007-11-18  Jim Meyering  <meyering@redhat.com>
43235
43236         Pull my changes from coreutils:
43237         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43238         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43239         use of $gnulib_tool_option_extras, so that it's separated from the
43240         preceding argument.
43241
43242         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43243         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43244         parent destination directories before copying a file into place.
43245
43246 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43247
43248         bootstrap: work also with 4-argument variant of AC_INIT
43249         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43250
43251 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43252
43253         Port test-getaddrinfo to Solaris.
43254         Problem reported by Bruno Haible in
43255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43256         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43257         explanation of setting 'hints'.
43258         Don't reject an implementation merely because it returns EAI_SERVICE.
43259         (EAI_SERVICE): Define to 0 if not defined.
43260
43261 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43262
43263         The license of gnu-make and posix-shell is now "GPLed build tool".
43264         * modules/gnu-make (License): Likewise.
43265         * modules/posix-shell (License): Likewise.
43266
43267         New module posix-shell, for determining a POSIX shell
43268         or perhaps something that is close enough to a POSIX shell.
43269         * m4/posix-shell.m4: New file.
43270         * modules/posix-shell: New file.
43271
43272         * MODULES.html.sh: Mention new module.
43273
43274         New module gnu-make, for determining whether we're using GNU Make.
43275         * m4/gnu-make.m4: New file.
43276         * modules/gnu-make: New file.
43277         * MODULES.html.sh: Mention new module.
43278
43279 2007-11-14  Jim Meyering  <meyering@redhat.com>
43280
43281         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43282         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43283         use this macro to create a function _definition_.
43284         Remove useless "#undef ARGMATCH_DIE".
43285
43286 2007-11-14  Bruno Haible  <bruno@clisp.org>
43287
43288         * lib/config.charset: Update for OpenBSD 4.1.
43289         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43290
43291 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43292
43293         Document 64-bit #if problems in stdint.texi.
43294         * doc/headers/stdint.texi (stdint.h): Mention problems with
43295         64-bit-#if, and how to work around them.
43296
43297         Don't insist on 'long long int' support in the preprocessor.  It
43298         breaks too many things.  For example, PRIdMAX still uses a 'long
43299         long int' format with the latest Sun compiler, even though
43300         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43301         preprocessor problem.  This causes the latest coreutils to dump
43302         core on Solaris 10 sparc with the Sun C compiler.
43303         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43304         the troublesome expressions at configure-time, not at #if-time.
43305         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43306         preprocessor.
43307         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43308         compile-time C checks, done at 'configure'-time.
43309         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43310         * modules/inttypes (Makefile): Substitute the new symbols that
43311         gl_INTTYPES_H now generates.
43312         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43313
43314 2007-11-12  Bruno Haible  <bruno@clisp.org>
43315
43316         Tests for Unicode character classification functions.
43317
43318         * modules/unictype/bidicategory-byname-tests: New file.
43319         * modules/unictype/bidicategory-name-tests: New file.
43320         * modules/unictype/bidicategory-of-tests: New file.
43321         * modules/unictype/bidicategory-test-tests: New file.
43322         * modules/unictype/block-list-tests: New file.
43323         * modules/unictype/block-of-tests: New file.
43324         * modules/unictype/block-test-tests: New file.
43325         * modules/unictype/category-C-tests: New file.
43326         * modules/unictype/category-Cc-tests: New file.
43327         * modules/unictype/category-Cf-tests: New file.
43328         * modules/unictype/category-Cn-tests: New file.
43329         * modules/unictype/category-Co-tests: New file.
43330         * modules/unictype/category-Cs-tests: New file.
43331         * modules/unictype/category-L-tests: New file.
43332         * modules/unictype/category-Ll-tests: New file.
43333         * modules/unictype/category-Lm-tests: New file.
43334         * modules/unictype/category-Lo-tests: New file.
43335         * modules/unictype/category-Lt-tests: New file.
43336         * modules/unictype/category-Lu-tests: New file.
43337         * modules/unictype/category-M-tests: New file.
43338         * modules/unictype/category-Mc-tests: New file.
43339         * modules/unictype/category-Me-tests: New file.
43340         * modules/unictype/category-Mn-tests: New file.
43341         * modules/unictype/category-N-tests: New file.
43342         * modules/unictype/category-Nd-tests: New file.
43343         * modules/unictype/category-Nl-tests: New file.
43344         * modules/unictype/category-No-tests: New file.
43345         * modules/unictype/category-P-tests: New file.
43346         * modules/unictype/category-Pc-tests: New file.
43347         * modules/unictype/category-Pd-tests: New file.
43348         * modules/unictype/category-Pe-tests: New file.
43349         * modules/unictype/category-Pf-tests: New file.
43350         * modules/unictype/category-Pi-tests: New file.
43351         * modules/unictype/category-Po-tests: New file.
43352         * modules/unictype/category-Ps-tests: New file.
43353         * modules/unictype/category-S-tests: New file.
43354         * modules/unictype/category-Sc-tests: New file.
43355         * modules/unictype/category-Sk-tests: New file.
43356         * modules/unictype/category-Sm-tests: New file.
43357         * modules/unictype/category-So-tests: New file.
43358         * modules/unictype/category-Z-tests: New file.
43359         * modules/unictype/category-Zl-tests: New file.
43360         * modules/unictype/category-Zp-tests: New file.
43361         * modules/unictype/category-Zs-tests: New file.
43362         * modules/unictype/category-and-not-tests: New file.
43363         * modules/unictype/category-and-tests: New file.
43364         * modules/unictype/category-byname-tests: New file.
43365         * modules/unictype/category-name-tests: New file.
43366         * modules/unictype/category-none-tests: New file.
43367         * modules/unictype/category-of-tests: New file.
43368         * modules/unictype/category-or-tests: New file.
43369         * modules/unictype/category-test-withtable-tests: New file.
43370         * modules/unictype/combining-class-tests: New file.
43371         * modules/unictype/ctype-alnum-tests: New file.
43372         * modules/unictype/ctype-alpha-tests: New file.
43373         * modules/unictype/ctype-blank-tests: New file.
43374         * modules/unictype/ctype-cntrl-tests: New file.
43375         * modules/unictype/ctype-digit-tests: New file.
43376         * modules/unictype/ctype-graph-tests: New file.
43377         * modules/unictype/ctype-lower-tests: New file.
43378         * modules/unictype/ctype-print-tests: New file.
43379         * modules/unictype/ctype-punct-tests: New file.
43380         * modules/unictype/ctype-space-tests: New file.
43381         * modules/unictype/ctype-upper-tests: New file.
43382         * modules/unictype/ctype-xdigit-tests: New file.
43383         * modules/unictype/decimal-digit-tests: New file.
43384         * modules/unictype/digit-tests: New file.
43385         * modules/unictype/mirror-tests: New file.
43386         * modules/unictype/numeric-tests: New file.
43387         * modules/unictype/property-alphabetic-tests: New file.
43388         * modules/unictype/property-ascii-hex-digit-tests: New file.
43389         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43390         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43391         * modules/unictype/property-bidi-block-separator-tests: New file.
43392         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43393         * modules/unictype/property-bidi-common-separator-tests: New file.
43394         * modules/unictype/property-bidi-control-tests: New file.
43395         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43396         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43397         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43398         * modules/unictype/property-bidi-european-digit-tests: New file.
43399         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43400         * modules/unictype/property-bidi-left-to-right-tests: New file.
43401         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43402         * modules/unictype/property-bidi-other-neutral-tests: New file.
43403         * modules/unictype/property-bidi-pdf-tests: New file.
43404         * modules/unictype/property-bidi-segment-separator-tests: New file.
43405         * modules/unictype/property-bidi-whitespace-tests: New file.
43406         * modules/unictype/property-byname-tests: New file.
43407         * modules/unictype/property-combining-tests: New file.
43408         * modules/unictype/property-composite-tests: New file.
43409         * modules/unictype/property-currency-symbol-tests: New file.
43410         * modules/unictype/property-dash-tests: New file.
43411         * modules/unictype/property-decimal-digit-tests: New file.
43412         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43413         * modules/unictype/property-deprecated-tests: New file.
43414         * modules/unictype/property-diacritic-tests: New file.
43415         * modules/unictype/property-extender-tests: New file.
43416         * modules/unictype/property-format-control-tests: New file.
43417         * modules/unictype/property-grapheme-base-tests: New file.
43418         * modules/unictype/property-grapheme-extend-tests: New file.
43419         * modules/unictype/property-grapheme-link-tests: New file.
43420         * modules/unictype/property-hex-digit-tests: New file.
43421         * modules/unictype/property-hyphen-tests: New file.
43422         * modules/unictype/property-id-continue-tests: New file.
43423         * modules/unictype/property-id-start-tests: New file.
43424         * modules/unictype/property-ideographic-tests: New file.
43425         * modules/unictype/property-ids-binary-operator-tests: New file.
43426         * modules/unictype/property-ids-trinary-operator-tests: New file.
43427         * modules/unictype/property-ignorable-control-tests: New file.
43428         * modules/unictype/property-iso-control-tests: New file.
43429         * modules/unictype/property-join-control-tests: New file.
43430         * modules/unictype/property-left-of-pair-tests: New file.
43431         * modules/unictype/property-line-separator-tests: New file.
43432         * modules/unictype/property-logical-order-exception-tests: New file.
43433         * modules/unictype/property-lowercase-tests: New file.
43434         * modules/unictype/property-math-tests: New file.
43435         * modules/unictype/property-non-break-tests: New file.
43436         * modules/unictype/property-not-a-character-tests: New file.
43437         * modules/unictype/property-numeric-tests: New file.
43438         * modules/unictype/property-other-alphabetic-tests: New file.
43439         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43440         * modules/unictype/property-other-grapheme-extend-tests: New file.
43441         * modules/unictype/property-other-id-continue-tests: New file.
43442         * modules/unictype/property-other-id-start-tests: New file.
43443         * modules/unictype/property-other-lowercase-tests: New file.
43444         * modules/unictype/property-other-math-tests: New file.
43445         * modules/unictype/property-other-uppercase-tests: New file.
43446         * modules/unictype/property-paired-punctuation-tests: New file.
43447         * modules/unictype/property-paragraph-separator-tests: New file.
43448         * modules/unictype/property-pattern-syntax-tests: New file.
43449         * modules/unictype/property-pattern-white-space-tests: New file.
43450         * modules/unictype/property-private-use-tests: New file.
43451         * modules/unictype/property-punctuation-tests: New file.
43452         * modules/unictype/property-quotation-mark-tests: New file.
43453         * modules/unictype/property-radical-tests: New file.
43454         * modules/unictype/property-sentence-terminal-tests: New file.
43455         * modules/unictype/property-soft-dotted-tests: New file.
43456         * modules/unictype/property-space-tests: New file.
43457         * modules/unictype/property-terminal-punctuation-tests: New file.
43458         * modules/unictype/property-test-tests: New file.
43459         * modules/unictype/property-titlecase-tests: New file.
43460         * modules/unictype/property-unassigned-code-value-tests: New file.
43461         * modules/unictype/property-unified-ideograph-tests: New file.
43462         * modules/unictype/property-uppercase-tests: New file.
43463         * modules/unictype/property-variation-selector-tests: New file.
43464         * modules/unictype/property-white-space-tests: New file.
43465         * modules/unictype/property-xid-continue-tests: New file.
43466         * modules/unictype/property-xid-start-tests: New file.
43467         * modules/unictype/property-zero-width-tests: New file.
43468         * modules/unictype/scripts-tests: New file.
43469         * modules/unictype/syntax-c-ident-tests: New file.
43470         * modules/unictype/syntax-c-whitespace-tests: New file.
43471         * modules/unictype/syntax-java-ident-tests: New file.
43472         * modules/unictype/syntax-java-whitespace-tests: New file.
43473         * tests/unictype/test-bidi_byname.c: New file.
43474         * tests/unictype/test-bidi_name.c: New file.
43475         * tests/unictype/test-bidi_of.c: New file.
43476         * tests/unictype/test-bidi_test.c: New file.
43477         * tests/unictype/test-block_list.c: New file.
43478         * tests/unictype/test-block_of.c: New file.
43479         * tests/unictype/test-block_test.c: New file.
43480         * tests/unictype/test-categ_and.c: New file.
43481         * tests/unictype/test-categ_and_not.c: New file.
43482         * tests/unictype/test-categ_byname.c: New file.
43483         * tests/unictype/test-categ_name.c: New file.
43484         * tests/unictype/test-categ_none.c: New file.
43485         * tests/unictype/test-categ_of.c: New file.
43486         * tests/unictype/test-categ_or.c: New file.
43487         * tests/unictype/test-categ_test_withtable.c: New file.
43488         * tests/unictype/test-combining.c: New file.
43489         * tests/unictype/test-decdigit.c: New file.
43490         * tests/unictype/test-digit.c: New file.
43491         * tests/unictype/test-mirror.c: New file.
43492         * tests/unictype/test-numeric.c: New file.
43493         * tests/unictype/test-pr_byname.c: New file.
43494         * tests/unictype/test-pr_test.c: New file.
43495         * tests/unictype/test-predicate-part1.h: New file.
43496         * tests/unictype/test-predicate-part2.h: New file.
43497         * tests/unictype/test-scripts.c: New file.
43498         * tests/unictype/test-sy_c_ident.c: New file.
43499         * tests/unictype/test-sy_java_ident.c: New file.
43500
43501         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43502         for Unicode 5.0.0.
43503         * tests/unictype/test-categ_Cc.c: Likewise.
43504         * tests/unictype/test-categ_Cf.c: Likewise.
43505         * tests/unictype/test-categ_Cn.c: Likewise.
43506         * tests/unictype/test-categ_Co.c: Likewise.
43507         * tests/unictype/test-categ_Cs.c: Likewise.
43508         * tests/unictype/test-categ_L.c: Likewise.
43509         * tests/unictype/test-categ_Ll.c: Likewise.
43510         * tests/unictype/test-categ_Lm.c: Likewise.
43511         * tests/unictype/test-categ_Lo.c: Likewise.
43512         * tests/unictype/test-categ_Lt.c: Likewise.
43513         * tests/unictype/test-categ_Lu.c: Likewise.
43514         * tests/unictype/test-categ_M.c: Likewise.
43515         * tests/unictype/test-categ_Mc.c: Likewise.
43516         * tests/unictype/test-categ_Me.c: Likewise.
43517         * tests/unictype/test-categ_Mn.c: Likewise.
43518         * tests/unictype/test-categ_N.c: Likewise.
43519         * tests/unictype/test-categ_Nd.c: Likewise.
43520         * tests/unictype/test-categ_Nl.c: Likewise.
43521         * tests/unictype/test-categ_No.c: Likewise.
43522         * tests/unictype/test-categ_P.c: Likewise.
43523         * tests/unictype/test-categ_Pc.c: Likewise.
43524         * tests/unictype/test-categ_Pd.c: Likewise.
43525         * tests/unictype/test-categ_Pe.c: Likewise.
43526         * tests/unictype/test-categ_Pf.c: Likewise.
43527         * tests/unictype/test-categ_Pi.c: Likewise.
43528         * tests/unictype/test-categ_Po.c: Likewise.
43529         * tests/unictype/test-categ_Ps.c: Likewise.
43530         * tests/unictype/test-categ_S.c: Likewise.
43531         * tests/unictype/test-categ_Sc.c: Likewise.
43532         * tests/unictype/test-categ_Sk.c: Likewise.
43533         * tests/unictype/test-categ_Sm.c: Likewise.
43534         * tests/unictype/test-categ_So.c: Likewise.
43535         * tests/unictype/test-categ_Z.c: Likewise.
43536         * tests/unictype/test-categ_Zl.c: Likewise.
43537         * tests/unictype/test-categ_Zp.c: Likewise.
43538         * tests/unictype/test-categ_Zs.c: Likewise.
43539         * tests/unictype/test-ctype_alnum.c: Likewise.
43540         * tests/unictype/test-ctype_alpha.c: Likewise.
43541         * tests/unictype/test-ctype_blank.c: Likewise.
43542         * tests/unictype/test-ctype_cntrl.c: Likewise.
43543         * tests/unictype/test-ctype_digit.c: Likewise.
43544         * tests/unictype/test-ctype_graph.c: Likewise.
43545         * tests/unictype/test-ctype_lower.c: Likewise.
43546         * tests/unictype/test-ctype_print.c: Likewise.
43547         * tests/unictype/test-ctype_punct.c: Likewise.
43548         * tests/unictype/test-ctype_space.c: Likewise.
43549         * tests/unictype/test-ctype_upper.c: Likewise.
43550         * tests/unictype/test-ctype_xdigit.c: Likewise.
43551         * tests/unictype/test-decdigit.h: Likewise.
43552         * tests/unictype/test-digit.h: Likewise.
43553         * tests/unictype/test-numeric.h: Likewise.
43554         * tests/unictype/test-pr_alphabetic.c: Likewise.
43555         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43557         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43558         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43559         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43560         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43561         * tests/unictype/test-pr_bidi_control.c: Likewise.
43562         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43563         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43564         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43565         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43566         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43567         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43568         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43569         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43570         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43571         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43572         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43573         * tests/unictype/test-pr_combining.c: Likewise.
43574         * tests/unictype/test-pr_composite.c: Likewise.
43575         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43576         * tests/unictype/test-pr_dash.c: Likewise.
43577         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43578         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43579         * tests/unictype/test-pr_deprecated.c: Likewise.
43580         * tests/unictype/test-pr_diacritic.c: Likewise.
43581         * tests/unictype/test-pr_extender.c: Likewise.
43582         * tests/unictype/test-pr_format_control.c: Likewise.
43583         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43584         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43585         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43586         * tests/unictype/test-pr_hex_digit.c: Likewise.
43587         * tests/unictype/test-pr_hyphen.c: Likewise.
43588         * tests/unictype/test-pr_id_continue.c: Likewise.
43589         * tests/unictype/test-pr_id_start.c: Likewise.
43590         * tests/unictype/test-pr_ideographic.c: Likewise.
43591         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43592         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43593         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43594         * tests/unictype/test-pr_iso_control.c: Likewise.
43595         * tests/unictype/test-pr_join_control.c: Likewise.
43596         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43597         * tests/unictype/test-pr_line_separator.c: Likewise.
43598         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43599         * tests/unictype/test-pr_lowercase.c: Likewise.
43600         * tests/unictype/test-pr_math.c: Likewise.
43601         * tests/unictype/test-pr_non_break.c: Likewise.
43602         * tests/unictype/test-pr_not_a_character.c: Likewise.
43603         * tests/unictype/test-pr_numeric.c: Likewise.
43604         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43605         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43606         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43607         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43608         * tests/unictype/test-pr_other_id_start.c: Likewise.
43609         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43610         * tests/unictype/test-pr_other_math.c: Likewise.
43611         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43612         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43613         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43614         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43615         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43616         * tests/unictype/test-pr_private_use.c: Likewise.
43617         * tests/unictype/test-pr_punctuation.c: Likewise.
43618         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43619         * tests/unictype/test-pr_radical.c: Likewise.
43620         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43621         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43622         * tests/unictype/test-pr_space.c: Likewise.
43623         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43624         * tests/unictype/test-pr_titlecase.c: Likewise.
43625         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43626         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43627         * tests/unictype/test-pr_uppercase.c: Likewise.
43628         * tests/unictype/test-pr_variation_selector.c: Likewise.
43629         * tests/unictype/test-pr_white_space.c: Likewise.
43630         * tests/unictype/test-pr_xid_continue.c: Likewise.
43631         * tests/unictype/test-pr_xid_start.c: Likewise.
43632         * tests/unictype/test-pr_zero_width.c: Likewise.
43633         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43634         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43635
43636 2007-11-12  Bruno Haible  <bruno@clisp.org>
43637
43638         Unicode character classification functions.
43639         * lib/unictype.h: New file.
43640         * modules/unictype/base: New file.
43641         * modules/unictype/category-L: New file.
43642         * modules/unictype/category-Lu: New file.
43643         * modules/unictype/category-Ll: New file.
43644         * modules/unictype/category-Lt: New file.
43645         * modules/unictype/category-Lm: New file.
43646         * modules/unictype/category-Lo: New file.
43647         * modules/unictype/category-M: New file.
43648         * modules/unictype/category-Mn: New file.
43649         * modules/unictype/category-Mc: New file.
43650         * modules/unictype/category-Me: New file.
43651         * modules/unictype/category-N: New file.
43652         * modules/unictype/category-Nd: New file.
43653         * modules/unictype/category-Nl: New file.
43654         * modules/unictype/category-No: New file.
43655         * modules/unictype/category-P: New file.
43656         * modules/unictype/category-Pc: New file.
43657         * modules/unictype/category-Pd: New file.
43658         * modules/unictype/category-Ps: New file.
43659         * modules/unictype/category-Pe: New file.
43660         * modules/unictype/category-Pi: New file.
43661         * modules/unictype/category-Pf: New file.
43662         * modules/unictype/category-Po: New file.
43663         * modules/unictype/category-S: New file.
43664         * modules/unictype/category-Sm: New file.
43665         * modules/unictype/category-Sc: New file.
43666         * modules/unictype/category-Sk: New file.
43667         * modules/unictype/category-So: New file.
43668         * modules/unictype/category-Z: New file.
43669         * modules/unictype/category-Zs: New file.
43670         * modules/unictype/category-Zl: New file.
43671         * modules/unictype/category-Zp: New file.
43672         * modules/unictype/category-C: New file.
43673         * modules/unictype/category-Cc: New file.
43674         * modules/unictype/category-Cf: New file.
43675         * modules/unictype/category-Cs: New file.
43676         * modules/unictype/category-Co: New file.
43677         * modules/unictype/category-Cn: New file.
43678         * modules/unictype/category-or: New file.
43679         * modules/unictype/category-of: New file.
43680         * modules/unictype/category-test: New file.
43681         * modules/unictype/category-test-withtable: New file.
43682         * modules/unictype/category-byname: New file.
43683         * modules/unictype/category-none: New file.
43684         * modules/unictype/category-and: New file.
43685         * modules/unictype/category-and-not: New file.
43686         * modules/unictype/category-name: New file.
43687         * modules/unictype/combining-class: New file.
43688         * modules/unictype/category-all: New file.
43689         * modules/unictype/bidicategory-all: New file.
43690         * modules/unictype/bidicategory-byname: New file.
43691         * modules/unictype/bidicategory-name: New file.
43692         * modules/unictype/bidicategory-of: New file.
43693         * modules/unictype/bidicategory-test: New file.
43694         * modules/unictype/decimal-digit: New file.
43695         * modules/unictype/digit: New file.
43696         * modules/unictype/numeric: New file.
43697         * modules/unictype/mirror: New file.
43698         * modules/unictype/property-white-space: New file.
43699         * modules/unictype/property-alphabetic: New file.
43700         * modules/unictype/property-other-alphabetic: New file.
43701         * modules/unictype/property-not-a-character: New file.
43702         * modules/unictype/property-default-ignorable-code-point: New file.
43703         * modules/unictype/property-other-default-ignorable-code-point: New
43704         file.
43705         * modules/unictype/property-deprecated: New file.
43706         * modules/unictype/property-logical-order-exception: New file.
43707         * modules/unictype/property-variation-selector: New file.
43708         * modules/unictype/property-private-use: New file.
43709         * modules/unictype/property-unassigned-code-value: New file.
43710         * modules/unictype/property-uppercase: New file.
43711         * modules/unictype/property-other-uppercase: New file.
43712         * modules/unictype/property-lowercase: New file.
43713         * modules/unictype/property-other-lowercase: New file.
43714         * modules/unictype/property-titlecase: New file.
43715         * modules/unictype/property-soft-dotted: New file.
43716         * modules/unictype/property-id-start: New file.
43717         * modules/unictype/property-other-id-start: New file.
43718         * modules/unictype/property-id-continue: New file.
43719         * modules/unictype/property-other-id-continue: New file.
43720         * modules/unictype/property-xid-start: New file.
43721         * modules/unictype/property-xid-continue: New file.
43722         * modules/unictype/property-pattern-white-space: New file.
43723         * modules/unictype/property-pattern-syntax: New file.
43724         * modules/unictype/property-join-control: New file.
43725         * modules/unictype/property-grapheme-base: New file.
43726         * modules/unictype/property-grapheme-extend: New file.
43727         * modules/unictype/property-other-grapheme-extend: New file.
43728         * modules/unictype/property-grapheme-link: New file.
43729         * modules/unictype/property-bidi-control: New file.
43730         * modules/unictype/property-bidi-left-to-right: New file.
43731         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43732         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43733         * modules/unictype/property-bidi-european-digit: New file.
43734         * modules/unictype/property-bidi-eur-num-separator: New file.
43735         * modules/unictype/property-bidi-eur-num-terminator: New file.
43736         * modules/unictype/property-bidi-arabic-digit: New file.
43737         * modules/unictype/property-bidi-common-separator: New file.
43738         * modules/unictype/property-bidi-block-separator: New file.
43739         * modules/unictype/property-bidi-segment-separator: New file.
43740         * modules/unictype/property-bidi-whitespace: New file.
43741         * modules/unictype/property-bidi-non-spacing-mark: New file.
43742         * modules/unictype/property-bidi-boundary-neutral: New file.
43743         * modules/unictype/property-bidi-pdf: New file.
43744         * modules/unictype/property-bidi-embedding-or-override: New file.
43745         * modules/unictype/property-bidi-other-neutral: New file.
43746         * modules/unictype/property-hex-digit: New file.
43747         * modules/unictype/property-ascii-hex-digit: New file.
43748         * modules/unictype/property-ideographic: New file.
43749         * modules/unictype/property-unified-ideograph: New file.
43750         * modules/unictype/property-radical: New file.
43751         * modules/unictype/property-ids-binary-operator: New file.
43752         * modules/unictype/property-ids-trinary-operator: New file.
43753         * modules/unictype/property-zero-width: New file.
43754         * modules/unictype/property-space: New file.
43755         * modules/unictype/property-non-break: New file.
43756         * modules/unictype/property-iso-control: New file.
43757         * modules/unictype/property-format-control: New file.
43758         * modules/unictype/property-dash: New file.
43759         * modules/unictype/property-hyphen: New file.
43760         * modules/unictype/property-punctuation: New file.
43761         * modules/unictype/property-line-separator: New file.
43762         * modules/unictype/property-paragraph-separator: New file.
43763         * modules/unictype/property-quotation-mark: New file.
43764         * modules/unictype/property-sentence-terminal: New file.
43765         * modules/unictype/property-terminal-punctuation: New file.
43766         * modules/unictype/property-currency-symbol: New file.
43767         * modules/unictype/property-math: New file.
43768         * modules/unictype/property-other-math: New file.
43769         * modules/unictype/property-paired-punctuation: New file.
43770         * modules/unictype/property-left-of-pair: New file.
43771         * modules/unictype/property-combining: New file.
43772         * modules/unictype/property-composite: New file.
43773         * modules/unictype/property-decimal-digit: New file.
43774         * modules/unictype/property-numeric: New file.
43775         * modules/unictype/property-diacritic: New file.
43776         * modules/unictype/property-extender: New file.
43777         * modules/unictype/property-ignorable-control: New file.
43778         * modules/unictype/property-test: New file.
43779         * modules/unictype/property-byname: New file.
43780         * modules/unictype/property-all: New file.
43781         * modules/unictype/scripts: New file.
43782         * modules/unictype/scripts-all: New file.
43783         * modules/unictype/block-of: New file.
43784         * modules/unictype/block-test: New file.
43785         * modules/unictype/block-list: New file.
43786         * modules/unictype/block-all: New file.
43787         * modules/unictype/syntax-c-whitespace: New file.
43788         * modules/unictype/syntax-java-whitespace: New file.
43789         * modules/unictype/syntax-c-ident: New file.
43790         * modules/unictype/syntax-java-ident: New file.
43791         * modules/unictype/ctype-alnum: New file.
43792         * modules/unictype/ctype-alpha: New file.
43793         * modules/unictype/ctype-cntrl: New file.
43794         * modules/unictype/ctype-digit: New file.
43795         * modules/unictype/ctype-graph: New file.
43796         * modules/unictype/ctype-lower: New file.
43797         * modules/unictype/ctype-print: New file.
43798         * modules/unictype/ctype-punct: New file.
43799         * modules/unictype/ctype-space: New file.
43800         * modules/unictype/ctype-upper: New file.
43801         * modules/unictype/ctype-xdigit: New file.
43802         * modules/unictype/ctype-blank: New file.
43803         * lib/unictype/bidi_byname.c: New file.
43804         * lib/unictype/bidi_name.c: New file.
43805         * lib/unictype/bidi_of.c: New file.
43806         * lib/unictype/bidi_test.c: New file.
43807         * lib/unictype/bitmap.h: New file.
43808         * lib/unictype/block_test.c: New file.
43809         * lib/unictype/blocks.c: New file.
43810         * lib/unictype/categ_C.c: New file.
43811         * lib/unictype/categ_Cc.c: New file.
43812         * lib/unictype/categ_Cf.c: New file.
43813         * lib/unictype/categ_Cn.c: New file.
43814         * lib/unictype/categ_Co.c: New file.
43815         * lib/unictype/categ_Cs.c: New file.
43816         * lib/unictype/categ_L.c: New file.
43817         * lib/unictype/categ_Ll.c: New file.
43818         * lib/unictype/categ_Lm.c: New file.
43819         * lib/unictype/categ_Lo.c: New file.
43820         * lib/unictype/categ_Lt.c: New file.
43821         * lib/unictype/categ_Lu.c: New file.
43822         * lib/unictype/categ_M.c: New file.
43823         * lib/unictype/categ_Mc.c: New file.
43824         * lib/unictype/categ_Me.c: New file.
43825         * lib/unictype/categ_Mn.c: New file.
43826         * lib/unictype/categ_N.c: New file.
43827         * lib/unictype/categ_Nd.c: New file.
43828         * lib/unictype/categ_Nl.c: New file.
43829         * lib/unictype/categ_No.c: New file.
43830         * lib/unictype/categ_P.c: New file.
43831         * lib/unictype/categ_Pc.c: New file.
43832         * lib/unictype/categ_Pd.c: New file.
43833         * lib/unictype/categ_Pe.c: New file.
43834         * lib/unictype/categ_Pf.c: New file.
43835         * lib/unictype/categ_Pi.c: New file.
43836         * lib/unictype/categ_Po.c: New file.
43837         * lib/unictype/categ_Ps.c: New file.
43838         * lib/unictype/categ_S.c: New file.
43839         * lib/unictype/categ_Sc.c: New file.
43840         * lib/unictype/categ_Sk.c: New file.
43841         * lib/unictype/categ_Sm.c: New file.
43842         * lib/unictype/categ_So.c: New file.
43843         * lib/unictype/categ_Z.c: New file.
43844         * lib/unictype/categ_Zl.c: New file.
43845         * lib/unictype/categ_Zp.c: New file.
43846         * lib/unictype/categ_Zs.c: New file.
43847         * lib/unictype/categ_and.c: New file.
43848         * lib/unictype/categ_and_not.c: New file.
43849         * lib/unictype/categ_byname.c: New file.
43850         * lib/unictype/categ_name.c: New file.
43851         * lib/unictype/categ_none.c: New file.
43852         * lib/unictype/categ_of.c: New file.
43853         * lib/unictype/categ_or.c: New file.
43854         * lib/unictype/categ_test.c: New file.
43855         * lib/unictype/combining.c: New file.
43856         * lib/unictype/ctype_alnum.c: New file.
43857         * lib/unictype/ctype_alpha.c: New file.
43858         * lib/unictype/ctype_blank.c: New file.
43859         * lib/unictype/ctype_cntrl.c: New file.
43860         * lib/unictype/ctype_digit.c: New file.
43861         * lib/unictype/ctype_graph.c: New file.
43862         * lib/unictype/ctype_lower.c: New file.
43863         * lib/unictype/ctype_print.c: New file.
43864         * lib/unictype/ctype_punct.c: New file.
43865         * lib/unictype/ctype_space.c: New file.
43866         * lib/unictype/ctype_upper.c: New file.
43867         * lib/unictype/ctype_xdigit.c: New file.
43868         * lib/unictype/decdigit.c: New file.
43869         * lib/unictype/digit.c: New file.
43870         * lib/unictype/identsyntaxmap.h: New file.
43871         * lib/unictype/mirror.c: New file.
43872         * lib/unictype/numeric.c: New file.
43873         * lib/unictype/pr_alphabetic.c: New file.
43874         * lib/unictype/pr_ascii_hex_digit.c: New file.
43875         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43876         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43877         * lib/unictype/pr_bidi_block_separator.c: New file.
43878         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43879         * lib/unictype/pr_bidi_common_separator.c: New file.
43880         * lib/unictype/pr_bidi_control.c: New file.
43881         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43882         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43883         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43884         * lib/unictype/pr_bidi_european_digit.c: New file.
43885         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43886         * lib/unictype/pr_bidi_left_to_right.c: New file.
43887         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43888         * lib/unictype/pr_bidi_other_neutral.c: New file.
43889         * lib/unictype/pr_bidi_pdf.c: New file.
43890         * lib/unictype/pr_bidi_segment_separator.c: New file.
43891         * lib/unictype/pr_bidi_whitespace.c: New file.
43892         * lib/unictype/pr_byname.c: New file.
43893         * lib/unictype/pr_byname.gperf: New file.
43894         * lib/unictype/pr_combining.c: New file.
43895         * lib/unictype/pr_composite.c: New file.
43896         * lib/unictype/pr_currency_symbol.c: New file.
43897         * lib/unictype/pr_dash.c: New file.
43898         * lib/unictype/pr_decimal_digit.c: New file.
43899         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43900         * lib/unictype/pr_deprecated.c: New file.
43901         * lib/unictype/pr_diacritic.c: New file.
43902         * lib/unictype/pr_extender.c: New file.
43903         * lib/unictype/pr_format_control.c: New file.
43904         * lib/unictype/pr_grapheme_base.c: New file.
43905         * lib/unictype/pr_grapheme_extend.c: New file.
43906         * lib/unictype/pr_grapheme_link.c: New file.
43907         * lib/unictype/pr_hex_digit.c: New file.
43908         * lib/unictype/pr_hyphen.c: New file.
43909         * lib/unictype/pr_id_continue.c: New file.
43910         * lib/unictype/pr_id_start.c: New file.
43911         * lib/unictype/pr_ideographic.c: New file.
43912         * lib/unictype/pr_ids_binary_operator.c: New file.
43913         * lib/unictype/pr_ids_trinary_operator.c: New file.
43914         * lib/unictype/pr_ignorable_control.c: New file.
43915         * lib/unictype/pr_iso_control.c: New file.
43916         * lib/unictype/pr_join_control.c: New file.
43917         * lib/unictype/pr_left_of_pair.c: New file.
43918         * lib/unictype/pr_line_separator.c: New file.
43919         * lib/unictype/pr_logical_order_exception.c: New file.
43920         * lib/unictype/pr_lowercase.c: New file.
43921         * lib/unictype/pr_math.c: New file.
43922         * lib/unictype/pr_non_break.c: New file.
43923         * lib/unictype/pr_not_a_character.c: New file.
43924         * lib/unictype/pr_numeric.c: New file.
43925         * lib/unictype/pr_other_alphabetic.c: New file.
43926         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43927         * lib/unictype/pr_other_grapheme_extend.c: New file.
43928         * lib/unictype/pr_other_id_continue.c: New file.
43929         * lib/unictype/pr_other_id_start.c: New file.
43930         * lib/unictype/pr_other_lowercase.c: New file.
43931         * lib/unictype/pr_other_math.c: New file.
43932         * lib/unictype/pr_other_uppercase.c: New file.
43933         * lib/unictype/pr_paired_punctuation.c: New file.
43934         * lib/unictype/pr_paragraph_separator.c: New file.
43935         * lib/unictype/pr_pattern_syntax.c: New file.
43936         * lib/unictype/pr_pattern_white_space.c: New file.
43937         * lib/unictype/pr_private_use.c: New file.
43938         * lib/unictype/pr_punctuation.c: New file.
43939         * lib/unictype/pr_quotation_mark.c: New file.
43940         * lib/unictype/pr_radical.c: New file.
43941         * lib/unictype/pr_sentence_terminal.c: New file.
43942         * lib/unictype/pr_soft_dotted.c: New file.
43943         * lib/unictype/pr_space.c: New file.
43944         * lib/unictype/pr_terminal_punctuation.c: New file.
43945         * lib/unictype/pr_test.c: New file.
43946         * lib/unictype/pr_titlecase.c: New file.
43947         * lib/unictype/pr_unassigned_code_value.c: New file.
43948         * lib/unictype/pr_unified_ideograph.c: New file.
43949         * lib/unictype/pr_uppercase.c: New file.
43950         * lib/unictype/pr_variation_selector.c: New file.
43951         * lib/unictype/pr_white_space.c: New file.
43952         * lib/unictype/pr_xid_continue.c: New file.
43953         * lib/unictype/pr_xid_start.c: New file.
43954         * lib/unictype/pr_zero_width.c: New file.
43955         * lib/unictype/scripts.c: New file.
43956         * lib/unictype/sy_c_ident.c: New file.
43957         * lib/unictype/sy_c_whitespace.c: New file.
43958         * lib/unictype/sy_java_ident.c: New file.
43959         * lib/unictype/sy_java_whitespace.c: New file.
43960
43961         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43962         Unicode 5.0.0.
43963         * lib/unictype/blocks.h: Likewise.
43964         * lib/unictype/categ_C.h: Likewise.
43965         * lib/unictype/categ_Cc.h: Likewise.
43966         * lib/unictype/categ_Cf.h: Likewise.
43967         * lib/unictype/categ_Cn.h: Likewise.
43968         * lib/unictype/categ_Co.h: Likewise.
43969         * lib/unictype/categ_Cs.h: Likewise.
43970         * lib/unictype/categ_L.h: Likewise.
43971         * lib/unictype/categ_Ll.h: Likewise.
43972         * lib/unictype/categ_Lm.h: Likewise.
43973         * lib/unictype/categ_Lo.h: Likewise.
43974         * lib/unictype/categ_Lt.h: Likewise.
43975         * lib/unictype/categ_Lu.h: Likewise.
43976         * lib/unictype/categ_M.h: Likewise.
43977         * lib/unictype/categ_Mc.h: Likewise.
43978         * lib/unictype/categ_Me.h: Likewise.
43979         * lib/unictype/categ_Mn.h: Likewise.
43980         * lib/unictype/categ_N.h: Likewise.
43981         * lib/unictype/categ_Nd.h: Likewise.
43982         * lib/unictype/categ_Nl.h: Likewise.
43983         * lib/unictype/categ_No.h: Likewise.
43984         * lib/unictype/categ_P.h: Likewise.
43985         * lib/unictype/categ_Pc.h: Likewise.
43986         * lib/unictype/categ_Pd.h: Likewise.
43987         * lib/unictype/categ_Pe.h: Likewise.
43988         * lib/unictype/categ_Pf.h: Likewise.
43989         * lib/unictype/categ_Pi.h: Likewise.
43990         * lib/unictype/categ_Po.h: Likewise.
43991         * lib/unictype/categ_Ps.h: Likewise.
43992         * lib/unictype/categ_S.h: Likewise.
43993         * lib/unictype/categ_Sc.h: Likewise.
43994         * lib/unictype/categ_Sk.h: Likewise.
43995         * lib/unictype/categ_Sm.h: Likewise.
43996         * lib/unictype/categ_So.h: Likewise.
43997         * lib/unictype/categ_Z.h: Likewise.
43998         * lib/unictype/categ_Zl.h: Likewise.
43999         * lib/unictype/categ_Zp.h: Likewise.
44000         * lib/unictype/categ_Zs.h: Likewise.
44001         * lib/unictype/categ_of.h: Likewise.
44002         * lib/unictype/combining.h: Likewise.
44003         * lib/unictype/ctype_alnum.h: Likewise.
44004         * lib/unictype/ctype_alpha.h: Likewise.
44005         * lib/unictype/ctype_blank.h: Likewise.
44006         * lib/unictype/ctype_cntrl.h: Likewise.
44007         * lib/unictype/ctype_digit.h: Likewise.
44008         * lib/unictype/ctype_graph.h: Likewise.
44009         * lib/unictype/ctype_lower.h: Likewise.
44010         * lib/unictype/ctype_print.h: Likewise.
44011         * lib/unictype/ctype_punct.h: Likewise.
44012         * lib/unictype/ctype_space.h: Likewise.
44013         * lib/unictype/ctype_upper.h: Likewise.
44014         * lib/unictype/ctype_xdigit.h: Likewise.
44015         * lib/unictype/decdigit.h: Likewise.
44016         * lib/unictype/digit.h: Likewise.
44017         * lib/unictype/mirror.h: Likewise.
44018         * lib/unictype/numeric.h: Likewise.
44019         * lib/unictype/pr_alphabetic.h: Likewise.
44020         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44021         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44022         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44023         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44024         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44025         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44026         * lib/unictype/pr_bidi_control.h: Likewise.
44027         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44028         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44029         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44030         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44031         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44032         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44033         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44034         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44035         * lib/unictype/pr_bidi_pdf.h: Likewise.
44036         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44037         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44038         * lib/unictype/pr_combining.h: Likewise.
44039         * lib/unictype/pr_composite.h: Likewise.
44040         * lib/unictype/pr_currency_symbol.h: Likewise.
44041         * lib/unictype/pr_dash.h: Likewise.
44042         * lib/unictype/pr_decimal_digit.h: Likewise.
44043         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44044         * lib/unictype/pr_deprecated.h: Likewise.
44045         * lib/unictype/pr_diacritic.h: Likewise.
44046         * lib/unictype/pr_extender.h: Likewise.
44047         * lib/unictype/pr_format_control.h: Likewise.
44048         * lib/unictype/pr_grapheme_base.h: Likewise.
44049         * lib/unictype/pr_grapheme_extend.h: Likewise.
44050         * lib/unictype/pr_grapheme_link.h: Likewise.
44051         * lib/unictype/pr_hex_digit.h: Likewise.
44052         * lib/unictype/pr_hyphen.h: Likewise.
44053         * lib/unictype/pr_id_continue.h: Likewise.
44054         * lib/unictype/pr_id_start.h: Likewise.
44055         * lib/unictype/pr_ideographic.h: Likewise.
44056         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44057         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44058         * lib/unictype/pr_ignorable_control.h: Likewise.
44059         * lib/unictype/pr_iso_control.h: Likewise.
44060         * lib/unictype/pr_join_control.h: Likewise.
44061         * lib/unictype/pr_left_of_pair.h: Likewise.
44062         * lib/unictype/pr_line_separator.h: Likewise.
44063         * lib/unictype/pr_logical_order_exception.h: Likewise.
44064         * lib/unictype/pr_lowercase.h: Likewise.
44065         * lib/unictype/pr_math.h: Likewise.
44066         * lib/unictype/pr_non_break.h: Likewise.
44067         * lib/unictype/pr_not_a_character.h: Likewise.
44068         * lib/unictype/pr_numeric.h: Likewise.
44069         * lib/unictype/pr_other_alphabetic.h: Likewise.
44070         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44071         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44072         * lib/unictype/pr_other_id_continue.h: Likewise.
44073         * lib/unictype/pr_other_id_start.h: Likewise.
44074         * lib/unictype/pr_other_lowercase.h: Likewise.
44075         * lib/unictype/pr_other_math.h: Likewise.
44076         * lib/unictype/pr_other_uppercase.h: Likewise.
44077         * lib/unictype/pr_paired_punctuation.h: Likewise.
44078         * lib/unictype/pr_paragraph_separator.h: Likewise.
44079         * lib/unictype/pr_pattern_syntax.h: Likewise.
44080         * lib/unictype/pr_pattern_white_space.h: Likewise.
44081         * lib/unictype/pr_private_use.h: Likewise.
44082         * lib/unictype/pr_punctuation.h: Likewise.
44083         * lib/unictype/pr_quotation_mark.h: Likewise.
44084         * lib/unictype/pr_radical.h: Likewise.
44085         * lib/unictype/pr_sentence_terminal.h: Likewise.
44086         * lib/unictype/pr_soft_dotted.h: Likewise.
44087         * lib/unictype/pr_space.h: Likewise.
44088         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44089         * lib/unictype/pr_titlecase.h: Likewise.
44090         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44091         * lib/unictype/pr_unified_ideograph.h: Likewise.
44092         * lib/unictype/pr_uppercase.h: Likewise.
44093         * lib/unictype/pr_variation_selector.h: Likewise.
44094         * lib/unictype/pr_white_space.h: Likewise.
44095         * lib/unictype/pr_xid_continue.h: Likewise.
44096         * lib/unictype/pr_xid_start.h: Likewise.
44097         * lib/unictype/pr_zero_width.h: Likewise.
44098         * lib/unictype/scripts.h: Likewise.
44099         * lib/unictype/scripts_byname.gperf: Likewise.
44100         * lib/unictype/sy_c_ident.h: Likewise.
44101         * lib/unictype/sy_c_whitespace.h: Likewise.
44102         * lib/unictype/sy_java_ident.h: Likewise.
44103         * lib/unictype/sy_java_whitespace.h: Likewise.
44104
44105         * lib/unictype/Makefile: New file.
44106         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44107         glibc.
44108         * lib/unictype/3level.h: New file, copied from glibc.
44109         * lib/unictype/3levelbit.h: New file.
44110
44111 2007-11-11  Bruno Haible  <bruno@clisp.org>
44112
44113         * modules/gperf: New file.
44114         * modules/iconv_open (Depends-on): Add it.
44115         (Makefile.am): Remove the GPERF definition.
44116
44117 2007-11-11  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44120         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44121
44122 2007-11-11  Bruno Haible  <bruno@clisp.org>
44123
44124         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44125         (usage): Remove function.
44126
44127 2007-11-11  Bruno Haible  <bruno@clisp.org>
44128
44129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44130         gl_FUNC_CEILF_LIBS.
44131         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44132         gl_FUNC_CEIL_LIBS.
44133         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44134         gl_FUNC_CEILL_LIBS.
44135         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44136         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44137         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44138
44139 2007-11-11  Bruno Haible  <bruno@clisp.org>
44140
44141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44142         roundf were declared but do not exist on functions.
44143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44144         roundl were declared but do not exist on functions.
44145         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44146         HAVE_FLOORL_AND_CEILL, respectively.
44147         Needed for Sun C on Solaris 10.
44148
44149 2007-11-11  Bruno Haible  <bruno@clisp.org>
44150
44151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44152         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44153         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44154         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44155         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44156         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44157         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44158         HAVE_DECL_ROUNDF.
44159         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44160         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44162         of HAVE_DECL_ROUND*.
44163         * modules/math (Makefile.am): Update.
44164
44165 2007-11-10  Bruno Haible  <bruno@clisp.org>
44166
44167         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44168         ptrdiff_t as m4/intl.m4.
44169
44170 2007-11-10  Jim Meyering  <meyering@redhat.com>
44171
44172         Avoid link failure for the argmatch test.
44173         * tests/test-argmatch.c (usage): Define function to avoid a link
44174         failure: argmatch_die requires a usage function.
44175
44176 2007-11-09  Bruno Haible  <bruno@clisp.org>
44177
44178         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44179         * doc/functions/vsnprintf.texi: Likewise.
44180         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44181         with a size argument < 2.
44182
44183 2007-11-09  Bruno Haible  <bruno@clisp.org>
44184
44185         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44186         buffer. Fixes an inefficiency introduced on 2007-11-03.
44187
44188 2007-11-09  Bruno Haible  <bruno@clisp.org>
44189
44190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44191         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44192
44193 2007-11-08  Jim Meyering  <meyering@redhat.com>
44194
44195         Change cache variable name prefix "jm_" to "gl_" everywhere.
44196         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44197         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44198         * m4/uptime.m4: s/gl_/jm_/
44199
44200 2007-11-07  Bruno Haible  <bruno@clisp.org>
44201
44202         Update to GNU gettext 0.17.
44203         * m4/intl.m4: Update to GNU gettext 0.17.
44204         * m4/po.m4: Likewise.
44205         * modules/gettext (Files): Remove m4/ulonglong.m4.
44206         (configure.ac): Require gettext infrastructure from version 0.17.
44207
44208 2007-11-06  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44211         symbolic values are not defined in a public header.
44212         * lib/freadable.c (freadable) [QNX]: Likewise.
44213         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44214         * lib/freading.c (freading) [QNX]: Likewise.
44215         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44216         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44217         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44218         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44219         Reported by Alain Magloire.
44220
44221         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44222
44223 2007-11-05  Bruno Haible  <bruno@clisp.org>
44224
44225         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44226         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44227         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44228         Reported by Eric Blake.
44229
44230 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44231             Bruno Haible  <bruno@clisp.org>
44232
44233         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44234         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44235         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44236         (malloc): Undefine also before including <stdlib.h>.
44237         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44238         Needed on OSF/1 4.0.
44239
44240 2007-11-05  Jim Meyering  <meyering@redhat.com>
44241
44242         git-version-gen: sync from coreutils.
44243         * build-aux/git-version-gen: Add comments.
44244         Change the first '-' to '.' in the snapshot version string,
44245         e.g., 6.9-377-08144 -> 6.9.377-08144
44246         Remove first parameter.
44247         Don't declare a version "-dirty" merely because a time
44248         stamp has changed.
44249
44250 2007-11-04  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/lock.h: Protect all macro definitions containing an 'if'
44253         statement through a "do { ... } while (0)".
44254         * lib/tls.h: Likewise.
44255
44256 2007-11-04  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44259
44260 2007-11-04  Bruno Haible  <bruno@clisp.org>
44261
44262         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44263         * modules/fprintf-posix (Depends-on): Add nocrash.
44264         * modules/snprintf-posix (Depends-on): Likewise.
44265         * modules/sprintf-posix (Depends-on): Likewise.
44266         * modules/vasnprintf-posix (Depends-on): Likewise.
44267         * modules/vasprintf-posix (Depends-on): Likewise.
44268         * modules/vfprintf-posix (Depends-on): Likewise.
44269         * modules/vsnprintf-posix (Depends-on): Likewise.
44270         * modules/vsprintf-posix (Depends-on): Likewise.
44271         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44273         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44275         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44276         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44277         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44278
44279 2007-11-04  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/nocrash: New file.
44282         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44283         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44284
44285 2007-11-04  Bruno Haible  <bruno@clisp.org>
44286
44287         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44288         precision handling.
44289         * tests/test-vasprintf-posix.c (test_function): Likewise.
44290         * tests/test-snprintf-posix.h (test_function): Likewise.
44291         * tests/test-sprintf-posix.h (test_function): Likewise.
44292
44293         Fix *printf behaviour for large precisions on mingw and BeOS.
44294         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44295         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44297         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44299         gl_PRINTF_PRECISION and test its result. Invoke
44300         gl_PREREQ_VASNPRINTF_PRECISION.
44301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44305         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44308         * doc/functions/fprintf.texi: Update.
44309         * doc/functions/printf.texi: Update.
44310         * doc/functions/snprintf.texi: Update.
44311         * doc/functions/sprintf.texi: Update.
44312         * doc/functions/vfprintf.texi: Update.
44313         * doc/functions/vprintf.texi: Update.
44314         * doc/functions/vsnprintf.texi: Update.
44315         * doc/functions/vsprintf.texi: Update.
44316
44317 2007-11-04  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44320
44321 2007-11-04  Bruno Haible  <bruno@clisp.org>
44322
44323         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44324         Reported by Sylvain Beucler <beuc@gnu.org>.
44325
44326 2007-11-03  Bruno Haible  <bruno@clisp.org>
44327
44328         * tests/test-fprintf-posix2.sh: New file.
44329         * tests/test-fprintf-posix2.c: New file.
44330         * modules/fprintf-posix-tests (Files): Add them.
44331         (TESTS): Add test-fprintf-posix2.sh.
44332         (configure.ac): Check for getrlimit and setrlimit.
44333         (check_PROGRAMS): Add test-fprintf-posix2.
44334
44335         * tests/test-printf-posix2.sh: New file.
44336         * tests/test-printf-posix2.c: New file.
44337         * modules/printf-posix-tests (Files): Add them.
44338         (TESTS): Add test-printf-posix2.sh.
44339         (configure.ac): Check for getrlimit and setrlimit.
44340         (check_PROGRAMS): Add test-printf-posix2.
44341
44342         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44343         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44344         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44345         (decode_double): New function, copied from decode_long_double.
44346         (scale10_round_decimal_decoded): New function, extracted from
44347         scale10_round_decimal_long_double.
44348         (scale10_round_decimal_long_double): Use it.
44349         (scale10_round_decimal_double): New function.
44350         (floorlog10): New function.
44351         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44353         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44355         gl_PRINTF_ENOMEM and test its result. Invoke
44356         gl_PREREQ_VASNPRINTF_ENOMEM.
44357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44364         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44365         * modules/snprintf-posix (Depends-on): Likewise.
44366         * modules/sprintf-posix (Depends-on): Likewise.
44367         * modules/vasnprintf-posix (Depends-on): Likewise.
44368         * modules/vasprintf-posix (Depends-on): Likewise.
44369         * modules/vfprintf-posix (Depends-on): Likewise.
44370         * modules/vsnprintf-posix (Depends-on): Likewise.
44371         * modules/vsprintf-posix (Depends-on): Likewise.
44372         * doc/functions/fprintf.texi: Update.
44373         * doc/functions/printf.texi: Update.
44374         * doc/functions/snprintf.texi: Update.
44375         * doc/functions/sprintf.texi: Update.
44376         * doc/functions/vfprintf.texi: Update.
44377         * doc/functions/vprintf.texi: Update.
44378         * doc/functions/vsnprintf.texi: Update.
44379         * doc/functions/vsprintf.texi: Update.
44380
44381 2007-11-03  Bruno Haible  <bruno@clisp.org>
44382
44383         * modules/frexp-nolibm-tests: New file.
44384
44385         * modules/frexp-nolibm: New file.
44386         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44387
44388 2007-11-03  Bruno Haible  <bruno@clisp.org>
44389
44390         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44391         value is C99 compliant.
44392         Needed for OSF/1 5.1.
44393
44394 2007-11-03  Bruno Haible  <bruno@clisp.org>
44395
44396         Fix out-of-memory handling of vasnprintf.
44397         * lib/printf-parse.c: Include <errno.h>.
44398         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44399         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44400         is already set.
44401
44402 2007-11-02  Eric Blake  <ebb9@byu.net>
44403
44404         Fix tests on cygwin.
44405         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44406
44407 2007-11-01  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44410         warning.
44411         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44412         needed for POSIX compatibility.
44413
44414 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44415
44416         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44417         for compatibility with GNU.
44418
44419 2007-11-01  Bruno Haible  <bruno@clisp.org>
44420
44421         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44422         (putenv): Renamed from rpl_putenv. Change argument type from
44423         'const char *' to 'char *'.
44424         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44425         of defining putenv in config.h, just set REPLACE_PUTENV.
44426         * modules/putenv (Depends-on): Add stdlib.
44427         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44428         (Include): Use <stdlib.h>.
44429         * lib/stdlib.in.h (putenv): New declaration.
44430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44431         REPLACE_PUTENV.
44432         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44433         REPLACE_PUTENV.
44434         Needed for MacOS X 10.5.0.
44435         Reported by Peter O'Gorman <peter@pogma.com>.
44436
44437 2007-11-01  Jim Meyering  <meyering@redhat.com>
44438
44439         Treat an empty date string exactly like "0".
44440         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44441         if the remaining date string (to be parsed) is empty, use "0".
44442         Reported by Mischa Molhoek and discussed in this thread:
44443         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44444
44445 2007-10-31  Bruno Haible  <bruno@clisp.org>
44446
44447         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44448         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44449         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44450         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44451         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44452         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44453
44454 2007-10-31  Bruno Haible  <bruno@clisp.org>
44455
44456         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44457         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44458         (AC_TYPE_LONG_LONG_INT): Use it.
44459         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44460         it as well.
44461         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44462         to m4/longlong.m4.
44463         * modules/stdint (Files): Remove m4/ulonglong.m4.
44464         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44465         m4/ulonglong.m4.
44466         * modules/strtoumax (Files): Likewise.
44467
44468 2007-10-30  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/xvasprintf-posix: New file.
44471         Suggested by Eric Blake.
44472
44473 2007-10-30  Bruno Haible  <bruno@clisp.org>
44474
44475         * modules/xprintf-posix-tests: New file.
44476         * tests/test-xprintf-posix.sh: New file.
44477         * tests/test-xprintf-posix.c: New file.
44478         * tests/test-xfprintf-posix.c: New file.
44479
44480         * modules/xprintf-posix: New file.
44481
44482 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44483
44484         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44485         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44486         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44487
44488 2007-10-29  Bruno Haible  <bruno@clisp.org>
44489
44490         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44491         contain the special marker '_cv_'.
44492         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44493         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44494         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44495         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44496         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44497         Reported by Ralf Wildenhues.
44498
44499 2007-10-29  Bruno Haible  <bruno@clisp.org>
44500
44501         * gnulib-tool (func_import): When --lgpl is not specified, set
44502         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44503         GPLv3.
44504         Reported by Simon Josefsson.
44505
44506 2007-10-28  Bruno Haible  <bruno@clisp.org>
44507
44508         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44509         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44510         HAVE_DECL_ISFINITE.
44511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44512         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44513         HAVE_DECL_ISFINITE.
44514
44515 2007-10-28  Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44518         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44519
44520 2007-10-28  Bruno Haible  <bruno@clisp.org>
44521
44522         Fix link errors with Sun C 5.0 on Solaris 10.
44523         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44524         function is declared but not present in the compiler's libm.
44525         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44526         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44527         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44528         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44529         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44530         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44531         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44533         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44534         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44535         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44536         HAVE_DECL_FLOORL.
44537
44538 2007-10-28  Bruno Haible  <bruno@clisp.org>
44539
44540         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44541         gl_FUNC_FLOORL. Cache the result.
44542         (gl_FUNC_FLOORL): Use it.
44543         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44544         gl_FUNC_CEILL. Cache the result.
44545         (gl_FUNC_CEILL): Use it.
44546
44547         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44548         gl_FUNC_FLOOR. Cache the result.
44549         (gl_FUNC_FLOOR): Use it.
44550         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44551         gl_FUNC_CEIL. Cache the result.
44552         (gl_FUNC_CEIL): Use it.
44553
44554         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44555         gl_FUNC_FLOORF. Cache the result.
44556         (gl_FUNC_FLOORF): Use it.
44557         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44558         gl_FUNC_CEILF. Cache the result.
44559         (gl_FUNC_CEILF): Use it.
44560
44561 2007-10-28  Bruno Haible  <bruno@clisp.org>
44562
44563         * gnulib-tool: Allow specifying the LGPL version number through
44564         --lgpl=2 or --lgpl=3.
44565         (func_usage): Document --lgpl with argument.
44566         Handle --lgpl=... arguments.
44567         (func_import): Recognize also gl_LGPL calls with an argument. When
44568         --lgpl=2 is used and the module's license is just LGPL, report an
44569         error. Set sed_transform_lib_file according to the lgpl variable. In
44570         the generated files, use --lgpl or gl_LGPL invocations with argument,
44571         if necessary.
44572         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44573         an LGPv2+ license.
44574         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44575         gl_LGPL macro.
44576
44577 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44578             Bruno Haible  <bruno@clisp.org>
44579
44580         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44581         (u16_uctomb_aux): Likewise.
44582         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44583         !HAVE_INLINE.
44584         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44585
44586 2007-10-28  Bruno Haible  <bruno@clisp.org>
44587
44588         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44589         Invoke AM_GETTEXT_OPTION if it exists.
44590         * modules/vasprintf: Likewise.
44591         * modules/verror: Likewise.
44592         * modules/xprintf: Likewise.
44593         * modules/xvasprintf: Likewise.
44594
44595 2007-10-27  Ben Pfaff  <blp@gnu.org>
44596
44597         * lib/math.in.h: Define isfinite macro and prototypes for
44598         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44599         implementations.
44600         * m4/math_h.m4: New substitutions for isfinite module.
44601         * lib/isfinite.c: New file.
44602         * m4/isfinite.m4: New file.
44603         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44604         * modules/isfinite: New file.
44605         * modules/isfinite-tests: New file.
44606         * tests/tests-isfinite.c: New file.
44607         * doc/functions/isfinite.texi: Mention isfinite module.
44608         * MODULES.html.sh: Mention new module.
44609
44610 2007-10-27  Ben Pfaff  <blp@gnu.org>
44611
44612         Ralf Wildenhues reported that Tru64 4.0D declares the round
44613         functions but does not have definitions.
44614         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44615         cannot be found in any library, set the output variable to
44616         "missing" instead of "".
44617         * m4/round.m4: Also use our substitute if we cannot find round in
44618         any library, even if it is declared.
44619         * m4/roundf.m4: Likewise for roundf.
44620         * m4/roundl.m4: Likewise for roundl.
44621         * lib/math.in.h: Undefine roundf, round, roundl before defining
44622         their replacements, to allow for hypothetical systems where these
44623         may be defined as macros but not available in libraries.
44624
44625 2007-10-27  Bruno Haible  <bruno@clisp.org>
44626
44627         * doc/gnulib.texi: Invoke @firstparagraphindent.
44628         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44629         changes in gnulib.
44630         (Source changes): New section.
44631
44632 2007-10-26  Bruno Haible  <bruno@clisp.org>
44633
44634         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44635         borrowed from autoconf.
44636
44637 2007-10-26  Bruno Haible  <bruno@clisp.org>
44638
44639         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44640         strerror returned the empty string. Needed on HP-UX 11.00.
44641
44642 2007-10-24  Micah Cowan  <micah@cowan.name>
44643
44644         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44645         * build-aux/bootstrap: Remove support for now-unnecessary option,
44646         --cvs-user, and envvars CVS_USER, CVS_RSH.
44647
44648 2007-10-24  Jim Meyering  <meyering@redhat.com>
44649
44650         Avoid diagnostics from sha1sum when there is no cached checksum.
44651         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44652         if the po.s1 file hasn't been created yet.
44653
44654         * build-aux/bootstrap: Sync from coreutils:
44655         2007-10-24  Jim Meyering  <meyering@redhat.com>
44656         Get gnulib from the git repository, not from an obsolete cvs one.
44657         * build-aux/bootstrap: Suggestion from Micah Cowan.
44658         2007-10-04  Jim Meyering  <jim@meyering.net>
44659         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44660         (update_po_files): Work also when there are no .po files in po/.
44661
44662 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44663
44664         * README: Append ".git" to git and cg examples.
44665         Problem reported by Benoit Sigoure.
44666
44667 2007-10-23  Micah Cowan  <micah@cowan.name>
44668
44669         * users.txt: Add wget.
44670
44671 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44672
44673         Fix linking of some unistdio tests on FreeBSD.
44674         * modules/unistdio/u16-vsnprintf-tests
44675         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44676         * modules/unistdio/u16-vsprintf-tests
44677         (test_u16_vsnprintf1_LDADD): Likewise.
44678         * modules/unistdio/u32-vsnprintf-tests
44679         (test_u32_vsnprintf1_LDADD): Likewise.
44680         * modules/unistdio/u32-vsprintf-tests
44681         (test_u32_vsprintf1_LDADD): Likewise.
44682         * modules/unistdio/u8-vsnprintf-tests
44683         (test_u8_vsnprintf1_LDADD): Likewise.
44684         * modules/unistdio/u8-vsprintf-tests
44685         (test_u8_vsprintf1_LDADD): Likewise.
44686         * modules/unistdio/ulc-vsnprintf-tests
44687         (test_ulc_vsnprintf1_LDADD): Likewise.
44688         * modules/unistdio/ulc-vsprintf-tests
44689         (test_ulc_vsprintf1_LDADD): Likewise.
44690
44691         Fix linking of some uniconv tests on FreeBSD.
44692         * modules/uniconv/u16-conv-from-enc-tests
44693         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44694         * modules/uniconv/u16-conv-to-enc-tests
44695         (test_u16_conv_to_enc_LDADD): Likewise.
44696         * modules/uniconv/u16-strconv-from-enc-tests
44697         (test_u16_strconv_from_enc_LDADD): Likewise.
44698         * modules/uniconv/u16-strconv-to-enc-tests
44699         (test_u16_strconv_to_enc_LDADD): Likewise.
44700         * modules/uniconv/u32-conv-from-enc-tests
44701         (test_u32_conv_from_enc_LDADD): Likewise.
44702         * modules/uniconv/u32-conv-to-enc-tests
44703         (test_u32_conv_to_enc_LDADD): Likewise.
44704         * modules/uniconv/u32-strconv-from-enc-tests
44705         (test_u32_strconv_from_enc_LDADD): Likewise.
44706         * modules/uniconv/u32-strconv-to-enc-tests
44707         (test_u32_strconv_to_enc_LDADD): Likewise.
44708         * modules/uniconv/u8-conv-from-enc-tests
44709         (test_u8_conv_from_enc_LDADD): Likewise.
44710         * modules/uniconv/u8-conv-to-enc-tests
44711         (test_u8_conv_to_enc_LDADD): Likewise.
44712         * modules/uniconv/u8-strconv-from-enc-tests
44713         (test_u8_strconv_from_enc_LDADD): Likewise.
44714         * modules/uniconv/u8-strconv-to-enc-tests
44715         (test_u8_strconv_to_enc_LDADD): Likewise.
44716
44717 2007-10-22  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44720         size.
44721
44722 2007-10-22  Eric Blake  <ebb9@byu.net>
44723
44724         Tweak x*printf documentation.
44725         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44726         variable name and comments.
44727         Suggested by Bruno Haible.
44728
44729 2007-10-22  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/acl.c (copy_acl): Fix file name in comment.
44732
44733 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44734
44735         Fix Tru64 problem with stdbool.h.
44736         * lib/stdbool.in.h (false, true):
44737         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44738         Don't declare as an enum in this situation; it runs afoul of Tru64.
44739         Problem reported by Steven M. Schweda in
44740         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44741
44742 2007-10-22  Eric Blake  <ebb9@byu.net>
44743
44744         Also wrap vf?printf.
44745         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44746         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44747         (xvprintf, xvfprintf): New functions.
44748
44749 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44750
44751         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44752         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44753
44754         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44755         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44756
44757 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44758
44759         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44760         by Bruno Haible.
44761
44762 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44763
44764         * lib/getloadavg.c
44765         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44766         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44767
44768         * tests/test-i-ring.c: Work for C89.
44769
44770 2007-10-22  Bruno Haible  <bruno@clisp.org>
44771
44772         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44773         -1u, in preprocessor expression, so that we don't test for the bug
44774         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44776
44777 2007-10-22  Eric Blake  <ebb9@byu.net>
44778
44779         * tests/test-yesno.sh: Silence stderr during test.
44780
44781 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44782
44783         * modules/crypto/gc-camellia: New file.
44784
44785         * m4/gc-camellia.m4: New file.
44786
44787         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44788
44789         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44790
44791 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44792
44793         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44794         --help to stdout.  Reported by sms@antinode.org (Steven
44795         M. Schweda).
44796
44797 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44798
44799         * users.txt: Fix link to libksba.
44800
44801 2007-10-21  Ben Pfaff  <blp@gnu.org>
44802
44803         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44804         round.c roundf implementation that depends on floorf and ceilf to
44805         be tested unconditionally.
44806
44807 2007-10-21  Ben Pfaff  <blp@gnu.org>
44808
44809         * m4/check-libm-func.m4: Removed.
44810         * m4/check-math-lib.m4: New file.
44811         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44812         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44813         definition and lack of AC_LIBOBJ([roundf]).
44814         * m4/roundl.m4: Ditto, and similarly for roundl.
44815         * modules/round: Reference new m4 file.
44816         * modules/roundf: Ditto.
44817         * modules/roundl: Ditto.
44818         * tests/test-round2.c (main): Use ROUND instead of round.
44819         Bug report from Bruno Haible.
44820
44821 2007-10-21  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44824         context.
44825
44826 2007-10-21  Bruno Haible  <bruno@clisp.org>
44827
44828         * tests/test-wcwidth.c (main): Allow negative result for some control
44829         characters.
44830
44831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44832         Needed on OSF/1 5.1.
44833
44834 2007-10-21  Bruno Haible  <bruno@clisp.org>
44835
44836         * tests/test-floorf1.c: Include isnanf.h.
44837         (main): Use isnanf() instead of isnan().
44838         * tests/test-ceilf1.c: Include isnanf.h.
44839         (main): Use isnanf() instead of isnan().
44840         * tests/test-truncf1.c: Include isnanf.h.
44841         (main): Use isnanf() instead of isnan().
44842         * tests/test-roundf1.c: Include isnanf.h.
44843         (main): Use isnanf() instead of isnan().
44844
44845 2007-10-21  Eric Blake  <ebb9@byu.net>
44846
44847         * users.txt: Update URL for m4.
44848
44849 2007-10-21  Bruno Haible  <bruno@clisp.org>
44850
44851         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44852
44853 2007-10-21  Bruno Haible  <bruno@clisp.org>
44854
44855         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44856         Git's management files if the CVS files are not present.
44857
44858 2007-10-20  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44861         gcc-3.4.x.
44862
44863 2007-10-20  Ben Pfaff  <blp@gnu.org>
44864
44865         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44866         implementations.
44867         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44868         * lib/round.c: New file.
44869         * lib/roundf.c: New file.
44870         * lib/roundl.c: New file.
44871         * m4/round.m4: New file.
44872         * m4/roundf.m4: New file.
44873         * m4/roundl.m4: New file.
44874         * m4/check-libm-func-m4: New file.
44875         * modules/math: Replace round, roundf, roundl related @VARS@ in
44876         math.in.h.
44877         * modules/round: New file.
44878         * modules/round-tests: New file.
44879         * modules/roundf: New file.
44880         * modules/roundf-tests: New file.
44881         * modules/roundl: New file.
44882         * modules/roundl-tests: New file.
44883         * tests/test-round1.c: New file.
44884         * tests/test-round2.c: New file.
44885         * tests/test-roundf1.c: New file.
44886         * tests/test-roundf2.c: New file.
44887         * tests/test-roundl.c: New file.
44888         * doc/functions/round.texi: Mention round module.
44889         * doc/functions/roundf.texi: Mention roundf module.
44890         * doc/functions/roundl.texi: Mention roundl module.
44891         * MODULES.html.sh: Mention new modules.
44892         Thanks to Bruno Haible for suggestions.
44893
44894 2007-10-20  Jim Meyering  <meyering@redhat.com>
44895
44896         * lib/xprintf.c: Include <config.h> unconditionally.
44897
44898         Change xprintf's license to GPL.
44899         * modules/xprintf (License): s/LGPL/GPL/, since this module
44900         depends on modules (exit and exitfail) which are GPL.
44901         Suggestion from Bruno Haible.
44902
44903         xprintf fixes.
44904         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44905         Use a clearer diagnostic.
44906         Patch from Bruno Haible.
44907
44908 2007-10-20  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44911         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44913
44914 2007-10-20  Bruno Haible  <bruno@clisp.org>
44915
44916         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44917         precision in the comparison result > x - 1 or similar.
44918         * tests/test-ceilf2.c (correct_result_p): Likewise.
44919         * tests/test-truncf2.c (correct_result_p): Likewise.
44920         * tests/test-trunc2.c (correct_result_p): Likewise.
44921         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44922
44923 2007-10-20  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/ceil: New file.
44926         * m4/ceil.m4: New file.
44927         * doc/functions/ceil.texi: Mention the 'ceil' module.
44928
44929 2007-10-20  Bruno Haible  <bruno@clisp.org>
44930
44931         * modules/floor: New file.
44932         * m4/floor.m4: New file.
44933         * doc/functions/floor.texi: Mention the 'floor' module.
44934
44935 2007-10-20  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44938         of %a.
44939         * modules/floorf-tests (Depends-on): Likewise.
44940         * modules/truncf-tests (Depends-on): Likewise.
44941         * modules/trunc-tests (Depends-on): Likewise.
44942         Reported by Ben Pfaff.
44943
44944 2007-10-19  Jim Meyering  <meyering@redhat.com>
44945
44946         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44947         Don't bother testing specific errno values.  Just test ferror.
44948
44949         New module: xprintf
44950         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44951
44952 2007-10-19  Bruno Haible  <bruno@clisp.org>
44953
44954         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44955         syntax.
44956         * modules/javaexec (Makefile.am): Likewise.
44957         * modules/relocatable-prog (Makefile.am): Likewise.
44958         Suggested by Jim Meyering.
44959
44960 2007-10-18  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44963         Reported by Jim Meyering.
44964
44965 2007-10-18  Eric Blake  <ebb9@byu.net>
44966
44967         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44968
44969 2007-10-18  Bruno Haible  <bruno@clisp.org>
44970
44971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44972         the format string into writable memory. Needed in Fortify conditions.
44973
44974 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44975             Bruno Haible  <bruno@clisp.org>
44976
44977         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44978         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44979         * modules/trim (Depends-on): Add mbchar.
44980         (configure.ac): Add gl_FUNC_MBRTOWC.
44981         (Makefile.am): Augment lib_SOURCES.
44982
44983 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44984
44985         Modify glob.c to use fstatat and dirfd, to simplify it.
44986         Suggested by Eric Blake.
44987         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44988         Don't include <stdbool.h>; not used.
44989         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44990         (link_exists_p): Simplify implementation, since we can now assume
44991         dirfd and fstatat.
44992         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44993
44994 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44995
44996         * gnulib-tool (func_get_dependencies): Fix sed script to
44997         match only tests.
44998
44999 2007-10-17  Bruno Haible  <bruno@clisp.org>
45000
45001         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45002         allow locale names without encoding suffix.
45003         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45005
45006 2007-10-16  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45009         * lib/getgroups.c (getgroups): Likewise.
45010         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45011
45012 2007-10-16  Bruno Haible  <bruno@clisp.org>
45013
45014         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45015         * modules/malloc-posix (License): Likewise.
45016         * modules/realloc-posix (License): Likewise.
45017         * modules/calloc-posix (License): Likewise.
45018         * modules/intprops (License): Change from GPL to LGPL, with
45019         Paul Eggert's approval.
45020
45021 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45022
45023         Merge glibc changes into lib/glob.c.
45024
45025         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45026         2007-10-15 04:59:03 UTC.  Here are the changes:
45027
45028         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45029
45030         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45031
45032         * lib/glob.c: Add some branch prediction throughout.
45033
45034         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45035
45036         [BZ #5103]
45037         * lib/glob.c (glob): Recognize patterns starting \/.
45038
45039         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45040
45041         [BZ #3996]
45042         * lib/glob.c (attribute_hidden): Define if not defined.
45043         (glob): Unescape dirname, filename or username when needed and not
45044         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45045         is NULL.  Handle unescaped [ in pattern without closing ].
45046         Don't pass GLOB_CHECK down to recursive glob for directories.
45047         (__glob_pattern_type): New function.
45048         (__glob_pattern_p): Implement using __glob_pattern_type.
45049         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45050         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45051         Remove unreachable code.
45052
45053         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45054
45055         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45056         explain why there are no leaks.
45057
45058         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45059
45060         [BZ #3253]
45061         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45062         time, rather allocate increasingly bigger arrays of pointers, if
45063         possible with alloca, if too large with malloc.
45064
45065 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45066
45067         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45068         Problem reported by H.Merijn Brand in
45069         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45070         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45071         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45072
45073 2007-10-15  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45076         with explicit rpl_ prefix.
45077         * lib/fopen.c (fopen): Likewise.
45078         * lib/freopen.c (freopen): Likewise.
45079         * lib/iconv.c (iconv): Likewise.
45080         * lib/iconv_close.c (iconv_close): Likewise.
45081
45082 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45083
45084         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45085
45086 2007-10-15  Bruno Haible  <bruno@clisp.org>
45087
45088         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45089         <stddef.h> instead of <stdlib.h> since we only need NULL.
45090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45091
45092 2007-10-15  Bruno Haible  <bruno@clisp.org>
45093
45094         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45095         Replace paragraph talking about LIBOBJS.
45096         Reported by Colin Watson <cjwatson@debian.org>.
45097
45098 2007-10-15  Bruno Haible  <bruno@clisp.org>
45099
45100         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45101         <stdlib.h> before using NULL.
45102
45103 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45104
45105         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45106         Reported by Albert Chin <china@thewrittenword.com>.
45107
45108 2007-10-14  Bruno Haible  <bruno@clisp.org>
45109
45110         * modules/iconv_open-utf-tests: New file.
45111         * tests/test-iconv-utf.c: New file.
45112
45113         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45114         * modules/iconv_open-utf: New file.
45115         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45116         (iconv, iconv_close): New declarations.
45117         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45118         be defined.
45119         (iconv_open): Add special handling of conversion between UTF-8 and
45120         UTF-{16,32}{BE,LE}.
45121         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45122         * lib/iconv_close.c: New file.
45123         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45124         gl_FUNC_ICONV_OPEN.
45125         (gl_FUNC_ICONV_OPEN): Use it.
45126         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45127         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45128         and REPLACE_ICONV_UTF.
45129         * modules/iconv_open (Depends-on): Add c-strcase.
45130         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45131         ICONV_CONST.
45132         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45133
45134 2007-10-13  Albert Chin  <china@thewrittenword.com>
45135             Bruno Haible  <bruno@clisp.org>
45136
45137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45138         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45139
45140 2007-10-13  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45143         defined, use the ISO C99 inline semantics.
45144         * lib/argp.h (ARGP_EI): Likewise.
45145
45146 2007-10-13  Bruno Haible  <bruno@clisp.org>
45147
45148         Handle 'inline' change in gcc 4.3.0.
45149         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45150         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45151         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45152         argp_fmtstream_point): Disable 'extern' declaration if the function
45153         definition is going to be provided inline.
45154         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45155         semantics, not the ISO C99 inline semantics.
45156         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45157         'extern' declaration if the function definition is going to be provided
45158         inline.
45159         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45160         the GNU C inline semantics, not the ISO C99 inline semantics. With
45161         GCC 4.2, avoid a warning.
45162
45163 2007-10-13  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/freading.h (freading): Enable the use of __freading for
45166         glibc >= 2.7.
45167         * lib/freading.c (freading): Likewise.
45168
45169 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45170
45171         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45172         "warning: C99 inline functions are not supported; using GNU89".
45173
45174 2007-10-12  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45177         of 2.
45178         * tests/test-ceilf2.c: New file.
45179         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45180
45181         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45182         * modules/ceilf-tests: Update.
45183
45184 2007-10-12  Bruno Haible  <bruno@clisp.org>
45185
45186         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45187         of 2.
45188         * tests/test-floorf2.c: New file.
45189         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45190
45191         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45192         * modules/floorf-tests: Update.
45193
45194 2007-10-12  Bruno Haible  <bruno@clisp.org>
45195
45196         * tests/test-trunc2.c: New file.
45197         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45198
45199         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45200         * modules/trunc-tests: Update.
45201
45202 2007-10-12  Bruno Haible  <bruno@clisp.org>
45203
45204         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45205         of 2.
45206         * tests/test-truncf2.c: New file.
45207         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45208
45209         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45210         * modules/truncf-tests: Update.
45211
45212 2007-10-11  Eric Blake  <ebb9@byu.net>
45213
45214         Don't claim strerror is broken on Interix.
45215         * doc/functions/strerror.texi (strerror): Known broken systems are
45216         now Solaris 8, and not Interix.
45217         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45218         Interix on cross-compile.
45219         Reported by Martin Koeppe in
45220         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45221
45222 2007-10-11  Bruno Haible  <bruno@clisp.org>
45223
45224         * modules/i-ring-tests: New file.
45225         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45226         instead of assert.
45227
45228 2007-10-11  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/filenamecat-tests: New file.
45231         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45232         * lib/filenamecat.c: Remove test code.
45233
45234 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45235
45236         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45237
45238         * lib/strerror.c: Include <string.h> always, to test interface,
45239         and to remove the need for the dummy.
45240         Include intprops.h to compute width instead of doing it ourselves
45241         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45242         (strerror): Define it to return NULL if there's no system strerror.
45243         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45244         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45245         ancient pre-strerror Unix systems well any more.  Saying "unknown
45246         system error" is enough.
45247         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45248         simpler strerror.c implementation.
45249         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45250         Simplify the tests to reflect the simpler strerror implementation.
45251         * modules/strerror (Depends-on): Add intprops.
45252
45253 2007-10-09  Eric Blake  <ebb9@byu.net>
45254
45255         Silence test-fpending.
45256         * modules/fpending-tests (Files): Add wrapper script.
45257         * tests/test-fpending.sh: New file.
45258
45259 2007-10-09  Bruno Haible  <bruno@clisp.org>
45260
45261         * MODULES.html.sh (func_module): Don't create a hyperlink for
45262         function names like 'printf_frexp'.
45263         (Misc): Add crc, memxor.
45264         (Characteristics of floating types): New section.
45265         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45266         isnanf-nolibm, signbit, trunc, truncf, truncl.
45267         (Enhancements for ISO C 99 functions): New subsection Input/output.
45268         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45269         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45270         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45271         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45272         (Enhancements for POSIX:2001 functions): Add chdir-long.
45273         (File system functions): Add areadlink, chdir-safer, read-file.
45274         Remove cycle-check.
45275         (File system as inode set): New section.
45276         (Date and time): Add gethrxtime.
45277         (Multithreading): Add openmp.
45278         (Internationalization functions): Add localename.
45279         (Unicode string functions): Add unistr/u*-mbsnlen.
45280         (Support for maintaining and releasing projects): Add git-version-gen.
45281         (Lone files): Remove directories.
45282
45283 2007-10-08  Ben Pfaff  <blp@gnu.org>
45284
45285         * lib/xmalloca.h: Fix typo in comment.
45286
45287 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45288
45289         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45290         when avoiding problems with integer overflow.  Use a portable test
45291         instead.
45292
45293 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45294
45295         * modules/dummy (License): Change to LGPLv2+.
45296         * modules/float (License): Likewise
45297         * modules/realloc (License): Likewise
45298         * modules/stdlib (License): Likewise
45299
45300 2007-10-07  Bruno Haible  <bruno@clisp.org>
45301
45302         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45303         * floor.c (TWO_MANT_DIG): Likewise.
45304         * ceil.c (TWO_MANT_DIG): Likewise.
45305         Reported by Ben Pfaff.
45306
45307 2007-10-07  Bruno Haible  <bruno@clisp.org>
45308
45309         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45310         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45311         * lib/frexp.c (FUNC): Likewise.
45312         * lib/printf-frexp.h (printf_frexp): Likewise.
45313         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45314         * lib/printf-frexp.c (FUNC): Likewise.
45315         Suggested by Jim Meyering.
45316
45317 2007-10-07  Jim Meyering  <meyering@redhat.com>
45318
45319         Make xnanosleep's integer overflow test more robust.
45320         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45321         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45322
45323 2007-10-07  Bruno Haible  <bruno@clisp.org>
45324
45325         * NEWS: Mention the license change.
45326
45327         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45328         abbreviations in the modules files.
45329
45330         Change copyright notice from GPLv2+ to GPLv3+.
45331         * README: Change copyright notice.
45332         * MODULES.html.sh: Likewise.
45333         * build-aux/bootstrap.conf: Likewise.
45334         * build-aux/config.libpath: Likewise.
45335         * build-aux/csharpcomp.sh.in: Likewise.
45336         * build-aux/csharpexec.sh.in: Likewise.
45337         * build-aux/install-reloc: Likewise.
45338         * build-aux/javacomp.sh.in: Likewise.
45339         * build-aux/javaexec.sh.in: Likewise.
45340         * build-aux/ldd.sh.in: Likewise.
45341         * build-aux/reloc-ldflags: Likewise.
45342         * build-aux/relocatable.sh.in: Likewise.
45343         * build-aux/x-to-1.in: Likewise.
45344         * check-module: Likewise.
45345         * config/srclistvars.sh: Likewise.
45346         * gnulib-tool: Likewise.
45347         * lib/acl-internal.h: Likewise.
45348         * lib/acl.c: Likewise.
45349         * lib/acl.h: Likewise.
45350         * lib/acl_entries.c: Likewise.
45351         * lib/areadlink-with-size.c: Likewise.
45352         * lib/areadlink.c: Likewise.
45353         * lib/areadlink.h: Likewise.
45354         * lib/argmatch.c: Likewise.
45355         * lib/argmatch.h: Likewise.
45356         * lib/argp-ba.c: Likewise.
45357         * lib/argp-eexst.c: Likewise.
45358         * lib/argp-fmtstream.c: Likewise.
45359         * lib/argp-fmtstream.h: Likewise.
45360         * lib/argp-fs-xinl.c: Likewise.
45361         * lib/argp-help.c: Likewise.
45362         * lib/argp-namefrob.h: Likewise.
45363         * lib/argp-parse.c: Likewise.
45364         * lib/argp-pin.c: Likewise.
45365         * lib/argp-pv.c: Likewise.
45366         * lib/argp-pvh.c: Likewise.
45367         * lib/argp-xinl.c: Likewise.
45368         * lib/argp.h: Likewise.
45369         * lib/at-func.c: Likewise.
45370         * lib/atanl.c: Likewise.
45371         * lib/backupfile.c: Likewise.
45372         * lib/backupfile.h: Likewise.
45373         * lib/basename.c: Likewise.
45374         * lib/binary-io.h: Likewise.
45375         * lib/byteswap.in.h: Likewise.
45376         * lib/c-stack.c: Likewise.
45377         * lib/c-stack.h: Likewise.
45378         * lib/c-strcasestr.c: Likewise.
45379         * lib/c-strcasestr.h: Likewise.
45380         * lib/c-strstr.c: Likewise.
45381         * lib/c-strstr.h: Likewise.
45382         * lib/c-strtod.c: Likewise.
45383         * lib/calloc.c: Likewise.
45384         * lib/canon-host.c: Likewise.
45385         * lib/canon-host.h: Likewise.
45386         * lib/canonicalize-lgpl.c: Likewise.
45387         * lib/canonicalize.c: Likewise.
45388         * lib/canonicalize.h: Likewise.
45389         * lib/ceil.c: Likewise.
45390         * lib/ceilf.c: Likewise.
45391         * lib/ceill.c: Likewise.
45392         * lib/chdir-long.c: Likewise.
45393         * lib/chdir-long.h: Likewise.
45394         * lib/chdir-safer.c: Likewise.
45395         * lib/chdir-safer.h: Likewise.
45396         * lib/chown.c: Likewise.
45397         * lib/classpath.c: Likewise.
45398         * lib/classpath.h: Likewise.
45399         * lib/clean-temp.c: Likewise.
45400         * lib/clean-temp.h: Likewise.
45401         * lib/cloexec.c: Likewise.
45402         * lib/close-stream.c: Likewise.
45403         * lib/closein.c: Likewise.
45404         * lib/closein.h: Likewise.
45405         * lib/closeout.c: Likewise.
45406         * lib/closeout.h: Likewise.
45407         * lib/concat-filename.c: Likewise.
45408         * lib/copy-file.c: Likewise.
45409         * lib/copy-file.h: Likewise.
45410         * lib/count-one-bits.h: Likewise.
45411         * lib/crc.c: Likewise.
45412         * lib/crc.h: Likewise.
45413         * lib/creat-safer.c: Likewise.
45414         * lib/csharpcomp.c: Likewise.
45415         * lib/csharpcomp.h: Likewise.
45416         * lib/csharpexec.c: Likewise.
45417         * lib/csharpexec.h: Likewise.
45418         * lib/cycle-check.c: Likewise.
45419         * lib/cycle-check.h: Likewise.
45420         * lib/diacrit.c: Likewise.
45421         * lib/diacrit.h: Likewise.
45422         * lib/diffseq.h: Likewise.
45423         * lib/dirchownmod.c: Likewise.
45424         * lib/dirent.in.h: Likewise.
45425         * lib/dirfd.c: Likewise.
45426         * lib/dirfd.h: Likewise.
45427         * lib/dirname.c: Likewise.
45428         * lib/dirname.h: Likewise.
45429         * lib/dummy.c: Likewise.
45430         * lib/dup-safer.c: Likewise.
45431         * lib/dup2.c: Likewise.
45432         * lib/eealloc.h: Likewise.
45433         * lib/error.c: Likewise.
45434         * lib/error.h: Likewise.
45435         * lib/euidaccess.c: Likewise.
45436         * lib/exclude.c: Likewise.
45437         * lib/exclude.h: Likewise.
45438         * lib/execute.c: Likewise.
45439         * lib/execute.h: Likewise.
45440         * lib/exitfail.c: Likewise.
45441         * lib/exitfail.h: Likewise.
45442         * lib/expl.c: Likewise.
45443         * lib/fatal-signal.c: Likewise.
45444         * lib/fatal-signal.h: Likewise.
45445         * lib/fbufmode.c: Likewise.
45446         * lib/fbufmode.h: Likewise.
45447         * lib/fchdir.c: Likewise.
45448         * lib/fchmodat.c: Likewise.
45449         * lib/fchownat.c: Likewise.
45450         * lib/fcntl--.h: Likewise.
45451         * lib/fcntl-safer.h: Likewise.
45452         * lib/fcntl.in.h: Likewise.
45453         * lib/fd-safer.c: Likewise.
45454         * lib/fflush.c: Likewise.
45455         * lib/file-has-acl.c: Likewise.
45456         * lib/file-set.c: Likewise.
45457         * lib/file-type.c: Likewise.
45458         * lib/file-type.h: Likewise.
45459         * lib/fileblocks.c: Likewise.
45460         * lib/filemode.c: Likewise.
45461         * lib/filemode.h: Likewise.
45462         * lib/filename.h: Likewise.
45463         * lib/filenamecat.c: Likewise.
45464         * lib/filenamecat.h: Likewise.
45465         * lib/findprog.c: Likewise.
45466         * lib/findprog.h: Likewise.
45467         * lib/float.in.h: Likewise.
45468         * lib/floor.c: Likewise.
45469         * lib/floorf.c: Likewise.
45470         * lib/floorl.c: Likewise.
45471         * lib/fopen-safer.c: Likewise.
45472         * lib/fopen.c: Likewise.
45473         * lib/fpending.c: Likewise.
45474         * lib/fpending.h: Likewise.
45475         * lib/fprintf.c: Likewise.
45476         * lib/fprintftime.h: Likewise.
45477         * lib/fpucw.h: Likewise.
45478         * lib/fpurge.c: Likewise.
45479         * lib/fpurge.h: Likewise.
45480         * lib/freadable.c: Likewise.
45481         * lib/freadable.h: Likewise.
45482         * lib/freadahead.c: Likewise.
45483         * lib/freadahead.h: Likewise.
45484         * lib/freading.c: Likewise.
45485         * lib/freading.h: Likewise.
45486         * lib/free.c: Likewise.
45487         * lib/freopen.c: Likewise.
45488         * lib/frexp.c: Likewise.
45489         * lib/frexpl.c: Likewise.
45490         * lib/fseek.c: Likewise.
45491         * lib/fseterr.c: Likewise.
45492         * lib/fseterr.h: Likewise.
45493         * lib/fstatat.c: Likewise.
45494         * lib/fstrcmp.c: Likewise.
45495         * lib/fstrcmp.h: Likewise.
45496         * lib/fsusage.c: Likewise.
45497         * lib/fsusage.h: Likewise.
45498         * lib/ftell.c: Likewise.
45499         * lib/ftello.c: Likewise.
45500         * lib/fts-cycle.c: Likewise.
45501         * lib/fts.c: Likewise.
45502         * lib/fts_.h: Likewise.
45503         * lib/full-read.c: Likewise.
45504         * lib/full-read.h: Likewise.
45505         * lib/full-write.c: Likewise.
45506         * lib/full-write.h: Likewise.
45507         * lib/fwritable.c: Likewise.
45508         * lib/fwritable.h: Likewise.
45509         * lib/fwriteerror.c: Likewise.
45510         * lib/fwriteerror.h: Likewise.
45511         * lib/fwriting.c: Likewise.
45512         * lib/fwriting.h: Likewise.
45513         * lib/gcd.c: Likewise.
45514         * lib/gcd.h: Likewise.
45515         * lib/getcwd.c: Likewise.
45516         * lib/getdate.h: Likewise.
45517         * lib/getdate.y: Likewise.
45518         * lib/getdomainname.c: Likewise.
45519         * lib/getdomainname.h: Likewise.
45520         * lib/getgroups.c: Likewise.
45521         * lib/gethostname.c: Likewise.
45522         * lib/gethrxtime.c: Likewise.
45523         * lib/gethrxtime.h: Likewise.
45524         * lib/getloadavg.c: Likewise.
45525         * lib/getndelim2.c: Likewise.
45526         * lib/getndelim2.h: Likewise.
45527         * lib/getnline.c: Likewise.
45528         * lib/getnline.h: Likewise.
45529         * lib/getopt.c: Likewise.
45530         * lib/getopt.in.h: Likewise.
45531         * lib/getopt1.c: Likewise.
45532         * lib/getopt_int.h: Likewise.
45533         * lib/getpagesize.h: Likewise.
45534         * lib/getsubopt.c: Likewise.
45535         * lib/gettime.c: Likewise.
45536         * lib/getugroups.c: Likewise.
45537         * lib/getugroups.h: Likewise.
45538         * lib/getusershell.c: Likewise.
45539         * lib/gl_anyavltree_list1.h: Likewise.
45540         * lib/gl_anyavltree_list2.h: Likewise.
45541         * lib/gl_anyhash_list1.h: Likewise.
45542         * lib/gl_anyhash_list2.h: Likewise.
45543         * lib/gl_anylinked_list1.h: Likewise.
45544         * lib/gl_anylinked_list2.h: Likewise.
45545         * lib/gl_anyrbtree_list1.h: Likewise.
45546         * lib/gl_anyrbtree_list2.h: Likewise.
45547         * lib/gl_anytree_list1.h: Likewise.
45548         * lib/gl_anytree_list2.h: Likewise.
45549         * lib/gl_anytree_oset.h: Likewise.
45550         * lib/gl_anytreehash_list1.h: Likewise.
45551         * lib/gl_anytreehash_list2.h: Likewise.
45552         * lib/gl_array_list.c: Likewise.
45553         * lib/gl_array_list.h: Likewise.
45554         * lib/gl_array_oset.c: Likewise.
45555         * lib/gl_array_oset.h: Likewise.
45556         * lib/gl_avltree_list.c: Likewise.
45557         * lib/gl_avltree_list.h: Likewise.
45558         * lib/gl_avltree_oset.c: Likewise.
45559         * lib/gl_avltree_oset.h: Likewise.
45560         * lib/gl_avltreehash_list.c: Likewise.
45561         * lib/gl_avltreehash_list.h: Likewise.
45562         * lib/gl_carray_list.c: Likewise.
45563         * lib/gl_carray_list.h: Likewise.
45564         * lib/gl_linked_list.c: Likewise.
45565         * lib/gl_linked_list.h: Likewise.
45566         * lib/gl_linkedhash_list.c: Likewise.
45567         * lib/gl_linkedhash_list.h: Likewise.
45568         * lib/gl_list.c: Likewise.
45569         * lib/gl_list.h: Likewise.
45570         * lib/gl_oset.c: Likewise.
45571         * lib/gl_oset.h: Likewise.
45572         * lib/gl_rbtree_list.c: Likewise.
45573         * lib/gl_rbtree_list.h: Likewise.
45574         * lib/gl_rbtree_oset.c: Likewise.
45575         * lib/gl_rbtree_oset.h: Likewise.
45576         * lib/gl_rbtreehash_list.c: Likewise.
45577         * lib/gl_rbtreehash_list.h: Likewise.
45578         * lib/gl_sublist.c: Likewise.
45579         * lib/gl_sublist.h: Likewise.
45580         * lib/group-member.c: Likewise.
45581         * lib/group-member.h: Likewise.
45582         * lib/hard-locale.c: Likewise.
45583         * lib/hard-locale.h: Likewise.
45584         * lib/hash-pjw.c: Likewise.
45585         * lib/hash-pjw.h: Likewise.
45586         * lib/hash-triple.c: Likewise.
45587         * lib/hash.c: Likewise.
45588         * lib/hash.h: Likewise.
45589         * lib/human.c: Likewise.
45590         * lib/human.h: Likewise.
45591         * lib/i-ring.c: Likewise.
45592         * lib/i-ring.h: Likewise.
45593         * lib/idcache.c: Likewise.
45594         * lib/imaxabs.c: Likewise.
45595         * lib/imaxdiv.c: Likewise.
45596         * lib/inet_pton.c: Likewise.
45597         * lib/inet_pton.h: Likewise.
45598         * lib/intprops.h: Likewise.
45599         * lib/inttostr.c: Likewise.
45600         * lib/inttostr.h: Likewise.
45601         * lib/inttypes.in.h: Likewise.
45602         * lib/isapipe.c: Likewise.
45603         * lib/isdir.c: Likewise.
45604         * lib/isnan.c: Likewise.
45605         * lib/isnan.h: Likewise.
45606         * lib/isnanf.c: Likewise.
45607         * lib/isnanf.h: Likewise.
45608         * lib/isnanl-nolibm.h: Likewise.
45609         * lib/isnanl.c: Likewise.
45610         * lib/isnanl.h: Likewise.
45611         * lib/javacomp.c: Likewise.
45612         * lib/javacomp.h: Likewise.
45613         * lib/javaexec.c: Likewise.
45614         * lib/javaexec.h: Likewise.
45615         * lib/javaversion.c: Likewise.
45616         * lib/javaversion.h: Likewise.
45617         * lib/javaversion.java: Likewise.
45618         * lib/lbrkprop.h: Likewise.
45619         * lib/lchmod.h: Likewise.
45620         * lib/lchown.c: Likewise.
45621         * lib/ldexpl.c: Likewise.
45622         * lib/linebreak.c: Likewise.
45623         * lib/linebreak.h: Likewise.
45624         * lib/linebuffer.c: Likewise.
45625         * lib/linebuffer.h: Likewise.
45626         * lib/locale.in.h: Likewise.
45627         * lib/logl.c: Likewise.
45628         * lib/long-options.c: Likewise.
45629         * lib/long-options.h: Likewise.
45630         * lib/lstat.c: Likewise.
45631         * lib/lstat.h: Likewise.
45632         * lib/math.in.h: Likewise.
45633         * lib/mbchar.c: Likewise.
45634         * lib/mbchar.h: Likewise.
45635         * lib/mbfile.h: Likewise.
45636         * lib/mbiter.h: Likewise.
45637         * lib/mbscasecmp.c: Likewise.
45638         * lib/mbscasestr.c: Likewise.
45639         * lib/mbschr.c: Likewise.
45640         * lib/mbscspn.c: Likewise.
45641         * lib/mbslen.c: Likewise.
45642         * lib/mbsncasecmp.c: Likewise.
45643         * lib/mbsnlen.c: Likewise.
45644         * lib/mbspbrk.c: Likewise.
45645         * lib/mbspcasecmp.c: Likewise.
45646         * lib/mbsrchr.c: Likewise.
45647         * lib/mbssep.c: Likewise.
45648         * lib/mbsspn.c: Likewise.
45649         * lib/mbsstr.c: Likewise.
45650         * lib/mbstok_r.c: Likewise.
45651         * lib/mbswidth.c: Likewise.
45652         * lib/mbswidth.h: Likewise.
45653         * lib/mbuiter.h: Likewise.
45654         * lib/memcasecmp.c: Likewise.
45655         * lib/memcasecmp.h: Likewise.
45656         * lib/memchr.c: Likewise.
45657         * lib/memcmp.c: Likewise.
45658         * lib/memcoll.c: Likewise.
45659         * lib/memcoll.h: Likewise.
45660         * lib/memcpy.c: Likewise.
45661         * lib/memrchr.c: Likewise.
45662         * lib/mkancesdirs.c: Likewise.
45663         * lib/mkdir-p.c: Likewise.
45664         * lib/mkdir-p.h: Likewise.
45665         * lib/mkdir.c: Likewise.
45666         * lib/mkdirat.c: Likewise.
45667         * lib/mkdtemp.c: Likewise.
45668         * lib/mkstemp-safer.c: Likewise.
45669         * lib/mkstemp.c: Likewise.
45670         * lib/modechange.c: Likewise.
45671         * lib/modechange.h: Likewise.
45672         * lib/mountlist.c: Likewise.
45673         * lib/mountlist.h: Likewise.
45674         * lib/mpsort.c: Likewise.
45675         * lib/nanosleep.c: Likewise.
45676         * lib/obstack.c: Likewise.
45677         * lib/obstack.h: Likewise.
45678         * lib/open-safer.c: Likewise.
45679         * lib/open.c: Likewise.
45680         * lib/openat-die.c: Likewise.
45681         * lib/openat-priv.h: Likewise.
45682         * lib/openat-proc.c: Likewise.
45683         * lib/openat.c: Likewise.
45684         * lib/openat.h: Likewise.
45685         * lib/pagealign_alloc.c: Likewise.
45686         * lib/pagealign_alloc.h: Likewise.
45687         * lib/physmem.c: Likewise.
45688         * lib/physmem.h: Likewise.
45689         * lib/pipe-safer.c: Likewise.
45690         * lib/pipe.c: Likewise.
45691         * lib/pipe.h: Likewise.
45692         * lib/posixtm.c: Likewise.
45693         * lib/posixtm.h: Likewise.
45694         * lib/posixver.c: Likewise.
45695         * lib/printf-frexp.c: Likewise.
45696         * lib/printf-frexp.h: Likewise.
45697         * lib/printf-frexpl.c: Likewise.
45698         * lib/printf-frexpl.h: Likewise.
45699         * lib/printf.c: Likewise.
45700         * lib/progname.c: Likewise.
45701         * lib/progname.h: Likewise.
45702         * lib/progreloc.c: Likewise.
45703         * lib/putenv.c: Likewise.
45704         * lib/quote.c: Likewise.
45705         * lib/quote.h: Likewise.
45706         * lib/quotearg.c: Likewise.
45707         * lib/quotearg.h: Likewise.
45708         * lib/raise.c: Likewise.
45709         * lib/readline.c: Likewise.
45710         * lib/readline.h: Likewise.
45711         * lib/readlink.c: Likewise.
45712         * lib/readtokens.c: Likewise.
45713         * lib/readtokens.h: Likewise.
45714         * lib/readtokens0.c: Likewise.
45715         * lib/readtokens0.h: Likewise.
45716         * lib/readutmp.c: Likewise.
45717         * lib/readutmp.h: Likewise.
45718         * lib/realloc.c: Likewise.
45719         * lib/relocwrapper.c: Likewise.
45720         * lib/rename-dest-slash.c: Likewise.
45721         * lib/rename.c: Likewise.
45722         * lib/rmdir.c: Likewise.
45723         * lib/rpmatch.c: Likewise.
45724         * lib/safe-read.c: Likewise.
45725         * lib/safe-read.h: Likewise.
45726         * lib/safe-write.c: Likewise.
45727         * lib/safe-write.h: Likewise.
45728         * lib/same-inode.h: Likewise.
45729         * lib/same.c: Likewise.
45730         * lib/same.h: Likewise.
45731         * lib/save-cwd.c: Likewise.
45732         * lib/save-cwd.h: Likewise.
45733         * lib/savedir.c: Likewise.
45734         * lib/savedir.h: Likewise.
45735         * lib/savewd.c: Likewise.
45736         * lib/savewd.h: Likewise.
45737         * lib/search.in.h: Likewise.
45738         * lib/setenv.c: Likewise.
45739         * lib/setenv.h: Likewise.
45740         * lib/settime.c: Likewise.
45741         * lib/sh-quote.c: Likewise.
45742         * lib/sh-quote.h: Likewise.
45743         * lib/sig2str.c: Likewise.
45744         * lib/sig2str.h: Likewise.
45745         * lib/signal.in.h: Likewise.
45746         * lib/signbitd.c: Likewise.
45747         * lib/signbitf.c: Likewise.
45748         * lib/signbitl.c: Likewise.
45749         * lib/sigprocmask.c: Likewise.
45750         * lib/sincosl.c: Likewise.
45751         * lib/sleep.c: Likewise.
45752         * lib/sprintf.c: Likewise.
45753         * lib/sqrtl.c: Likewise.
45754         * lib/stat-time.h: Likewise.
45755         * lib/stdio--.h: Likewise.
45756         * lib/stdio-safer.h: Likewise.
45757         * lib/stdlib--.h: Likewise.
45758         * lib/stdlib-safer.h: Likewise.
45759         * lib/stdlib.in.h: Likewise.
45760         * lib/stpcpy.c: Likewise.
45761         * lib/stpncpy.c: Likewise.
45762         * lib/strchrnul.c: Likewise.
45763         * lib/strcspn.c: Likewise.
45764         * lib/strerror.c: Likewise.
45765         * lib/strftime.c: Likewise.
45766         * lib/strftime.h: Likewise.
45767         * lib/striconveh.c: Likewise.
45768         * lib/striconveh.h: Likewise.
45769         * lib/striconveha.c: Likewise.
45770         * lib/striconveha.h: Likewise.
45771         * lib/stripslash.c: Likewise.
45772         * lib/strnlen1.c: Likewise.
45773         * lib/strnlen1.h: Likewise.
45774         * lib/strtod.c: Likewise.
45775         * lib/strtoimax.c: Likewise.
45776         * lib/strtok_r.c: Likewise.
45777         * lib/strtol.c: Likewise.
45778         * lib/strtoll.c: Likewise.
45779         * lib/strtoul.c: Likewise.
45780         * lib/strtoull.c: Likewise.
45781         * lib/sysexits.in.h: Likewise.
45782         * lib/tempname.c: Likewise.
45783         * lib/tempname.h: Likewise.
45784         * lib/timespec.h: Likewise.
45785         * lib/tls.c: Likewise.
45786         * lib/tls.h: Likewise.
45787         * lib/tmpdir.c: Likewise.
45788         * lib/tmpdir.h: Likewise.
45789         * lib/tmpfile-safer.c: Likewise.
45790         * lib/tmpfile.c: Likewise.
45791         * lib/trigl.c: Likewise.
45792         * lib/trigl.h: Likewise.
45793         * lib/trim.c: Likewise.
45794         * lib/trim.h: Likewise.
45795         * lib/trunc.c: Likewise.
45796         * lib/truncf.c: Likewise.
45797         * lib/truncl.c: Likewise.
45798         * lib/tsearch.c: Likewise.
45799         * lib/unicodeio.c: Likewise.
45800         * lib/unicodeio.h: Likewise.
45801         * lib/unistd--.h: Likewise.
45802         * lib/unistd-safer.h: Likewise.
45803         * lib/unistdio/ulc-fprintf.c: Likewise.
45804         * lib/unistdio/ulc-vfprintf.c: Likewise.
45805         * lib/unlinkdir.c: Likewise.
45806         * lib/unlinkdir.h: Likewise.
45807         * lib/unlocked-io.h: Likewise.
45808         * lib/unsetenv.c: Likewise.
45809         * lib/userspec.c: Likewise.
45810         * lib/utime.c: Likewise.
45811         * lib/utimecmp.c: Likewise.
45812         * lib/utimecmp.h: Likewise.
45813         * lib/utimens.c: Likewise.
45814         * lib/verify.h: Likewise.
45815         * lib/verror.c: Likewise.
45816         * lib/verror.h: Likewise.
45817         * lib/version-etc-fsf.c: Likewise.
45818         * lib/version-etc.c: Likewise.
45819         * lib/version-etc.h: Likewise.
45820         * lib/vfprintf.c: Likewise.
45821         * lib/vprintf.c: Likewise.
45822         * lib/vsprintf.c: Likewise.
45823         * lib/w32spawn.h: Likewise.
45824         * lib/wait-process.c: Likewise.
45825         * lib/wait-process.h: Likewise.
45826         * lib/wcwidth.c: Likewise.
45827         * lib/write-any-file.c: Likewise.
45828         * lib/xalloc-die.c: Likewise.
45829         * lib/xalloc.h: Likewise.
45830         * lib/xasprintf.c: Likewise.
45831         * lib/xgetcwd.c: Likewise.
45832         * lib/xgetcwd.h: Likewise.
45833         * lib/xgetdomainname.c: Likewise.
45834         * lib/xgetdomainname.h: Likewise.
45835         * lib/xgethostname.c: Likewise.
45836         * lib/xmalloc.c: Likewise.
45837         * lib/xmalloca.c: Likewise.
45838         * lib/xmalloca.h: Likewise.
45839         * lib/xmemcoll.c: Likewise.
45840         * lib/xnanosleep.c: Likewise.
45841         * lib/xreadlink.c: Likewise.
45842         * lib/xreadlink.h: Likewise.
45843         * lib/xsetenv.c: Likewise.
45844         * lib/xsetenv.h: Likewise.
45845         * lib/xstriconv.c: Likewise.
45846         * lib/xstriconv.h: Likewise.
45847         * lib/xstrndup.c: Likewise.
45848         * lib/xstrndup.h: Likewise.
45849         * lib/xstrtod.c: Likewise.
45850         * lib/xstrtod.h: Likewise.
45851         * lib/xstrtol-error.c: Likewise.
45852         * lib/xstrtol.c: Likewise.
45853         * lib/xstrtol.h: Likewise.
45854         * lib/xtime.h: Likewise.
45855         * lib/xvasprintf.c: Likewise.
45856         * lib/xvasprintf.h: Likewise.
45857         * lib/yesno.c: Likewise.
45858         * lib/yesno.h: Likewise.
45859         * posix-modules: Likewise.
45860         * tests/test-alloca-opt.c: Likewise.
45861         * tests/test-arcfour.c: Likewise.
45862         * tests/test-arctwo.c: Likewise.
45863         * tests/test-argmatch.c: Likewise.
45864         * tests/test-argp-2.sh: Likewise.
45865         * tests/test-argp.c: Likewise.
45866         * tests/test-arpa_inet.c: Likewise.
45867         * tests/test-array_list.c: Likewise.
45868         * tests/test-array_oset.c: Likewise.
45869         * tests/test-atexit.c: Likewise.
45870         * tests/test-avltree_list.c: Likewise.
45871         * tests/test-avltree_oset.c: Likewise.
45872         * tests/test-avltreehash_list.c: Likewise.
45873         * tests/test-base64.c: Likewise.
45874         * tests/test-binary-io.c: Likewise.
45875         * tests/test-byteswap.c: Likewise.
45876         * tests/test-c-ctype.c: Likewise.
45877         * tests/test-c-strcasecmp.c: Likewise.
45878         * tests/test-c-strcasestr.c: Likewise.
45879         * tests/test-c-strncasecmp.c: Likewise.
45880         * tests/test-c-strstr.c: Likewise.
45881         * tests/test-canonicalize-lgpl.c: Likewise.
45882         * tests/test-canonicalize.c: Likewise.
45883         * tests/test-carray_list.c: Likewise.
45884         * tests/test-ceilf.c: Likewise.
45885         * tests/test-ceill.c: Likewise.
45886         * tests/test-count-one-bits.c: Likewise.
45887         * tests/test-crc.c: Likewise.
45888         * tests/test-dirname.c: Likewise.
45889         * tests/test-fbufmode.c: Likewise.
45890         * tests/test-fcntl.c: Likewise.
45891         * tests/test-fflush.c: Likewise.
45892         * tests/test-floorf.c: Likewise.
45893         * tests/test-floorl.c: Likewise.
45894         * tests/test-fopen.c: Likewise.
45895         * tests/test-fprintf-posix.c: Likewise.
45896         * tests/test-fprintf-posix.h: Likewise.
45897         * tests/test-fpurge.c: Likewise.
45898         * tests/test-freadable.c: Likewise.
45899         * tests/test-freadahead.c: Likewise.
45900         * tests/test-freading.c: Likewise.
45901         * tests/test-freopen.c: Likewise.
45902         * tests/test-frexp.c: Likewise.
45903         * tests/test-frexpl.c: Likewise.
45904         * tests/test-fseek.c: Likewise.
45905         * tests/test-fseeko.c: Likewise.
45906         * tests/test-fseterr.c: Likewise.
45907         * tests/test-fstrcmp.c: Likewise.
45908         * tests/test-ftell.c: Likewise.
45909         * tests/test-ftello.c: Likewise.
45910         * tests/test-fwritable.c: Likewise.
45911         * tests/test-fwriting.c: Likewise.
45912         * tests/test-getaddrinfo.c: Likewise.
45913         * tests/test-getpass.c: Likewise.
45914         * tests/test-gettimeofday.c: Likewise.
45915         * tests/test-hmac-md5.c: Likewise.
45916         * tests/test-hmac-sha1.c: Likewise.
45917         * tests/test-iconv.c: Likewise.
45918         * tests/test-iconvme.c: Likewise.
45919         * tests/test-inttypes.c: Likewise.
45920         * tests/test-isnan.c: Likewise.
45921         * tests/test-isnanf.c: Likewise.
45922         * tests/test-isnanl-nolibm.c: Likewise.
45923         * tests/test-isnanl.c: Likewise.
45924         * tests/test-isnanl.h: Likewise.
45925         * tests/test-ldexpl.c: Likewise.
45926         * tests/test-linked_list.c: Likewise.
45927         * tests/test-linkedhash_list.c: Likewise.
45928         * tests/test-locale.c: Likewise.
45929         * tests/test-localename.c: Likewise.
45930         * tests/test-lock.c: Likewise.
45931         * tests/test-lseek.c: Likewise.
45932         * tests/test-malloca.c: Likewise.
45933         * tests/test-math.c: Likewise.
45934         * tests/test-mbscasecmp.c: Likewise.
45935         * tests/test-mbscasestr1.c: Likewise.
45936         * tests/test-mbscasestr2.c: Likewise.
45937         * tests/test-mbscasestr3.c: Likewise.
45938         * tests/test-mbscasestr4.c: Likewise.
45939         * tests/test-mbschr.c: Likewise.
45940         * tests/test-mbscspn.c: Likewise.
45941         * tests/test-mbsncasecmp.c: Likewise.
45942         * tests/test-mbspbrk.c: Likewise.
45943         * tests/test-mbspcasecmp.c: Likewise.
45944         * tests/test-mbsrchr.c: Likewise.
45945         * tests/test-mbsspn.c: Likewise.
45946         * tests/test-mbsstr1.c: Likewise.
45947         * tests/test-mbsstr2.c: Likewise.
45948         * tests/test-mbsstr3.c: Likewise.
45949         * tests/test-md5.c: Likewise.
45950         * tests/test-memmem.c: Likewise.
45951         * tests/test-netinet_in.c: Likewise.
45952         * tests/test-open.c: Likewise.
45953         * tests/test-printf-frexp.c: Likewise.
45954         * tests/test-printf-frexpl.c: Likewise.
45955         * tests/test-printf-posix.c: Likewise.
45956         * tests/test-printf-posix.h: Likewise.
45957         * tests/test-rbtree_list.c: Likewise.
45958         * tests/test-rbtree_oset.c: Likewise.
45959         * tests/test-rbtreehash_list.c: Likewise.
45960         * tests/test-read-file.c: Likewise.
45961         * tests/test-rijndael.c: Likewise.
45962         * tests/test-search.c: Likewise.
45963         * tests/test-signbit.c: Likewise.
45964         * tests/test-sleep.c: Likewise.
45965         * tests/test-snprintf-posix.c: Likewise.
45966         * tests/test-snprintf-posix.h: Likewise.
45967         * tests/test-snprintf.c: Likewise.
45968         * tests/test-sprintf-posix.c: Likewise.
45969         * tests/test-sprintf-posix.h: Likewise.
45970         * tests/test-stat-time.c: Likewise.
45971         * tests/test-stdbool.c: Likewise.
45972         * tests/test-stdint.c: Likewise.
45973         * tests/test-stdio.c: Likewise.
45974         * tests/test-stdlib.c: Likewise.
45975         * tests/test-stpncpy.c: Likewise.
45976         * tests/test-strcasestr.c: Likewise.
45977         * tests/test-striconv.c: Likewise.
45978         * tests/test-striconveh.c: Likewise.
45979         * tests/test-striconveha.c: Likewise.
45980         * tests/test-string.c: Likewise.
45981         * tests/test-sys_select.c: Likewise.
45982         * tests/test-sys_socket.c: Likewise.
45983         * tests/test-sys_stat.c: Likewise.
45984         * tests/test-sys_time.c: Likewise.
45985         * tests/test-sysexits.c: Likewise.
45986         * tests/test-time.c: Likewise.
45987         * tests/test-tls.c: Likewise.
45988         * tests/test-trunc.c: Likewise.
45989         * tests/test-truncf.c: Likewise.
45990         * tests/test-truncl.c: Likewise.
45991         * tests/test-unistd.c: Likewise.
45992         * tests/test-vasnprintf-posix.c: Likewise.
45993         * tests/test-vasnprintf-posix2.c: Likewise.
45994         * tests/test-vasnprintf.c: Likewise.
45995         * tests/test-vasprintf-posix.c: Likewise.
45996         * tests/test-vasprintf.c: Likewise.
45997         * tests/test-verify.c: Likewise.
45998         * tests/test-vfprintf-posix.c: Likewise.
45999         * tests/test-vprintf-posix.c: Likewise.
46000         * tests/test-vsnprintf-posix.c: Likewise.
46001         * tests/test-vsnprintf.c: Likewise.
46002         * tests/test-vsprintf-posix.c: Likewise.
46003         * tests/test-wchar.c: Likewise.
46004         * tests/test-wctype.c: Likewise.
46005         * tests/test-wcwidth.c: Likewise.
46006         * tests/test-xstrtol.c: Likewise.
46007         * tests/test-xvasprintf.c: Likewise.
46008         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46009         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46010         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46011         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46012         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46013         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46014         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46015         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46016         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46017         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46018         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46019         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46020         * tests/uniname/test-uninames.c: Likewise.
46021         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46022         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46023         * tests/unistdio/test-u16-printf1.h: Likewise.
46024         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46025         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46026         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46027         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46028         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46029         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46030         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46031         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46032         * tests/unistdio/test-u32-printf1.h: Likewise.
46033         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46034         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46035         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46036         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46037         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46038         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46039         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46040         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46041         * tests/unistdio/test-u8-printf1.h: Likewise.
46042         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46043         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46044         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46045         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46046         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46047         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46048         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46049         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46050         * tests/unistdio/test-ulc-printf1.h: Likewise.
46051         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46052         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46053         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46054         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46055         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46056         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46057         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46058         * tests/uniwidth/test-u16-width.c: Likewise.
46059         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46060         * tests/uniwidth/test-u32-width.c: Likewise.
46061         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46062         * tests/uniwidth/test-u8-width.c: Likewise.
46063         * tests/uniwidth/test-uc_width.c: Likewise.
46064         * config/srclist-update: Likewise.
46065         (fixlicense): Update to GPLv3+.
46066
46067         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46068         * tests/test-tsearch.c: Change copyright notice.
46069
46070         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46071         * lib/c-strcaseeq.h: Change copyright notice.
46072         * lib/streq.h: Likewise.
46073         * lib/uniconv.h: Likewise.
46074         * lib/uniconv/u-conv-from-enc.h: Likewise.
46075         * lib/uniconv/u-conv-to-enc.h: Likewise.
46076         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46077         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46078         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46079         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46080         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46081         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46082         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46083         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46084         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46085         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46086         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46087         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46088         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46089         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46090         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46091         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46092         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46093         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46094         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46095         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46096         * lib/uniname.h: Likewise.
46097         * lib/uniname/uniname.c: Likewise.
46098         * lib/unistdio.h: Likewise.
46099         * lib/unistdio/u-asnprintf.h: Likewise.
46100         * lib/unistdio/u-asprintf.h: Likewise.
46101         * lib/unistdio/u-printf-args.c: Likewise.
46102         * lib/unistdio/u-printf-args.h: Likewise.
46103         * lib/unistdio/u-printf-parse.h: Likewise.
46104         * lib/unistdio/u-snprintf.h: Likewise.
46105         * lib/unistdio/u-sprintf.h: Likewise.
46106         * lib/unistdio/u-vasprintf.h: Likewise.
46107         * lib/unistdio/u-vsnprintf.h: Likewise.
46108         * lib/unistdio/u-vsprintf.h: Likewise.
46109         * lib/unistdio/u16-asnprintf.c: Likewise.
46110         * lib/unistdio/u16-asprintf.c: Likewise.
46111         * lib/unistdio/u16-printf-parse.c: Likewise.
46112         * lib/unistdio/u16-snprintf.c: Likewise.
46113         * lib/unistdio/u16-sprintf.c: Likewise.
46114         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46115         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46116         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46117         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46118         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46119         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46120         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46121         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46122         * lib/unistdio/u16-vasnprintf.c: Likewise.
46123         * lib/unistdio/u16-vasprintf.c: Likewise.
46124         * lib/unistdio/u16-vsnprintf.c: Likewise.
46125         * lib/unistdio/u16-vsprintf.c: Likewise.
46126         * lib/unistdio/u32-asnprintf.c: Likewise.
46127         * lib/unistdio/u32-asprintf.c: Likewise.
46128         * lib/unistdio/u32-printf-parse.c: Likewise.
46129         * lib/unistdio/u32-snprintf.c: Likewise.
46130         * lib/unistdio/u32-sprintf.c: Likewise.
46131         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46132         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46133         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46134         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46135         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46136         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46137         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46138         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46139         * lib/unistdio/u32-vasnprintf.c: Likewise.
46140         * lib/unistdio/u32-vasprintf.c: Likewise.
46141         * lib/unistdio/u32-vsnprintf.c: Likewise.
46142         * lib/unistdio/u32-vsprintf.c: Likewise.
46143         * lib/unistdio/u8-asnprintf.c: Likewise.
46144         * lib/unistdio/u8-asprintf.c: Likewise.
46145         * lib/unistdio/u8-printf-parse.c: Likewise.
46146         * lib/unistdio/u8-snprintf.c: Likewise.
46147         * lib/unistdio/u8-sprintf.c: Likewise.
46148         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46149         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46150         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46151         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46152         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46153         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46154         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46155         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46156         * lib/unistdio/u8-vasnprintf.c: Likewise.
46157         * lib/unistdio/u8-vasprintf.c: Likewise.
46158         * lib/unistdio/u8-vsnprintf.c: Likewise.
46159         * lib/unistdio/u8-vsprintf.c: Likewise.
46160         * lib/unistdio/ulc-asnprintf.c: Likewise.
46161         * lib/unistdio/ulc-asprintf.c: Likewise.
46162         * lib/unistdio/ulc-printf-parse.c: Likewise.
46163         * lib/unistdio/ulc-snprintf.c: Likewise.
46164         * lib/unistdio/ulc-sprintf.c: Likewise.
46165         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46166         * lib/unistdio/ulc-vasprintf.c: Likewise.
46167         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46168         * lib/unistdio/ulc-vsprintf.c: Likewise.
46169         * lib/unistr.h: Likewise.
46170         * lib/unistr/u-cpy-alloc.h: Likewise.
46171         * lib/unistr/u-cpy.h: Likewise.
46172         * lib/unistr/u-endswith.h: Likewise.
46173         * lib/unistr/u-move.h: Likewise.
46174         * lib/unistr/u-set.h: Likewise.
46175         * lib/unistr/u-startswith.h: Likewise.
46176         * lib/unistr/u-stpcpy.h: Likewise.
46177         * lib/unistr/u-stpncpy.h: Likewise.
46178         * lib/unistr/u-strcat.h: Likewise.
46179         * lib/unistr/u-strcpy.h: Likewise.
46180         * lib/unistr/u-strcspn.h: Likewise.
46181         * lib/unistr/u-strdup.h: Likewise.
46182         * lib/unistr/u-strlen.h: Likewise.
46183         * lib/unistr/u-strncat.h: Likewise.
46184         * lib/unistr/u-strncpy.h: Likewise.
46185         * lib/unistr/u-strnlen.h: Likewise.
46186         * lib/unistr/u-strpbrk.h: Likewise.
46187         * lib/unistr/u-strspn.h: Likewise.
46188         * lib/unistr/u-strstr.h: Likewise.
46189         * lib/unistr/u-strtok.h: Likewise.
46190         * lib/unistr/u16-check.c: Likewise.
46191         * lib/unistr/u16-chr.c: Likewise.
46192         * lib/unistr/u16-cmp.c: Likewise.
46193         * lib/unistr/u16-cpy-alloc.c: Likewise.
46194         * lib/unistr/u16-cpy.c: Likewise.
46195         * lib/unistr/u16-endswith.c: Likewise.
46196         * lib/unistr/u16-mblen.c: Likewise.
46197         * lib/unistr/u16-mbsnlen.c: Likewise.
46198         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46199         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46200         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46201         * lib/unistr/u16-mbtouc.c: Likewise.
46202         * lib/unistr/u16-mbtoucr.c: Likewise.
46203         * lib/unistr/u16-move.c: Likewise.
46204         * lib/unistr/u16-next.c: Likewise.
46205         * lib/unistr/u16-prev.c: Likewise.
46206         * lib/unistr/u16-set.c: Likewise.
46207         * lib/unistr/u16-startswith.c: Likewise.
46208         * lib/unistr/u16-stpcpy.c: Likewise.
46209         * lib/unistr/u16-stpncpy.c: Likewise.
46210         * lib/unistr/u16-strcat.c: Likewise.
46211         * lib/unistr/u16-strchr.c: Likewise.
46212         * lib/unistr/u16-strcmp.c: Likewise.
46213         * lib/unistr/u16-strcpy.c: Likewise.
46214         * lib/unistr/u16-strcspn.c: Likewise.
46215         * lib/unistr/u16-strdup.c: Likewise.
46216         * lib/unistr/u16-strlen.c: Likewise.
46217         * lib/unistr/u16-strmblen.c: Likewise.
46218         * lib/unistr/u16-strmbtouc.c: Likewise.
46219         * lib/unistr/u16-strncat.c: Likewise.
46220         * lib/unistr/u16-strncmp.c: Likewise.
46221         * lib/unistr/u16-strncpy.c: Likewise.
46222         * lib/unistr/u16-strnlen.c: Likewise.
46223         * lib/unistr/u16-strpbrk.c: Likewise.
46224         * lib/unistr/u16-strrchr.c: Likewise.
46225         * lib/unistr/u16-strspn.c: Likewise.
46226         * lib/unistr/u16-strstr.c: Likewise.
46227         * lib/unistr/u16-strtok.c: Likewise.
46228         * lib/unistr/u16-to-u32.c: Likewise.
46229         * lib/unistr/u16-to-u8.c: Likewise.
46230         * lib/unistr/u16-uctomb-aux.c: Likewise.
46231         * lib/unistr/u16-uctomb.c: Likewise.
46232         * lib/unistr/u32-check.c: Likewise.
46233         * lib/unistr/u32-chr.c: Likewise.
46234         * lib/unistr/u32-cmp.c: Likewise.
46235         * lib/unistr/u32-cpy-alloc.c: Likewise.
46236         * lib/unistr/u32-cpy.c: Likewise.
46237         * lib/unistr/u32-endswith.c: Likewise.
46238         * lib/unistr/u32-mblen.c: Likewise.
46239         * lib/unistr/u32-mbsnlen.c: Likewise.
46240         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46241         * lib/unistr/u32-mbtouc.c: Likewise.
46242         * lib/unistr/u32-mbtoucr.c: Likewise.
46243         * lib/unistr/u32-move.c: Likewise.
46244         * lib/unistr/u32-next.c: Likewise.
46245         * lib/unistr/u32-prev.c: Likewise.
46246         * lib/unistr/u32-set.c: Likewise.
46247         * lib/unistr/u32-startswith.c: Likewise.
46248         * lib/unistr/u32-stpcpy.c: Likewise.
46249         * lib/unistr/u32-stpncpy.c: Likewise.
46250         * lib/unistr/u32-strcat.c: Likewise.
46251         * lib/unistr/u32-strchr.c: Likewise.
46252         * lib/unistr/u32-strcmp.c: Likewise.
46253         * lib/unistr/u32-strcpy.c: Likewise.
46254         * lib/unistr/u32-strcspn.c: Likewise.
46255         * lib/unistr/u32-strdup.c: Likewise.
46256         * lib/unistr/u32-strlen.c: Likewise.
46257         * lib/unistr/u32-strmblen.c: Likewise.
46258         * lib/unistr/u32-strmbtouc.c: Likewise.
46259         * lib/unistr/u32-strncat.c: Likewise.
46260         * lib/unistr/u32-strncmp.c: Likewise.
46261         * lib/unistr/u32-strncpy.c: Likewise.
46262         * lib/unistr/u32-strnlen.c: Likewise.
46263         * lib/unistr/u32-strpbrk.c: Likewise.
46264         * lib/unistr/u32-strrchr.c: Likewise.
46265         * lib/unistr/u32-strspn.c: Likewise.
46266         * lib/unistr/u32-strstr.c: Likewise.
46267         * lib/unistr/u32-strtok.c: Likewise.
46268         * lib/unistr/u32-to-u16.c: Likewise.
46269         * lib/unistr/u32-to-u8.c: Likewise.
46270         * lib/unistr/u32-uctomb.c: Likewise.
46271         * lib/unistr/u8-check.c: Likewise.
46272         * lib/unistr/u8-chr.c: Likewise.
46273         * lib/unistr/u8-cmp.c: Likewise.
46274         * lib/unistr/u8-cpy-alloc.c: Likewise.
46275         * lib/unistr/u8-cpy.c: Likewise.
46276         * lib/unistr/u8-endswith.c: Likewise.
46277         * lib/unistr/u8-mblen.c: Likewise.
46278         * lib/unistr/u8-mbsnlen.c: Likewise.
46279         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46280         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46281         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46282         * lib/unistr/u8-mbtouc.c: Likewise.
46283         * lib/unistr/u8-mbtoucr.c: Likewise.
46284         * lib/unistr/u8-move.c: Likewise.
46285         * lib/unistr/u8-next.c: Likewise.
46286         * lib/unistr/u8-prev.c: Likewise.
46287         * lib/unistr/u8-set.c: Likewise.
46288         * lib/unistr/u8-startswith.c: Likewise.
46289         * lib/unistr/u8-stpcpy.c: Likewise.
46290         * lib/unistr/u8-stpncpy.c: Likewise.
46291         * lib/unistr/u8-strcat.c: Likewise.
46292         * lib/unistr/u8-strchr.c: Likewise.
46293         * lib/unistr/u8-strcmp.c: Likewise.
46294         * lib/unistr/u8-strcpy.c: Likewise.
46295         * lib/unistr/u8-strcspn.c: Likewise.
46296         * lib/unistr/u8-strdup.c: Likewise.
46297         * lib/unistr/u8-strlen.c: Likewise.
46298         * lib/unistr/u8-strmblen.c: Likewise.
46299         * lib/unistr/u8-strmbtouc.c: Likewise.
46300         * lib/unistr/u8-strncat.c: Likewise.
46301         * lib/unistr/u8-strncmp.c: Likewise.
46302         * lib/unistr/u8-strncpy.c: Likewise.
46303         * lib/unistr/u8-strnlen.c: Likewise.
46304         * lib/unistr/u8-strpbrk.c: Likewise.
46305         * lib/unistr/u8-strrchr.c: Likewise.
46306         * lib/unistr/u8-strspn.c: Likewise.
46307         * lib/unistr/u8-strstr.c: Likewise.
46308         * lib/unistr/u8-strtok.c: Likewise.
46309         * lib/unistr/u8-to-u16.c: Likewise.
46310         * lib/unistr/u8-to-u32.c: Likewise.
46311         * lib/unistr/u8-uctomb-aux.c: Likewise.
46312         * lib/unistr/u8-uctomb.c: Likewise.
46313         * lib/unitypes.h: Likewise.
46314         * lib/uniwidth.h: Likewise.
46315         * lib/uniwidth/cjk.h: Likewise.
46316         * lib/uniwidth/u16-strwidth.c: Likewise.
46317         * lib/uniwidth/u16-width.c: Likewise.
46318         * lib/uniwidth/u32-strwidth.c: Likewise.
46319         * lib/uniwidth/u32-width.c: Likewise.
46320         * lib/uniwidth/u8-strwidth.c: Likewise.
46321         * lib/uniwidth/u8-width.c: Likewise.
46322         * lib/uniwidth/width.c: Likewise.
46323
46324 2007-10-07  Bruno Haible  <bruno@clisp.org>
46325
46326         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46327         The file is still under LGPL (see modules/inttypes).
46328
46329 2007-10-06  Bruno Haible  <bruno@clisp.org>
46330
46331         * modules/trunc (Dependencies): Add 'extensions'.
46332         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46333         Reported by Ben Pfaff <blp@gnu.org>.
46334
46335 2007-10-06  Bruno Haible  <bruno@clisp.org>
46336
46337         * modules/freopen-tests: New file.
46338         * tests/test-freopen.c: New file.
46339
46340         * modules/fopen-tests: New file.
46341         * tests/test-fopen.c: New file.
46342
46343         * modules/fopen: New file.
46344         * lib/fopen.c: New file.
46345         * m4/fopen.m4: New file.
46346         * modules/freopen: New file.
46347         * lib/freopen.c: New file.
46348         * m4/freopen.m4: New file.
46349         * lib/stdio.in.h (fopen, freopen): New declarations.
46350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46351         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46352         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46353         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46354         * doc/functions/fopen.texi: Mention the 'fopen' module.
46355         * doc/functions/freopen.texi: Mention the 'freopen' module.
46356
46357 2007-10-06  Bruno Haible  <bruno@clisp.org>
46358
46359         * modules/open-tests: New file.
46360         * tests/test-open.c: New file.
46361
46362         * modules/open: New file.
46363         * lib/open.c: New file.
46364         * m4/open.m4: New file.
46365         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46366         lib/open.c does.
46367         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46368         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46369         macros.
46370         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46371         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46372         REPLACE_OPEN.
46373         * doc/functions/open.texi: Mention the 'open' module.
46374
46375 2007-10-04  Bruno Haible  <bruno@clisp.org>
46376
46377         * modules/ceill-tests: New file.
46378         * tests/test-ceill.c: New file.
46379
46380         * modules/ceill: New file.
46381         * lib/ceill.c: Replace entire file.
46382         * m4/ceill.m4: New file.
46383         * lib/math.in.h (ceill): Replace declaration.
46384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46385         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46386         * doc/functions/ceill.texi: Mention the 'ceill' module.
46387         * modules/mathl (Files): Remove lib/ceill.c.
46388         (Depends-on): Add ceill.
46389
46390 2007-10-04  Bruno Haible  <bruno@clisp.org>
46391
46392         * modules/ceilf-tests: New file.
46393         * tests/test-ceilf.c: New file.
46394
46395         * modules/ceilf: New file.
46396         * lib/ceil.c: New file.
46397         * lib/ceilf.c: New file.
46398         * m4/ceilf.m4: New file.
46399         * lib/math.in.h (ceilf): New declaration.
46400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46401         HAVE_DECL_CEILF.
46402         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46403         HAVE_DECL_CEILF.
46404         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46405
46406 2007-10-04  Bruno Haible  <bruno@clisp.org>
46407
46408         * modules/floorl-tests: New file.
46409         * tests/test-floorl.c: New file.
46410
46411         * modules/floorl: New file.
46412         * lib/floorl.c: Replace entire file.
46413         * m4/floorl.m4: New file.
46414         * lib/math.in.h (floorl): Replace declaration.
46415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46416         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46417         * doc/functions/floorl.texi: Mention the 'floorl' module.
46418         * modules/mathl (Files): Remove lib/floorl.c.
46419         (Depends-on): Add floorl.
46420
46421 2007-10-04  Bruno Haible  <bruno@clisp.org>
46422
46423         * modules/floorf-tests: New file.
46424         * tests/test-floorf.c: New file.
46425
46426         * modules/floorf: New file.
46427         * lib/floor.c: New file.
46428         * lib/floorf.c: New file.
46429         * m4/floorf.m4: New file.
46430         * lib/math.in.h (floorf): New declaration.
46431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46432         HAVE_DECL_FLOORF.
46433         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46434         HAVE_DECL_FLOORF.
46435         * doc/functions/floorf.texi: Mention the 'floorf' module.
46436
46437 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46438             Bruno Haible  <bruno@clisp.org>
46439
46440         Advertise for the Git server instead of the CVS server.
46441         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46442         repository instead of the CVS one.
46443         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46444         about all VCS systems generically.
46445         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46446
46447 2007-10-04  Bruno Haible  <bruno@clisp.org>
46448
46449         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46450         means.
46451         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46452
46453 2007-10-04  Bruno Haible  <bruno@clisp.org>
46454
46455         * modules/truncl-tests: New file.
46456         * tests/test-truncl.c: New file.
46457
46458         * modules/truncl: New file.
46459         * lib/truncl.c: New file.
46460         * m4/truncl.m4: New file.
46461         * lib/math.in.h (truncl): New declaration.
46462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46463         HAVE_DECL_TRUNCL.
46464         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46465         HAVE_DECL_TRUNCL.
46466         * doc/functions/truncl.texi: Mention the 'truncl' module.
46467
46468 2007-10-04  Bruno Haible  <bruno@clisp.org>
46469
46470         * modules/truncf-tests: New file.
46471         * tests/test-truncf.c: New file.
46472
46473         * modules/truncf: New file.
46474         * lib/trunc.c: Make paramerizable through USE_* macros.
46475         * lib/truncf.c: New file.
46476         * m4/truncf.m4: New file.
46477         * lib/math.in.h (truncf): New declaration.
46478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46479         HAVE_DECL_TRUNCF.
46480         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46481         HAVE_DECL_TRUNCF.
46482         * doc/functions/truncf.texi: Mention the 'truncf' module.
46483
46484 2007-10-03  Bruno Haible  <bruno@clisp.org>
46485
46486         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46487         augmentation also for tests modules.
46488         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46489         * modules/atexit-tests (Makefile.am): Likewise.
46490         * modules/binary-io-tests (Makefile.am): Likewise.
46491         * modules/c-strcase-tests (Makefile.am): Likewise.
46492         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46493         * modules/canonicalize-tests (Makefile.am): Likewise.
46494         * modules/closein-tests (Makefile.am): Likewise.
46495         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46496         * modules/freadahead-tests (Makefile.am): Likewise.
46497         * modules/fseek-tests (Makefile.am): Likewise.
46498         * modules/fseeko-tests (Makefile.am): Likewise.
46499         * modules/ftell-tests (Makefile.am): Likewise.
46500         * modules/ftello-tests (Makefile.am): Likewise.
46501         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46502         * modules/isnanl-tests (Makefile.am): Likewise.
46503         * modules/lseek-tests (Makefile.am): Likewise.
46504         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46505         * modules/mbscasestr-tests (Makefile.am): Likewise.
46506         * modules/mbschr-tests (Makefile.am): Likewise.
46507         * modules/mbscspn-tests (Makefile.am): Likewise.
46508         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46509         * modules/mbspbrk-tests (Makefile.am): Likewise.
46510         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46511         * modules/mbsrchr-tests (Makefile.am): Likewise.
46512         * modules/mbsspn-tests (Makefile.am): Likewise.
46513         * modules/mbsstr-tests (Makefile.am): Likewise.
46514         * modules/printf-posix-tests (Makefile.am): Likewise.
46515         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46516         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46517         * modules/tsearch-tests (Makefile.am): Likewise.
46518         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46519         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46520         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46521         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46522         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46523         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46524         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46525         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46526         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46527         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46528         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46529         * modules/xstrtol-tests (Makefile.am): Likewise.
46530         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46531         * modules/yesno-tests (Makefile.am): Likewise.
46532
46533 2007-10-03  Bruno Haible  <bruno@clisp.org>
46534
46535         * modules/trunc-tests: New file.
46536         * tests/test-trunc.c: New file.
46537
46538         * modules/trunc: New file.
46539         * lib/trunc.c: New file.
46540         * m4/trunc.m4: New file.
46541         * lib/math.in.h (trunc): New declaration.
46542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46543         HAVE_DECL_TRUNC.
46544         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46545         HAVE_DECL_TRUNC.
46546         * doc/functions/trunc.texi: Mention the 'trunc' module.
46547
46548 2007-10-03  Bruno Haible  <bruno@clisp.org>
46549
46550         * tests/test-fpending.c: New file, mostly copied
46551         from coreutils/lib/t-fpending.c.
46552         * modules/fpending-tests: New file.
46553
46554 2007-10-03  Bruno Haible  <bruno@clisp.org>
46555
46556         Port the stdio extensions to QNX (untested).
46557         * lib/fseterr.c (fseterr): Add support for QNX.
46558         * lib/fbufmode.c (fbufmode): Likewise.
46559         * lib/freadable.c (freadable): Likewise.
46560         * lib/fwritable.c (fwritable): Likewise.
46561         * lib/freading.c (freading): Likewise.
46562         * lib/fwriting.c (fwriting): Likewise.
46563         * lib/freadahead.c (freadahed): Likewise.
46564         * lib/fpurge.c (fpurge): Likewise.
46565         * lib/fseeko.c (rpl_fseeko): Likewise.
46566
46567 2007-10-03  Bruno Haible  <bruno@clisp.org>
46568             Jim Meyering  <jim@meyering.net>
46569             Eric Blake  <ebb9@byu.net>
46570
46571         * doc/relocatable.texi: Use @command instead of @program.
46572
46573 2007-10-02  Jim Meyering  <jim@meyering.net>
46574
46575         Perform one more "_.h" -> ".in.h" substitution.
46576         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46577         instead of unistd_.h here, too.
46578
46579 2007-10-01  Bruno Haible  <bruno@clisp.org>
46580
46581         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46582         Needed for the alloca-opt module.
46583
46584 2007-09-30  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46587         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46588         alloca_.h.
46589         * lib/argz.in.h: Renamed from lib/argz_.h.
46590         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46591         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46592         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46593         byteswap_.h.
46594         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46595         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46596         dirent_.h.
46597         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46598         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46599         fcntl_.h.
46600         * lib/float.in.h: Renamed from lib/float_.h.
46601         * modules/float (Files, Makefile.am): Use float.in.h instead of
46602         float_.h.
46603         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46604         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46605         fnmatch_.h.
46606         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46607         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46608         getopt_.h.
46609         * lib/glob.in.h: Renamed from lib/glob_.h.
46610         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46611         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46612         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46613         iconv_.h.
46614         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46615         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46616         inttypes_.h.
46617         * lib/locale.in.h: Renamed from lib/locale_.h.
46618         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46619         locale_.h.
46620         * lib/math.in.h: Renamed from lib/math_.h.
46621         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46622         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46623         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46624         of netinet_in_.h. Add dependency.
46625         * lib/poll.in.h: Renamed from lib/poll_.h.
46626         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46627         * lib/search.in.h: Renamed from lib/search_.h.
46628         * modules/search (Files, Makefile.am): Use search.in.h instead of
46629         search_.h.
46630         * lib/signal.in.h: Renamed from lib/signal_.h.
46631         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46632         _signal.h.
46633         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46634         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46635         stdbool_.h.
46636         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46637         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46638         stdint_.h.
46639         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46640         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46641         stdio_.h.
46642         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46643         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46644         stdlib_.h.
46645         * lib/string.in.h: Renamed from lib/string_.h.
46646         * modules/string (Files, Makefile.am): Use string.in.h instead of
46647         string_.h.
46648         * doc/gnulib-tool.texi (Initial import): Update.
46649         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46650         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46651         of sys_select_.h. Add dependency.
46652         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46653         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46654         of sys_socket_.h.
46655         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46656         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46657         sys_stat_.h.
46658         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46659         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46660         sys_time_.h.
46661         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46662         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46663         sysexits_.h.
46664         * lib/time.in.h: Renamed from lib/time_.h.
46665         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46666         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46667         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46668         unistd_.h.
46669         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46670         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46671         wchar_.h.
46672         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46673         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46674         wctype_.h.
46675         * build-aux/bootstrap (slurp): Update.
46676         * lib/.cppi-disable: Update.
46677
46678 2007-09-30  Bruno Haible  <bruno@clisp.org>
46679
46680         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46681         Needed on BeOS.
46682
46683 2007-09-30  Bruno Haible  <bruno@clisp.org>
46684
46685         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46686
46687 2007-09-29  Bruno Haible  <bruno@clisp.org>
46688
46689         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46690
46691 2007-09-29  Bruno Haible  <bruno@clisp.org>
46692
46693         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46694         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46695         * build-aux/install-reloc: Compile also areadlink.c.
46696         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46697
46698 2007-09-29  Bruno Haible  <bruno@clisp.org>
46699
46700         * gnulib-tool (func_emit_initmacro_done): Indentation.
46701
46702 2007-09-29  Bruno Haible  <bruno@clisp.org>
46703
46704         * README: Add CVS checkout update instructions.
46705         Info from Bob Proulx <bob@proulx.com>.
46706
46707 2007-09-28  Eric Blake  <ebb9@byu.net>
46708
46709         Provide move-if-change.
46710         * build-aux/move-if-change: New file, based on best practice
46711         rather than any canonical upstream location.
46712
46713 2007-09-28  Jim Meyering  <jim@meyering.net>
46714
46715         Fix canonicalize loop-detection corner case.
46716         Do not attempt to stat the symlink values stored via seen_triple.
46717         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46718         on linux-2.6.18, (but not 2.6.22).
46719         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46720         triple_compare.  The former compares dev,ino,filename, while the latter
46721         would actually stat dirname(filename) when dev and ino were equal.
46722         * lib/hash-triple.c: Install <string.h>.
46723         (STREQ): Define.
46724         (triple_compare_ino_str): New function.
46725         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46726
46727 2007-09-28  Eric Blake  <ebb9@byu.net>
46728
46729         Enforce that AC_REPLACE_FUNCS files exist.
46730         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46731         override check for typos.
46732
46733         Fix test-closein on Solaris 10.
46734         * tests/test-closein.c (main): Don't assume stdin can be inherited
46735         closed on all systems.
46736         * tests/test-closein.sh: Likewise.
46737         Reported by Piotr Tarnowski.
46738
46739 2007-09-28  Jim Meyering  <jim@meyering.net>
46740
46741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46742
46743 2007-09-27  Jim Meyering  <jim@meyering.net>
46744
46745         canonicalize: Avoid a false-positive cycle failure.
46746         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46747         Sort.  Remove cycle-check.
46748         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46749         not cycle-check.h.
46750         (seen_triple): New function.
46751         (canonicalize_filename_mode): Use it instead of cycle-check.
46752         * tests/test-canonicalize.c: Add a test for this bug.
46753         * tests/test-canonicalize.sh: Set up and run the test.
46754
46755         New module, file-set, from coreutils.
46756         * modules/file-set: Define it.
46757         * lib/file-set.c, lib/file-set.h: Implement.
46758
46759         New module, hash-triple, from coreutils.
46760         * modules/hash-triple: Define it.
46761         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46762
46763 2007-09-25  Eric Blake  <ebb9@byu.net>
46764
46765         Fix strerror on Interix.
46766         * lib/string_.h (strerror): Declare replacement.
46767         * doc/functions/strerror.texi (strerror): Document the Interix
46768         shortcoming.
46769         * modules/string (Makefile.am): Support new hooks.
46770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46771         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46772         gl_FUNC_STRERROR_SEPARATE.
46773         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46774         * lib/strerror.c (rpl_strerror): Provide replacement.
46775         * modules/strerror (Depends-on): Add string.
46776         (configure.ac): Detect use of module.
46777         * tests/test-strerror.c: New file.
46778         * modules/strerror-tests: New test module.
46779         * modules/argp (Depends-on): Add strerror.
46780         * modules/error (Depends-on): Likewise.
46781         Reported by Martin Koeppe.
46782
46783 2007-09-24  Bruno Haible  <bruno@clisp.org>
46784
46785         * README: Update git instructions.
46786
46787 2007-09-24  Eric Blake  <ebb9@byu.net>
46788
46789         Revert fpending breakage from 2007-09-08.
46790         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46791         __fpending.c.
46792
46793 2007-09-24  Jim Meyering  <jim@meyering.net>
46794
46795         filenamecat.c: Add a test.
46796         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46797         showing how the function works when DIR is the empty string.
46798
46799 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46800
46801         * tests/test-canonicalize.sh: Turn on executable bit.
46802
46803 2007-09-19  Eric Blake  <ebb9@byu.net>
46804
46805         * README: Update CVS instructions.
46806
46807 2007-09-18  Bruno Haible  <bruno@clisp.org>
46808
46809         * modules/areadlink: New file.
46810         * lib/areadlink.h (areadlink): New declaration.
46811         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46812
46813 2007-09-17  Jim Meyering  <jim@meyering.net>
46814
46815         * lib/savewd.c (ESTALE) [!defined]: Define.
46816         Reported to be required on Interix by Martin Koeppe.
46817
46818 2007-09-17  Bruno Haible  <bruno@clisp.org>
46819
46820         * gnulib-tool (func_version): Use $version.
46821
46822 2007-09-16  Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46825         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46826         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46827         Reported by Greg Schafer <gschafer@zip.com.au>.
46828
46829 2007-09-15  Bruno Haible  <bruno@clisp.org>
46830
46831         * gnulib-tool (sed): Try a little harder to make bash understand the
46832         alias.
46833         Reported by Bruce Korb <bruce.korb@gmail.com>.
46834
46835 2007-09-13  Eric Blake  <ebb9@byu.net>
46836
46837         * ChangeLog: Remove conflict markers.
46838
46839 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46840
46841         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46842         Reported by Bruno Haible <bruno@clisp.org>.
46843
46844 2007-09-12  Bruno Haible  <bruno@clisp.org>
46845
46846         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46847         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46848         is not defined.
46849
46850 2007-09-12  Eric Blake  <ebb9@byu.net>
46851
46852         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46853         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46854         Autoconf definition.
46855         * modules/euidaccess (Depends-on): Add extensions, for
46856         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46857         * modules/fnmatch (Depends-on): Likewise.
46858         * modules/getaddrinfo (Depends-on): Likewise.
46859         * modules/getdelim (Depends-on): Likewise.
46860         * modules/getline (Depends-on): Likewise.
46861         * modules/getsubopt (Depends-on): Likewise.
46862         * modules/gettext (Depends-on): Likewise.
46863         * modules/group-member (Depends-on): Likewise.
46864         * modules/mbchar (Depends-on): Likewise.
46865         * modules/memmem (Depends-on): Likewise.
46866         * modules/mempcpy (Depends-on): Likewise.
46867         * modules/memrchr (Depends-on): Likewise.
46868         * modules/pagealign_alloc (Depends-on): Likewise.
46869         * modules/readutmp (Depends-on): Likewise.
46870         * modules/stpcpy (Depends-on): Likewise.
46871         * modules/stpncpy (Depends-on): Likewise.
46872         * modules/strchrnul (Depends-on): Likewise.
46873         * modules/strndup (Depends-on): Likewise.
46874         * modules/strsep (Depends-on): Likewise.
46875         * modules/strverscmp (Depends-on): Likewise.
46876         * modules/vasprintf (Depends-on): Likewise.
46877         * modules/wcwidth (Depends-on): Likewise.
46878         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46879         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46880         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46881         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46882         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46883         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46884         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46885         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46886         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46887         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46889         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46891         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46892         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46893         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46894         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46895         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46897         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46898         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46899         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46900         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46901         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46902         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46904         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46905         so that lock.m4 can be used in gettext without extensions module.
46906
46907 2007-09-11  Bruno Haible  <bruno@clisp.org>
46908
46909         * m4/isc-posix.m4: Remove file.
46910         Suggested by Eric Blake.
46911
46912 2007-09-11  Eric Blake  <ebb9@byu.net>
46913
46914         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46915
46916 2007-09-10  Bruno Haible  <bruno@clisp.org>
46917
46918         * posix-modules: Fix typo in error message.
46919         Reported by Matt <mkraai@beckman.com>.
46920
46921 2007-09-09  Bruno Haible  <bruno@clisp.org>
46922
46923         * doc/functions/getdelim.texi: Update list of platforms lacking the
46924         function.
46925         * doc/functions/getline.texi: Likewise.
46926
46927 2007-09-09  Jim Meyering  <jim@meyering.net>
46928
46929         * lib/hash.c (hash_initialize): Detect calloc failure.
46930         Reported by Bruno Haible.
46931
46932 2007-09-09  Bruno Haible  <bruno@clisp.org>
46933
46934         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46935         malloc or realloc fails.
46936
46937 2007-09-09  Bruno Haible  <bruno@clisp.org>
46938
46939         * modules/getcwd (Depends-on): Add malloc-posix.
46940         * modules/glob (Depends-on): Likewise.
46941         * modules/putenv (Depends-on): Likewise.
46942         * modules/strdup (Depends-on): Likewise.
46943         * modules/getdelim (Depends-on): Add realloc-posix.
46944         * modules/read-file (Depends-on): Likewise.
46945
46946 2007-09-09  Bruno Haible  <bruno@clisp.org>
46947
46948         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46949         (gl_FUNC_MALLOC_POSIX): Require it.
46950         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46951         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46952         * modules/realloc (Files): Add m4/malloc.m4.
46953         * modules/calloc (Files): Likewise.
46954
46955 2007-09-09  Bruno Haible  <bruno@clisp.org>
46956
46957         * modules/malloc-posix: New file.
46958         * modules/malloc (Depends-on): Add malloc-posix.
46959         * lib/malloc.c: Include errno.h.
46960         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46961         and a POSIX-compatible malloc into a single function. Set ENOMEM
46962         when returning NULL.
46963         * m4/malloc.m4: New file.
46964         * doc/functions/malloc.texi: Mention the malloc-posix module.
46965         * lib/stdlib_.h (malloc): New declaration.
46966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46967         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46968         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46969         and HAVE_MALLOC_POSIX.
46970
46971 2007-09-09  Bruno Haible  <bruno@clisp.org>
46972
46973         * modules/realloc-posix: New file.
46974         * modules/realloc (Depends-on): Add realloc-posix.
46975         * lib/realloc.c: Include errno.h.
46976         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46977         and a POSIX-compatible realloc into a single function. Set ENOMEM
46978         when returning NULL.
46979         * m4/realloc.m4: New file.
46980         * doc/functions/realloc.texi: Mention the realloc-posix module.
46981         * lib/stdlib_.h (realloc): New declaration.
46982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46983         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46984         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46985         and HAVE_REALLOC_POSIX.
46986
46987 2007-09-09  Bruno Haible  <bruno@clisp.org>
46988
46989         * modules/calloc-posix: New file.
46990         * modules/calloc (Depends-on): Add calloc-posix.
46991         * lib/calloc.c: Include errno.h.
46992         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46993         and a POSIX-compatible calloc into a single function. Set ENOMEM
46994         when returning NULL.
46995         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46996         * doc/functions/calloc.texi: Mention the calloc-posix module.
46997         * lib/stdlib_.h (calloc): New declaration.
46998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46999         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47000         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47001         and HAVE_CALLOC_POSIX.
47002
47003 2007-09-09  Bruno Haible  <bruno@clisp.org>
47004
47005         Allow for modules to show an arbitrary notice.
47006         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47007         * gnulib-tool: New option --extract-notice.
47008         (func_usage): Document it.
47009         (sed_extract_prog): Update.
47010         (func_get_notice): New function.
47011         (func_modules_notice): New function.
47012         (func_import, func_create_testdir): Invoke it.
47013         Suggested by Jim Meyering.
47014
47015 2007-09-09  Bruno Haible  <bruno@clisp.org>
47016
47017         * gnulib-tool: New options --verbose, --quiet.
47018         (func_usage): Document them.
47019         (verbose): New variable.
47020         (func_execute_command): New function.
47021         (func_import): Don't show the module list and the file list if
47022         $verbose < 0.
47023         (func_create_testdir): Likewise. Use func_execute_command.
47024         (func_create_megatestdir): Use func_execute_command.
47025
47026 2007-09-08  Bruno Haible  <bruno@clisp.org>
47027
47028         * gnulib-tool (func_import): Prefer rsync over wget when available,
47029         for fetching the PO files.
47030
47031 2007-09-08  Bruno Haible  <bruno@clisp.org>
47032
47033         * posix-modules: New file. Portions copied from gnulib-tool.
47034         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47035
47036 2007-09-08  Jim Meyering  <jim@meyering.net>
47037
47038         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47039         * lib/fpending.h: Rename from __fpending.h.
47040         * lib/fpending.c: Rename from __fpending.c.
47041         Include "fpending.h", not "__fpending.h".
47042         * lib/__fpending.h, lib/__fpending.c: Remove files.
47043         * modules/fpending (Files): Reflect new file names.
47044         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47045
47046 2007-09-08  Bruno Haible  <bruno@clisp.org>
47047
47048         * m4/inttypes-h.m4: Remove stub file.
47049
47050 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47051
47052         * doc/headers/stdint.texi: Discuss #include_next issue.
47053
47054 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47055
47056         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47057
47058 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47059
47060         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47061         in variable name.
47062
47063 2007-09-03  Jim Meyering  <jim@meyering.net>
47064
47065         New module: git-version-gen.
47066         * modules/git-version-gen: New file.
47067
47068         Import changes from coreutils for bootstrap script.
47069
47070         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47071
47072         bootstrap: uses rsync to download the .po files
47073         * build-aux/bootstrap (po_download_command_format): New global.
47074         (download_po_files): Use rsync.
47075         (update_po_files): Don't remove .po files after download,
47076         so future rsync runs can take advantage of the copies.
47077
47078         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47079
47080         Solve the unnecessary-.po-file-regeneration problem once and for all.
47081         * build-aux/bootstrap (download_po_files): New function, renamed from
47082         get_translations.  Now, downloads, but doesn't update LINGUAS.
47083         (update_po_files): New function.
47084
47085         bootstrap: Ignore more.
47086         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47087         uniwidth to e.g., lib/.gitignore.
47088         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47089
47090         * build-aux/bootstrap: New setting: vc_ignore.
47091         (insert_sorted_if_absent): Create $file if absent.
47092         Adapt to new, possibly empty, list: $vc_ignore.
47093
47094         bootstrap: generate more ignorable names
47095         * build-aux/bootstrap (slurp): When generating ignorable names,
47096         also map .sin to .sed, .gperf to .c, and .y to .c.
47097
47098 2007-09-03  Jim Meyering  <jim@meyering.net>
47099
47100         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47101         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47102
47103 2007-09-02  Bruno Haible  <bruno@clisp.org>
47104
47105         Fix mis-recognition of 'mcs' on QNX 6.
47106         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47107         output contains the string "Mono".
47108         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47109         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47110
47111 2007-09-01  Bruno Haible  <bruno@clisp.org>
47112
47113         Fix collision between uniwidth/* and linebreak modules.
47114         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47115         u32_width): Remove declarations.
47116         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47117         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47118         streq3, streq2, streq1, streq0): Remove functions.
47119         (STREQ): Remove macro.
47120         (is_cjk_encoding): Remove function.
47121         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47122         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47123         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47124         * NEWS: Document the change.
47125
47126 2007-09-01  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/streq.h: Add double-inclusion guard.
47129
47130 2007-09-01  Karl Berry  <karl@gnu.org>
47131
47132         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47133
47134 2007-08-28  Jim Meyering  <jim@meyering.net>
47135
47136         Rename mreadlink_with_size to areadlink_with_size.
47137         * NEWS: Document the change.
47138         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47139         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47140         * lib/mreadlink.h: Rename this to...
47141         * lib/areadlink.h: ...this.
47142         * modules/mreadlink-with-size: Rename this to...
47143         * modules/areadlink-with-size: ...this.
47144         * lib/canonicalize.c: Reflect the renaming.
47145         * modules/canonicalize: Likewise.
47146
47147 2007-08-26  Bruno Haible  <bruno@clisp.org>
47148
47149         * gnulib-tool (func_import): When deciding which files to remove,
47150         consider also dangling symbolic links.
47151         Reported by Eric Blake.
47152
47153 2007-08-26  Bruno Haible  <bruno@clisp.org>
47154
47155         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47156
47157 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47158
47159         * lib/readline.c: Don't include getline.h, the prototype is now
47160         found in stdio.h.
47161
47162 2007-08-23  Jim Meyering  <jim@meyering.net>
47163
47164         Getdelim touchup.
47165         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47166         around the funlockfile call, since funlockfile never sets errno.
47167         Don't set errno upon failed realloc.
47168
47169 2007-08-22  Eric Blake  <ebb9@byu.net>
47170
47171         Getline touchups.
47172         * lib/getdelim.c (getdelim): Revert regression that required *n to
47173         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47174         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47175         getdelim, rather than whether implementation is missing.
47176         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47177         * lib/stdio_.h (getline): Also declare if replacement is
47178         required.
47179         * doc/functions/getdelim.texi: New file.
47180         * doc/functions/getline.texi: Likewise.
47181         * doc/gnulib.texi (Function Substitutes): Add new files.
47182         Reported by Bruno Haible.
47183
47184 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47185
47186         * users.txt: Add Guile.
47187
47188 2007-08-22  Eric Blake  <ebb9@byu.net>
47189
47190         * tests/test-getdelim.c (main): Use remove, not unlink.
47191         * tests/test-getline.c (main): Likewise.
47192
47193         Move getline and getdelim into stdio.h, per POSIX 200x.
47194         * modules/getline (Files): Remove getline.h.
47195         (Depends-on): Add stdio.
47196         (configure.ac): Add module indicator.
47197         * modules/getdelim (Files): Remove getdelim.h.
47198         (Depends-on): Add stdio.
47199         (configure.ac): Add module indicator.
47200         * modules/stdio (Makefile.am): Work with new indicators.
47201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47204         * lib/getdelim.h: Delete.
47205         * lib/getline.h: Delete.
47206         * lib/stdio_.h (getdelim, getline): Declare.
47207         * modules/getdelim-tests: New module.
47208         * modules/getline-tests: Likewise.
47209         * tests/test-getdelim.c: New file.
47210         * tests/test-getline.c: Likewise.
47211         * NEWS: Document the change.
47212         * lib/getline.c: Update choice of header.
47213         * lib/csharpcomp.c: Likewise.
47214         * lib/getpass.c: Likewise.
47215         * lib/javacomp.c: Likewise.
47216         * lib/javaversion.c: Likewise.
47217         * lib/yesno.c: Likewise.
47218         * lib/getdelim.c: Likewise.
47219         (getdelim): Set errno on failure, and avoid memory leak.
47220
47221 2007-08-19  Bruno Haible  <bruno@clisp.org>
47222
47223         * modules/closein (Depends-on): Add freadahead.
47224         * lib/closein.c: Include freadahead.h.
47225         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47226         is zero.
47227
47228 2007-08-19  Bruno Haible  <bruno@clisp.org>
47229
47230         * modules/freadahead-tests: New file.
47231         * tests/test-freadahead.sh: New file.
47232         * tests/test-freadahead.c: New file.
47233
47234         * modules/freadahead: New file.
47235         * lib/freadahead.h: New file.
47236         * lib/freadahead.c: New file.
47237         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47238         fbufmode, fpurge, freadable, fwritable.
47239
47240 2007-08-19  Eric Blake  <ebb9@byu.net>
47241
47242         Test yesno in combination with closein.
47243         * lib/yesno.c (yesno): Document use of stdin.
47244         * modules/yesno-tests (Files): New module.
47245         * tests/test-yesno.c (main): New file.
47246         * tests/test-yesno.sh: Likewise.
47247
47248 2007-08-19  Bruno Haible  <bruno@clisp.org>
47249
47250         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47251         * lib/fseeko.c (rpl_fseeko): Likewise.
47252         * lib/fseterr.c (fseterr): Likewise.
47253
47254 2007-08-19  Bruno Haible  <bruno@clisp.org>
47255
47256         * tests/test-lseek.c (main): Disable a test for BeOS.
47257         * doc/functions/lseek.texi: Document the BeOS bug.
47258
47259 2007-08-19  Bruno Haible  <bruno@clisp.org>
47260             Eric Blake  <ebb9@byu.net>
47261
47262         * lib/lseek.c: Include <sys/stat.h>.
47263         (rpl_lseek): Add workaround code also for Unix platforms.
47264         Needed for BeOS.
47265         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47266         * doc/functions/lseek.texi: Document BeOS definiency.
47267
47268 2007-08-18  Bruno Haible  <bruno@clisp.org>
47269
47270         * modules/fstrcmp-tests: New file.
47271         * tests/test-fstrcmp.c: New file.
47272
47273 2007-08-18  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/fstrcmp: New file, from GNU gettext with modifications.
47276         * lib/fstrcmp.h: New file, from GNU gettext.
47277         * lib/fstrcmp.c: New file, from GNU gettext.
47278         * MODULES.html.sh (String handling): Add fstrcmp.
47279
47280 2007-08-18  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47283         'bool'.
47284         (diag, compareseq): Remove const from the ctxt argument.
47285         (USE_HEURISTIC): Undefine at the end.
47286
47287 2007-08-18  Jim Meyering  <jim@meyering.net>
47288
47289         New file: lib/idcache.h
47290         * NEWS: Mention the addition.
47291         * modules/idcache (Files): Add lib/idcache.h
47292         * lib/idcache.c: Include "idcache.h".
47293         Don't include <sys/types.h>.
47294         Add a FIXME comment.
47295         Move file-scoped "static" declarations to the top.
47296         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47297
47298 2007-08-17  Bruno Haible  <bruno@clisp.org>
47299         and Paul Eggert  <eggert@cs.ucla.edu>
47300
47301         * MODULES.html.sh: Add diffseq.
47302         * modules/diffseq: New file.
47303         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47304         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47305
47306 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47307
47308         Import changes from coreutils for bootstrap script.
47309
47310         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47311
47312         * build-aux/bootstrap (slurp): Work even in environments where
47313         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47314         current code does not slurp files whose names start with ".", and
47315         this looks like it might be a troublesome area.
47316
47317         2007-07-11  Jim Meyering  <jim@meyering.net>
47318
47319         If there's a GPL vN copyright comment, require that N == 3.
47320
47321         2007-07-08  Jim Meyering  <jim@meyering.net>
47322
47323         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47324         * build-aux/bootstrap (mam_template): Move definition out of loop.
47325
47326         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47327
47328         * build-aux/bootstrap (symlink_to_dir): Rename function from
47329         symlink_to_gnulib.  Add a directory parameter.  Update all
47330         callers.
47331         (cp_mark_as_generated): Also check for -- and link to -- files in
47332         gl/.
47333
47334         2007-07-08  Jim Meyering  <jim@meyering.net>
47335
47336         Adapt to deeper hierarchy in gnulib.
47337         * build-aux/bootstrap (symlink_to_dir): If the destination
47338         directory doesn't exist, create it. This is required at least for
47339         "lib/uniwidth/cjk.h".
47340
47341         2007-05-15  Jim Meyering  <jim@meyering.net>
47342
47343         * build-aux/bootstrap: Now that generated Makefile.am files
47344         are no longer under version control, they must be created at
47345         bootstrap time.
47346
47347 2007-08-14  Ben Pfaff  <blp@gnu.org>
47348
47349         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47350
47351 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47352
47353         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47354         given the changes below.
47355         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47356         even on hosts that have padding bits beyond the supported 64.
47357
47358 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47359
47360         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47361         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47362         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47363         depends on it.
47364         (xstrtol_error): Remove.
47365         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47366         but with a different signature.
47367         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47368         * lib/xstrtol-error.c: Include exitfail.h.
47369         (xstrtol_fatal): New function, with a different signature from the
47370         old xstrtol_error, so that the caller need not worry about passing
47371         in an exit status, or about storage management of the option argument.
47372         (xstrtol_error): Now a static function.  Redo signature to
47373         implement xstrtol_fatal.  Output the correct number of hyphens in
47374         front of the option so that the caller need not worry about
47375         storage management.
47376         (N_): New macro.
47377         (_): Remove; not used now.
47378         * modules/xstrtol: Depend on getopt.
47379         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47380         of old STRTOL_FATAL_ERROR macro.
47381         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47382         of test program.
47383         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47384         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47385
47386 2007-08-08  Eric Blake  <ebb9@byu.net>
47387
47388         * lib/xstrtol-error.c: Add missing include.
47389
47390         Move xstrtol messages into gnulib domain, when --pobase is used.
47391         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47392         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47393         * modules/xstrtol (Files): Distribute new file.
47394         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47395         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47396         * tests/test-xstrtol.c: ...into new file.
47397         * tests/test-xstrtoul.c: Also test xstrtoul.
47398         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47399         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47400         * tests/test-xstrtol.sh: Drive the tests.
47401         * tests/test-xstrtoimax.sh: Likewise.
47402         * tests/test-xstrtoumax.sh: Likewise.
47403         * modules/xstrtol-tests: New module.
47404         * modules/xstrtoimax-tests: Likewise.
47405         * modules/xstrtoumax-tests: Likewise.
47406
47407 2007-08-08  Jim Meyering  <jim@meyering.net>
47408
47409         New function: mfile_name_concat.
47410         * lib/filenamecat.c (mfile_name_concat): New function, just like
47411         file_name_concat, but return NULL upon failure rather than exiting
47412         with a diagnostic.
47413         * lib/filenamecat.h: Declare it.
47414
47415 2007-08-07  Bruno Haible  <bruno@clisp.org>
47416
47417         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47418         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47419         warning from gcc.
47420         Reported by Eric Blake.
47421
47422 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47423
47424         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47425         * modules/crypto/arcfour (License): Likewise.
47426         * modules/crypto/des-tests (License): Likewise.
47427         * modules/crypto/gc-arctwo-tests (License): Likewise.
47428         * modules/crypto/gc-des-tests (License): Likewise.
47429         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47430         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47431         * modules/crypto/gc-md2-tests (License): Likewise.
47432         * modules/crypto/gc-md4-tests (License): Likewise.
47433         * modules/crypto/gc-md5-tests (License): Likewise.
47434         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47435         * modules/crypto/gc-rijndael-tests (License): Likewise.
47436         * modules/crypto/gc-sha1-tests (License): Likewise.
47437         * modules/crypto/gc-tests (License): Likewise.
47438         * modules/crypto/hmac-md5 (License): Likewise.
47439         * modules/crypto/hmac-sha1 (License): Likewise.
47440         * modules/crypto/md2-tests (License): Likewise.
47441         * modules/crypto/md4-tests (License): Likewise.
47442         * modules/crypto/md5 (License): Likewise.
47443         * modules/crypto/rijndael (License): Likewise.
47444         * modules/crypto/sha1 (License): Likewise.
47445         * modules/memxor (License): Likewise.
47446
47447 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47448         and Bruno Haible  <bruno@clisp.org>
47449
47450         * NEWS: Describe interface changes to human, xstrtol.
47451         * lib/human.h: Include <xstrtol.h>.
47452         (human_options): Return enum strtol_error, not int.  Remove
47453         bool arg; take int * instead.
47454         * lib/human.c: Don't include "gettext.h".
47455         (_): Remove; no longer used.
47456         Don't include <xstrtol.h>, since human.h does it.
47457         (human_options): Adjust to abovementioned interface changes.
47458         Do not report error to stderr; that's now the caller's
47459         responsibility.
47460         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47461         interface change.
47462         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47463         Str, Argument_type_string.  All uses changed.  Put " argument"
47464         in diagnostics to make them clearer.  Change wording of suffix
47465         message for clarity.
47466         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47467         Argument_type_string.
47468         (STRTOL_FATAL_WARN): Remove; no longer used.
47469         * modules/human (Depends-on): Remove gettext-h.
47470
47471 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47472
47473         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47474
47475 2007-07-31  Bruno Haible  <bruno@clisp.org>
47476
47477         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47478         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47479         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47480
47481 2007-07-31  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47484         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47485
47486 2007-07-30  Bruno Haible  <bruno@clisp.org>
47487
47488         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47489         * modules/c-ctype (License): Likewise.
47490         * modules/c-strcase (License): Likewise.
47491         * modules/check-version (License): Likewise.
47492         * modules/iconv (License): Likewise.
47493         * modules/iconv_open (License): Likewise.
47494         * modules/read-file (License): Likewise.
47495         * modules/striconv (License): Likewise.
47496         * modules/strverscmp (License): Likewise.
47497         * modules/vasprintf (License): Likewise.
47498         * modules/crypto/des (License): Likewise.
47499         * modules/crypto/gc (License): Likewise.
47500         * modules/crypto/gc-arcfour (License): Likewise.
47501         * modules/crypto/gc-arctwo (License): Likewise.
47502         * modules/crypto/gc-des (License): Likewise.
47503         * modules/crypto/gc-hmac-md5 (License): Likewise.
47504         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47505         * modules/crypto/gc-md2 (License): Likewise.
47506         * modules/crypto/gc-md4 (License): Likewise.
47507         * modules/crypto/gc-md5 (License): Likewise.
47508         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47509         * modules/crypto/gc-random (License): Likewise.
47510         * modules/crypto/gc-rijndael (License): Likewise.
47511         * modules/crypto/gc-sha1 (License): Likewise.
47512         * modules/crypto/md2 (License): Likewise.
47513         * modules/crypto/md4 (License): Likewise.
47514
47515 2007-07-30  Jim Meyering  <jim@meyering.net>
47516
47517         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47518         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47519         it has valid stat data.  This bug would cause du not to count the
47520         sizes of inaccessible directories.
47521         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47522         in <http://bugzilla.redhat.com/250077>.
47523
47524 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47525             Bruno Haible  <bruno@clisp.org>
47526
47527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47528         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47529         #include_next, gives a diagnostic about it, but reports no error in
47530         the exit code.
47531         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47532
47533 2007-07-24  Ben Pfaff  <blp@gnu.org>
47534
47535         Improve name: "count-one-bits" is better than "popcount".
47536         * MODULES.html.sh: Update name.
47537         * lib/popcount.h: Renamed lib/count-one-bits.h.
47538         (popcount): Renamed count_one_bits.
47539         (popcountl): Renamed count_one_bits_l.
47540         (popcountll): Renamed count_one_bits_ll.
47541         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47542         * modules/popcount: Renamed module/count-one-bits.
47543         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47544         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47545
47546 2007-07-23  Ben Pfaff  <blp@gnu.org>
47547
47548         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47549         better code generation, and add U to large constants to avoid
47550         warnings, in non-GCC case.
47551         Suggested by Bruno Haible.
47552
47553 2007-07-23  Ben Pfaff  <blp@gnu.org>
47554
47555         * lib/popcount.h: Use verify_true instead of if...abort.
47556         * modules/popcount: Depend on verify module.
47557         Suggested by Jim Meyering.
47558
47559 2007-07-23  Bruno Haible  <bruno@clisp.org>
47560
47561         * gnulib-tool (func_import): Create a .cvsignore file also when the
47562         directory is not yet in CVS but the toplevel directory is. When
47563         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47564         Reported by Karl Berry.
47565
47566 2007-07-22  Ben Pfaff  <blp@gnu.org>
47567
47568         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47569         case.
47570         Suggested by Eric Blake.
47571
47572 2007-07-22  Ben Pfaff  <blp@gnu.org>
47573
47574         New module: popcount.
47575         * MODULES.html.sh: Add popcount.
47576         * modules/popcount: New file.
47577         * modules/popcount-tests: New file.
47578         * tests/test-popcount.c: New file.
47579         * lib/popcount.h: New file.
47580         * m4/popcount.m4: New file.
47581
47582 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * build-aux/announce-gen: Update to GPLv3.
47585
47586         * build-aux/config.guess: Update from config.
47587
47588 2007-07-21  Bruno Haible  <bruno@clisp.org>
47589
47590         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47591         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47592
47593 2007-07-20  Jim Meyering  <jim@meyering.net>
47594
47595         * check-module: Diagnose a self-dependency.
47596
47597 2007-07-19  Bruno Haible  <bruno@clisp.org>
47598
47599         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47600         empty.
47601         Reported by Eric Blake.
47602
47603 2007-07-18  Bruno Haible  <bruno@clisp.org>
47604
47605         * gnulib-tool: New options --po-base, --po-domain.
47606         (func_usage): Document them.
47607         (pobase, po_domain): New variables.
47608         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47609         DEFAULT_TEXT_DOMAIN.
47610         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47611         (func_import): Consider pobase and po_domain. Create a po/ directory.
47612         (func_create_testdir): Set pobase and po_domain to empty.
47613         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47614         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47615
47616 2007-07-18  Bruno Haible  <bruno@clisp.org>
47617
47618         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47619         EXTRA_DIST augmentation for files in build-aux/.
47620
47621 2007-07-16  Bruno Haible  <bruno@clisp.org>
47622
47623         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47624         * modules/getdelim (License): Likewise.
47625
47626 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47627
47628         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47629         * modules/d-type (License): Likewise.
47630         * modules/extensions (License): Likewise.
47631         * modules/fnmatch (License): Likewise.
47632         * modules/fseeko (License): Likewise.
47633         * modules/getaddrinfo (License): Likewise.
47634         * modules/getline (License): Likewise.
47635         * modules/getlogin_r (License): Likewise.
47636         * modules/getpass (License): Likewise.
47637         * modules/gettimeofday (License): Likewise.
47638         * modules/glob (License): Likewise.
47639         * modules/inet_ntop (License): Likewise.
47640         * modules/malloc (License): Likewise.
47641         * modules/malloca (License): Likewise.
47642         * modules/memmem (License): Likewise.
47643         * modules/mempcpy (License): Likewise.
47644         * modules/memset (License): Likewise.
47645         * modules/minmax (License): Likewise.
47646         * modules/mktime (License): Likewise.
47647         * modules/netinet_in (License): Likewise.
47648         * modules/pathmax (License): Likewise.
47649         * modules/poll (License): Likewise.
47650         * modules/regex (License): Likewise.
47651         * modules/snprintf (License): Likewise.
47652         * modules/stdbool (License): Likewise.
47653         * modules/stdint (License): Likewise.
47654         * modules/stdio (License): Likewise.
47655         * modules/strcase (License): Likewise.
47656         * modules/strcasestr (License): Likewise.
47657         * modules/strdup (License): Likewise.
47658         * modules/string (License): Likewise.
47659         * modules/strndup (License): Likewise.
47660         * modules/strnlen (License): Likewise.
47661         * modules/strpbrk (License): Likewise.
47662         * modules/strptime (License): Likewise.
47663         * modules/strsep (License): Likewise.
47664         * modules/sys_select (License): Likewise.
47665         * modules/sys_socket (License): Likewise.
47666         * modules/sys_stat (License): Likewise.
47667         * modules/sys_time (License): Likewise.
47668         * modules/time (License): Likewise.
47669         * modules/time_r (License): Likewise.
47670         * modules/timegm (License): Likewise.
47671         * modules/unistd (License): Likewise.
47672         * modules/vsnprintf (License): Likewise.
47673         * modules/wctype (License): Likewise.
47674
47675 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47676
47677         * modules/argz (License): LGPLv2+.
47678
47679 2007-07-15  Karl Berry  <karl@gnu.org>
47680
47681         * doc/gnulib.texi: revise node structure per new fdl.texi.
47682
47683 2007-07-14  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47686         the output file.
47687         * lib/uniname/uninames.h: Regenerated.
47688
47689 2007-07-14  Karl Berry  <karl@gnu.org>
47690
47691         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47692         omitting sectioning and index commands.
47693
47694 2007-07-13  Bruno Haible  <bruno@clisp.org>
47695
47696         New gnulib-tool option --more-symlinks.
47697         * gnulib-tool (func_usage): Document --more-symlinks.
47698         (do_copyrights): New variable.
47699         Recognize option --more-symlinks.
47700         (func_import): Don't add a copyright notice transform to
47701         sed_transform_lib_file if do_copyrights is empty.
47702
47703 2007-07-13  Bruno Haible  <bruno@clisp.org>
47704
47705         * lib/vasnprintf.c (decimal_point_char): Define also if
47706         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47707         && !NEED_PRINTF_DIRECTIVE_A.
47708         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47709         Gary V. Vaughan <gary@gnu.org>.
47710
47711 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47712
47713         * lib/inttypes_.h: Undo previous change, since it was fixed
47714         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47715
47716 2007-07-13  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47719         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47720
47721 2007-07-13  Jim Meyering  <jim@meyering.net>
47722
47723         df: Don't fail for Tru64's "file-on-file mount".
47724         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47725         so we fall through and use statfs instead.  Details here:
47726         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47727         Reported by Albert Chin.
47728
47729 2007-07-13  Bruno Haible  <bruno@clisp.org>
47730
47731         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47732         * modules/configmake (License): Likewise.
47733         * modules/gettext (License): Likewise.
47734         * modules/gettext-h (License): Likewise.
47735         * modules/include_next (License): Likewise.
47736         * modules/link-warning (License): Likewise.
47737         * modules/localcharset (License): Likewise.
47738         * modules/localename (License): Likewise.
47739         * modules/lock (License): Likewise.
47740         * modules/relocatable-lib-lgpl (License): Likewise.
47741         * modules/size_max (License): Likewise.
47742         * modules/vasnprintf (License): Likewise.
47743         * modules/wchar (License): Likewise.
47744         * modules/xsize (License): Likewise.
47745
47746 2007-07-13  Bruno Haible  <bruno@clisp.org>
47747
47748         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47749         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47750
47751 2007-07-12  Bruno Haible  <bruno@clisp.org>
47752
47753         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47754         in the modules files.
47755
47756 2007-07-11  Karl Berry  <karl@gnu.org>
47757
47758         * MODULES.html.sh (func_module): use
47759          sed -e '\|^'"${includefile}"'$|d'
47760          instead of /.../d, to avoid errors on $includefile's containing /.
47761
47762 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47763
47764         * gnulib-tool (func_import): Avoid duplication of --avoid
47765         statements
47766         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47767         names to `_' in variable names.
47768
47769 2007-07-10  Eric Blake  <ebb9@byu.net>
47770
47771         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47772         * NEWS: Document this change.
47773
47774 2007-07-08  Bruno Haible  <bruno@clisp.org>
47775
47776         Update to Unicode 5.0.
47777         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47778         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47779         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47780         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47781         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47782         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47783         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47784         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47785         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47786         U+10A3F, U+1D242..U+1D244.
47787         (nonspacing_table_ind): Update.
47788         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47789         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47790
47791 2007-07-08  Bruno Haible  <bruno@clisp.org>
47792
47793         Update to Unicode 5.0.
47794         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47795         code transform. Extend the name index field of unicode_name_to_code and
47796         unicode_code_to_name from 16 to 24 bits.
47797         * lib/uniname/uniname.c (unicode_character_name,
47798         unicode_name_character): Add the range 0x12xxx to the code transform.
47799         * lib/uniname/uninames.h: Regenerated.
47800         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47801
47802 2007-07-07  Bruno Haible  <bruno@clisp.org>
47803
47804         * modules/wcwidth-tests: New file.
47805         * tests/test-wcwidth.c: New file.
47806
47807         Work around MacOS X wcwidth() bug.
47808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47809         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47810         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47811         original wcwidth in non-UTF-8 locales.
47812         * modules/wcwidth (Depends-on): Add localcharset, streq,
47813         uniwidth/width.
47814         * doc/functions/wcwidth.texi: Update.
47815
47816 2007-07-07  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47819         (wcwidth): New declaration.
47820         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47821         macros.
47822         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47823         here. Prepare for creating <wchar.h> unconditionally.
47824         * modules/wchar (Depends-on): Add link-warning.
47825         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47826         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47827         * lib/wcwidth.h: Remove file.
47828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47829         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47830         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47831         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47832         (Include): Replace wcwidth.h with <wchar.h>.
47833         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47834         * lib/mbchar.h: Don't include wcwidth.h.
47835         * lib/mbswidth.c: Likewise.
47836         * NEWS: Mention the change.
47837
47838 2007-07-07  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47841         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47842         definition with an external declaration.
47843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47844         defined as a function. Remove AC_C_INLINE requirement.
47845         * modules/wcwidth (Files): Add lib/wcwidth.c.
47846         (Makefile.am): Remove redundant statement.
47847
47848 2007-07-07  Bruno Haible  <bruno@clisp.org>
47849
47850         * MODULES.html.sh (Unicode string functions): Add the new modules.
47851
47852         * tests/uniwidth/test-u32-strwidth.c: New file.
47853         * modules/uniwidth/u32-strwidth-tests: New file.
47854
47855         * lib/uniwidth/u32-strwidth.c: New file.
47856         * modules/uniwidth/u32-strwidth: New file.
47857
47858         * tests/uniwidth/test-u16-strwidth.c: New file.
47859         * modules/uniwidth/u16-strwidth-tests: New file.
47860
47861         * lib/uniwidth/u16-strwidth.c: New file.
47862         * modules/uniwidth/u16-strwidth: New file.
47863
47864         * tests/uniwidth/test-u8-strwidth.c: New file.
47865         * modules/uniwidth/u8-strwidth-tests: New file.
47866
47867         * lib/uniwidth/u8-strwidth.c: New file.
47868         * modules/uniwidth/u8-strwidth: New file.
47869
47870         * tests/uniwidth/test-u32-width.c: New file.
47871         * modules/uniwidth/u32-width-tests: New file.
47872
47873         * lib/uniwidth/u32-width.c: New file.
47874         * modules/uniwidth/u32-width: New file.
47875
47876         * tests/uniwidth/test-u16-width.c: New file.
47877         * modules/uniwidth/u16-width-tests: New file.
47878
47879         * lib/uniwidth/u16-width.c: New file.
47880         * modules/uniwidth/u16-width: New file.
47881
47882         * tests/uniwidth/test-u8-width.c: New file.
47883         * modules/uniwidth/u8-width-tests: New file.
47884
47885         * lib/uniwidth/u8-width.c: New file.
47886         * modules/uniwidth/u8-width: New file.
47887
47888         * tests/uniwidth/test-uc_width.c: New file.
47889         * modules/uniwidth/width-tests: New file.
47890
47891         * lib/uniwidth/width.c: New file, from GNU libiconv.
47892         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47893         * modules/uniwidth/width: New file.
47894
47895         * lib/uniwidth.h: New file, from GNU libiconv.
47896         * modules/uniwidth/base: New file.
47897
47898 2007-07-07  Bruno Haible  <bruno@clisp.org>
47899
47900         * lib/uniname.h: New file, from GNU gettext.
47901         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47902         * lib/uniname/uninames.h: New file, from GNU gettext.
47903         * lib/uniname/uniname.c: New file, from GNU gettext.
47904         * tests/uniname/test-uninames.sh: New file.
47905         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47906         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47907         * modules/uniname/base: New file.
47908         * modules/uniname/uniname: New file.
47909         * modules/uniname/uniname-tests: New file.
47910         * MODULES.html.sh (Unicode string functions): Add the new modules.
47911
47912 2007-07-06  Bruno Haible  <bruno@clisp.org>
47913
47914         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47915
47916 2007-07-06  Bruno Haible  <bruno@clisp.org>
47917
47918         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47919         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47920         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47921         include <sys/time.h>.
47922         Reported by Eric Blake.
47923
47924 2007-07-06  Eric Blake  <ebb9@byu.net>
47925
47926         Fix testing canonicalize on cygwin.
47927         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47928         Revert patch from 2007-06-19.
47929         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47930         canonicalize module is also in use.
47931         * tests/test-canonicalize.c: New file.
47932         * tests/test-canonicalize.sh: Likewise.
47933         * modules/canonicalize-tests: Likewise.
47934
47935 2007-07-06  Jim Meyering  <jim@meyering.net>
47936
47937         * lib/getugroups.c (getugroups): Detect getgrent failure.
47938         Adjust comment to reflect reality: this function may return -1.
47939
47940 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47941
47942         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47943         the new TP address.
47944         (usage): Fix typo
47945         (gnulib_mk): New variable.
47946
47947 2007-07-05  Jim Meyering  <jim@meyering.net>
47948
47949         Don't let endgrent clobber errno, no matter how improbable.
47950         * lib/getugroups.c (getugroups): Save and restore errno around
47951         endgrent call.
47952
47953         Close the group DB even when failing with 2^31 or more members.
47954         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47955
47956 2007-07-04  Jim Meyering  <jim@meyering.net>
47957
47958         * lib/getugroups.h: New file.
47959         * lib/getugroups.c: Include "getugroups.h".
47960         Remove uses of "register" keyword.
47961         Move local variable, "cp", down into scope where used.
47962         Give "username" parameter the "const" attribute.
47963         * modules/getugroups (Files): Add lib/getugroups.h
47964
47965 2007-07-04  Karl Berry  <karl@gnu.org>
47966
47967         * MODULES.html.sh (func_all_modules): Complete rename of
47968         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47969
47970 2007-07-02  Bruno Haible  <bruno@clisp.org>
47971
47972         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47973         mode, when inttypes.h comes from gnulib.
47974         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47975
47976 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47977
47978         * NEWS: Mention lgpl module name change.
47979
47980         * modules/lgpl-2.1: Renamed from lgpl.
47981
47982         * NEWS: Mention gpl module name change.
47983
47984         * modules/gpl-3.0: New file, based on gpl-2.0.
47985
47986         * modules/gpl-2.0: Renamed from gpl.
47987
47988         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47989         doc/gpl-2.0.texi.
47990
47991 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47992
47993         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47994         #define __STDC_LIMIT_MACROS temporarily while including
47995         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47996         Problem reported by Joel E. Denny in
47997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47998
47999 2007-07-01  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/unistdio.h: New file.
48002         * lib/unistdio/u-asnprintf.h: New file.
48003         * lib/unistdio/u-asprintf.h: New file.
48004         * lib/unistdio/u-printf-args.c: New file.
48005         * lib/unistdio/u-printf-args.h: New file.
48006         * lib/unistdio/u-printf-parse.h: New file.
48007         * lib/unistdio/u-snprintf.h: New file.
48008         * lib/unistdio/u-sprintf.h: New file.
48009         * lib/unistdio/u-vasprintf.h: New file.
48010         * lib/unistdio/u-vsnprintf.h: New file.
48011         * lib/unistdio/u-vsprintf.h: New file.
48012         * lib/unistdio/ulc-asnprintf.c: New file.
48013         * lib/unistdio/ulc-asprintf.c: New file.
48014         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48015         * lib/unistdio/ulc-printf-parse.c: New file.
48016         * lib/unistdio/ulc-snprintf.c: New file.
48017         * lib/unistdio/ulc-sprintf.c: New file.
48018         * lib/unistdio/ulc-vasnprintf.c: New file.
48019         * lib/unistdio/ulc-vasprintf.c: New file.
48020         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48021         * lib/unistdio/ulc-vsnprintf.c: New file.
48022         * lib/unistdio/ulc-vsprintf.c: New file.
48023         * lib/unistdio/u8-asnprintf.c: New file.
48024         * lib/unistdio/u8-asprintf.c: New file.
48025         * lib/unistdio/u8-printf-parse.c: New file.
48026         * lib/unistdio/u8-snprintf.c: New file.
48027         * lib/unistdio/u8-sprintf.c: New file.
48028         * lib/unistdio/u8-vasnprintf.c: New file.
48029         * lib/unistdio/u8-vasprintf.c: New file.
48030         * lib/unistdio/u8-vsnprintf.c: New file.
48031         * lib/unistdio/u8-vsprintf.c: New file.
48032         * lib/unistdio/u8-u8-asnprintf.c: New file.
48033         * lib/unistdio/u8-u8-asprintf.c: New file.
48034         * lib/unistdio/u8-u8-snprintf.c: New file.
48035         * lib/unistdio/u8-u8-sprintf.c: New file.
48036         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48037         * lib/unistdio/u8-u8-vasprintf.c: New file.
48038         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48039         * lib/unistdio/u8-u8-vsprintf.c: New file.
48040         * lib/unistdio/u16-asnprintf.c: New file.
48041         * lib/unistdio/u16-asprintf.c: New file.
48042         * lib/unistdio/u16-printf-parse.c: New file.
48043         * lib/unistdio/u16-snprintf.c: New file.
48044         * lib/unistdio/u16-sprintf.c: New file.
48045         * lib/unistdio/u16-vasnprintf.c: New file.
48046         * lib/unistdio/u16-vasprintf.c: New file.
48047         * lib/unistdio/u16-vsnprintf.c: New file.
48048         * lib/unistdio/u16-vsprintf.c: New file.
48049         * lib/unistdio/u16-u16-asnprintf.c: New file.
48050         * lib/unistdio/u16-u16-asprintf.c: New file.
48051         * lib/unistdio/u16-u16-snprintf.c: New file.
48052         * lib/unistdio/u16-u16-sprintf.c: New file.
48053         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48054         * lib/unistdio/u16-u16-vasprintf.c: New file.
48055         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48056         * lib/unistdio/u16-u16-vsprintf.c: New file.
48057         * lib/unistdio/u32-asnprintf.c: New file.
48058         * lib/unistdio/u32-asprintf.c: New file.
48059         * lib/unistdio/u32-printf-parse.c: New file.
48060         * lib/unistdio/u32-snprintf.c: New file.
48061         * lib/unistdio/u32-sprintf.c: New file.
48062         * lib/unistdio/u32-vasnprintf.c: New file.
48063         * lib/unistdio/u32-vasprintf.c: New file.
48064         * lib/unistdio/u32-vsnprintf.c: New file.
48065         * lib/unistdio/u32-vsprintf.c: New file.
48066         * lib/unistdio/u32-u32-asnprintf.c: New file.
48067         * lib/unistdio/u32-u32-asprintf.c: New file.
48068         * lib/unistdio/u32-u32-snprintf.c: New file.
48069         * lib/unistdio/u32-u32-sprintf.c: New file.
48070         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48071         * lib/unistdio/u32-u32-vasprintf.c: New file.
48072         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48073         * lib/unistdio/u32-u32-vsprintf.c: New file.
48074         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48075         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48076         * tests/unistdio/test-ulc-printf1.h: New file.
48077         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48078         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48079         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48080         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48081         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48082         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48083         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48084         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48085         * tests/unistdio/test-u8-asnprintf1.c: New file.
48086         * tests/unistdio/test-u8-asnprintf1.h: New file.
48087         * tests/unistdio/test-u8-printf1.h: New file.
48088         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48089         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48090         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48091         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48092         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48093         * tests/unistdio/test-u8-vasprintf1.c: New file.
48094         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48095         * tests/unistdio/test-u8-vsprintf1.c: New file.
48096         * tests/unistdio/test-u16-asnprintf1.c: New file.
48097         * tests/unistdio/test-u16-asnprintf1.h: New file.
48098         * tests/unistdio/test-u16-printf1.h: New file.
48099         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48100         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48101         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48102         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48103         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48104         * tests/unistdio/test-u16-vasprintf1.c: New file.
48105         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48106         * tests/unistdio/test-u16-vsprintf1.c: New file.
48107         * tests/unistdio/test-u32-asnprintf1.c: New file.
48108         * tests/unistdio/test-u32-asnprintf1.h: New file.
48109         * tests/unistdio/test-u32-printf1.h: New file.
48110         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48111         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48112         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48113         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48114         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48115         * tests/unistdio/test-u32-vasprintf1.c: New file.
48116         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48117         * tests/unistdio/test-u32-vsprintf1.c: New file.
48118         * modules/unistdio/base: New file.
48119         * modules/unistdio/u-printf-args: New file.
48120         * modules/unistdio/ulc-asnprintf: New file.
48121         * modules/unistdio/ulc-asprintf: New file.
48122         * modules/unistdio/ulc-fprintf: New file.
48123         * modules/unistdio/ulc-printf-parse: New file.
48124         * modules/unistdio/ulc-snprintf: New file.
48125         * modules/unistdio/ulc-sprintf: New file.
48126         * modules/unistdio/ulc-vasnprintf: New file.
48127         * modules/unistdio/ulc-vasprintf: New file.
48128         * modules/unistdio/ulc-vfprintf: New file.
48129         * modules/unistdio/ulc-vsnprintf: New file.
48130         * modules/unistdio/ulc-vsprintf: New file.
48131         * modules/unistdio/u8-asnprintf: New file.
48132         * modules/unistdio/u8-asprintf: New file.
48133         * modules/unistdio/u8-printf-parse: New file.
48134         * modules/unistdio/u8-snprintf: New file.
48135         * modules/unistdio/u8-sprintf: New file.
48136         * modules/unistdio/u8-vasnprintf: New file.
48137         * modules/unistdio/u8-vasprintf: New file.
48138         * modules/unistdio/u8-vsnprintf: New file.
48139         * modules/unistdio/u8-vsprintf: New file.
48140         * modules/unistdio/u8-u8-asnprintf: New file.
48141         * modules/unistdio/u8-u8-asprintf: New file.
48142         * modules/unistdio/u8-u8-snprintf: New file.
48143         * modules/unistdio/u8-u8-sprintf: New file.
48144         * modules/unistdio/u8-u8-vasnprintf: New file.
48145         * modules/unistdio/u8-u8-vasprintf: New file.
48146         * modules/unistdio/u8-u8-vsnprintf: New file.
48147         * modules/unistdio/u8-u8-vsprintf: New file.
48148         * modules/unistdio/u16-asnprintf: New file.
48149         * modules/unistdio/u16-asprintf: New file.
48150         * modules/unistdio/u16-printf-parse: New file.
48151         * modules/unistdio/u16-snprintf: New file.
48152         * modules/unistdio/u16-sprintf: New file.
48153         * modules/unistdio/u16-vasnprintf: New file.
48154         * modules/unistdio/u16-vasprintf: New file.
48155         * modules/unistdio/u16-vsnprintf: New file.
48156         * modules/unistdio/u16-vsprintf: New file.
48157         * modules/unistdio/u16-u16-asnprintf: New file.
48158         * modules/unistdio/u16-u16-asprintf: New file.
48159         * modules/unistdio/u16-u16-snprintf: New file.
48160         * modules/unistdio/u16-u16-sprintf: New file.
48161         * modules/unistdio/u16-u16-vasnprintf: New file.
48162         * modules/unistdio/u16-u16-vasprintf: New file.
48163         * modules/unistdio/u16-u16-vsnprintf: New file.
48164         * modules/unistdio/u16-u16-vsprintf: New file.
48165         * modules/unistdio/u32-asnprintf: New file.
48166         * modules/unistdio/u32-asprintf: New file.
48167         * modules/unistdio/u32-printf-parse: New file.
48168         * modules/unistdio/u32-snprintf: New file.
48169         * modules/unistdio/u32-sprintf: New file.
48170         * modules/unistdio/u32-vasnprintf: New file.
48171         * modules/unistdio/u32-vasprintf: New file.
48172         * modules/unistdio/u32-vsnprintf: New file.
48173         * modules/unistdio/u32-vsprintf: New file.
48174         * modules/unistdio/u32-u32-asnprintf: New file.
48175         * modules/unistdio/u32-u32-asprintf: New file.
48176         * modules/unistdio/u32-u32-snprintf: New file.
48177         * modules/unistdio/u32-u32-sprintf: New file.
48178         * modules/unistdio/u32-u32-vasnprintf: New file.
48179         * modules/unistdio/u32-u32-vasprintf: New file.
48180         * modules/unistdio/u32-u32-vsnprintf: New file.
48181         * modules/unistdio/u32-u32-vsprintf: New file.
48182         * modules/unistdio/ulc-asnprintf-tests: New file.
48183         * modules/unistdio/ulc-vasnprintf-tests: New file.
48184         * modules/unistdio/ulc-vasprintf-tests: New file.
48185         * modules/unistdio/ulc-vsnprintf-tests: New file.
48186         * modules/unistdio/ulc-vsprintf-tests: New file.
48187         * modules/unistdio/u8-asnprintf-tests: New file.
48188         * modules/unistdio/u8-vasnprintf-tests: New file.
48189         * modules/unistdio/u8-vasprintf-tests: New file.
48190         * modules/unistdio/u8-vsnprintf-tests: New file.
48191         * modules/unistdio/u8-vsprintf-tests: New file.
48192         * modules/unistdio/u16-asnprintf-tests: New file.
48193         * modules/unistdio/u16-vasnprintf-tests: New file.
48194         * modules/unistdio/u16-vasprintf-tests: New file.
48195         * modules/unistdio/u16-vsnprintf-tests: New file.
48196         * modules/unistdio/u16-vsprintf-tests: New file.
48197         * modules/unistdio/u32-asnprintf-tests: New file.
48198         * modules/unistdio/u32-vasnprintf-tests: New file.
48199         * modules/unistdio/u32-vasprintf-tests: New file.
48200         * modules/unistdio/u32-vsnprintf-tests: New file.
48201         * modules/unistdio/u32-vsprintf-tests: New file.
48202         * MODULES.html.sh (Unicode string functions): Add the new modules.
48203
48204 2007-07-01  Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/sprintf.c (sprintf): Limit the available length estimation,
48207         to avoid address wraparound.
48208         * lib/vsprintf.c (vsprintf): Likewise.
48209         * modules/sprintf-posix (Dependencies): Add stdint.
48210         * modules/vsprintf-posix (Dependencies): Likewise.
48211
48212 2007-07-01  Bruno Haible  <bruno@clisp.org>
48213
48214         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48215         Windows PATH as well. Conservative double-quoting. Comments.
48216
48217 2007-07-01  Bruno Haible  <bruno@clisp.org>
48218             Eric Blake  <ebb9@byu.net>
48219             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48220
48221         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48222         empty components in $PATH, denoting '.'.
48223
48224 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48225
48226         * gnulib-tool: Fix indentation.
48227         (func_create_megatestdir): Likewise.
48228         Report by Bruno Haible.
48229
48230 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48231
48232         Sync from Automake.
48233         * build-aux/gnupload: Fix shell portability issues with for loops.
48234         Report by Karl Berry.
48235
48236 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48237
48238         * build-aux/maint.mk (POURL): Use translationproject.org.
48239
48240 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48241             Bruno Haible  <bruno@clisp.org>
48242
48243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48244         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48245         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48246         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48247         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48248
48249 2007-06-27  Bruno Haible  <bruno@clisp.org>
48250
48251         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48252         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48253
48254 2007-06-26  Karl Berry  <karl@gnu.org>
48255
48256         * MODULES.html.sh: remove xreadlink-with-size.
48257
48258 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48259
48260         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48261         method that I hope also handles the double-include problem noted
48262         by Bruno Haible in
48263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48264
48265 2007-06-23  Bruno Haible  <bruno@clisp.org>
48266
48267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48268         Don't let the 'mostlyclean' target fail if the last subdirectory could
48269         not be removed.
48270         Reported by Karl Berry.
48271
48272 2007-06-23  Bruno Haible  <bruno@clisp.org>
48273
48274         * gnulib-tool (echo): Add a speedier workaround for ksh.
48275         * tests/test-echo.sh: Likewise.
48276
48277 2007-06-23  Bruno Haible  <bruno@clisp.org>
48278
48279         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48280         * tests/test-echo.sh: Likewise.
48281
48282 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48283
48284         * gnulib-tool (IFS): Initialize early, so we don't set it to
48285         empty later.
48286         (self_abspathname): Rewrite algorithm to set it, reindent.
48287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48288         (func_create_megatestdir): Merge some sed scripts.
48289
48290 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48291
48292         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48293         exposed by Sun Studio 11 cc on Solaris 8.
48294
48295 2007-06-22  Bruno Haible  <bruno@clisp.org>
48296
48297         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48298         backslashes.
48299         * tests/test-echo.sh: New file.
48300
48301 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48302
48303         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48304         simplify `sed_replace_build_aux' scripts, they are portable but
48305         echoing them with `echo' is not.
48306         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48307
48308 2007-06-21  Karl Berry  <karl@gnu.org>
48309
48310         * config/srclist.txt: guess we can't handle the licenses via
48311         srclist at the moment.
48312
48313 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48314
48315         * MODULES.html.sh: Add include_next.
48316         * modules/include_next: New file.
48317
48318 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48319
48320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48321         INCLUDE_NEXT.
48322         (gl_CHECK_NEXT_HEADERS): New macro.
48323         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48324         the obsolescent gl_ABSOLUTE_HEADER.
48325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48326         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48327         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48328         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48329         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48330         * m4/math_h.m4 (gl_MATH_H): Likewise.
48331         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48332         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48333         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48334         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48335         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48336         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48337         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48341         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48342         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48343         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48345         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48346         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48347         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48348         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48349         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48350         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48351         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48352         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48353         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48354         * lib/float_.h: Likewise.
48355         * lib/inttypes_.h: Likewise.
48356         * lib/math_.h: Likewise.
48357         * lib/search_.h: Likewise.
48358         * lib/signal_.h: Likewise.
48359         * lib/stdint_.h: Likewise.
48360         * lib/stdio_.h: Likewise.
48361         * lib/stdlib_.h: Likewise.
48362         * lib/string_.h: Likewise.
48363         * lib/sys_stat_.h: Likewise.
48364         * lib/sys_time_.h: Likewise.
48365         * lib/time_.h: Likewise.
48366         * lib/unistd_.h: Likewise.
48367         * lib/wchar_.h: Likewise.
48368         * lib/wctype_.h: Likewise.
48369         * lib/dirent_.h: Likewise.
48370         * lib/iconv_.h: Likewise.
48371         * lib/locale_.h: Likewise.
48372         * lib/netinet_in_.h: Likewise.
48373         * lib/sys_select_.h: Likewise.
48374         * lib/sys_socket_.h: Likewise.
48375         * lib/sysexits_.h: Likewise.
48376         * modules/fcntl (Depends-on): Depend on include_next, not
48377         absolute_header.
48378         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48379         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48380         * modules/fchdir: Likewise.
48381         * modules/float: Likewise.
48382         * modules/iconv_open: Likewise.
48383         * modules/inttypes: Likewise.
48384         * modules/locale: Likewise.
48385         * modules/math: Likewise.
48386         * modules/netinet_in: Likewise.
48387         * modules/search: Likewise.
48388         * modules/signal: Likewise.
48389         * modules/stdint: Likewise.
48390         * modules/stdio: Likewise.
48391         * modules/stdlib: Likewise.
48392         * modules/string: Likewise.
48393         * modules/sys_select: Likewise.
48394         * modules/sys_socket: Likewise.
48395         * modules/sys_stat: Likewise.
48396         * modules/sys_time: Likewise.
48397         * modules/sysexits: Likewise.
48398         * modules/time: Likewise.
48399         * modules/unistd: Likewise.
48400         * modules/wchar: Likewise.
48401         * modules/wctype: Likewise.
48402         * modules/sys_stat: Change maintainer to "all".
48403         * modules/unistd: Likewise.
48404
48405 2007-06-20  Karl Berry  <karl@gnu.org>
48406
48407         * config/srclist.txt: track www changes in license files.
48408
48409 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48410
48411         * build-aux/bootstrap: Remove stray dot.
48412         Make sure build_aux settings are honored when linking
48413         gnulib_extra_files.
48414
48415 2007-06-19  Eric Blake  <ebb9@byu.net>
48416
48417         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48418         Allow compilation on cygwin.
48419
48420 2007-06-19  Jim Meyering  <jim@meyering.net>
48421
48422         xreadlink-with-size: Remove module.  No longer used.
48423         Ex-callers now use xreadlink or mreadlink-with-size.
48424         * modules/xreadlink-with-size: Remove module.
48425         * lib/xreadlink-with-size.c: Remove file.
48426         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48427         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48428         just before the function definition *is* accurate.
48429
48430         Eliminate one way canonicalize_filename_mode could exit.
48431         * lib/canonicalize.c (canonicalize_filename_mode):
48432         Use mreadlink_with_size, not xreadlink_with_size.
48433
48434 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48435
48436         Detect porting problems to FreeBSD/arm, which has time_t wider than
48437         long int.  Original problem reported for GNU diff by Xin Li in
48438         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48439         * modules/getdate (Depends-on): Add intprops, verify.
48440         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48441         is an integer type no wider than long int.
48442
48443 2007-06-18  Jim Meyering  <jim@meyering.net>
48444
48445         New module: mreadlink-with-size.
48446         * MODULES.html.sh: Add mreadlink-with-size.
48447         * modules/mreadlink-with-size: New module
48448         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48449         not xreadlink-with-size.
48450         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48451
48452 2007-06-16  Bruno Haible  <bruno@clisp.org>
48453
48454         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48455         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48456         Reported by Gary V. Vaughan <gary@gnu.org>.
48457
48458 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48459
48460         Revamp lchown so that it lives in unistd.h where it belongs.
48461         * lib/lchown.h: Remove.
48462         * lib/dirchownmod.c: Don't include lib/lchown.h.
48463         * lib/fchownat.c: Likewise.
48464         * lib/openat.c: Likewise.
48465         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48466         does not follow symlinks.
48467         (EOPNOTSUPP): Define if not defined.
48468         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48469         is defined to 0.
48470         (lchown): New decl.
48471         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48472         Do not check for lchown decl.
48473         Set REPLACE_LCHOWN.
48474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48475         REPLACE_LCHOWN.
48476         * modules/chown: Make it clear it follows symlinks.
48477         * modules/lchown: Make it clear it doesn't follow symlinks.
48478         (Files): Remove lib/lchown.h
48479         (Depends-on): Add unistd.
48480         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48481         (Include): Include <unistd.h>, not "lchown.h".
48482         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48483         REPLACE_LCHOWN.
48484
48485 2007-06-15  Jim Meyering  <jim@meyering.net>
48486
48487         Change license (GPL to LGPL) of fsusage and dependents.
48488         * modules/fsusage (License): Change to LGPL.
48489         * modules/full-read (License): Likewise.
48490         * modules/full-write (License): Likewise.
48491         * modules/safe-read (License): Likewise.
48492         * modules/safe-write (License): Likewise.
48493
48494 2007-06-14  Ben Pfaff  <blp@gnu.org>
48495
48496         Missing part of allocsa -> malloca transition.
48497         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48498         gl_MALLOCA.
48499
48500 2007-06-12  Bruno Haible  <bruno@clisp.org>
48501
48502         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48503         to ia64, x86_64, i386.
48504         Reported by Eric Blake.
48505
48506 2007-06-12  Bruno Haible  <bruno@clisp.org>
48507
48508         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48509         cross-compiling to x86_64.
48510
48511 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48514         glitch reported by Ralf Wildenhues in
48515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48516
48517         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48518         Vin Shelton.
48519
48520 2007-06-11  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48523         replacement string.
48524         Reported by Eric Blake.
48525
48526 2007-06-10  Bruno Haible  <bruno@clisp.org>
48527
48528         Prepare vasnprintf code for use with Unicode strings.
48529         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48530         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48531         TYPE_U32_STRING.
48532         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48533         a_u32_string variants.
48534         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48535         * lib/printf-args.c: Don't include config.h and the specification
48536         header if PRINTF_FETCHARGS is already defined.
48537         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48538         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48539         TYPE_U16_STRING, TYPE_U32_STRING.
48540         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48541         u16_directive, u16_directives, u32_directive, u32_directives): New
48542         types.
48543         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48544         New declarations.
48545         * lib/printf-parse.c: Don't include config.h and the specification
48546         header if PRINTF_PARSE is already defined. Eliminate the set of
48547         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48548         them now. Include c-ctype.h.
48549         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48550         directive and CHAR_T_ONLY_ASCII.
48551         * lib/vasnprintf.c: Don't include config.h and the specification header
48552         if VASNPRINTF is already defined.
48553         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48554         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48555         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48556         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48557         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48558         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48559         code accordingly.
48560         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48561         pad_ourselves also in this case, with the 'c' and 's' directives, and
48562         with a different notion of "width".
48563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48564
48565 2007-06-10  Bruno Haible  <bruno@clisp.org>
48566
48567         * modules/unistr/u32-mbsnlen: New file.
48568         * lib/unistr/u32-mbsnlen.c: New file.
48569
48570         * modules/unistr/u16-mbsnlen: New file.
48571         * lib/unistr/u16-mbsnlen.c: New file.
48572
48573         * modules/unistr/u8-mbsnlen: New file.
48574         * lib/unistr/u8-mbsnlen.c: New file.
48575
48576         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48577         declarations.
48578
48579 2007-06-10  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/string_.h (mbsnlen): New declaration.
48582         * lib/mbsnlen.c: New file.
48583         * m4/mbsnlen.m4: New file.
48584         * modules/mbsnlen: New file.
48585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48586         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48587         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48588
48589 2007-06-10  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48592
48593 2007-06-10  Bruno Haible  <bruno@clisp.org>
48594
48595         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48596         * lib/mbuiter.h: Likewise.
48597
48598 2007-06-10  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48601         declaration.
48602
48603 2007-06-10  Karl Berry  <karl@gnu.org>
48604
48605         * config/srclist.txt: remove gettext entries, Bruno prefers
48606         to update individually.
48607
48608 2007-06-10  Bruno Haible  <bruno@clisp.org>
48609
48610         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48611         'maxlen'. Ensure only length + width bytes are allocated, not
48612         length + 1 + width.
48613
48614 2007-06-09  Bruno Haible  <bruno@clisp.org>
48615
48616         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48617         (CHAR_T): Remove macro.
48618         (VASNPRINTF): Update.
48619
48620 2007-06-09  Bruno Haible  <bruno@clisp.org>
48621
48622         * MODULES.html.sh (Unicode string functions): Add the new modules.
48623
48624         * modules/uniconv/u32-conv-to-enc: New file.
48625         * lib/uniconv/u32-conv-to-enc.c: New file.
48626         * modules/uniconv/u32-conv-to-enc-tests: New file.
48627         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48628
48629         * modules/uniconv/u16-conv-to-enc: New file.
48630         * lib/uniconv/u16-conv-to-enc.c: New file.
48631         * lib/uniconv/u-conv-to-enc.h: New file.
48632         * modules/uniconv/u16-conv-to-enc-tests: New file.
48633         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48634
48635         * modules/uniconv/u8-conv-to-enc: New file.
48636         * lib/uniconv/u8-conv-to-enc.c: New file.
48637         * modules/uniconv/u8-conv-to-enc-tests: New file.
48638         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48639
48640         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48641         u32_conv_to_encoding): New declarations.
48642
48643 2007-06-09  Bruno Haible  <bruno@clisp.org>
48644
48645         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48646
48647 2007-06-09  Bruno Haible  <bruno@clisp.org>
48648
48649         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48650         * modules/malloca: Renamed from modules/allocsa, updated.
48651         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48652         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48653         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48654         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48655         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48656         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48657         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48658         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48659         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48660         * modules/c-strcasestr (Depends-on): Update.
48661         * lib/c-strcasestr.c: Update.
48662         * modules/c-strstr (Depends-on): Update.
48663         * lib/c-strstr.c: Update.
48664         * modules/canonicalize-lgpl (Depends-on): Update.
48665         * lib/canonicalize-lgpl.c: Update.
48666         * modules/clean-temp (Depends-on): Update.
48667         * lib/clean-temp.c: Update.
48668         * modules/csharpcomp (Depends-on): Update.
48669         * lib/csharpcomp.c: Update.
48670         * modules/csharpexec (Depends-on): Update.
48671         * lib/csharpexec.c: Update.
48672         * modules/javacomp (Depends-on): Update.
48673         * lib/javacomp.c: Update.
48674         * modules/javaexec (Depends-on): Update.
48675         * lib/javaexec.c: Update.
48676         * modules/mbscasestr (Depends-on): Update.
48677         * lib/mbscasestr.c: Update.
48678         * modules/mbsstr (Depends-on): Update.
48679         * lib/mbsstr.c: Update.
48680         * modules/setenv (Depends-on): Update.
48681         * lib/setenv.c: Update.
48682         * modules/strcasestr (Depends-on): Update.
48683         * lib/strcasestr.c: Update.
48684         * modules/striconveha (Depends-on): Update.
48685         * lib/striconveha.c: Update.
48686         * modules/relocatable-prog-wrapper (Files): Update.
48687         * lib/relocwrapper.c: Update.
48688         * build-aux/install-reloc: Update.
48689         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48690
48691 2007-06-08  Bruno Haible  <bruno@clisp.org>
48692
48693         Port to uClibc.
48694         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48695         * lib/fpurge.c (fpurge): Likewise.
48696         * lib/freading.c (freading): Likewise.
48697         * lib/fseeko.c (rpl_fseeko): Likewise.
48698         * lib/fseterr.c (fseterr): Likewise.
48699         * lib/fwriting.c (fwriting): Likewise.
48700         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48701
48702 2007-06-08  Bruno Haible  <bruno@clisp.org>
48703
48704         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48705         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48706         * modules/gettext (Files): Add m4/intlmacosx.m4.
48707
48708 2007-06-07  Bruno Haible  <bruno@clisp.org>
48709
48710         * modules/localename-tests: New file.
48711         * tests/test-localename.c: New file.
48712
48713         New module 'localename'.
48714         * lib/localename.h: New file.
48715         * lib/localename.c: New file, from GNU gettext.
48716         * m4/localename.m4: New file.
48717         * modules/localename: New file.
48718
48719 2007-06-07  Bruno Haible  <bruno@clisp.org>
48720
48721         Work around the lack of <wchar.h> on some builds of uClibc.
48722         * doc/headers/wchar.texi: Update.
48723         * lib/wchar_.h: Include <wchar.h> only if it exists.
48724         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48725         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48726         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48727         doesn't exist.
48728         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48729         * modules/mbfile (Depends-on): Add wchar.
48730         * modules/mbiter (Depends-on): Likewise.
48731         * modules/mbuiter (Depends-on): Likewise.
48732         Reported by Simon Josefsson.
48733
48734 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48735
48736         Work around problem reported by Steven M. Schweda in
48737         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48738         Tru64 5.1B with the Compaq compiler environment installed declares
48739         an 'isblank' function but does not define it in the C library.
48740         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48741         * lib/regex_internal.h (isblank): Likewise.
48742         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48743         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48744
48745 2007-06-05  Bruno Haible  <bruno@clisp.org>
48746
48747         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48748         ia64.
48749         * modules/printf-safe: New file.
48750         * modules/fprintf-posix (Depends-on): Add printf-safe.
48751         * modules/printf-posix (Depends-on): Likewise.
48752         * modules/snprintf-posix (Depends-on): Likewise.
48753         * modules/sprintf-posix (Depends-on): Likewise.
48754         * modules/vasnprintf-posix (Depends-on): Likewise.
48755         * modules/vasprintf-posix (Depends-on): Likewise.
48756         * modules/vfprintf-posix (Depends-on): Likewise.
48757         * modules/vprintf-posix (Depends-on): Likewise.
48758         * modules/vsnprintf-posix (Depends-on): Likewise.
48759         * modules/vsprintf-posix (Depends-on): Likewise.
48760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48761         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48762         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48763         "no" on i386, x86_64, ia64.
48764         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48765         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48766         on i386, x86_64, ia64.
48767         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48768         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48769         on i386, x86_64, ia64.
48770         * tests/test-vasnprintf-posix.c: Include float.h.
48771         (LDBL80_WORDS): New macro.
48772         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48773         on i386, x86_64, ia64.
48774         * tests/test-vasprintf-posix.c: Include float.h.
48775         (LDBL80_WORDS): New macro.
48776         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48777         on i386, x86_64, ia64.
48778         * tests/test-snprintf-posix.c: Include float.h.
48779         * tests/test-sprintf-posix.c: Likewise.
48780         * tests/test-vsnprintf-posix.c: Likewise.
48781         * tests/test-vsprintf-posix.c: Likewise.
48782
48783 2007-06-05  Bruno Haible  <bruno@clisp.org>
48784
48785         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48786         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48787         non-IEEE numbers on i386, x86_64, ia64.
48788         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48789         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48790         * tests/test-isnanl.h: Include float.h.
48791         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48792
48793 2007-06-05  Bruno Haible  <bruno@clisp.org>
48794
48795         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48796         also the %a / %A. Handle the %a / %A code before this extra handling.
48797
48798 2007-06-05  Bruno Haible  <bruno@clisp.org>
48799
48800         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48801         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48802
48803 2007-06-05  Bruno Haible  <bruno@clisp.org>
48804
48805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48806         typo in variable name.
48807
48808 2007-06-05  Eric Blake  <ebb9@byu.net>
48809
48810         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48811         Reported by Simon Josefsson.
48812
48813 2007-06-04  Bruno Haible  <bruno@clisp.org>
48814
48815         Avoid test failures on some PowerPC platforms.
48816         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48817         Define differently for PowerPC.
48818         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48819         Reported by Gary V. Vaughan <gary@gnu.org>.
48820
48821 2007-06-02  Bruno Haible  <bruno@clisp.org>
48822
48823         Fix test-stdint failure on FreeBSD/ia64.
48824         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48825         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48826         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48827         * doc/headers/stdint.texi: Update.
48828
48829 2007-06-01  Bruno Haible  <bruno@clisp.org>
48830
48831         * tests/test-binary-io.c (main): Pass a third argument to open().
48832         Reported by Gary V. Vaughan <gary@gnu.org>.
48833
48834 2007-06-01  Bruno Haible  <bruno@clisp.org>
48835
48836         * doc/functions/frexpl.texi: Update for mingw.
48837
48838 2007-06-01  Bruno Haible  <bruno@clisp.org>
48839
48840         * tests/test-lseek.c (main): Disable test of errno for invalid third
48841         argument.
48842         * doc/functions/lseek.texi: Update.
48843         Reported by Gary V. Vaughan <gary@gnu.org>.
48844
48845 2007-05-28  Bruno Haible  <bruno@clisp.org>
48846
48847         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48848
48849 2007-05-31  Eric Blake  <ebb9@byu.net>
48850
48851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48852         cross compiling.
48853
48854 2007-05-30  Eric Blake  <ebb9@byu.net>
48855         and Bruno Haible  <bruno@clisp.org>
48856
48857         Work around mingw test failures exposed by m4-1.4.9b.
48858         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48859         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48860         moment.
48861
48862 2007-05-30  Bruno Haible  <bruno@clisp.org>
48863
48864         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48865         assuming that they are closed. Needed on HP-UX 11.
48866
48867 2007-05-29  Bruno Haible  <bruno@clisp.org>
48868
48869         Fix a problem with #include_next.
48870         * lib/dirent_.h: Split the double-inclusion guard.
48871         * lib/fcntl_.h: Likewise.
48872         * lib/float_.h: Likewise.
48873         * lib/iconv_.h: Likewise.
48874         * lib/inttypes_.h: Likewise.
48875         * lib/locale_.h: Likewise.
48876         * lib/math_.h: Likewise.
48877         * lib/netinet_in_.h: Likewise.
48878         * lib/search_.h: Likewise.
48879         * lib/signal_.h: Likewise.
48880         * lib/stdint_.h: Likewise.
48881         * lib/stdio_.h: Likewise.
48882         * lib/stdlib_.h: Likewise.
48883         * lib/string_.h: Likewise.
48884         * lib/sys_select_.h: Likewise.
48885         * lib/sys_socket_.h: Likewise.
48886         * lib/sys_stat_.h: Likewise.
48887         * lib/sys_time_.h: Likewise.
48888         * lib/sysexits_.h: Likewise.
48889         * lib/time_.h: Likewise.
48890         * lib/unistd_.h: Likewise.
48891         * lib/wchar_.h: Likewise.
48892         * lib/wctype_.h: Likewise.
48893
48894 2007-05-29  Bruno Haible  <bruno@clisp.org>
48895
48896         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48897         for the moment.
48898
48899 2007-05-29  Bruno Haible  <bruno@clisp.org>
48900
48901         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48902         invocation.
48903         Reported by Eric Blake.
48904
48905 2007-05-29  Bruno Haible  <bruno@clisp.org>
48906
48907         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48908         compiling case.
48909
48910 2007-05-29  Eric Blake  <ebb9@byu.net>
48911             Bruno Haible  <bruno@clisp.org>
48912
48913         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48914         cross compiles.
48915
48916 2007-05-28  Eric Blake  <ebb9@byu.net>
48917
48918         * modules/closein-tests (test_closein_LDADD): Support test on
48919         cygwin with libtool.
48920
48921 2007-05-28  Bruno Haible  <bruno@clisp.org>
48922
48923         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48924         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48925         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48926         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48927         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48928         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48929         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48930         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48931         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48932
48933 2007-05-28  Eric Blake  <ebb9@byu.net>
48934
48935         Unconditionally include <config.h> in unit tests.
48936         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48937         * tests/test-allocsa.c, tests/test-arcfour.c,
48938         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48939         tests/test-array_list.c, tests/test-array_oset.c,
48940         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48941         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48942         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48943         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48944         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48945         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48946         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48947         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48948         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48949         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48950         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48951         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48952         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48953         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48954         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48955         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48956         test-md5.c, test-memmem.c, test-printf-posix.c,
48957         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48958         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48959         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48960         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48961         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48962         test-vasnprintf-posix2.c, test-vasnprintf.c,
48963         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48964         test-vfprintf-posix.c, test-vprintf-posix.c,
48965         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48966         test-xvasprintf.c: Likewise.
48967
48968 2007-05-28  Bruno Haible  <bruno@clisp.org>
48969
48970         * gnulib-tool (func_import): Remember the --with-tests command-line
48971         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48972         Reported by Eric Blake.
48973
48974 2007-05-28  Bruno Haible  <bruno@clisp.org>
48975
48976         * modules/ftell-tests: New file.
48977         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48978         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48979
48980         * lib/ftell.c: New file.
48981         * modules/ftell: New file.
48982         * m4/ftell.m4: New file.
48983         * doc/functions/ftell.texi: Update.
48984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48985         REPLACE_FTELL.
48986         * lib/stdio_.h (rpl_ftell): New declaration.
48987         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48988         REPLACE_FTELL.
48989
48990 2007-05-28  Eric Blake  <ebb9@byu.net>
48991
48992         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48993
48994 2007-05-28  Bruno Haible  <bruno@clisp.org>
48995
48996         * modules/fseek-tests: New file.
48997         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48998         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48999
49000         * lib/fseek.c: New file.
49001         * modules/fseek: New file.
49002         * m4/fseek.m4: New file.
49003         * doc/functions/fseek.texi: Update.
49004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49005         REPLACE_FSEEK.
49006         * lib/stdio_.h (rpl_fseek): New declaration.
49007         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49008         REPLACE_FSEEK.
49009
49010 2007-05-28  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/stdio_.h (fflush): More comments.
49013
49014 2007-05-28  Bruno Haible  <bruno@clisp.org>
49015
49016         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49017         runtime test.
49018
49019 2007-05-28  Eric Blake  <ebb9@byu.net>
49020
49021         Improve lseek module.
49022         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49023         * lib/unistd_.h (lseek): Scale back link warning message.
49024         * tests/test-lseek.c: Beef up test.
49025         * tests/test-lseek.sh: Exercise more facets of lseek.
49026         Reported by Bruno Haible.
49027
49028 2007-05-28  Bruno Haible  <bruno@clisp.org>
49029
49030         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49031         to define.
49032
49033 2007-05-27  Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49036
49037 2007-05-27  Bruno Haible  <bruno@clisp.org>
49038
49039         * modules/openmp: New file.
49040         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49041         Noah Misch.
49042
49043 2007-05-26  Bruno Haible  <bruno@clisp.org>
49044
49045         * modules/chdir-long (Depends-on): Add fchdir.
49046         * modules/chdir-safer (Depends-on): Likewise.
49047         * modules/fts (Depends-on): Likewise.
49048         * modules/fts-lgpl (Depends-on): Likewise.
49049         * modules/openat (Depends-on): Likewise.
49050         * modules/savewd (Depends-on): Likewise.
49051
49052 2007-05-24  Eric Blake  <ebb9@byu.net>
49053
49054         Fix lseek on mingw.
49055         * modules/lseek: New module.
49056         * m4/lseek.m4: New file.
49057         * lib/lseek.c: New file.
49058         * modules/lseek-tests: New file.
49059         * tests/test-lseek.c: New file.
49060         * tests/test-lseek.sh: New file.
49061         * MODULES.html.sh: Document lseek module.
49062         * modules/fflush (Depends-on): Add lseek, fseeko.
49063         * modules/fseeko (Depends-on): Likewise.
49064         * modules/ftello (Depends-on): Likewise.
49065         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49066         broken.
49067         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49068         broken.
49069         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49070         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49071         * lib/ftello.c (rpl_ftello): Likewise.
49072         * tests/test-fseeko.c (main): Test this.
49073         * tests/test-fseeko.sh: Likewise.
49074         * tests/test-ftello.c (main): Likewise.
49075         * tests/test-ftello.sh: Likewise.
49076         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49077         implies replacing fseek.
49078         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49079         HAVE_FTELLO.
49080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49081         * modules/unistd (Makefile.am): Likewise.
49082         * lib/unistd_.h (lseek): Declare a replacement.
49083         * doc/functions/lseek.texi (lseek): Document this fix.
49084         * doc/functions/fseek.texi (fseek): Likewise.
49085         * doc/functions/ftell.texi (ftell): Likewise.
49086
49087 2007-05-24  Bruno Haible  <bruno@clisp.org>
49088
49089         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49090         in the printed representation of a NaN.
49091         * tests/test-vasprintf-posix.c (test_function): Likewise.
49092         * tests/test-snprintf-posix.h (test_function): Likewise.
49093         * tests/test-sprintf-posix.h (test_function): Likewise.
49094         Reported by Eric Blake.
49095
49096 2007-05-23  Eric Blake  <ebb9@byu.net>
49097
49098         Fix fseeko/ftello on cygwin 1.5.24.
49099         * doc/functions/fseeko.texi (fseeko): Document the fix.
49100         * doc/functions/ftello.texi (ftello): Document the fix.
49101         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49102         * doc/functions/stdout.text (stdout): New file.
49103         * doc/functions/stderr.text (stderr): New file.
49104         * doc/gnulib.texi (Function Substitutes): Use new files.
49105         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49106         prior to 1.7.0.
49107         * tests/test-ftello.c (main): Likewise for ftello.
49108         * tests/test-fseeko.sh: New file.
49109         * tests/test-ftello.sh: New file.
49110         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49111         with seekable stdin.
49112         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49114         (gl_REPLACE_FSEEKO): New macro.
49115         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49116         * modules/fseeko (Files): Distribute fseeko.c.
49117         * modules/ftello (Files): Distribute ftello.c.
49118         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49119         mode.
49120         * lib/ftello.c (rpl_ftello): New file.
49121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49122         fseeko, ftello.
49123         (gl_STDIN_LARGE_OFFSET): New macro.
49124         * modules/stdio (Makefile.am): Perform the replacement.
49125         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49126
49127 2007-05-23  Bruno Haible  <bruno@clisp.org>
49128
49129         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49130         GNULIB_POSIXCHECK is defined.
49131
49132 2007-05-21  Bruno Haible  <bruno@clisp.org>
49133
49134         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49135         Check also the output for NaN arguments. When cross-compiling, guess
49136         no on IRIX.
49137         * lib/vasnprintf.c: Update comments.
49138         * tests/test-vasnprintf-posix.c (strisnan): New function.
49139         (test_function): Use it.
49140         * tests/test-vasprintf-posix.c (strisnan): New function.
49141         (test_function): Use it.
49142         * tests/test-snprintf-posix.h (strisnan): New function.
49143         (test_function): Use it.
49144         * tests/test-sprintf-posix.h (strisnan): New function.
49145         (test_function): Use it.
49146         Reported by Eric Blake.
49147
49148 2007-05-20  Bruno Haible  <bruno@clisp.org>
49149
49150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49151         numbers that fails on BeOS.
49152         * doc/functions/frexpl.texi: Update.
49153
49154 2007-05-20  Jim Meyering  <jim@meyering.net>
49155
49156         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49157         forced upon us by glibc-2.6.
49158
49159 2007-05-20  Bruno Haible  <bruno@clisp.org>
49160
49161         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49162         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49163         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49164         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49165         NEED_PRINTF_INFINITE.
49166         (is_infinitel): New function.
49167         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49169         gl_PREREQ_VASNPRINTF_INFINITE.
49170         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49171         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49172         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49173         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49174         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49175         gl_PREREQ_VASNPRINTF_INFINITE.
49176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49183         * doc/functions/fprintf.texi: Update.
49184         * doc/functions/printf.texi: Update.
49185         * doc/functions/snprintf.texi: Update.
49186         * doc/functions/sprintf.texi: Update.
49187         * doc/functions/vfprintf.texi: Update.
49188         * doc/functions/vprintf.texi: Update.
49189         * doc/functions/vsnprintf.texi: Update.
49190         * doc/functions/vsprintf.texi: Update.
49191
49192 2007-05-20  Bruno Haible  <bruno@clisp.org>
49193
49194         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49195         was not found in libc.
49196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49197
49198 2007-05-20  Bruno Haible  <bruno@clisp.org>
49199
49200         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49201         printed as "-nan" instead of "nan".
49202         * tests/test-vasprintf-posix.c (test_function): Likewise.
49203         * tests/test-snprintf-posix.h (test_function): Likewise.
49204         * tests/test-sprintf-posix.h (test_function): Likewise.
49205         Needed for HP-UX 11.
49206
49207 2007-05-20  Jim Meyering  <jim@meyering.net>
49208
49209         Fix buggy test for the fchownat-deref bug.
49210         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49211         symlink required for the run-test.  Without it, this test would
49212         always declare that fchownat doesn't work, and client code would
49213         unnecessarily use the replacement function with fixed libc.
49214         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49215         Reported by Greg Schafer.
49216
49217 2007-05-19  Bruno Haible  <bruno@clisp.org>
49218
49219         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49220         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49221         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49222         Needed for IRIX 6.5 and Solaris 2.5.1.
49223
49224 2007-05-19  Bruno Haible  <bruno@clisp.org>
49225
49226         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49227         (test_function): Skip tests involving -0.0 on platforms where
49228         -0.0 = 0.0.
49229         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49230         (test_function): Skip tests involving -0.0 on platforms where
49231         -0.0 = 0.0.
49232         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49233         (test_function): Skip tests involving -0.0 on platforms where
49234         -0.0 = 0.0.
49235         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49236         (test_function): Skip tests involving -0.0 on platforms where
49237         -0.0 = 0.0.
49238         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49239         tests.
49240         * tests/test-printf-posix.h (test_function): Likewise.
49241         * tests/test-printf-posix.output: Remove all -0.0 related results.
49242         Needed for IRIX 6.5.
49243
49244 2007-05-19  Bruno Haible  <bruno@clisp.org>
49245
49246         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49247         printed as "nan0x7fffffff" instead of "nan".
49248         * tests/test-vasprintf-posix.c (test_function): Likewise.
49249         * tests/test-snprintf-posix.h (test_function): Likewise.
49250         * tests/test-sprintf-posix.h (test_function): Likewise.
49251         * tests/test-fprintf-posix.h (NaN): Remove macro.
49252         (test_function): Remove all NaN related tests.
49253         * tests/test-printf-posix.h (NaN): Remove macro.
49254         (test_function): Remove all NaN related tests.
49255         * tests/test-printf-posix.output: Remove all NaN related results.
49256         Needed for IRIX 6.5.
49257
49258 2007-05-19  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49262
49263 2007-05-19  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/float_.h: New file.
49266         * m4/float_h.m4: New file.
49267         * modules/float: New file.
49268         * modules/isnanl (Dependencies): Add float.
49269         * modules/isnanl-nolibm (Dependencies): Likewise.
49270         * modules/mathl (Dependencies): Likewise.
49271         * modules/printf-frexpl (Dependencies): Likewise.
49272         * modules/signbit (Dependencies): Likewise.
49273         * modules/vasnprintf (Dependencies): Likewise.
49274         * doc/headers/float.texi: Update.
49275
49276 2007-05-19  Jim Meyering  <jim@meyering.net>
49277
49278         * lib/utimens.c (gl_futimens): Rename from futimens,
49279         now that glibc-2.6 declares futimens.
49280         * lib/utimens.h: Likewise.
49281
49282 2007-05-19  Bruno Haible  <bruno@clisp.org>
49283
49284         Avoid test failures on mingw.
49285         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49286         * tests/test-printf-posix.sh: Likewise.
49287         * tests/test-vfprintf-posix.sh: Likewise.
49288         * tests/test-vprintf-posix.sh: Likewise.
49289
49290 2007-05-19  Bruno Haible  <bruno@clisp.org>
49291
49292         Fix *printf result for NaN, Inf, -0.0 on mingw.
49293         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49294         * lib/vasnprintf.c: Include math.h and isnan.h.
49295         (is_infinite_or_zero): New function.
49296         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49297         values in the %f, %F, %e, %E, %g, %G directives.
49298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49300         gl_PRINTF_INFINITE and test its result. Invoke
49301         gl_PREREQ_VASNPRINTF_INFINITE.
49302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49309         * doc/functions/fprintf.texi: Update.
49310         * doc/functions/printf.texi: Update.
49311         * doc/functions/snprintf.texi: Update.
49312         * doc/functions/sprintf.texi: Update.
49313         * doc/functions/vfprintf.texi: Update.
49314         * doc/functions/vprintf.texi: Update.
49315         * doc/functions/vsnprintf.texi: Update.
49316         * doc/functions/vsprintf.texi: Update.
49317
49318 2007-05-19  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49321         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49322         Instead of multiplying with 10^k, set extra_zeroes to k.
49323         (scale10_round_long_double): Remove function.
49324
49325 2007-05-18  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49328         introduced on 2007-05-06.
49329
49330 2007-05-18  Bruno Haible  <bruno@clisp.org>
49331
49332         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49333         %g directives.
49334         * tests/test-vasprintf-posix.c (test_function): Likewise.
49335         * tests/test-snprintf-posix.h (test_function): Likewise.
49336         * tests/test-sprintf-posix.h (test_function): Likewise.
49337
49338 2007-05-18  Bruno Haible  <bruno@clisp.org>
49339
49340         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49341         (strmatch): New function.
49342         (test_function): Test the %f directive on numbers of various exponents.
49343         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49344         (strmatch): New function.
49345         (test_function): Test the %f directive on numbers of various exponents.
49346         * tests/test-snprintf-posix.h (strmatch): New function.
49347         (test_function): Test the %f directive on numbers of various exponents.
49348         * tests/test-sprintf-posix.h (strmatch): New function.
49349         (test_function): Test the %f directive on numbers of various exponents.
49350         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49351         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49352         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49353         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49354
49355 2007-05-18  Bruno Haible  <bruno@clisp.org>
49356
49357         Add support for 'long double' number output.
49358         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49359         * lib/vasnprintf.c: Include math.h and float+.h.
49360         (mp_limb_t): New type.
49361         (GMP_LIMB_BITS): New macro.
49362         (mp_twolimb_t): New type.
49363         (GMP_TWOLIMB_BITS): New macro.
49364         (mpn_t): New type.
49365         (multiply, divide, convert_to_decimal, decode_long_double,
49366         scale10_round_long_double, scale10_round_decimal_long_double,
49367         floorlog10l): New functions.
49368         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49369         for the %f, %F, %e, %E, %g, %G directives.
49370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49372         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49373         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49381         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49382         * modules/snprintf-posix (Depends-on): Likewise.
49383         * modules/sprintf-posix (Depends-on): Likewise.
49384         * modules/vasnprintf-posix (Depends-on): Likewise.
49385         * modules/vasprintf-posix (Depends-on): Likewise.
49386         * modules/vfprintf-posix (Depends-on): Likewise.
49387         * modules/vsnprintf-posix (Depends-on): Likewise.
49388         * modules/vsprintf-posix (Depends-on): Likewise.
49389         * modules/vasnprintf (Files): Add lib/float+.h.
49390         * doc/functions/fprintf.texi: Update.
49391         * doc/functions/printf.texi: Update.
49392         * doc/functions/snprintf.texi: Update.
49393         * doc/functions/sprintf.texi: Update.
49394         * doc/functions/vfprintf.texi: Update.
49395         * doc/functions/vprintf.texi: Update.
49396         * doc/functions/vsnprintf.texi: Update.
49397         * doc/functions/vsprintf.texi: Update.
49398
49399 2007-05-18  Bruno Haible  <bruno@clisp.org>
49400
49401         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49402
49403 2007-05-18  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49406         for printing 64-bit integers. Needed for mingw.
49407
49408 2007-05-18  Bruno Haible  <bruno@clisp.org>
49409
49410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49411         gl_FUNC_FREXPL_WORKS.
49412         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49413
49414 2007-05-18  Bruno Haible  <bruno@clisp.org>
49415
49416         * modules/frexpl-nolibm-tests: New file.
49417
49418         * modules/frexpl-nolibm: New file.
49419         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49420
49421 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49424         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49425         GCC 4.2, which otherwise issues a lot of warnings.
49426         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49427         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49428         Likewise.
49429         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49430         * modules/iconv_open (iconv.h): Likewise.
49431         * modules/locale (locale.h): Likewise.
49432         * modules/netinet_in (netinet/in.h): Likewise.
49433         * modules/sys_select (sys_select.h): Likewise.
49434         * modules/sys_socket (sys/socket.h): Likewise.
49435         * modules/sys_stat (sys/stat.h): Likewise.
49436         * modules/sysexits (sysexits.h): Likewise.
49437         * modules/unistd (unistd.h): Likewise.
49438
49439 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49440
49441         * modules/closein-tests (Makefile.am): Distribute
49442         `test-closein.sh'.
49443
49444 2007-05-17  Bruno Haible  <bruno@clisp.org>
49445
49446         * tests/test-printf-posix.output: Renamed from
49447         tests/test-fprintf-posix.out.
49448         * modules/fprintf-posix-tests: Update.
49449         * modules/printf-posix-tests: Update.
49450         * modules/vfprintf-posix-tests: Update.
49451         * modules/vprintf-posix-tests: Update.
49452         * tests/test-fprintf-posix.sh: Update.
49453         * tests/test-printf-posix.sh: Update.
49454         * tests/test-vfprintf-posix.sh: Update.
49455         * tests/test-vprintf-posix.sh: Update.
49456         Reported by Ralf Wildenhues.
49457
49458 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49459
49460         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49461         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49462         GCC 4.2, which otherwise issues a lot of warnings.
49463         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49464         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49465         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49466         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49467         it should no longer be needed.
49468         * lib/string_.h: Likewise.
49469         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49470         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49471         * modules/inttypes (inttypes.h): Likewise.
49472         * modules/math (math.h): Likewise.
49473         * modules/search (search.h): Likewise.
49474         * modules/signal (signal.h): Likewise.
49475         * modules/stdint (stdint.h): Likewise.
49476         * modules/stdio (stdio.h): Likewise.
49477         * modules/stdlib (stdlib.h): Likewise.
49478         * modules/string (string.h): Likewise.
49479         * modules/sys_time (sys/time.h): Likewise.
49480         * modules/time (time.h): Likewise.
49481         * modules/wchar (wchar.h): Likewise.
49482         * modules/wctype (wtype.h): Likewise.
49483
49484 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49485
49486         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49487
49488 2007-05-13  Bruno Haible  <bruno@clisp.org>
49489
49490         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49491         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49492         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49493         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49494         (gl_PREREQ_STRTOK_R): Don't require it here.
49495
49496 2007-05-13  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49499         when used in C++ mode.
49500
49501 2007-05-12  Bruno Haible  <bruno@clisp.org>
49502
49503         * lib/linebuffer.h: Tweak doc.
49504         * lib/linebuffer.c: Likewise.
49505
49506 2007-05-12  James Youngman  <jay@gnu.org>
49507
49508         * lib/linebuffer.c (readlinebuffer_delim): New function,
49509         like readlinebuffer, but use a caller-specified delimiter.
49510         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49511         as the delimiter.
49512         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49513
49514 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49515
49516         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49517         * modules/openat (Files): Remove openat-die.c.
49518         (Depends-on): Add openat-die.
49519         * modules/openat-die: New module.
49520
49521 2007-05-06  Bruno Haible  <bruno@clisp.org>
49522
49523         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49524         Update with info about Cygwin.
49525         * doc/functions/fprintf.texi: Update.
49526         * doc/functions/printf.texi: Update.
49527         * doc/functions/snprintf.texi: Update.
49528         * doc/functions/sprintf.texi: Update.
49529         * doc/functions/vfprintf.texi: Update.
49530         * doc/functions/vprintf.texi: Update.
49531         * doc/functions/vsnprintf.texi: Update.
49532         * doc/functions/vsprintf.texi: Update.
49533         Reported by Eric Blake.
49534
49535 2007-05-06  Bruno Haible  <bruno@clisp.org>
49536
49537         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49538         padding ourselves for the floating-point directives.
49539         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49542         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49543         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49551         * tests/test-snprintf-posix.h (test_function): Also check the width
49552         and some flags in the %f directive.
49553         * tests/test-sprintf-posix.h (test_function): Likewise.
49554         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49555         * tests/test-vasprintf-posix.c (test_function): Likewise.
49556         * doc/functions/fprintf.texi: Update.
49557         * doc/functions/printf.texi: Update.
49558         * doc/functions/snprintf.texi: Update.
49559         * doc/functions/sprintf.texi: Update.
49560         * doc/functions/vfprintf.texi: Update.
49561         * doc/functions/vprintf.texi: Update.
49562         * doc/functions/vsnprintf.texi: Update.
49563         * doc/functions/vsprintf.texi: Update.
49564
49565 2007-05-06  Bruno Haible  <bruno@clisp.org>
49566
49567         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49568         pass the ' flag character to sprintf or snprintf.
49569         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49572         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49573         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49581         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49582         flag.
49583         * tests/test-sprintf-posix.h (test_function): Likewise.
49584         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49585         * tests/test-vasprintf-posix.c (test_function): Likewise.
49586         * doc/functions/fprintf.texi: Update.
49587         * doc/functions/printf.texi: Update.
49588         * doc/functions/snprintf.texi: Update.
49589         * doc/functions/sprintf.texi: Update.
49590         * doc/functions/vfprintf.texi: Update.
49591         * doc/functions/vprintf.texi: Update.
49592         * doc/functions/vsnprintf.texi: Update.
49593         * doc/functions/vsprintf.texi: Update.
49594
49595 2007-05-01  Bruno Haible  <bruno@clisp.org>
49596
49597         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49598
49599 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49602         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49603
49604 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49605
49606         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49607         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49609
49610 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49611
49612         * lib/argp-help.c (struct hol_entry): New member `ord'.
49613         (HOL_ENTRY_PTRCMP): Use ord for comparison
49614         (hol_sort): Initialize ord.
49615
49616 2007-05-01  Bruno Haible  <bruno@clisp.org>
49617
49618         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49619         Reported by Eric Blake.
49620         * doc/gnulib.texi (Function Substitutes): Update.
49621
49622 2007-05-01  Bruno Haible  <bruno@clisp.org>
49623
49624         * doc/functions.texi: Remove file, now redundant through
49625         doc/functions/*.texi.
49626
49627 2007-05-01  Bruno Haible  <bruno@clisp.org>
49628
49629         * modules/argp (Depends-on): Add sleep.
49630
49631 2007-05-01  Bruno Haible  <bruno@clisp.org>
49632
49633         * modules/sleep-tests: New file.
49634         * tests/test-sleep.c: New file.
49635
49636         * modules/sleep: New file.
49637         * lib/sleep.c: New file.
49638         * m4/sleep.m4: New file.
49639         * lib/unistd_.h (sleep): New declaration.
49640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49641         HAVE_SLEEP.
49642         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49643         * doc/functions/sleep.texi: Document the sleep module.
49644
49645 2007-05-01  Bruno Haible  <bruno@clisp.org>
49646
49647         * lib/sigprocmask.h: Remove file.
49648         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49649         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49650         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49651         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49652         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49653         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49654         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49655         HAVE_SIGSET_T as a shell variable.
49656         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49657         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49658         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49659         (Depends-on): Add signal. Remove verify.
49660         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49661         (Include): Mention <signal.h> instead of sigprocmask.h.
49662         * NEWS: Mention the change.
49663         * lib/fatal-signal.c: Don't include sigprocmask.h.
49664
49665 2007-05-01  Bruno Haible  <bruno@clisp.org>
49666
49667         * modules/signal: New file.
49668         * lib/signal_.h: New file.
49669         * m4/signal_h.m4: New file.
49670
49671 2007-05-01  Bruno Haible  <bruno@clisp.org>
49672
49673         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49674         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49675         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49676         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49677
49678 2007-05-01  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49681         configure time.
49682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49683         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49684         * modules/sys_stat (Makefile.am): Substitute their values into
49685         sys/stat.h.
49686
49687 2007-05-01  Bruno Haible  <bruno@clisp.org>
49688
49689         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49690         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49691         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49692
49693 2007-05-01  Bruno Haible  <bruno@clisp.org>
49694
49695         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49696         'assert' module here.
49697
49698 2007-05-01  Bruno Haible  <bruno@clisp.org>
49699
49700         * doc/functions/*.texi: New files.
49701         * doc/functions/google-ranking.txt: New file.
49702         * doc/gnulib.texi (Function Substitutes): New chapter.
49703         (ctime, inet_ntoa): Remove sections.
49704         * doc/ctime.texi: Remove file.
49705         * doc/inet_ntoa.texi: Remove file.
49706         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49707         dependencies.
49708         (%.info): New rule, specifying a --reference-limit.
49709
49710 2007-05-01  Bruno Haible  <bruno@clisp.org>
49711
49712         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49713
49714 2007-05-01  Bruno Haible  <bruno@clisp.org>
49715
49716         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49717         the portability of 'mkdir' to mingw systems.
49718
49719 2007-05-01  Bruno Haible  <bruno@clisp.org>
49720
49721         * doc/headers/google-ranking.txt: New file.
49722
49723 2007-04-30  Eric Blake  <ebb9@byu.net>
49724
49725         Prefer fseeko to fseek.
49726         * modules/getpass (Depends-on): Add fseeko.
49727         * lib/getpass.c (getpass): Use fseeko, not fseek.
49728
49729 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49730
49731         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49732         assumes the sorting is stable, while most qsort implementations
49733         are not.  Use argument addresses to ensure they never compare as
49734         equal.
49735
49736         * tests/test-argp-2.sh (usage-indent test): Fix output
49737         (func_compare): Restore diff options
49738         * tests/test-argp.c: Restore #include "progname.h"
49739
49740 2007-04-29  Bruno Haible  <bruno@clisp.org>
49741
49742         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49744         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49746         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49747         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49748         (TESTS, check_PROGRAMS): Add test-snprintf.
49749         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49750         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49751         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49752         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49753         assertions that fail on HP-UX, OSF/1, or IRIX.
49754         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49755
49756 2007-04-29  Bruno Haible  <bruno@clisp.org>
49757
49758         * MODULES.html.sh (posix_functions): Remove 'contents'.
49759
49760 2007-04-29  Karl Berry  <karl@gnu.org>
49761
49762         * config/srclist.txt (gendocs_template_min): new entry.
49763
49764 2007-04-29  Bruno Haible  <bruno@clisp.org>
49765
49766         Work around fpurge bug on BSD systems.
49767         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49768         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49769         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49770         fpurge to rpl_fpurge if the system already has this function.
49771         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49772         the case where the system already has this function. Correct invariants
49773         on BSD systems.
49774         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49775         BSD systems.
49776
49777 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49778
49779         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49780         proposed by Sven Verdoolaege.
49781
49782         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49783         options.
49784         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49785         (usage and help tests): Update
49786
49787 2007-04-29  Bruno Haible  <bruno@clisp.org>
49788
49789         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49790         Print more information in case of failure. Disable a test on BeOS.
49791
49792 2007-04-29  Bruno Haible  <bruno@clisp.org>
49793
49794         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49795         This helps debugging on systems on which no gdb is available.
49796
49797 2007-04-29  Bruno Haible  <bruno@clisp.org>
49798
49799         * lib/freading.h: Improve comments.
49800         * lib/fwriting.h: Likewise.
49801         * tests/test-freading.c (main): Don't check freading immediately after
49802         repositioning. Needed for glibc.
49803
49804 2007-04-29  Bruno Haible  <bruno@clisp.org>
49805
49806         * lib/freading.c (freading): Trivial simplification.
49807
49808 2007-04-28  Bruno Haible  <bruno@clisp.org>
49809
49810         * tests/test-fwriting.c (main): Also test the interaction between
49811         fflush and fwriting.
49812         * modules/fwriting-tests (Depends-on): Add fflush.
49813
49814         * tests/test-freading.c (main): Also test the interaction between
49815         fflush and freading.
49816         * modules/freading-tests (Depends-on): Add fflush.
49817
49818 2007-04-28  Bruno Haible  <bruno@clisp.org>
49819
49820         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49821         fseeko and ftello.
49822         Suggested by Eric Blake.
49823
49824 2007-04-28  Jim Meyering  <jim@meyering.net>
49825
49826         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49827         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49828         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49829
49830 2007-04-27  Eric Blake  <ebb9@byu.net>
49831
49832         * doc/headers/assert.texi (assert.h): Document assert module use.
49833
49834 2007-04-27  Bruno Haible  <bruno@clisp.org>
49835
49836         * doc/headers/*.texi: New files.
49837         * doc/gnulib.texi (Header File Substitutes): New chapter.
49838         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49839         dependencies.
49840         (standards.info ,standards.html, standards.dvi): Update dependencies.
49841         (mostlyclean, clean): New targets.
49842
49843 2007-04-27  Bruno Haible  <bruno@clisp.org>
49844
49845         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49846         * modules/sysexits (Files, Makefile.am): Update.
49847
49848         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49849         * modules/sys_socket (Files, Makefile.am): Update.
49850
49851         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49852         * modules/sys_stat (Files, Makefile.am): Update.
49853
49854 2007-04-27  Eric Blake  <ebb9@byu.net>
49855
49856         * lib/freading.h: Improve comments.
49857         * lib/fwriting.h: Likewise.
49858         * lib/fflush.c: Likewise.
49859
49860         Fix closein for mingw.
49861         * modules/closein-tests: Add tests for closein.
49862         * tests/test-closein.c: New file.
49863         * tests/test-closein.sh: Likewise.
49864         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49865         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49866
49867 2007-04-27  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49870         version is < 6.
49871         * lib/math_.h [__DECC]: Likewise.
49872         * lib/stdio_.h [__DECC]: Likewise.
49873         * lib/stdlib_.h [__DECC]: Likewise.
49874         * lib/string_.h [__DECC]: Likewise.
49875         * lib/time_.h [__DECC]: Likewise.
49876         * lib/wchar_.h [__DECC]: Likewise.
49877         * lib/wctype_.h [__DECC]: Likewise.
49878
49879 2007-04-27  Bruno Haible  <bruno@clisp.org>
49880
49881         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49882
49883 2007-04-27  Bruno Haible  <bruno@clisp.org>
49884
49885         * lib/fflush.c: Add comments.
49886         * modules/fpurge-tests (Depends-on): Add fflush.
49887         * modules/freadable-tests (Depends-on): Likewise.
49888         * modules/fwritable-tests (Depends-on): Likewise.
49889
49890 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49891
49892         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49893         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49894         Report by Bruno Haible <bruno@clisp.org>.
49895
49896 2007-04-26  Eric Blake  <ebb9@byu.net>
49897
49898         Fix fflush on mingw.
49899         * modules/fflush (Depends-on): Add freading.
49900         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49901         but unread data.
49902
49903 2007-04-26  Eric Blake  <ebb9@byu.net>
49904         and Bruno Haible  <bruno@clisp.org>
49905
49906         Implement freading and fwriting.
49907         * lib/freading.c: New file.
49908         * lib/freading.h: Likewise.
49909         * m4/freading.m4: Likewise.
49910         * modules/freading: Likewise.
49911         * modules/freading-tests: Likewise.
49912         * tests/test-freading.c: Likewise.
49913         * lib/fwriting.c: New file.
49914         * lib/fwriting.h: Likewise.
49915         * m4/fwriting.m4: Likewise.
49916         * modules/fwriting: Likewise.
49917         * modules/fwriting-tests: Likewise.
49918         * tests/test-fwriting.c: Likewise.
49919         * MODULES.html.sh (File stream based Input/Output): Mention them.
49920
49921 2007-04-26  Bruno Haible  <bruno@clisp.org>
49922
49923         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49924         'long' when we assume it.
49925         Suggested by Eric Blake.
49926
49927 2007-04-26  Bruno Haible  <bruno@clisp.org>
49928
49929         Ensure fseeko, ftello are declared on glibc systems.
49930         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49931         * modules/fseeko (configure.ac-early): Likewise.
49932         * modules/ftello (configure.ac-early): Likewise.
49933         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49934         AC_FUNC_FSEEKO for this.
49935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49936         (gl_CHECK_FSEEKO): Remove macro.
49937
49938 2007-04-26  Bruno Haible  <bruno@clisp.org>
49939
49940         * tests/test-fflush.c (main): Also check the ftell result after
49941         fflush and fseek/fseeko.
49942         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49943         file descriptor position cache in the stream.
49944         * lib/fseeko.c (rpl_fseeko): Likewise.
49945
49946 2007-04-26  Bruno Haible  <bruno@clisp.org>
49947
49948         * modules/fflush-tests (Depends-on): Add fseeko.
49949
49950 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49951             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49952
49953         * lib/argz_.h: ensure error_t definition is obtained in same
49954         mechanism system argz.h would have.
49955         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49956         argz facilities are known bad.  Err on the side of caution if
49957         cross-compiling.
49958
49959 2007-04-25  Eric Blake  <ebb9@byu.net>
49960
49961         * lib/fpurge.c (includes): Use stdlib.h for free.
49962         * tests/test-fflush.c (main): Also test fflush-fseeko.
49963
49964 2007-04-25  Bruno Haible  <bruno@clisp.org>
49965
49966         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49967         * lib/fseeko.c: New file.
49968         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49969         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49970         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49971         gl_FUNC_FSEEKO.
49972         (gl_FUNC_FSEEKO): Invoke it.
49973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49974         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49975         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49976
49977 2007-04-25  Bruno Haible  <bruno@clisp.org>
49978
49979         * modules/fflush (Depends-on): Add ftello.
49980
49981 2007-04-25  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/ftello-tests: New file.
49984         * tests/test-ftello.c: New file.
49985
49986         * modules/ftello: New file.
49987         * m4/ftello.m4: New file.
49988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49989         HAVE_FTELLO.
49990         * lib/stdio_.h (ftello): New declaration.
49991         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49992         HAVE_FTELLO.
49993
49994 2007-04-25  Bruno Haible  <bruno@clisp.org>
49995
49996         * modules/fseeko-tests: New file.
49997         * tests/test-fseeko.c: New file.
49998
49999         * modules/fseeko: New file.
50000         * m4/fseeko.m4: New file.
50001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50002         HAVE_FSEEKO.
50003         * lib/stdio_.h (fseeko): New declaration.
50004         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50005         HAVE_FSEEKO.
50006
50007 2007-04-25  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50010
50011 2007-04-25  Bruno Haible  <bruno@clisp.org>
50012
50013         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50014         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50015         * tests/test-unistd.c: Likewise.
50016         * tests/test-fcntl.c: Likewise.
50017
50018 2007-04-23  Eric Blake  <ebb9@byu.net>
50019
50020         * lib/fflush.c: Fix missing include.
50021         Reported by Bruno Haible.
50022
50023 2007-04-23  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50026         Reported by Eric Blake.
50027
50028 2007-04-23  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50031
50032 2007-04-23  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50035
50036 2007-04-23  Bruno Haible  <bruno@clisp.org>
50037
50038         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50039         Needed on HP-UX 11.
50040
50041 2007-04-16  Eric Blake  <ebb9@byu.net>
50042
50043         Make fflush rely on fpurge.
50044         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50045         open coding all variants.
50046         * modules/fflush (Depends-on): Add fpurge and unistd.
50047         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50048         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50049
50050         Fix --with-tests compilation on cygwin.
50051         * modules/argmatch-tests (Makefile.am): List gnulib library first
50052         in LDADD.
50053         * modules/argp-tests (Makefile.am): Likewise.
50054         * modules/array-list-tests (Makefile.am): Likewise.
50055         * modules/array-oset-tests (Makefile.am): Likewise.
50056         * modules/avltree-list-tests (Makefile.am): Likewise.
50057         * modules/avltree-oset-tests (Makefile.am): Likewise.
50058         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50059         * modules/carray-list-tests (Makefile.am): Likewise.
50060         * modules/dirname-tests (Makefile.am): Likewise.
50061         * modules/frexp-tests (Makefile.am): Likewise.
50062         * modules/isnanl-tests (Makefile.am): Likewise.
50063         * modules/linked-list-tests (Makefile.am): Likewise.
50064         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50065         * modules/lock-tests (Makefile.am): Likewise.
50066         * modules/rbtree-list-tests (Makefile.am): Likewise.
50067         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50068         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50069         * modules/tls-tests (Makefile.am): Likewise.
50070         * modules/tsearch-tests (Makefile.am): Likewise.
50071         * modules/xvasprintf-tests (Makefile.am): Likewise.
50072
50073         Fix fpurge for cygwin.
50074         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50075         value.
50076         * modules/fpurge-tests (Depends-on): Clean up trash.
50077
50078 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50079
50080         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50081
50082         * m4/autobuild.m4: Re-indent.
50083
50084 2007-04-13  Bruno Haible  <bruno@clisp.org>
50085
50086         * modules/fpurge-tests: New file.
50087         * tests/test-fpurge.c: New file.
50088
50089         * modules/fpurge: New file.
50090         * lib/fpurge.h: New file.
50091         * lib/fpurge.c: New file.
50092         * m4/fpurge.m4: New file.
50093
50094 2007-04-13  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/fbufmode-tests: New file.
50097         * tests/test-fbufmode.c: New file.
50098
50099         * modules/fbufmode: New file.
50100         * lib/fbufmode.h: New file.
50101         * lib/fbufmode.c: New file.
50102         * m4/fbufmode.m4: New file.
50103
50104 2007-04-13  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/fwritable-tests: New file.
50107         * tests/test-fwritable.c: New file.
50108
50109         * modules/fwritable: New file.
50110         * lib/fwritable.h: New file.
50111         * lib/fwritable.c: New file.
50112         * m4/fwritable.m4: New file.
50113
50114 2007-04-13  Bruno Haible  <bruno@clisp.org>
50115
50116         * modules/freadable-tests: New file.
50117         * tests/test-freadable.c: New file.
50118
50119         * modules/freadable: New file.
50120         * lib/freadable.h: New file.
50121         * lib/freadable.c: New file.
50122         * m4/freadable.m4: New file.
50123
50124 2007-04-13  Bruno Haible  <bruno@clisp.org>
50125
50126         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50127         MOSTLYCLEANFILES.
50128
50129 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50132         gzip bootstrap.conf to avoid dragging in i18n machinery.
50133         (gnulib_tool_option): Use it.
50134
50135 2007-04-13  Bruno Haible  <bruno@clisp.org>
50136
50137         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50138         %F directives.
50139         * tests/test-vasprintf-posix.c (test_function): Likewise.
50140         * tests/test-snprintf-posix.h (test_function): Likewise.
50141         * tests/test-sprintf-posix.h (test_function): Likewise.
50142         * tests/test-fprintf-posix.h (test_function): Likewise.
50143         * tests/test-printf-posix.h (test_function): Likewise.
50144         * tests/test-fprintf-posix.out: Likewise.
50145
50146 2007-04-13  Bruno Haible  <bruno@clisp.org>
50147
50148         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50149         * modules/tls-tests (configure.ac): Likewise.
50150         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50151
50152 2007-04-13  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/tls.c (glthread_tls_get): Fix return type.
50155         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50156
50157 2007-04-12  Eric Blake  <ebb9@byu.net>
50158
50159         * modules/gettime (Depends-on): Remove gettime.
50160         Reported by Dmitry V. Levin.
50161
50162 2007-04-12  Bruno Haible  <bruno@clisp.org>
50163
50164         * modules/fflush (Include): Mention <stdio.h>.
50165         * modules/strtoimax (Include): Mention <inttypes.h>.
50166         * modules/strtoumax (Include): Likewise.
50167
50168 2007-04-12  Eric Blake  <ebb9@byu.net>
50169
50170         * .cvsignore: New file.
50171         * .gitignore: Likewise.
50172
50173 2007-04-12  Bruno Haible  <bruno@clisp.org>
50174
50175         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50176         not before, since $(LDADD) often contains libgnu.a.
50177         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50178         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50179         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50180         Needed on Cygwin.
50181
50182 2007-04-12  Eric Blake  <ebb9@byu.net>
50183
50184         Work around glibc's failure to flush stdin on fclose.
50185         * lib/closein.c (close_stdin): Flush stdin before closing.
50186
50187         Work around glibc's failure to reset seekable stdin on exit.
50188         * modules/closein: New module.
50189         * lib/closein.c: New file.
50190         * lib/closein.h: Likewise.
50191         * m4/closein.m4: Likewise.
50192         * MODULES.html.sh (File stream based Input/Output): Document it.
50193
50194 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50195
50196         * gnulib-tool: Rename generated 'autobuild' script to
50197         'do-autobuild' in --create-megatestdir output.
50198
50199         * doc/gnulib.texi (Build robot for gnulib): Fix.
50200
50201 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50202
50203         * modules/sysexits (Depends-on): Add absolute-header.
50204
50205 2007-04-12  Eric Blake  <ebb9@byu.net>
50206
50207         No need to preserve errno on success.
50208         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50209         Reported by Bruno Haible.
50210
50211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50212
50213         * MODULES.html.sh (Support for maintaining and releasing
50214         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50215
50216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50217
50218         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50219
50220 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50221
50222         * modules/autobuild: New module.
50223
50224         * m4/autobuild.m4: New file.
50225
50226 2007-04-11  Bruno Haible  <bruno@clisp.org>
50227
50228         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50229         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50230         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50239         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50240         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50248         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50249         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50251         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50252         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50254         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50255         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50256         Reported by Eric Blake.
50257
50258 2007-04-11  Bruno Haible  <bruno@clisp.org>
50259
50260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50261
50262 2007-04-10  Bruno Haible  <bruno@clisp.org>
50263
50264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50265         for NaN and Infinity. Needed on FreeBSD 6.1.
50266         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50267         regarding results for "%010a" of Infinity and NaN.
50268         * tests/test-vasprintf-posix.c (test_function): Likewise.
50269         * tests/test-snprintf-posix.h (test_function): Likewise.
50270         * tests/test-sprintf-posix.h (test_function): Likewise.
50271         * tests/test-fprintf-posix.h (test_function): Likewise.
50272         * tests/test-printf-posix.h (test_function): Likewise.
50273         * tests/test-fprintf-posix.out: Likewise.
50274
50275 2007-04-10  Bruno Haible  <bruno@clisp.org>
50276
50277         * modules/locale-tests: New file.
50278         * tests/test-locale.c: New file.
50279
50280         * modules/locale: New file.
50281         * lib/locale_.h: New file.
50282         * m4/locale_h.m4: New file.
50283
50284 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50285             Bruno Haible  <bruno@clisp.org>
50286
50287         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50288         be determined, test for availability of the copysignf, copysign,
50289         copysignl functions.
50290         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50291         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50292         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50293
50294 2007-04-09  Eric Blake  <ebb9@byu.net>
50295
50296         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50297         * modules/stdio (Makefile.am): Support fflush.
50298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50299         * modules/fflush: New file.
50300         * lib/fflush.c: Likewise.
50301         * m4/fflush.m4: Likewise.
50302         * modules/fflush-tests: New test.
50303         * tests/test-fflush.c: Likewise.
50304         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50305
50306 2007-04-06  Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50309         (VASNPRINTF): Use signbit for faster determination whether to print a
50310         minus sign.
50311         * modules/vasnprintf (Files): Remove lib/float+.h.
50312         * modules/fprintf-posix (Depends-on): Add signbit.
50313         * modules/snprintf-posix (Depends-on): Likewise.
50314         * modules/sprintf-posix (Depends-on): Likewise.
50315         * modules/vasnprintf-posix (Depends-on): Likewise.
50316         * modules/vasprintf-posix (Depends-on): Likewise.
50317         * modules/vfprintf-posix (Depends-on): Likewise.
50318         * modules/vsnprintf-posix (Depends-on): Likewise.
50319         * modules/vsprintf-posix (Depends-on): Likewise.
50320
50321 2007-04-06  Bruno Haible  <bruno@clisp.org>
50322
50323         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50324         * tests/test-frexpl.c (main): Likewise.
50325         * tests/test-ldexpl.c (main): Likewise.
50326         * modules/frexp-tests (Depends-on): Add signbit.
50327         * modules/frexpl-tests (Depdends-on): Likewise.
50328         * modules/ldexpl-tests (Depdends-on): Likewise.
50329
50330 2007-04-06  Bruno Haible  <bruno@clisp.org>
50331
50332         * modules/signbit-tests: New file.
50333         * tests/test-signbit.c: New file.
50334
50335         * modules/signbit: New file.
50336         * lib/signbitf.c: New file.
50337         * lib/signbitd.c: New file.
50338         * lib/signbitl.c: New file.
50339         * m4/signbit.m4: New file.
50340         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50341         (signbit): New macro.
50342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50343         REPLACE_SIGNBIT.
50344         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50345         REPLACE_FREXPL into math.h.
50346
50347 2007-04-06  Bruno Haible  <bruno@clisp.org>
50348
50349         * modules/isnanf-nolibm-tests: New file.
50350         * tests/test-isnanf.c: New file.
50351
50352         * modules/isnanf-nolibm: New file.
50353         * lib/isnanf.h: New file.
50354         * lib/isnanf.c: New file.
50355         * lib/isnan.c: Consider the USE_FLOAT macro.
50356         * m4/isnanf.m4: New file.
50357
50358 2007-04-06  Bruno Haible  <bruno@clisp.org>
50359
50360         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50361         (Link): New section.
50362
50363         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50364
50365 2007-04-06  Bruno Haible  <bruno@clisp.org>
50366
50367         Assume the 'long double' type.
50368         * m4/longdouble.m4: Remove file.
50369         * config/srclist.txt: Don't mention longdouble.m4.
50370         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50371         * lib/float+.h: Likewise.
50372         * lib/frexp.c: Likewise.
50373         * lib/printf-args.h: Likewise.
50374         * lib/printf-args.c: Likewise.
50375         * lib/printf-frexp.c: Likewise.
50376         * lib/printf-parse.c: Likewise.
50377         * lib/vasnprintf.c: Likewise.
50378         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50379         * m4/intl.m4: Likewise.
50380         * m4/isnanl.m4: Likewise.
50381         * m4/printf.m4: Likewise.
50382         * m4/printf-frexpl.m4: Likewise.
50383         * m4/vasnprintf.m4: Likewise.
50384         * modules/allocsa (Files): Remove m4/longdouble.m4.
50385         * modules/gettext (Files): Likewise.
50386         * modules/relocatable-prog-wrapper (Files): Likewise.
50387         * modules/vasnprintf (Files): Likewise.
50388         * modules/isnanl (Files): Likewise.
50389         (Include): Simplify.
50390         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50391         (Include): Simplify.
50392         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50393         (Include): Simplify.
50394         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50396         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50398         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50400         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50402         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50403         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50404         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50406         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50407         * tests/test-isnanl.c: Likewise.
50408         * tests/test-snprintf-posix.h: Likewise.
50409         * tests/test-sprintf-posix.h: Likewise.
50410         * tests/test-vasnprintf-posix.c: Likewise.
50411         * tests/test-vasnprintf-posix2.c: Likewise.
50412         * tests/test-vasprintf-posix.c: Likewise.
50413
50414 2007-04-06  Bruno Haible  <bruno@clisp.org>
50415
50416         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50417         * lib/math_.h [__DECC]: Include the overridden include file through
50418         #include_next, outside the double-inclusion guard.
50419         * lib/stdio_.h [__DECC]: Likewise.
50420         * lib/stdlib_.h [__DECC]: Likewise.
50421         * lib/string_.h [__DECC]: Likewise.
50422         * lib/time_.h [__DECC]: Likewise.
50423         * lib/wchar_.h [__DECC]: Likewise.
50424         * lib/wctype_.h [__DECC]: Likewise.
50425         * lib/inttypes_.h [__DECC]: Likewise.
50426         Reported by Albert Chin <china@thewrittenword.com> in
50427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50428
50429 2007-04-04  Eric Blake  <ebb9@byu.net>
50430
50431         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50432         1.5.x.
50433
50434 2007-04-04  Bruno Haible  <bruno@clisp.org>
50435
50436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50437         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50438
50439 2007-04-04  Bruno Haible  <bruno@clisp.org>
50440
50441         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50442         results for "%010a" of Infinity and NaN.
50443         * tests/test-vasprintf-posix.c (test_function): Likewise.
50444         * tests/test-snprintf-posix.h (test_function): Likewise.
50445         * tests/test-sprintf-posix.h (test_function): Likewise.
50446         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50447         * tests/test-printf-posix.h (test_function): Likewise.
50448         * tests/test-fprintf-posix.out: Update.
50449         Needed for FreeBSD 6.1.
50450
50451 2007-04-04  Bruno Haible  <bruno@clisp.org>
50452
50453         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50454         directly used by the gnulib modules nor by gnulib-tool.
50455
50456 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50457
50458         * DEPENDENCIES: Give overall description of version dependency
50459         desirability.  Use more-typical names for apps.
50460         Add shell, coreutils, diffutils, grep, tar, gzip.
50461
50462 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50463
50464         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50465
50466 2007-04-04  Karl Berry  <karl@gnu.org>
50467
50468         * MODULES.html.sh (func_module): missing '.
50469
50470 2007-04-03  Bruno Haible  <bruno@clisp.org>
50471
50472         * modules/argmatch-tests (Makefile.am): New variable
50473         test_argmatch_LDADD.
50474         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50475         * modules/array-list-tests (Makefile.am): New variable
50476         test_array_list_LDADD.
50477         * modules/array-oset-tests (Makefile.am): New variable
50478         test_array_oset_LDADD.
50479         * modules/avltree-list-tests (Makefile.am): New variable
50480         test_avltree_list_LDADD.
50481         * modules/avltree-oset-tests (Makefile.am): New variable
50482         test_avltree_oset_LDADD.
50483         * modules/avltreehash-list-tests (Makefile.am): New variable
50484         test_avltreehash_list_LDADD.
50485         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50486         test_canonicalize_lgpl_LDADD.
50487         * modules/carray-list-tests (Makefile.am): New variable
50488         test_carray_list_LDADD.
50489         * modules/dirname-tests (Makefile.am): New variable
50490         test_dirname_LDADD.
50491         * modules/linked-list-tests (Makefile.am): New variable
50492         test_linked_list_LDADD.
50493         * modules/linkedhash-list-tests (Makefile.am): New variable
50494         test_linkedhash_list_LDADD.
50495         * modules/rbtree-list-tests (Makefile.am): New variable
50496         test_rbtree_list_LDADD.
50497         * modules/rbtree-oset-tests (Makefile.am): New variable
50498         test_rbtree_oset_LDADD.
50499         * modules/rbtreehash-list-tests (Makefile.am): New variable
50500         test_rbtreehash_list_LDADD.
50501         * modules/xvasprintf-tests (Makefile.am): New variable
50502         test_xvasprintf_LDADD.
50503         Reported by Eric Blake.
50504
50505 2007-04-03  Eric Blake  <ebb9@byu.net>
50506
50507         * DEPENDENCIES: Weaken m4 requirements.
50508
50509 2007-04-03  Bruno Haible  <bruno@clisp.org>
50510
50511         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50512         * modules/isnanl-tests (configure.ac): Likewise.
50513
50514 2007-04-03  Ben Pfaff  <blp@gnu.org>
50515
50516         * modules/iconv_open: Add $(srcdir)/ to source directory
50517         references in Makefile fragments that call gperf, to fix VPATH
50518         builds.
50519
50520 2007-04-03  Bruno Haible  <bruno@clisp.org>
50521
50522         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50523         * lib/ldexpl.c: Undo last change.
50524
50525 2007-04-03  Bruno Haible  <bruno@clisp.org>
50526
50527         * modules/printf-frexpl (Depends-on): Undo last change.
50528         (Files): Add m4/ldexpl.m4.
50529
50530 2007-04-03  Bruno Haible  <bruno@clisp.org>
50531
50532         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50533         * modules/isnanl (Link): New section.
50534
50535         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50536         * modules/frexp (Link): New section.
50537
50538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50539         * modules/frexpl (Link): New section.
50540
50541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50542         * modules/ldexpl (Link): New section.
50543
50544 2007-04-03  Bruno Haible  <bruno@clisp.org>
50545
50546         * modules/TEMPLATE-EXTENDED: New file.
50547         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50548
50549 2007-04-03  Bruno Haible  <bruno@clisp.org>
50550
50551         * DEPENDENCIES: New file.
50552         Suggested by Simon Josefsson.
50553
50554 2007-04-03  Bruno Haible  <bruno@clisp.org>
50555
50556         * doc/gnulib.texi: Escape @.
50557
50558 2007-04-03  James Youngman  <jay@gnu.org>
50559         and Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50562         birthtime on all systems that have birthtime, not just those which
50563         use st_birthtimensec rather than st_birthtim.  Putting zero in
50564         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50565         that the birth time is not available for files on an NFS mount.
50566
50567 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50568
50569         * modules/memxor: Move back from crypto/, suggested by Bruno.
50570         * modules/crypto/hmac-sha1: Fix memxor dependency.
50571
50572         * modules/crypto/gc: Moved from ../.
50573
50574 2007-04-02  Eric Blake  <ebb9@byu.net>
50575
50576         * lib/ldexpl.c (includes): Avoid libm.
50577
50578         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50579
50580 2007-04-02  Bruno Haible  <bruno@clisp.org>
50581
50582         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50583         on IRIX.
50584
50585 2007-04-02  Bruno Haible  <bruno@clisp.org>
50586
50587         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50588         x86 or x86_64 platforms running MacOS X.
50589         Reported by Ryan Schmidt <@ryandesign.com>.
50590
50591 2007-04-02  Bruno Haible  <bruno@clisp.org>
50592
50593         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50594         i386.
50595
50596 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50597
50598         * modules/crypto/arcfour: Moved from ../.
50599         * modules/crypto/arcfour-tests: Moved from ../.
50600         * modules/crypto/arctwo: Moved from ../.
50601         * modules/crypto/arctwo-tests: Moved from ../.
50602         * modules/crypto/des: Moved from ../.
50603         * modules/crypto/des-tests: Moved from ../.
50604         * modules/crypto/gc-arcfour: Moved from ../.
50605         * modules/crypto/gc-arcfour-tests: Moved from ../.
50606         * modules/crypto/gc-arctwo: Moved from ../.
50607         * modules/crypto/gc-arctwo-tests: Moved from ../.
50608         * modules/crypto/gc-des: Moved from ../.
50609         * modules/crypto/gc-des-tests: Moved from ../.
50610         * modules/crypto/gc-hmac-md5: Moved from ../.
50611         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50612         * modules/crypto/gc-hmac-sha1: Moved from ../.
50613         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50614         * modules/crypto/gc-md2: Moved from ../.
50615         * modules/crypto/gc-md2-tests: Moved from ../.
50616         * modules/crypto/gc-md4: Moved from ../.
50617         * modules/crypto/gc-md4-tests: Moved from ../.
50618         * modules/crypto/gc-md5: Moved from ../.
50619         * modules/crypto/gc-md5-tests: Moved from ../.
50620         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50621         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50622         * modules/crypto/gc-random: Moved from ../.
50623         * modules/crypto/gc-rijndael: Moved from ../.
50624         * modules/crypto/gc-rijndael-tests: Moved from ../.
50625         * modules/crypto/gc-sha1: Moved from ../.
50626         * modules/crypto/gc-sha1-tests: Moved from ../.
50627         * modules/crypto/gc-tests: Moved from ../.
50628         * modules/crypto/hmac-md5: Moved from ../.
50629         * modules/crypto/hmac-md5-tests: Moved from ../.
50630         * modules/crypto/hmac-sha1: Moved from ../.
50631         * modules/crypto/hmac-sha1-tests: Moved from ../.
50632         * modules/crypto/md2: Moved from ../.
50633         * modules/crypto/md2-tests: Moved from ../.
50634         * modules/crypto/md4: Moved from ../.
50635         * modules/crypto/md4-tests: Moved from ../.
50636         * modules/crypto/md5: Moved from ../.
50637         * modules/crypto/md5-tests: Moved from ../.
50638         * modules/crypto/memxor: Moved from ../.
50639         * modules/crypto/rijndael: Moved from ../.
50640         * modules/crypto/rijndael-tests: Moved from ../.
50641         * modules/crypto/sha1: Moved from ../.
50642
50643 2007-03-30  James Youngman  <jay@gnu.org>
50644
50645         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50646         rename() to change the ctime of a file (because ctime is unaffected
50647         by rename on jfs2 on AIX 5.1).
50648         (main): Start by doing cleanup, in case a previous run failed leaving
50649         test files behind.
50650
50651 2007-03-31  Bruno Haible  <bruno@clisp.org>
50652
50653         Support old proprietary implementations of iconv.
50654         * modules/iconv_open: New file.
50655         * lib/iconv_.h: New file.
50656         * m4/iconv_h.m4: New file.
50657         * lib/iconv_open.c: New file.
50658         * lib/iconv_open-aix.gperf: New file.
50659         * lib/iconv_open-hpux.gperf: New file.
50660         * lib/iconv_open-irix.gperf: New file.
50661         * lib/iconv_open-osf.gperf: New file.
50662         * m4/iconv_open.m4: New file.
50663         * modules/linebreak (Depends-on): Add iconv_open.
50664         * modules/striconv (Depends-on): Likewise.
50665         * modules/striconveh (Depends-on): Likewise.
50666         * modules/unicodeio (Depends-on): Likewise.
50667         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50668         (iconv_t)(-1).
50669         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50670         conversion if cd is (iconv_t)(-1).
50671         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50672         is not possible.
50673
50674 2007-03-31  Bruno Haible  <bruno@clisp.org>
50675
50676         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50677         work on Solaris either. Protect also second use of "autodetect_jp".
50678
50679 2007-03-31  Bruno Haible  <bruno@clisp.org>
50680
50681         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50682         the function is not present.
50683
50684 2007-03-31  Bruno Haible  <bruno@clisp.org>
50685
50686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50687         the function is not present.
50688
50689 2007-03-31  Bruno Haible  <bruno@clisp.org>
50690
50691         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50692         a bug in HP-UX iconv_open().
50693
50694 2007-03-31  Bruno Haible  <bruno@clisp.org>
50695
50696         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50697         (Mathematics <math.h>): New section, add fpieee.
50698         (Input/output <stdio.h>): Add fseterr.
50699         (Mathematics <math.h>): New section, add printf-frexp.
50700         (Container data structures): Add sublist.
50701         (Core language properties): Add fpucw, inline.
50702         (Functions for greatest-width integer types <inttypes.h>): Add
50703         imaxabs, imaxdiv, inttypes.
50704         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50705         isnanl-nolibm, ldexp.
50706         (Mathematics <math.h>): New section, add printf-frexpl.
50707         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50708         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50709         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50710         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50711         (Unicode string functions): Add unistr/u*-mbtoucr.
50712         (Java): Add javacomp-script, javaexec-script.
50713         (C#): Add csharpcomp-script, csharpexec-script.
50714         (Support for building libraries and executables): Add havelib,
50715         relocatable-*.
50716         (Support for maintaining and releasing projects): Renamed from
50717         'Support for maintaining and release projects'. Add announce-gen.
50718
50719 2007-03-31  Bruno Haible  <bruno@clisp.org>
50720
50721         * README: Talk primarily about git.
50722         (git and CVS): Renamed from CVS.
50723         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50724         gnulib is available through git.
50725         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50726
50727 2007-03-30  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50730         * lib/poll_.h: Likewise.
50731         * lib/stat_.h: Likewise.
50732         * lib/sys_time_.h: Likewise.
50733         * lib/sysexit_.h: Likewise.
50734         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50735         * lib/stdbool_.h: Likewise.
50736         * lib/byteswap_.h: Add double-inclusion guard.
50737
50738 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50739
50740         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50741
50742 2007-03-30  Karl Berry  <karl@gnu.org>
50743
50744         * config/srclist-update: double space after USA in the license
50745         substitution, since that's how it's usually (?) written.
50746
50747 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50750         reported by Bruno Haible.
50751
50752 2007-03-29  Bruno Haible  <bruno@clisp.org>
50753
50754         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50755         a bug in AIX iconv().
50756
50757 2007-03-29  Bruno Haible  <bruno@clisp.org>
50758
50759         * modules/ldexpl-tests: New file.
50760         * tests/test-ldexpl.c: New file.
50761
50762 2007-03-29  Bruno Haible  <bruno@clisp.org>
50763
50764         * lib/ldexpl.c: Include fpucw.h.
50765         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50766         multiplication.
50767         * modules/ldexpl (Depends-on): Add fpucw.
50768
50769 2007-03-29  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/ldexpl: New file.
50772         * m4/ldexpl.m4: New file.
50773         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50774         set.
50775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50776         REPLACE_LDEXPL.
50777         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50778         REPLACE_LDEXPL.
50779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50780         gl_FUNC_LDEXPL_WORKS.
50781         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50782         * modules/mathl (Files): Remove lib/ldexpl.c.
50783         (Depends-on): Add ldexpl.
50784
50785 2007-03-29  Bruno Haible  <bruno@clisp.org>
50786
50787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50788
50789 2007-03-29  Bruno Haible  <bruno@clisp.org>
50790
50791         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50792         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50793         and possibly also HP-UX.
50794         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50795         work on AIX, IRIX, HP-UX, OSF/1.
50796         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50797         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50798         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50799         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50800         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50801         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50802
50803 2007-03-29  Bruno Haible  <bruno@clisp.org>
50804
50805         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50806
50807 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50810         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50811
50812 2007-03-29  Eric Blake  <ebb9@byu.net>
50813
50814         * lib/acl-internal.h: Remove redundant include.
50815         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50816         Cygwin when a file is locked.
50817
50818 2007-03-29  Bruno Haible  <bruno@clisp.org>
50819
50820         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50821         file.
50822         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50823
50824 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50825
50826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50827         try to remove a parent directory if the child couldn't be removed
50828         (except for the first rmdir, which could fail because the child
50829         doesn't exist).  Problem reported by Jeff Blaine in
50830         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50831
50832 2007-03-28  Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/striconveh.c (utf8conv_carefully): New function.
50835         (mem_cd_iconveh_internal): Invoke it.
50836
50837 2007-03-28  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50840         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50841         input.
50842         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50843         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50844         unistr/u8-uctomb.
50845
50846 2007-03-28  Bruno Haible  <bruno@clisp.org>
50847
50848         * modules/unistr/u8-mbtoucr: New file.
50849         * lib/unistr/u8-mbtoucr.c: New file.
50850         * modules/unistr/u16-mbtoucr: New file.
50851         * lib/unistr/u16-mbtoucr.c: New file.
50852         * modules/unistr/u16-mbtoucr: New file.
50853         * lib/unistr/u16-mbtoucr.c: New file.
50854         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50855
50856 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50857             Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50860         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50861         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50862
50863         * m4/stdio_h.m4: Add stubs for vasprintf too.
50864
50865         * modules/stdio: Support vasprintf in sed command.
50866
50867         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50868         vasprintf.h.  Add stdio module indicator.
50869
50870         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50871         vasprintf.h.
50872
50873         * lib/vasprintf.h: File removed.
50874
50875         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50876         * lib/vasprintf.c: Ditto.
50877         * lib/xvasprintf.c: Ditto.
50878         * tests/test-vasprintf-posix.c: Ditto.
50879         * tests/test-vasprintf.c: Ditto.
50880
50881 2007-03-27  Bruno Haible  <bruno@clisp.org>
50882
50883         Make vasnprintf multithread-safe.
50884         * lib/vasnprintf.c (decimal_point_char): New function.
50885         (VASNPRINTF): Use it.
50886         Suggested by Simon Josefsson.
50887
50888 2007-03-27  Eric Blake  <ebb9@byu.net>
50889
50890         Support sub-second birthtime on cygwin.
50891         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50892         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50893         (get_stat_birthtime): Also work with st_birthtim.
50894
50895 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50898         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50899         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50900         (get_stat_birthtime_ns): Simplify compile-time tests.
50901         (get_stat_birthtime): Change the API to look like
50902         get_stat_mtime etc., except return a negative tv_nsec on error.
50903         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50904         Don't check for "spare" fields.
50905         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50906         or for struct stat.st_birthtime, as these tests aren't used.
50907         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50908
50909 2007-03-27  Bruno Haible  <bruno@clisp.org>
50910
50911         * lib/stat-time.h: Include <sys/stat.h>.
50912
50913 2007-03-27  James Youngman  <jay@gnu.org>
50914
50915         * lib/stat-time.h (get_stat_birthtime): New function for
50916           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50917         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50918           and its variants.
50919         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50920         * modules/stat-time-test: New file.
50921         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50922
50923 2007-03-26  Bruno Haible  <bruno@clisp.org>
50924
50925         Better support of signalling NaNs.
50926         * lib/atanl.c: Include isnanl.h.
50927         (atanl): Perform test for NaN at the beginning of the function and
50928         through a call to isnanl.
50929         * lib/cosl.c: Include isnanl.h.
50930         (cosl): Perform test for NaN at the beginning of the function and
50931         through a call to isnanl.
50932         * lib/ldexpl.c: Include isnanl.h.
50933         (ldexpl): Perform test for NaN through a call to isnanl.
50934         * lib/logl.c: Include isnanl.h.
50935         (logl): Perform test for NaN at the beginning of the function and
50936         through a call to isnanl.
50937         * lib/sinl.c: Include isnanl.h.
50938         (sinl): Perform test for NaN at the beginning of the function and
50939         through a call to isnanl.
50940         * lib/sqrtl.c: Include isnanl.h.
50941         (sqrtl): Perform test for NaN at the beginning of the function and
50942         through a call to isnanl.
50943         * lib/tanl.c: Include isnanl.h.
50944         (tanl): Perform test for NaN at the beginning of the function and
50945         through a call to isnanl.
50946         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50947         * modules/mathl (Depends-on): Add isnanl.
50948
50949 2007-03-26  Eric Blake  <ebb9@byu.net>
50950
50951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50952         regression in logic sense of previous patch.
50953
50954 2007-03-26  Bruno Haible  <bruno@clisp.org>
50955
50956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50957         unportable shell command "if ! ...".
50958         Reported by Ralf Wildenhues.
50959
50960 2007-03-25  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50963         <sysexits.h> file, and only add EX_CONFIG.
50964         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50965         absolute file name and whether it is sufficient. Substitute also
50966         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50967         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50968         ABSOLUTE_SYSEXITS_H into sysexits.h.
50969
50970 2007-03-25  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50973         hints is NULL.
50974
50975 2007-03-25  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50978         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50979
50980 2007-03-25  Bruno Haible  <bruno@clisp.org>
50981
50982         * lib/vasnprintf.c: Include langinfo.h.
50983         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50984         multithread-safe.
50985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50986         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50989         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50991         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50993         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50994         Reported by Simon Josefsson.
50995
50996 2007-03-25  Bruno Haible  <bruno@clisp.org>
50997
50998         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50999         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51000         * modules/vasnprintf (Depends-on): Add stdint.
51001
51002 2007-03-25  Bruno Haible  <bruno@clisp.org>
51003
51004         * modules/fpieee: New file.
51005         * m4/fpieee.m4: New file.
51006         * modules/isnan-nolibm (Depends-on): Add fpieee.
51007         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51008         * modules/isnanl (Depends-on): Add fpieee.
51009
51010 2007-03-25  Bruno Haible  <bruno@clisp.org>
51011
51012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51013
51014 2007-03-25  Bruno Haible  <bruno@clisp.org>
51015
51016         Avoid test failures on IRIX 6.5.
51017         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51018         (main): Use it.
51019         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51020         macros.
51021         (main): Use them.
51022
51023 2007-03-25  Bruno Haible  <bruno@clisp.org>
51024
51025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51026         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51027         exists but doesn't work.
51028         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51029         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51031         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51032         math.h.
51033
51034 2007-03-25  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51037         returns inf. Needed on IRIX 6.5.
51038
51039 2007-03-25  Bruno Haible  <bruno@clisp.org>
51040
51041         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51042         (main): Use isnanl instead of x != x idiom.
51043         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51044
51045         * tests/test-frexp.c: Include isnan.h.
51046         (main): Use isnan instead of x != x idiom.
51047         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51048
51049 2007-03-25  Bruno Haible  <bruno@clisp.org>
51050
51051         * tests/test-frexp.c (NaN): New function/macro.
51052         (main): Use it instead of 0.0 / 0.0.
51053         * tests/test-isnan.c (NaN): New function/macro.
51054         (main): Use it instead of 0.0 / 0.0.
51055         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51056         (test_function): Use it instead of 0.0 / 0.0.
51057         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51058         (test_function): Use it instead of 0.0 / 0.0.
51059         * tests/test-snprintf-posix.h (NaN): New function/macro.
51060         (test_function): Use it instead of 0.0 / 0.0.
51061         * tests/test-sprintf-posix.h (NaN): New function/macro.
51062         (test_function): Use it instead of 0.0 / 0.0.
51063         * tests/test-fprintf-posix.h (NaN): New function/macro.
51064         (test_function): Use it instead of 0.0 / 0.0.
51065         * tests/test-printf-posix.h (NaN): New function/macro.
51066         (test_function): Use it instead of 0.0 / 0.0.
51067
51068         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51069
51070 2007-03-25  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51073
51074 2007-03-25  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/regexec.c (merge_state_with_log): Make static.
51077
51078 2007-03-25  Bruno Haible  <bruno@clisp.org>
51079
51080         * lib/trigl.c (kernel_rem_pio2): Make static.
51081
51082 2007-03-25  Bruno Haible  <bruno@clisp.org>
51083
51084         * lib/sincosl.c (sincosl_table): Make static.
51085
51086 2007-03-25  Bruno Haible  <bruno@clisp.org>
51087
51088         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51089         if the compiler does not support C99.
51090
51091 2007-03-25  Bruno Haible  <bruno@clisp.org>
51092
51093         * modules/time (Makefile.am): Ensure all rule action lines start with a
51094         tab.
51095
51096 2007-03-24  Bruno Haible  <bruno@clisp.org>
51097
51098         * modules/tsearch-tests: New file.
51099         * tests/test-tsearch.sh: New file.
51100         * tests/test-tsearch.c: New file, mostly copied from glibc.
51101
51102         * modules/search-tests: New file.
51103         * tests/test-search.c: New file.
51104
51105         * modules/search: New file.
51106         * lib/search_.h: New file, incorporating lib/tsearch.h.
51107         * m4/search_h.m4: New file.
51108         * lib/tsearch.h: Remove file.
51109         * lib/tsearch.c: Include search.h instead of tsearch.h.
51110         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51111         HAVE_TSEARCH.
51112         * modules/tsearch (Files): Remove lib/tsearch.h.
51113         (Depends-on): Add search.
51114         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51115         (Include): Change tsearch.h into search.h.
51116
51117 2007-03-24  Bruno Haible  <bruno@clisp.org>
51118
51119         * modules/fpucw: New file.
51120         * lib/fpucw.h: New file.
51121         * lib/frexp.c: Include fpucw.h.
51122         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51123         (FUNC): Use them.
51124         * lib/printf-frexp.c: Include fpucw.h.
51125         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51126         (FUNC): Use them.
51127         * lib/vasnprintf.c: Include fpucw.h.
51128         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51129         'long double' calculations.
51130         * tests/test-frexpl.c: Include fpucw.h.
51131         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51132         * tests/test-printf-frexpl.c: Include fpucw.h.
51133         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51134         * modules/frexpl (Depends-on): Add fpucw.
51135         * modules/printf-frexpl (Depends-on): Likewise.
51136         * modules/fprintf-posix (Depends-on): Likewise.
51137         * modules/snprintf-posix (Depends-on): Likewise.
51138         * modules/sprintf-posix (Depends-on): Likewise.
51139         * modules/vasnprintf-posix (Depends-on): Likewise.
51140         * modules/vasprintf-posix (Depends-on): Likewise.
51141         * modules/vfprintf-posix (Depends-on): Likewise.
51142         * modules/vsnprintf-posix (Depends-on): Likewise.
51143         * modules/vsprintf-posix (Depends-on): Likewise.
51144         * modules/frexpl-tests (Depends-on): Likewise.
51145         * modules/printf-frexpl-tests (Depends-on): Likewise.
51146
51147 2007-03-24  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/float+.h: New file.
51150         * lib/isnan.c: Include float+.h.
51151         (SIZE): New macro.
51152         (FUNC): Compare only SIZE bytes of the value.
51153         * lib/vasnprintf.c: Include float+.h.
51154         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51155         SIZEOF_LDBL or SIZEOF_DBL bytes.
51156         * modules/isnan-nolibm (Files): Add lib/float+.h.
51157         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51158         * modules/isnanl (Files): Add lib/float+.h.
51159         * modules/vasnprintf (Files): Add lib/float+.h.
51160
51161 2007-03-24  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51164         include isnanl-nolibm.h.
51165
51166 2007-03-24  Bruno Haible  <bruno@clisp.org>
51167
51168         * tests/test-read-file.c (main): Don't produce spurious output for
51169         expected situations. Make the test fail if it encountered unexpected
51170         results.
51171
51172 2007-03-24  Bruno Haible  <bruno@clisp.org>
51173
51174         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51175         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51176
51177 2007-03-24  Bruno Haible  <bruno@clisp.org>
51178
51179         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51180
51181 2007-03-24  Bruno Haible  <bruno@clisp.org>
51182
51183         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51184         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51185
51186         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51187         * modules/utf8-ucs4: Turn into a symbolic link to module
51188         unistr/u8-mbtouc.
51189
51190         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51191         utf8-ucs4-unsafe.
51192         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51193         unistr/u8-mbtouc-unsafe.
51194
51195         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51196         * modules/utf16-ucs4: Turn into a symbolic link to module
51197         unistr/u16-mbtouc.
51198
51199         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51200         utf16-ucs4-unsafe.
51201         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51202         unistr/u16-mbtouc-unsafe.
51203
51204         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51205         * modules/ucs4-utf8: Turn into a symbolic link to module
51206         unistr/u8-ubtomb.
51207
51208         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51209         * modules/ucs4-utf16: Turn into a symbolic link to module
51210         unistr/u16-ubtomb.
51211
51212 2007-03-24  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51215         Enable the function only if HAVE_INLINE.
51216         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51217         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51218         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51219         Enable the function only if HAVE_INLINE.
51220         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51221         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51222         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51223         Enable the function only if HAVE_INLINE.
51224         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51225         Enable the function only if HAVE_INLINE.
51226         * modules/utf8-ucs4: Update.
51227         * modules/utf8-ucs4-unsafe: Update.
51228         * modules/utf16-ucs4: Update.
51229         * modules/utf16-ucs4-unsafe: Update.
51230         * modules/ucs4-utf8: Update.
51231         * modules/ucs4-utf16: Update.
51232
51233 2007-03-24  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/utf8-ucs4.h: Remove file.
51236         * lib/utf8-ucs4-unsafe.h: Remove file.
51237         * lib/utf16-ucs4.h: Remove file.
51238         * lib/utf16-ucs4-unsafe.h: Remove file.
51239         * lib/ucs4-utf8.h: Remove file.
51240         * lib/ucs4-utf16.h: Remove file.
51241         * lib/unistr.h: Include their previous contents.
51242         * m4/utf-ucs4.m4: Remove file.
51243         * m4/ucs4-utf.m4: Remove file.
51244         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51245         (Depends-on): Add unistr/base.
51246         (configure.ac): Remove gl_UTF_UCS4.
51247         (Makefile.am): Update.
51248         (Include): Change to unistr.h.
51249         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51250         (Depends-on): Add unistr/base.
51251         (configure.ac): Remove gl_UTF_UCS4.
51252         (Makefile.am): Update.
51253         (Include): Change to unistr.h.
51254         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51255         (Depends-on): Add unistr/base.
51256         (configure.ac): Remove gl_UTF_UCS4.
51257         (Makefile.am): Update.
51258         (Include): Change to unistr.h.
51259         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51260         (Depends-on): Add unistr/base.
51261         (configure.ac): Remove gl_UTF_UCS4.
51262         (Makefile.am): Update.
51263         (Include): Change to unistr.h.
51264         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51265         (Depends-on): Add unistr/base.
51266         (configure.ac): Remove gl_UCS4_UTF.
51267         (Makefile.am): Update.
51268         (Include): Change to unistr.h.
51269         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51270         (Depends-on): Add unistr/base.
51271         (configure.ac): Remove gl_UCS4_UTF.
51272         (Makefile.am): Update.
51273         (Include): Change to unistr.h.
51274         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51275         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51276         utf8-ucs4-unsafe.h.
51277         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51278         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51279         utf16-ucs4-unsafe.h.
51280         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51281         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51282         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51283         * lib/unistr/u8-strchr.c: Likewise.
51284         * lib/unistr/u8-strrchr.c: Likewise.
51285         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51286         * lib/unistr/u16-strchr.c: Likewise.
51287         * lib/unistr/u16-strrchr.c: Likewise.
51288         * lib/striconveh.c: Update.
51289         * lib/linebreak.c: Update.
51290
51291 2007-03-24  Bruno Haible  <bruno@clisp.org>
51292
51293         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51294         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51295
51296 2007-03-22  Bruno Haible  <bruno@clisp.org>
51297
51298         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51299
51300 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51301
51302         * MODULES.html.sh (File system functions): New module write-any-file.
51303         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51304         * m4/write-any-file.m4: New files.
51305
51306 2007-03-23  Eric Blake  <ebb9@byu.net>
51307
51308         * gnulib-tool: Rearrange space-tab sequences, since some editors
51309         like to eat them.
51310
51311 2007-03-23  Eric Blake  <ebb9@byu.net>
51312
51313         * lib/version-etc.c (version_etc_va): Update license wording to
51314         be more concise.  Recommended by Richard Stallman.
51315
51316 2007-03-22  Bruno Haible  <bruno@clisp.org>
51317
51318         * lib/poll.c (MSG_PEEK): New fallback definition.
51319
51320 2007-03-22  Bruno Haible  <bruno@clisp.org>
51321
51322         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51323         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51324         (main): Update.
51325         Fixes a compilation error on BeOS.
51326
51327 2007-03-22  Bruno Haible  <bruno@clisp.org>
51328
51329         * modules/frexpl-tests: New file.
51330         * tests/test-frexpl.c: New file.
51331
51332         * modules/frexpl: New file.
51333         * m4/frexpl.m4: New file.
51334         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51335         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51337         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51338         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51339         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51340
51341 2007-03-22  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/frexpl.c: Share code with lib/frexp.c.
51344         * modules/mathl (Files): Add lib/frexp.c.
51345         (Depends-on): Add isnanl-nolibm.
51346
51347 2007-03-22  Bruno Haible  <bruno@clisp.org>
51348
51349         * modules/printf-frexp (Files): Add m4/frexp.m4.
51350         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51351         only if the found frexp function actually works.
51352
51353 2007-03-22  Bruno Haible  <bruno@clisp.org>
51354
51355         * lib/frexp.c: Remove older implementation that uses divisions.
51356
51357 2007-03-21  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/frexp-tests: New file.
51360         * tests/test-frexp.c: New file.
51361
51362         * modules/frexp: New file.
51363         * lib/frexp.c: New file.
51364         * m4/frexp.m4: New file.
51365         * lib/math_.h (frexp): New declaration.
51366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51367         REPLACE_FREXP.
51368         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51369
51370 2007-03-21  Bruno Haible  <bruno@clisp.org>
51371
51372         * modules/isnanl-tests: New file.
51373         * tests/test-isnanl.c: New file.
51374
51375         * modules/isnanl: New file.
51376         * lib/isnanl.h: New file.
51377         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51378         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51379         gl_FUNC_ISNANL_WORKS.
51380         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51381         New macros.
51382
51383 2007-03-21  Bruno Haible  <bruno@clisp.org>
51384
51385         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51386         lib/isnanl.h.
51387         (Include): Update.
51388         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51389         * lib/vasnprintf.c: Update.
51390         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51391         tests/test-isnanl.h, remove tests/test-isnanl.c.
51392         (Makefile.am): Update.
51393         * tests/test-isnanl-nolibm.c: New file.
51394         * tests/test-isnanl.h: New file.
51395         * tests/test-isnanl.c: Remove file.
51396
51397 2007-03-21  Jim Meyering  <jim@meyering.net>
51398
51399         When trying to open ".", treat ESTALE like EACCES.
51400         * lib/savewd.c (savewd_save): Resort to forking not just upon
51401         failure with EACCES, but also when errno is ESTALE.
51402
51403 2007-03-20  Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51406         Needed on AIX 5.1. Reported by Matthew Woehlke.
51407
51408 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51409
51410         Suggestions by Bruno Haible:
51411         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51412         our own.
51413         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51414         * modules/acl (Depends-on): Add gettext.
51415
51416 2007-03-19  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/iconvme: Remove file.
51419         * lib/iconvme.h: Remove file.
51420         * lib/iconvme.c: Remove file.
51421         * m4/iconvme.m4: Remove file.
51422
51423 2007-03-19  Bruno Haible  <bruno@clisp.org>
51424
51425         * doc/relocatable-maint.texi: Break long shell script line.
51426         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51427
51428 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51431         handle file_has_acl.
51432         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51433         * lib/acl.c: Move header inclusions and related macro defns into
51434         lib/acl-internal.h.
51435         (S_ISLNK): Remove defn, since that's now done for us.
51436         (file_has_acl): Move to lib/file-has-acl.c.
51437         Call acl_trivial if available.  This is the crucial part of the fix.
51438         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51439         shared within the library.  Rewrite a bit, partly to make it compatible
51440         with the GNU coding style.
51441         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51442         Remove unnecessary double-quotes.
51443         Don't test for acl_to_text; the build will catch that.
51444         Replace acl_entries if it doesn't exist and it is needed.
51445         Check for -lsec and acl_trivial (as used on Solaris 10).
51446         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51447         lib/file-has-acl.c.
51448         (Depends-on): Add sys_stat, for S_ISLNK.
51449
51450 2007-03-19  Ben Pfaff  <blp@gnu.org>
51451
51452         * doc/gnulib.texi: Fix typos.
51453         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51454
51455 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51456
51457         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51458         If size is zero here, buf must be zero.
51459
51460 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51461
51462         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51463         <bruno@clisp.org>.
51464
51465 2007-03-18  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51468         Suggested by Eric Blake.
51469
51470 2007-03-18  Ben Pfaff  <blp@gnu.org>
51471
51472         * doc/relocatable.texi: Recommend using as prefix a directory
51473         that does not exist and will never be created.  Based on
51474         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51475         and others.
51476
51477 2007-03-17  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/fchownat.c: Include lchown.h.
51480
51481 2007-03-17  Bruno Haible  <bruno@clisp.org>
51482
51483         Fix endless loop when the given allocated size was > INT_MAX.
51484         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51485         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51486         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51487         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51488         * lib/sprintf.c (sprintf): Likewise.
51489
51490 2007-03-17  Bruno Haible  <bruno@clisp.org>
51491
51492         * tests/test-argp-2.sh (func_compare): Output a context diff.
51493
51494 2007-03-17  Bruno Haible  <bruno@clisp.org>
51495
51496         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51497         locale's decimal-point character.
51498
51499 2007-03-17  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51502         before comparing it. Needed because on some platforms (e.g. x86) a
51503         'long double' occupies less bytes than sizeof (long double).
51504
51505 2007-03-17  Bruno Haible  <bruno@clisp.org>
51506
51507         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51508         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51509         * tests/test-getaddrinfo.c (simple): Likewise.
51510         * tests/test-read-file.c (main): Likewise.
51511
51512 2007-03-17  Bruno Haible  <bruno@clisp.org>
51513
51514         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51515
51516 2007-03-17  Bruno Haible  <bruno@clisp.org>
51517
51518         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51519         unused variable.
51520
51521 2007-03-17  Bruno Haible  <bruno@clisp.org>
51522
51523         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51524         * tests/test-c-strncasecmp.c: Likewise.
51525
51526 2007-03-17  Bruno Haible  <bruno@clisp.org>
51527
51528         * modules/stdlib (Depends-on): Add unistd.
51529         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51530         Needed for MacOS X 10.3.
51531
51532 2007-03-17  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51535
51536 2007-03-17  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51539
51540 2007-03-17  Bruno Haible  <bruno@clisp.org>
51541
51542         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51543         to reflect files copied from gnulib (with or without modifications).
51544         Suggested by Jim Meyering.
51545
51546 2007-03-17  Eric Blake  <ebb9@byu.net>
51547
51548         * NEWS: Document stdlib change from 2007-02-18.
51549
51550 2007-03-17  Jim Meyering  <jim@meyering.net>
51551
51552         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51553         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51554         someone uses a name containing shell meta-characters.
51555         Reported by Alfred M. Szmidt.
51556
51557         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51558
51559 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51560
51561         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51562         and copy gettext configuration files only if configure.ac contains
51563         a use of AM_GNU_GETTEXT_VERSION.
51564
51565 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51566
51567         * build-aux/bootstrap (gnulib_name): New variable.
51568         (gnulib_tool_options): Use it.
51569
51570 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51571
51572         * tests/test-des.c: Use new namespace.
51573
51574 2007-03-15  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51577         Reported by James Youngman <jay@gnu.org>.
51578
51579 2007-03-15  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51582         declared prototype. Needed with cc on OSF/1 5.1.
51583
51584 2007-03-15  Bruno Haible  <bruno@clisp.org>
51585
51586         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51587         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51588         (struct gl_list_implementation): Add dispose_fn argument to the
51589         'create_empty', 'create' methods.
51590         (struct gl_list_impl_base): Add field 'dispose_fn'.
51591         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51592         argument.
51593         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51594         dispose_fn argument.
51595         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51596         dispose_fn on the dropped values.
51597         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51598         dispose_fn argument.
51599         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51600         dropped values.
51601         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51602         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51603         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51604         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51605         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51606         argument.
51607         (gl_tree_list_free): Call dispose_fn on the dropped values.
51608         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51609         the dropped values.
51610         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51611         Add dispose_fn argument.
51612         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51613         Call dispose_fn on the dropped values.
51614         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51615         Add dispose_fn argument.
51616         (gl_sublist_create): Initialize the 'dispose_fn' field.
51617         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51618         * tests/test-array_list.c (main): Update.
51619         * tests/test-carray_list.c (main): Update.
51620         * tests/test-avltree_list.c (main): Update.
51621         * tests/test-rbtree_list.c (main): Update.
51622         * tests/test-avltreehash_list.c (main): Update.
51623         * tests/test-rbtreehash_list.c (main): Update.
51624         * tests/test-linked_list.c (main): Update.
51625         * tests/test-linkedhash_list.c (main): Update.
51626         * tests/test-array_oset.c (main): Update.
51627
51628 2007-03-15  Bruno Haible  <bruno@clisp.org>
51629
51630         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51631         (gl_oset_create_empty): Add dispose_fn argument.
51632         (struct gl_oset_implementation): Add dispose_fn argument to
51633         'create_empty' method.
51634         (struct gl_oset_impl_base): Add dispose_fn field.
51635         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51636         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51637         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51638         values.
51639         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51640         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51641         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51642         dropped value.
51643         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51644         dropped value.
51645         * tests/test-array_oset.c (main): Update.
51646         * tests/test-avltree_oset.c (main): Update.
51647         * tests/test-rbtree_oset.c (main): Update.
51648         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51649
51650 2007-03-13  Bruno Haible  <bruno@clisp.org>
51651
51652         * tests/test-stdbool.c (i): Update after last patch.
51653
51654 2007-03-12  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51657         the iswprint macro. Needed on Solaris 2.5.1.
51658
51659 2007-03-12  Bruno Haible  <bruno@clisp.org>
51660
51661         * tests/test-printf-frexp.c (main): Declare x as volatile.
51662
51663 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51664
51665         * doc/gnulib.texi (Build robot for gnulib): New section.
51666
51667 2007-03-12  Jim Meyering  <jim@meyering.net>
51668
51669         * build-aux/bootstrap: New file.
51670         * build-aux/bootstrap.conf: New file, from coreutils.
51671
51672 2007-03-11  Bruno Haible  <bruno@clisp.org>
51673
51674         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51675
51676 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51677
51678         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51679         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51680         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51681
51682 2007-03-11  Bruno Haible  <bruno@clisp.org>
51683
51684         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51685         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51686
51687 2007-03-11  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51690         formula. Needed for SunPRO C 5.0.
51691
51692 2007-03-11  Bruno Haible  <bruno@clisp.org>
51693
51694         * modules/long-options (Depends-on): Add getopt.
51695
51696 2007-03-11  Bruno Haible  <bruno@clisp.org>
51697
51698         * modules/modechange (Depends-on): Add stdbool.
51699
51700 2007-03-11  Bruno Haible  <bruno@clisp.org>
51701
51702         * modules/i-ring (Depends-on): Add stdbool.
51703
51704 2007-03-11  Bruno Haible  <bruno@clisp.org>
51705
51706         * modules/gc-des (Depends-on): Add stdbool.
51707
51708 2007-03-11  Bruno Haible  <bruno@clisp.org>
51709
51710         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51711
51712 2007-03-11  Bruno Haible  <bruno@clisp.org>
51713
51714         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51715
51716 2007-03-11  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51719
51720 2007-03-11  Bruno Haible  <bruno@clisp.org>
51721
51722         * lib/vasnprintf.c (sprintf): Undefine.
51723
51724 2007-03-11  Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51727         initializers in SunPRO C and Compaq C compilers.
51728
51729 2007-03-11  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51732         decrementing code ANSI C compliant.
51733
51734 2007-03-11  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51737         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51738
51739 2007-03-11  Bruno Haible  <bruno@clisp.org>
51740
51741         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51742         <stdbool.h> substitute doesn't pass.
51743
51744 2007-03-11  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51747
51748 2007-03-11  Bruno Haible  <bruno@clisp.org>
51749
51750         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51751         script, for submission to autobuild.josefsson.org.
51752
51753 2007-03-10  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/canonicalize-lgpl-tests: New file.
51756         * tests/test-canonicalize-lgpl.sh: New file.
51757         * tests/test-canonicalize-lgpl.c: New file.
51758
51759         * modules/c-strcase-tests: New file.
51760         * tests/test-c-strcase.sh: New file.
51761         * tests/test-c-strcasecmp.c: New file.
51762         * tests/test-c-strncasecmp.c: New file.
51763
51764         * modules/atexit-tests: New file.
51765         * tests/test-atexit.sh: New file.
51766         * tests/test-atexit.c: New file.
51767
51768 2007-03-10  Bruno Haible  <bruno@clisp.org>
51769
51770         * tests/test-binary-io.sh: Use temporary filenames that are not so
51771         likely to clash with those of other tests (in a parallel make).
51772         * tests/test-binary-io.c: Likewise.
51773
51774 2007-03-10  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51777         fallback; use #error instead.
51778         Suggested by Simon Josefsson.
51779
51780 2007-03-10  Bruno Haible  <bruno@clisp.org>
51781
51782         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51783         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51784         first and the last.
51785
51786 2007-03-10  Bruno Haible  <bruno@clisp.org>
51787
51788         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51789
51790 2007-03-10  Bruno Haible  <bruno@clisp.org>
51791
51792         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51793         "make distcheck".
51794         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51795         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51796         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51797
51798 2007-03-10  Bruno Haible  <bruno@clisp.org>
51799
51800         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51801         variable.
51802         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51803         variable.
51804
51805 2007-03-09  Eric Blake  <ebb9@byu.net>
51806         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51807
51808         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51809         types are not being provided by gnulib.
51810         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51811         types are supported.
51812
51813 2007-03-10  Bruno Haible  <bruno@clisp.org>
51814
51815         * lib/stdio_.h (__attribute__): New macro.
51816         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51817         vsprintf): Specify __attribute__ __format__ for GCC.
51818         Suggested by Eric Blake.
51819
51820 2007-03-09  Bruno Haible  <bruno@clisp.org>
51821
51822         * modules/printf-posix-tests: New file.
51823         * tests/test-printf-posix.sh: New file.
51824         * tests/test-printf-posix.c: New file.
51825
51826         * modules/printf-posix: New file.
51827         * lib/printf.c: New file.
51828         * m4/printf-posix-rpl.m4: New file.
51829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51830         REPLACE_PRINTF.
51831         * lib/stdio_.h (printf): New declaration.
51832         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51833         ____strfmon____): New macros.
51834         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51835         REPLACE_PRINTF.
51836
51837 2007-03-09  Bruno Haible  <bruno@clisp.org>
51838
51839         * tests/test-vasnprintf-posix2.sh: New file.
51840         * tests/test-vasnprintf-posix2.c: New file.
51841         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51842         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51843         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51844
51845         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51846         a locale dependent decimal point, rather than always '.'.
51847
51848 2007-03-09  Eric Blake  <ebb9@byu.net>
51849
51850         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51851         spite of platforms like Tandem/NSK that define it to -1.
51852
51853 2007-03-08  Bruno Haible  <bruno@clisp.org>
51854
51855         * modules/vprintf-posix-tests: New file.
51856         * tests/test-vprintf-posix.sh: New file.
51857         * tests/test-vprintf-posix.c: New file.
51858         * tests/test-printf-posix.h: New file.
51859
51860         * modules/vprintf-posix: New file.
51861         * lib/vprintf.c: New file.
51862         * m4/vprintf-posix.m4: New file.
51863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51864         REPLACE_VPRINTF.
51865         * lib/stdio_.h (vprintf): New declaration.
51866         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51867         REPLACE_VPRINTF.
51868
51869 2007-03-08  Bruno Haible  <bruno@clisp.org>
51870
51871         * modules/fprintf-posix-tests: New file.
51872         * tests/test-fprintf-posix.sh: New file.
51873         * tests/test-fprintf-posix.c: New file.
51874
51875         * modules/fprintf-posix: New file.
51876         * lib/fprintf.c: New file.
51877         * m4/fprintf-posix.m4: New file.
51878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51879         REPLACE_FPRINTF.
51880         * lib/stdio_.h (fprintf): New declaration.
51881         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51882         REPLACE_FPRINTF.
51883
51884 2007-03-08  Bruno Haible  <bruno@clisp.org>
51885
51886         * modules/vfprintf-posix-tests: New file.
51887         * tests/test-vfprintf-posix.sh: New file.
51888         * tests/test-vfprintf-posix.c: New file.
51889         * tests/test-fprintf-posix.h: New file.
51890         * tests/test-fprintf-posix.out: New file.
51891
51892         * modules/vfprintf-posix: New file.
51893         * lib/vfprintf.c: New file.
51894         * m4/vfprintf-posix.m4: New file.
51895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51896         REPLACE_VFPRINTF.
51897         * lib/stdio_.h (vfprintf): New declaration.
51898         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51899         REPLACE_VFPRINTF.
51900
51901 2007-03-08  Bruno Haible  <bruno@clisp.org>
51902
51903         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51904
51905 2007-03-08  Bruno Haible  <bruno@clisp.org>
51906
51907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51908         instead of 'expr' invocations.
51909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51914         Suggested by Paul Eggert.
51915
51916 2007-03-08  Bruno Haible  <bruno@clisp.org>
51917
51918         * modules/fseterr-tests: New file.
51919         * tests/test-fseterr.c: New file.
51920
51921         * modules/fseterr: New file.
51922         * lib/fseterr.h: New file.
51923         * lib/fseterr.c: New file.
51924
51925 2007-03-08  Bruno Haible  <bruno@clisp.org>
51926
51927         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51928         * lib/getopt_.h: Likewise.
51929         * lib/mbswidth.h: Likewise.
51930         * lib/setenv.h: Likewise.
51931         * lib/vasnprintf.h: Likewise.
51932         * lib/vasprintf.h: Likewise.
51933         * lib/verror.h: Likewise.
51934         * lib/xsetenv.h: Likewise.
51935         * lib/xvasprintf.h: Likewise.
51936
51937 2007-03-08  Jim Meyering  <jim@meyering.net>
51938
51939         * users.txt: Add parted.
51940
51941         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51942
51943 2007-03-07  Bruno Haible  <bruno@clisp.org>
51944
51945         * m4/printf.m4: Make the shell script snippets copy&pastable.
51946
51947 2007-03-02  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/netinet_in_.h: New file.
51950         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51951         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51952         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51953         (Depends-on): Add absolute-header.
51954         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51955         into netinet/in.h.
51956
51957 2007-03-03  Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/sys_select_.h: New file.
51960         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51961         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51962         * modules/sys_select (Files): Add lib/sys_select_.h.
51963         (Depends-on): Add absolute-header.
51964         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51965         into sys/select.h.
51966
51967 2007-03-02  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51970         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51971         values.
51972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51973         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51974         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51975         * modules/sys_socket (Depends-on): Add absolute-header.
51976         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51977         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51978         (Include): Remove requirement of inclusion of <sys/types.h>.
51979
51980 2007-03-02  Bruno Haible  <bruno@clisp.org>
51981
51982         * lib/byteswap_.h (bswap_32): Fix formula.
51983
51984 2007-03-06  Bruno Haible  <bruno@clisp.org>
51985
51986         * modules/sprintf-posix-tests: New file.
51987         * tests/test-sprintf-posix.c: New file.
51988
51989         * modules/sprintf-posix: New file.
51990         * lib/sprintf.c: New file.
51991         * m4/sprintf-posix.m4: New file.
51992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51993         REPLACE_SPRINTF.
51994         * lib/stdio_.h (sprintf): New declaration.
51995         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51996         REPLACE_SPRINTF.
51997
51998 2007-03-06  Bruno Haible  <bruno@clisp.org>
51999
52000         * modules/vsprintf-posix-tests: New file.
52001         * tests/test-vsprintf-posix.c: New file.
52002         * tests/test-sprintf-posix.h: New file.
52003
52004         * modules/vsprintf-posix: New file.
52005         * lib/vsprintf.c: New file.
52006         * m4/vsprintf-posix.m4: New file.
52007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52008         REPLACE_VSPRINTF.
52009         * lib/stdio_.h (vsprintf): New declaration.
52010         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52011         REPLACE_VSPRINTF.
52012
52013 2007-03-06  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/vsnprintf (Depend-on): Remove minmax.
52016
52017 2007-03-06  Bruno Haible  <bruno@clisp.org>
52018
52019         * modules/snprintf-posix-tests: New file.
52020         * tests/test-snprintf-posix.c: New file.
52021
52022         * modules/snprintf-posix: New file.
52023         * m4/snprintf-posix.m4: New file.
52024         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52025         gl_FUNC_SNPRINTF.
52026         (gl_FUNC_SNPRINTF): Invoke it.
52027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52028         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52029         is set.
52030         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52031
52032 2007-03-06  Bruno Haible  <bruno@clisp.org>
52033
52034         * modules/vsnprintf-posix-tests: New file.
52035         * tests/test-vsnprintf-posix.c: New file.
52036         * tests/test-snprintf-posix.h: New file.
52037
52038         * modules/vsnprintf-posix: New file.
52039         * m4/vsnprintf-posix.m4: New file.
52040         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52041         gl_FUNC_VSNPRINTF.
52042         (gl_FUNC_VSNPRINTF): Invoke it.
52043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52044         * lib/stdio_.h (vsnprintf): Define as a replacement if
52045         REPLACE_VSNPRINTF is set.
52046         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52047
52048 2007-03-06  Bruno Haible  <bruno@clisp.org>
52049
52050         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52052
52053 2007-03-06  Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52056         (asinl): Declare also if HAVE_DECL_ASINL is set.
52057         (atanl): Declare also if HAVE_DECL_ATANL is set.
52058         (ceill): Declare also if HAVE_DECL_CEILL is set.
52059         (cosl): Declare also if HAVE_DECL_COSL is set.
52060         (expl): Declare also if HAVE_DECL_EXPL is set.
52061         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52062         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52063         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52064         (logl): Declare also if HAVE_DECL_LOGL is set.
52065         (sinl): Declare also if HAVE_DECL_SINL is set.
52066         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52067         (tanl): Declare also if HAVE_DECL_TANL is set.
52068         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52070         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52071         declaration of frexpl, ldexpl.
52072         * modules/printf-frexpl (Depends-on): Add math.
52073         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52074
52075 2007-03-05  Bruno Haible  <bruno@clisp.org>
52076
52077         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52078         frexpl and ldexpl are declared.
52079         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52080
52081 2007-03-05  Bruno Haible  <bruno@clisp.org>
52082
52083         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52084         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52085
52086 2007-03-05  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/stdio_.h: Include <stddef.h>.
52089
52090 2007-03-05  Bruno Haible  <bruno@clisp.org>
52091
52092         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52093
52094 2007-03-05  Bruno Haible  <bruno@clisp.org>
52095
52096         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52097         NetBSD 4, from Ralf Wildenhues.
52098
52099 2007-03-04  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/vasprintf.h: Update #if logic for the case when the functions
52102         exist but are overridden.
52103
52104 2007-03-04  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52107         implementations: glibc-2.4 and MacOS X 10.3.
52108         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52109         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52110         * tests/test-vasprintf-posix.c (test_function): Likewise.
52111
52112 2007-03-04  Bruno Haible  <bruno@clisp.org>
52113
52114         * modules/vasprintf-posix-tests: New file.
52115         * tests/test-vasprintf-posix.c: New file.
52116
52117         * modules/vasprintf-posix: New file.
52118         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52119         defined.
52120         * m4/vasprintf-posix.m4: New file.
52121         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52122         gl_FUNC_VASPRINTF.
52123         (gl_FUNC_VASPRINTF): Invoke it.
52124         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52125         here.
52126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52127
52128 2007-03-04  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52131         REPLACE_GETTIMEOFDAY.
52132         * modules/sys_time (Makefile.am): Likewise.
52133         * m4/sys_time_h.m4: Likewise.
52134         * m4/gettimeofday.m4: Likewise.
52135
52136 2007-03-04  Bruno Haible  <bruno@clisp.org>
52137
52138         * modules/vasnprintf-posix-tests: New file.
52139         * tests/test-vasnprintf-posix.c: New file.
52140
52141         * modules/vasnprintf-posix: New file.
52142         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52143         printf-frexpl.h.
52144         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52145         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52146         REPLACE_VASNPRINTF is defined.
52147         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52148         gl_FUNC_VASNPRINTF.
52149         (gl_FUNC_VASNPRINTF): Invoke it.
52150         * m4/vasnprintf-posix.m4: New file.
52151         * m4/printf.m4: New file.
52152
52153 2007-03-04  Bruno Haible  <bruno@clisp.org>
52154
52155         Compile progreloc.c only if --enable-relocatable is specified.
52156         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52157         if --enable-relocatable was specified.
52158         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52159         lib_SOURCES.
52160
52161 2007-03-04  Jim Meyering  <jim@meyering.net>
52162
52163         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52164         Use it consistently, rather than enumerating errno constants.
52165
52166 2007-03-04  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/xvasprintf-tests: New file.
52169         * tests/test-xvasprintf.c: New file.
52170
52171         * modules/vasprintf-tests: New file.
52172         * tests/test-vasprintf.c: New file.
52173
52174         * modules/vasnprintf-tests: New file.
52175         * tests/test-vasnprintf.c: New file.
52176
52177         * modules/vsnprintf-tests: New file.
52178         * tests/test-vsnprintf.c: New file.
52179
52180         * modules/snprintf-tests: New file.
52181         * tests/test-snprintf.c: New file.
52182
52183 2007-03-04  Bruno Haible  <bruno@clisp.org>
52184
52185         Compile relocatable.c only if --enable-relocatable is specified.
52186         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52187         gl_RELOCATABLE_LIBRARY.
52188         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52189         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52190         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52191         gl_RELOCATABLE_LIBRARY.
52192         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52193         (Makefile.am): Remove lib_SOURCES.
52194         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52195         gl_RELOCATABLE_LIBRARY.
52196         (Makefile.am): Remove lib_SOURCES.
52197         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52198         always.
52199         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52200         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52201
52202 2007-03-04  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/argmatch-tests: New file.
52205         * tests/test-argmatch.c: New file.
52206
52207         * tests/test-allocsa.c (main): Halve the number of loop runs.
52208
52209         * modules/alloca-opt-tests: New file.
52210         * tests/test-alloca-opt.c: New file.
52211
52212 2007-03-04  Jim Meyering  <jim@meyering.net>
52213
52214         Work around difference between Linux ACLs and Solaris 10 ZFS.
52215         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52216         for EINVAL.
52217
52218 2007-03-03  Bruno Haible  <bruno@clisp.org>
52219
52220         * modules/relocatable-prog (Depends-on): Add back progreloc's
52221         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52222
52223 2007-03-03  Bruno Haible  <bruno@clisp.org>
52224
52225         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52226         * modules/relocatable-lib: New file.
52227
52228 2007-03-03  Bruno Haible  <bruno@clisp.org>
52229
52230         * modules/relocatable-prog: Renamed from modules/relocatable.
52231         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52232
52233 2007-03-03  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52236         m4/relocatable-lib.m4.
52237         (Depends-on): Remove 'relocatable'.
52238         (configure.ac): Add gl_RELOCATABLE_NOP.
52239
52240 2007-03-03  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/relocatable-prog-wrapper: New file.
52243         * modules/relocatable (Depends-on): Add it. Remove all other
52244         dependencies except progname.
52245         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52246
52247         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52248         (gl_FUNC_STRERROR): Nop.
52249         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52250
52251         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52252         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52253
52254         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52255         (gl_FUNC_READLINK): Update.
52256
52257         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52258
52259 2007-03-03  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52262         * modules/xreadlink (Depends-on): Add unistd.
52263         * modules/xreadlink-with-size (Depends-on): Likewise.
52264
52265 2007-03-03  Bruno Haible  <bruno@clisp.org>
52266
52267         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52268         extracted from gt_FUNC_SETENV.
52269         (gt_FUNC_SETENV): Remove macro.
52270         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52271         remove gt_FUNC_SETENV.
52272
52273 2007-03-03  Bruno Haible  <bruno@clisp.org>
52274
52275         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52276         ENABLE_RELOCATABLE here.
52277         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52278
52279 2007-03-03  Bruno Haible  <bruno@clisp.org>
52280
52281         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52282         * tests/test-rbtreehash_list.c: Include progname.h.
52283         (main): Call set_program_name.
52284
52285         * modules/rbtree-oset-tests (Depends-on): Add progname.
52286         * tests/test-rbtree_oset.c: Include progname.h.
52287         (main): Call set_program_name.
52288
52289         * modules/rbtree-list-tests (Depends-on): Add progname.
52290         * tests/test-rbtree_list.c: Include progname.h.
52291         (main): Call set_program_name.
52292
52293         * modules/linked-list-tests (Depends-on): Add progname.
52294         * tests/test-linked_list.c: Include progname.h.
52295         (main): Call set_program_name.
52296
52297 2007-03-03  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52300         All uses of __restrict changed to _Restrict_.
52301         * lib/glob_.h (__restrict): Remove macro.
52302
52303 2007-03-02  Bruno Haible  <bruno@clisp.org>
52304
52305         * modules/gettext (configure.ac): Require gettext infrastructure
52306         from version 0.16.1.
52307
52308 2007-03-02  Bruno Haible  <bruno@clisp.org>
52309
52310         * modules/linkedhash-list-tests (Depends-on): Add progname.
52311         * tests/test-linkedhash_list.c: Include progname.h.
52312         (main): Call set_program_name.
52313
52314         * modules/carray-list-tests (Depends-on): Add progname.
52315         * tests/test-carray_list.c: Include progname.h.
52316         (main): Call set_program_name.
52317
52318         * modules/avltreehash-list-tests (Depends-on): Add progname.
52319         * tests/test-avltreehash_list.c: Include progname.h.
52320         (main): Call set_program_name.
52321
52322         * modules/avltree-oset-tests (Depends-on): Add progname.
52323         * tests/test-avltree_oset.c: Include progname.h.
52324         (main): Call set_program_name.
52325
52326         * modules/avltree-list-tests (Depends-on): Add progname.
52327         * tests/test-avltree_list.c: Include progname.h.
52328         (main): Call set_program_name.
52329
52330         * modules/array-oset-tests (Depends-on): Add progname.
52331         * tests/test-array_oset.c: Include progname.h.
52332         (main): Call set_program_name.
52333
52334         * modules/array-list-tests (Depends-on): Add progname.
52335         * tests/test-array_list.c: Include progname.h.
52336         (main): Call set_program_name.
52337
52338         * modules/argp-tests (Depends-on): Add progname.
52339         * tests/test-argp.c: Include argp.h first. Include progname.h.
52340         (main): Call set_program_name.
52341
52342 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52343
52344         * doc/gnulib-tool.texi (Initial import): Reword description of
52345         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52346         limited effect even if defined after the first system include.
52347
52348 2007-03-01  Bruno Haible  <bruno@clisp.org>
52349
52350         * build-aux/config.libpath: Update to libtool-1.5.22.
52351         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52352
52353 2007-03-01  Bruno Haible  <bruno@clisp.org>
52354
52355         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52356         foo_CFLAGS.
52357         Reported by Ralf Wildenhues.
52358
52359 2007-03-01  Bruno Haible  <bruno@clisp.org>
52360
52361         * build-aux/install-reloc: Remove object files left over by some
52362         compilers.
52363         Reported by Ralf Wildenhues.
52364
52365 2007-03-01  Bruno Haible  <bruno@clisp.org>
52366
52367         * build-aux/install-reloc: Break long lines.
52368
52369 2007-03-01  Bruno Haible  <bruno@clisp.org>
52370
52371         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52372         Reported by Ralf Wildenhues.
52373
52374 2007-03-01  Bruno Haible  <bruno@clisp.org>
52375
52376         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52377         include ordering constraints.
52378
52379 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52380
52381         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52383         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52384         as another example.
52385         * lib/time_.h: Fix misspelling.
52386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52387         Require gl_HEADER_TIME_H_DEFAULTS.
52388         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52389         * m4/time_r.m4 (gl_TIME_R): Likewise.
52390         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52391
52392 2007-03-01  Bruno Haible  <bruno@clisp.org>
52393
52394         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52395         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52396
52397 2007-03-01  Jim Meyering  <jim@meyering.net>
52398
52399         * modules/xreadlink (Maintainer): Add my name.
52400         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52401
52402 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52403             Bruno Haible  <bruno@clisp.org>
52404
52405         * build-aux/install-reloc: Compile also c-ctype.c.
52406         * build-aux/relocatable.sh.in: New file.
52407         * doc/relocatable.texi: New file.
52408         * doc/relocatable-maint.texi: New file.
52409         * doc/gnulib.texi: Include relocatable-maint.texi.
52410         * lib/progreloc.c: Include unistd.h unconditionally.
52411         * lib/relocwrapper.c: Include unistd.h unconditionally.
52412         Include c-ctype.h.
52413         (add_dotbin): Use c_tolower.
52414         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52415         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52416         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52417         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52418         to m4/relocatable-lib.m4.
52419         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52420         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52421         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52422         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52423         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52424         * modules/relocatable: New file.
52425         * modules/relocatable-lib: New file.
52426         * modules/relocatable-script: New file.
52427
52428 2007-02-28  Bruno Haible  <bruno@clisp.org>
52429
52430         Import --enable-relocatable infrastructure.
52431         * build-aux/config.libpath: New file, from GNU gettext.
52432         * build-aux/install-reloc: New file, from GNU gettext.
52433         * build-aux/reloc-ldflags: New file, from GNU gettext.
52434         * lib/relocatable.h: New file, from GNU gettext.
52435         * lib/relocatable.c: New file, from GNU gettext.
52436         * lib/relocwrapper.c: New file, from GNU gettext.
52437         * m4/relocatable.m4: New file, from GNU gettext.
52438
52439 2007-02-28  Bruno Haible  <bruno@clisp.org>
52440
52441         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52442
52443         * modules/xreadlink: New file, from GNU gettext with modifications.
52444         * lib/xreadlink.c: New file, from GNU gettext.
52445         * lib/xreadlink.h: Add comments.
52446         (xreadlink): New declaration.
52447
52448         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52449         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52450         lib/xreadlink-with-size.c.
52451         (configure.ac): Remove gl_XREADLINK invocation.
52452         (Makefile.am): Augment lib_SOURCES.
52453         * m4/xreadlink.m4: Remove file.
52454         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52455         (xreadlink_with_size): Renamed from xreadink.
52456         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52457         * modules/canonicalize (Depends-on): Replace xreadlink with
52458         xreadlink-with-size.
52459         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52460
52461 2007-02-25  Jim Meyering  <jim@meyering.net>
52462
52463         * build-aux/announce-gen: When complaining about excess arguments,
52464         list them.
52465
52466 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         * README: Document signed integer overflow situation more
52469         accurately.
52470
52471 2007-02-25  Bruno Haible  <bruno@clisp.org>
52472
52473         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52474         'a' or 'A' conversion.
52475
52476 2007-02-25  Bruno Haible  <bruno@clisp.org>
52477
52478         * modules/filename: Renamed from modules/pathname.
52479         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52480         lib/concatpath.c with lib/concat-filename.c.
52481         (Makefile.am): Update.
52482         (Include): Replace pathname.h with filename.h.
52483         * lib/filename.h: Renamed from lib/pathname.h.
52484         (concatenated_filename): Renamed from concatenated_pathname.
52485         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52486         (concatenated_filename): Renamed from concatenated_pathname.
52487         * lib/findprog.c: Include filename.h instead of pathname.h.
52488         (find_in_path): Update.
52489         * lib/javacomp.c: Include filename.h instead of pathname.h.
52490         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52491         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52492         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52493         is_oldgcj_14_13_usable, is_javac_usable): Update.
52494         * lib/javaexec.c: Include filename.h instead of pathname.h.
52495         (execute_java_class): Update.
52496         * modules/findprog: Update.
52497         * modules/javacomp: Update.
52498         * modules/javaexec: Update.
52499         * MODULES.html.sh (File system functions): Add 'filename', remove
52500         'pathname'.
52501
52502 2007-02-25  Bruno Haible  <bruno@clisp.org>
52503
52504         * modules/printf-frexpl-tests: New file.
52505         * tests/test-printf-frexpl.c: New file.
52506
52507         * modules/printf-frexpl: New file.
52508         * lib/printf-frexpl.h: New file.
52509         * lib/printf-frexpl.c: New file.
52510         * m4/printf-frexpl.m4: New file.
52511
52512 2007-02-25  Bruno Haible  <bruno@clisp.org>
52513
52514         * modules/printf-frexp-tests: New file.
52515         * tests/test-printf-frexp.c: New file.
52516
52517         * modules/printf-frexp: New file.
52518         * lib/printf-frexp.h: New file.
52519         * lib/printf-frexp.c: New file.
52520         * m4/printf-frexp.m4: New file.
52521
52522 2007-02-25  Bruno Haible  <bruno@clisp.org>
52523
52524         Assume automake >= 1.10 for the tests.
52525         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52526         * modules/arctwo-tests: Likewise.
52527         * modules/argp-tests: Likewise.
52528         * modules/avltree-list-tests: Likewise.
52529         * modules/avltree-oset-tests: Likewise.
52530         * modules/avltreehash-list-tests: Likewise.
52531         * modules/carray-list-tests: Likewise.
52532         * modules/crc-tests: Likewise.
52533         * modules/des-tests: Likewise.
52534         * modules/gc-arcfour-tests: Likewise.
52535         * modules/gc-arctwo-tests: Likewise.
52536         * modules/gc-des-tests: Likewise.
52537         * modules/gc-hmac-md5-tests: Likewise.
52538         * modules/gc-hmac-sha1-tests: Likewise.
52539         * modules/gc-md2-tests: Likewise.
52540         * modules/gc-md4-tests: Likewise.
52541         * modules/gc-md5-tests: Likewise.
52542         * modules/gc-pbkdf2-sha1-tests: Likewise.
52543         * modules/gc-rijndael-tests: Likewise.
52544         * modules/gc-sha1-tests: Likewise.
52545         * modules/gc-tests: Likewise.
52546         * modules/getaddrinfo-tests: Likewise.
52547         * modules/hmac-md5-tests: Likewise.
52548         * modules/hmac-sha1-tests: Likewise.
52549         * modules/linked-list-tests: Likewise.
52550         * modules/linkedhash-list-tests: Likewise.
52551         * modules/lock-tests: Likewise.
52552         * modules/md2-tests: Likewise.
52553         * modules/md4-tests: Likewise.
52554         * modules/md5-tests: Likewise.
52555         * modules/rbtree-list-tests: Likewise.
52556         * modules/rbtree-oset-tests: Likewise.
52557         * modules/rbtreehash-list-tests: Likewise.
52558         * modules/read-file-tests: Likewise.
52559         * modules/rijndael-tests: Likewise.
52560         * modules/stdint-tests: Likewise.
52561         * modules/tls-tests: Likewise.
52562
52563 2007-02-24  Bruno Haible  <bruno@clisp.org>
52564
52565         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52566         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52567         function; instead check whether isnan with a double argument links.
52568         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52569         function; instead check whether isnan with a 'long double' argument
52570         links.
52571         Reported by Eric Blake <ebb9@byu.net>.
52572
52573 2007-02-24  Bruno Haible  <bruno@clisp.org>
52574
52575         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52576         defined.
52577         * lib/isnanl.c: Remove all code. Just include isnan.c.
52578         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52579
52580 2007-02-25  Jim Meyering  <jim@meyering.net>
52581
52582         Avoid conflicting types for 'unsetenv' on FreeBSD.
52583         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52584         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52585         in stdlib.h.
52586
52587 2007-02-24  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/isnanl-nolibm-tests: New file.
52590         * tests/test-isnanl.c: New file.
52591
52592         * modules/isnanl-nolibm: New file.
52593         * lib/isnanl.h: New file.
52594         * lib/isnanl.c: New file.
52595         * m4/isnanl.m4: New file.
52596
52597 2007-02-24  Bruno Haible  <bruno@clisp.org>
52598
52599         * modules/isnan-nolibm-tests: New file.
52600         * tests/test-isnan.c: New file.
52601
52602         * modules/isnan-nolibm: New file.
52603         * lib/isnan.h: New file.
52604         * lib/isnan.c: New file.
52605         * m4/isnan.m4: New file.
52606
52607 2007-02-24  Bruno Haible  <bruno@clisp.org>
52608
52609         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52610         assume that an exponent fits in 20 bits.
52611
52612 2007-02-24  Jim Meyering  <jim@meyering.net>
52613
52614         * m4/regex.m4: Update the description of the configure-time option,
52615         --without-included-regex, to state accurately what the defaults are,
52616         and perhaps to give people an idea why using this option is risky.
52617
52618 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52621         loops on small arguments.  This attempts to avoid the problem
52622         Bruno Haible reported for AIX 4.3.2 in
52623         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52624
52625 2007-02-23  Bruno Haible  <bruno@clisp.org>
52626
52627         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52628         Needed for help2man.
52629
52630 2007-02-23  Karl Berry  <karl@gnu.org>
52631
52632         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52633         exists, foo.h should be cvs-ignored, not committed.
52634
52635 2007-02-23  Eric Blake  <ebb9@byu.net>
52636
52637         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52638         * lib/stat-time.h (includes): Likewise.
52639         * lib/utimecmp.c (includes): Likewise.
52640         * lib/utimens.h (includes): Likewise.
52641         * lib/getdate.y (includes): Also include "timespec.h" for use
52642         internal to the module.
52643         * modules/utimens (Depends-on): Revert yesterday's patch.
52644         * modules/nanosleep (Depends-on): Add missing dependency.
52645
52646 2007-02-22  Bruno Haible  <bruno@clisp.org>
52647
52648         * lib/glob.c: Don't include getlogin_r.h.
52649
52650 2007-02-22  Jim Meyering  <jim@meyering.net>
52651
52652         * modules/utimens (Depends-on): Add timespec, required for
52653         utimens.h's inclusion of timespec.h.
52654
52655 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52656
52657         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52658         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52659         Schwab in
52660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52661         I'll try to think of a better way to fix the Solaris problem.
52662
52663         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52664         like glibc; on Solaris 10, it fails with errno == EINVAL.
52665         POSIX says the behavior is unspecified if the first argument is NULL,
52666         so play it safe and never pass NULL to the system getcwd.
52667
52668 2007-02-21  Jim Meyering  <jim@meyering.net>
52669
52670         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52671         of gettimeofday.  It would conflict with the one now always
52672         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52673         an IRIX 6.5 build failure.
52674
52675 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         Minor fixups to port to Solaris 10 with Sun C 5.8.
52678         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52679         * modules/getcwd (Depends-on): Add dirfd.
52680         * lib/putenv.c (putenv): #undef it.
52681         (rpl_putenv): New decl.
52682         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52683
52684 2007-02-20  Bruno Haible  <bruno@clisp.org>
52685
52686         * modules/stdio-tests: New file.
52687         * tests/test-stdio.c: New file.
52688
52689         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52690         (Depends-on): Add stdio.
52691         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52692         (Include): Use <stdio.h> instead of vsnprintf.h.
52693         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52694         HAVE_DECL_VSNPRINTF.
52695         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52696
52697         * modules/snprintf (Files): Remove lib/snprintf.h.
52698         (Depends-on): Add stdio.
52699         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52700         (Include): Use <stdio.h> instead of snprintf.h.
52701         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52702         HAVE_DECL_SNPRINTF.
52703         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52704         * lib/getaddrinfo.c: Likewise.
52705
52706         * modules/stdio: New file.
52707         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52708         * lib/snprintf.h: Remove file.
52709         * lib/vsnprintf.h: Remove file.
52710         * lib/.cppi-disable: Remove snprintf.h.
52711         * m4/stdio_h.m4: New file.
52712         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52713
52714 2007-02-20  Jim Meyering  <jim@meyering.net>
52715
52716         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52717         used by e.g., mingw.  From Bruno Haible.
52718
52719 2007-02-19  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52722         warnings.
52723         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52724
52725 2007-02-19  Bruno Haible  <bruno@clisp.org>
52726
52727         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52728         from mingw users.
52729
52730 2007-02-19  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52733         warnings.
52734         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52735
52736 2007-02-19  Jim Meyering  <jim@meyering.net>
52737
52738         Don't use FD after a successful "fdopendir (fd)".
52739         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52740         Reset it by calling dirfd on the just-obtained DIR*.
52741
52742         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52743         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52744
52745 2007-02-18  Bruno Haible  <bruno@clisp.org>
52746
52747         * lib/readlink.c: Include <unistd.h>.
52748         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52749         HAVE_READLINK.
52750         * modules/readlink (Depends-on): Add unistd.
52751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52752         (Include): Add <unistd.h>.
52753
52754         * lib/getlogin_r.h: Remove file.
52755         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52756         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52757         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52758         HAVE_DECL_GETLOGIN_R.
52759         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52761         (Include): Use <unistd.h> instead of getlogin_r.h.
52762
52763         * lib/getcwd.h: Remove file.
52764         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52765         * lib/xgetcwd.c: Likewise.
52766         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52767         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52768         * modules/getcwd (Files): Remove lib/getcwd.h.
52769         (Depends-on): Add unistd.
52770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52771         (Include): Use <unistd.h> instad of getcwd.h.
52772
52773         * lib/ftruncate.c: Include <unistd.h> first.
52774         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52775         Set HAVE_FTRUNCATE.
52776         * modules/ftruncate (Depends-on): Add unistd.
52777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52778
52779         * lib/fchdir.c: Include <unistd.h> first.
52780         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52782         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52783         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52784         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52785
52786         * lib/dup2.c: Include <unistd.h> first.
52787         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52788         HAVE_DUP2.
52789         * modules/dup2 (Depends-on): Add unistd.
52790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52791
52792         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52793         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52794         REPLACE_CHOWN. Don't define chown as a macro here.
52795         * modules/chown (Depends-on): Add unistd.
52796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52797
52798         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52799         Add definition for GL_LINK_WARNING.
52800         (chown, dup2): New declarations.
52801         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52802         link warning.
52803         (ftruncate): New declaration.
52804         (getcwd): New declaration, taken from old getcwd.h.
52805         (getlogin_r): New declaration, taken from old getlogin_r.h.
52806         (readlink): New declaration.
52807         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52808         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52809         (gl_PREREQ_UNISTD): Remove macro.
52810         (gl_UNISTD_MODULE_INDICATOR): New macro.
52811         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52812         many new variables. Don't set UNISTD_H.
52813         * modules/unistd (Description): Change.
52814         (Depends-on): Add link-warning.
52815         (configure.ac): Update.
52816         (Makefile.am): Create unistd.h always. Substitute many new variables
52817         into it.
52818
52819 2007-02-18  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52822         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52823         HAVE_GETSUBOPT.
52824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52825         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52826         * lib/getsubopt.h: Remove file.
52827         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52828         (Depends-on): Add stdlib.
52829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52830         (Includes): Use <stdlib.h> instead of getsubopt.h.
52831         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52832         Set HAVE_GETSUBOPT.
52833         * lib/getsubopt.c: Don't include getsubopt.h.
52834
52835 2007-02-18  Bruno Haible  <bruno@clisp.org>
52836
52837         * modules/fchdir (Depends-on): Add dup2.
52838
52839 2007-02-18  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/stdlib_.h: Handle glibc's special invocation convention
52842         specially.
52843
52844 2007-02-18  Bruno Haible  <bruno@clisp.org>
52845
52846         * modules/stdlib-tests: New file.
52847         * tests/test-stdlib.c: New file.
52848
52849         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52850         (Depends-on): Add stdlib.
52851         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52852         (Includes): Use <stdlib.h> instead of mkstemp.h.
52853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52854         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52855         * lib/mkstemp.c: Don't include mkstemp.h.
52856         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52857         * lib/stdlib--.h: Don't include mkstemp.h.
52858
52859         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52860         (Depends-on): Add stdlib.
52861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52862         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52863         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52864         HAVE_MKDTEMP.
52865         * lib/mkdtemp.c: Don't include mkdtemp.h.
52866         * lib/clean-temp.c: Don't include mkdtemp.h.
52867
52868         * modules/exit (Files): Remove lib/exit.h.
52869         (Depends-on): Add stdlib.
52870         (Makefile.am): Remove lib_SOURCES.
52871         (Include): Use <stdlib.h> instead of exit.h.
52872         * lib/argmatch.c: Don't include exit.h.
52873         * lib/execute.c: Likewise.
52874         * lib/pagealign_alloc.c: Likewise.
52875         * lib/pipe.c: Likewise.
52876         * lib/wait-process.c: Likewise.
52877         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52878         * lib/exitfail.c: Likewise.
52879         * lib/savewd.c: Likewise.
52880         * lib/xsetenv.c: Likewise.
52881
52882         * modules/stdlib: New file.
52883         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52884         and extra comments about mkstemp().
52885         * lib/exit.h: Remove file.
52886         * lib/mkdtemp.h: Remove file.
52887         * lib/mkstemp.h: Remove file.
52888         * m4/stdlib_h.m4: New file.
52889         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52890
52891 2007-02-18  Bruno Haible  <bruno@clisp.org>
52892
52893         * modules/math-tests: New file.
52894         * tests/test-math.c: New file.
52895
52896         * modules/math: New file.
52897         * modules/mathl (Files): Remove lib/mathl.h.
52898         (Depends-on): Add math.
52899         (Makefile.am): Don't mention mathl.h.
52900         (Include): Use <math.h> instead of mathl.h.
52901         * lib/math_.h: New file.
52902         * lib/mathl.h: Remove file.
52903         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52904         mathl.h.
52905         * lib/asinl.c: Likewise.
52906         * lib/atanl.c: Likewise.
52907         * lib/ceill.c: Likewise.
52908         * lib/cosl.c: Likewise.
52909         * lib/expl.c: Likewise.
52910         * lib/floorl.c: Likewise.
52911         * lib/frexpl.c: Likewise.
52912         * lib/ldexpl.c: Likewise.
52913         * lib/logl.c: Likewise.
52914         * lib/sincosl.c: Likewise.
52915         * lib/sinl.c: Likewise.
52916         * lib/sqrtl.c: Likewise.
52917         * lib/tanl.c: Likewise.
52918         * lib/trigl.c: Likewise.
52919         * m4/math_h.m4: New file.
52920         * MODULES.html.sh (Mathematics): Add math.
52921
52922 2007-02-17  Bruno Haible  <bruno@clisp.org>
52923
52924         * modules/wctype-tests: New file.
52925         * tests/test-wctype.c: New file.
52926
52927         * modules/wchar-tests: New file.
52928         * tests/test-wchar.c: New file.
52929
52930         * modules/unistd-tests: New file.
52931         * tests/test-unistd.c: New file.
52932
52933         * modules/time-tests: New file.
52934         * tests/test-time.c: New file.
52935
52936         * modules/sysexits-tests: New file.
52937         * tests/test-sysexits.c: New file.
52938
52939         * modules/sys_time-tests: New file.
52940         * tests/test-sys_time.c: New file.
52941
52942         * modules/sys_stat-tests: New file.
52943         * tests/test-sys_stat.c: New file.
52944
52945         * modules/sys_socket-tests: New file.
52946         * tests/test-sys_socket.c: New file.
52947
52948         * modules/sys_select-tests: New file.
52949         * tests/test-sys_select.c: New file.
52950
52951         * modules/string-tests: New file.
52952         * tests/test-string.c: New file.
52953
52954         * modules/stdbool-tests: New file.
52955         * tests/test-stdbool.c: New file.
52956
52957         * modules/netinet_in-tests: New file.
52958         * tests/test-netinet_in.c: New file.
52959
52960         * modules/inttypes-tests: New file.
52961         * tests/test-inttypes.c: New file.
52962
52963         * modules/fcntl-tests: New file.
52964         * tests/test-fcntl.c: New file.
52965
52966         * modules/byteswap-tests: New file.
52967         * tests/test-byteswap.c: New file.
52968
52969         * modules/arpa_inet-tests: New file.
52970         * tests/test-arpa_inet.c: New file.
52971
52972 2007-02-17  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52975         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52976         if the corresponding module is not enabled. Emit link warnings if
52977         the function is used nevertheless.
52978         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52979         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52980         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52981         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52982         * modules/inttypes (Depends-on): Add link-warning.
52983         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52984         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52985         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52986         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52987         * modules/imaxdiv (configure.ac): Likewise.
52988         * modules/strtoimax (configure.ac): Likewise.
52989         * modules/strtoumax (configure.ac): Likewise.
52990
52991 2007-02-17  Bruno Haible  <bruno@clisp.org>
52992
52993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52994         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52995         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52996         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52997
52998 2007-02-17  Bruno Haible  <bruno@clisp.org>
52999
53000         * modules/link-warning: New file.
53001         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53002         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53003         * modules/string (Depends-on): Add link-warning.
53004         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53005         string.h.
53006         * MODULES.html.sh (Support for building libraries and executables): Add
53007         link-warning.
53008
53009 2007-02-17  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53012         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53013         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53014         long lines.
53015
53016 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53017             Bruno Haible  <bruno@clisp.org>
53018
53019         * modules/tmpfile: New file.
53020         * lib/tmpfile.c: New file.
53021         * m4/tmpfile.m4: New file.
53022         * MODULES.html.sh (func_all_modules): New section "Input/output".
53023
53024 2007-02-15  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53027         (supports_delete_on_close): New function.
53028         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53029
53030 2007-02-14  Bruno Haible  <bruno@clisp.org>
53031
53032         * modules/mbspcasecmp-tests: New file.
53033         * tests/test-mbspcasecmp.sh: New file.
53034         * tests/test-mbspcasecmp.c: New file.
53035
53036         New module mbspcasecmp.
53037         * modules/mbspcasecmp: New file.
53038         * lib/mbspcasecmp.c: New file.
53039         * lib/string_.h (strncasecmp): Change warning message.
53040         (mbspcasecmp): New declaration.
53041         * m4/mbspcasecmp.m4: New file.
53042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53043         GNULIB_MBSPCASECMP.
53044         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53045         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53046
53047 2007-02-14  Bruno Haible  <bruno@clisp.org>
53048
53049         * modules/mbsncasecmp-tests: New file.
53050         * tests/test-mbsncasecmp.sh: New file.
53051         * tests/test-mbsncasecmp.c: New file.
53052
53053         New module mbsncasecmp.
53054         * modules/mbsncasecmp: New file.
53055         * lib/mbsncasecmp.c: New file.
53056         * lib/string_.h (mbsncasecmp): New declaration.
53057         * m4/mbsncasecmp.m4: New file.
53058         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53059         GNULIB_MBSNCASECMP.
53060         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53061         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53062
53063 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53064
53065         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53066         Verify that it doesn't overlap with our flags.
53067         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53068         do not have the desired effect in multibyte locales; instead, use
53069         mbscasecmp.
53070         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53071         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53072         we don't require GNU fnmatch ourselves (if our users require it, they
53073         should do so explicitly).
53074
53075         Fix regex code so it doesn't rely on strcasecmp.
53076         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53077         Otherwise, include gnulib's langinfo.h.
53078         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53079         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53080         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53081         * modules/regex (FILES): Remove m4/codeset.m4.
53082         (Depends-on): Add localcharset.  Remove strcase.
53083
53084 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53085
53086         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53087         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53088
53089 2007-02-13  Bruno Haible  <bruno@clisp.org>
53090
53091         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53093
53094 2007-02-12  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53097         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53098         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53099         time warning rather than a link error.
53100
53101 2007-02-12  Bruno Haible  <bruno@clisp.org>
53102
53103         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53104         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53106
53107 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53108
53109         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53110         args, not 2.
53111
53112 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53113
53114         New module 'time', so that apps can include <time.h> as per
53115         POSIX and GNU instead of separate include files like time_r.h
53116         and timegm.h.  This implementation tries out a simpler approach
53117         for replacing decls in standard include files (as compared to
53118         the string module), somewhat as an experiment.
53119
53120         * config/srclist.txt: Comment out mktime.c for now.
53121         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53122         since it doesn't apply any more.  Use generic wording instead.
53123         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53124         'time'.
53125         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53126         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53127         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53128         Don't include <sys/types.h>; no longer needed since we assume C89.
53129         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53130         * lib/strftime.c: Likewise.
53131         * lib/time_r.c: Likewise.
53132         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53133         * lib/nanosleep.c: Include <time.h> first, to check interface.
53134         * lib/strptime.c: Likewise.
53135         * lib/time_r.c: Likewise.
53136         * lib/timegm.c: Likewise.
53137         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53138         needed.
53139         * lib/timegm.c: Don't include timegm.h; no longer needed.
53140         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53141         time.h now handles any problems in that area.
53142         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53143         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53144         that time.h defines struct timespec.
53145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53146         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53147         handles that.
53148         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53149         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53150         needed.  Set REPLACE_LOCALTIME.
53151         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53152         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53153         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53154         nanosleep; time_h.m4 now does that.  Don't require
53155         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53156         module handles this now.
53157         * modules/getdate (Depends-on): Remove timespec.  Add time.
53158         * modules/nanosleep (Depends-on): Likewise.
53159         * modules/stat-time (Depends-on): Likewise.
53160         * modules/nanosleep (Include): Include time.h, not timespec.h.
53161         * modules/strptime (Files): Remove lib/strptime.h.
53162         (Depends-on): Add extensions, time.
53163         (Include): Include time.h, not strptime.h.
53164         * modules/time_r (Files): Remove lib/time_r.h.
53165         (Depends-on): Add time.
53166         (Include): Include time.h, not time_r.h.
53167         * modules/timegm: Likewise.
53168         * modules/timespec (Description): Now does timespec-related decls
53169         of our own, instead of struct timespec itself.
53170         (Depends-on): Add time; remove extensions.
53171         (Maintainer): Add self.
53172         * modules/utimecmp (Depends-on): Add time; remove timespec.
53173         * modules/utimens (Depends-on): Likewise.
53174         * modules/xnanosleep (Depends-on): Likewise.
53175
53176 2007-02-11  Bruno Haible  <bruno@clisp.org>
53177
53178         * lib/c-strstr.c: Include allocsa.h.
53179         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53180         * lib/c-strcasestr.c: Include allocsa.h.
53181         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53182         * lib/strcasestr.c: Include allocsa.h.
53183         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53184         * lib/mbsstr.c: Include allocsa.h.
53185         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53186         allocsa/freesa instead of malloc/free.
53187         * lib/mbscasestr.c: Include allocsa.h.
53188         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53189         allocsa/freesa instead of malloc/free.
53190         * modules/c-strstr (Depends-on): Add allocsa.
53191         * modules/c-strcasestr (Depends-on): Likewise.
53192         * modules/strcasestr (Depends-on): Likewise.
53193         * modules/mbsstr (Depends-on): Likewise.
53194         * modules/mbscasestr (Depends-on): Likewise.
53195
53196 2007-02-11  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53199
53200         * modules/mbsspn-tests: New file.
53201         * tests/test-mbsspn.sh: New file.
53202         * tests/test-mbsspn.c: New file.
53203
53204 2007-02-11  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53207
53208         * modules/mbspbrk-tests: New file.
53209         * tests/test-mbspbrk.sh: New file.
53210         * tests/test-mbspbrk.c: New file.
53211
53212 2007-02-11  Bruno Haible  <bruno@clisp.org>
53213
53214         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53215         unneeded cast.
53216
53217         * modules/mbscspn-tests: New file.
53218         * tests/test-mbscspn.sh: New file.
53219         * tests/test-mbscspn.c: New file.
53220
53221 2007-02-11  Bruno Haible  <bruno@clisp.org>
53222
53223         * modules/mbscasecmp-tests: New file.
53224         * tests/test-mbscasecmp.sh: New file.
53225         * tests/test-mbscasecmp.c: New file.
53226
53227 2007-02-11  Bruno Haible  <bruno@clisp.org>
53228
53229         Ensure O(n) worst-case complexity of mbscasestr.
53230         * lib/mbscasestr.c: Include stdbool.h.
53231         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53232         functions.
53233         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53234         the bookkeeping indicates that it's worth it.
53235         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53236
53237         * modules/mbscasestr-tests: New file.
53238         * tests/test-mbscasestr1.c: New file.
53239         * tests/test-mbscasestr2.sh: New file.
53240         * tests/test-mbscasestr2.c: New file.
53241         * tests/test-mbscasestr3.sh: New file.
53242         * tests/test-mbscasestr3.c: New file.
53243         * tests/test-mbscasestr4.sh: New file.
53244         * tests/test-mbscasestr4.c: New file.
53245         * m4/locale-tr.m4: New file.
53246
53247 2007-02-11  Bruno Haible  <bruno@clisp.org>
53248
53249         Ensure O(n) worst-case complexity of mbsstr.
53250         * lib/mbsstr.c: Include stdbool.h.
53251         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53252         functions.
53253         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53254         bookkeeping indicates that it's worth it.
53255         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53256
53257         * modules/mbsstr-tests: New file.
53258         * tests/test-mbsstr1.c: New file.
53259         * tests/test-mbsstr2.sh: New file.
53260         * tests/test-mbsstr2.c: New file.
53261         * tests/test-mbsstr3.sh: New file.
53262         * tests/test-mbsstr3.c: New file.
53263         * m4/locale-fr.m4: New file.
53264
53265 2007-02-11  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/mbsrchr.c (mbsrchr): Fix bug.
53268
53269         * modules/mbsrchr-tests: New file.
53270         * tests/test-mbsrchr.sh: New file.
53271         * tests/test-mbsrchr.c: New file.
53272
53273 2007-02-11  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/mbschr.c (mbschr): Fix bug.
53276
53277         * modules/mbschr-tests: New file.
53278         * tests/test-mbschr.sh: New file.
53279         * tests/test-mbschr.c: New file.
53280         * m4/locale-zh.m4: New file.
53281
53282 2007-02-11  Bruno Haible  <bruno@clisp.org>
53283
53284         Support for copying multibyte string iterators.
53285         * lib/mbiter.h: Include <string.h>.
53286         (mbiter_multi_copy): New function.
53287         (mbi_copy): New macro.
53288         * lib/mbuiter.h: Include <string.h>.
53289         (mbuiter_multi_copy): New function.
53290         (mbui_copy): New macro.
53291
53292 2007-02-11  Bruno Haible  <bruno@clisp.org>
53293
53294         New module mbslen.
53295         * modules/mbslen: New file.
53296         * lib/mbslen.c: New file.
53297         * lib/string_.h (mbslen): New declaration.
53298         * m4/mbslen.m4: New file.
53299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53300         GNULIB_MBSLEN.
53301         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53302         * MODULES.html.sh (Internationalization functions): Add mbslen.
53303
53304 2007-02-11  Bruno Haible  <bruno@clisp.org>
53305
53306         Ensure O(n) worst-case complexity of strcasestr substitute.
53307         * lib/strcasestr.c: Include stdbool.h.
53308         (knuth_morris_pratt): New function.
53309         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53310         bookkeeping indicates that it's worth it.
53311         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53312
53313         * modules/strcasestr-tests: New file.
53314         * tests/test-strcasestr.c: New file.
53315
53316 2007-02-11  Bruno Haible  <bruno@clisp.org>
53317
53318         Ensure O(n) worst-case complexity of c_strcasestr.
53319         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53320         (knuth_morris_pratt): New function.
53321         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53322         the bookkeeping indicates that it's worth it.
53323         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53324
53325         * modules/c-strcasestr-tests: New file.
53326         * tests/test-c-strcasestr.c: New file.
53327
53328 2007-02-11  Bruno Haible  <bruno@clisp.org>
53329
53330         Ensure O(n) worst-case complexity of c_strstr.
53331         * lib/c-strstr.c: Include stdbool.h, string.h.
53332         (knuth_morris_pratt): New function.
53333         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53334         bookkeeping indicates that it's worth it.
53335         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53336
53337         * lib/c-strstr.c: Complete rewrite for maintainability.
53338
53339         * modules/c-strstr-tests: New file.
53340         * tests/test-c-strstr.c: New file.
53341
53342 2007-02-11  Bruno Haible  <bruno@clisp.org>
53343
53344         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53345         5.2.1 and earlier, whereby \055 was treated just like the range
53346         delimiter '-'.
53347         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53348
53349 2007-02-08  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/regex (Depends-on): Add stdbool.
53352         Reported by Dalibor Topic <robilad@kaffe.org>.
53353
53354 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53357         Prefer returning from main to exiting from it.
53358         Remove unnecessary parens after sizeof.
53359
53360 2007-02-05  Bruno Haible  <bruno@clisp.org>
53361
53362         New module mbssep.
53363         * modules/mbssep: New file.
53364         * lib/mbssep.c: New file.
53365         * lib/string_.h (strsep): Add a conditional link warning.
53366         (mbssep): New declaration.
53367         * m4/mbssep.m4: New file.
53368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53369         GNULIB_MBSSEP.
53370         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53371         * MODULES.html.sh (Internationalization functions): Add mbssep.
53372
53373 2007-02-05  Bruno Haible  <bruno@clisp.org>
53374
53375         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53376         Optimize search in case of 1 delimiter.
53377
53378 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53379
53380         * lib/acl.h: Include sys/types.h before sys/acl.h.
53381
53382 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53383
53384         Merge upstream fix for glibc bugzilla #3957:
53385
53386         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53387
53388         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53389         bit for RE_HAT_LISTS_NOT_NEWLINE.
53390         (build_charclass_op): Remove bogus comment.
53391
53392 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53393
53394         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53395
53396 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53397
53398         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53399         * lib/memmem.c [!defined _LIBC]: Include config.h.
53400
53401 2007-02-04  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53404         warning message.
53405
53406 2007-02-04  Bruno Haible  <bruno@clisp.org>
53407
53408         New module mbstok_r.
53409         * modules/mbstok_r: New file.
53410         * lib/mbstok_r.c: New file.
53411         * lib/string_.h (strtok_r): Change argument names to match the
53412         comments. Add a conditional link warning.
53413         (mbstok_r): New declaration.
53414         * m4/mbstok_r.m4: New file.
53415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53416         GNULIB_MBSTOK_R.
53417         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53418         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53419
53420 2007-02-04  Bruno Haible  <bruno@clisp.org>
53421
53422         New module mbsspn.
53423         * modules/mbsspn: New file.
53424         * lib/mbsspn.c: New file.
53425         * lib/string_.h (strspn): Add a conditional link warning.
53426         (mbsspn): New declaration.
53427         * m4/mbsspn.m4: New file.
53428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53429         GNULIB_MBSSPN.
53430         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53431         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53432
53433 2007-02-04  Bruno Haible  <bruno@clisp.org>
53434
53435         New module mbspbrk.
53436         * modules/mbspbrk: New file.
53437         * lib/mbspbrk.c: New file.
53438         * lib/string_.h (strpbrk): Add a conditional link warning.
53439         (mbspbrk): New declaration.
53440         * m4/mbspbrk.m4: New file.
53441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53442         GNULIB_MBSPBRK.
53443         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53444         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53445
53446 2007-02-04  Bruno Haible  <bruno@clisp.org>
53447
53448         New module mbscspn.
53449         * modules/mbscspn: New file.
53450         * lib/mbscspn.c: New file.
53451         * lib/string_.h (strcspn): Add a conditional link warning.
53452         (mbscspn): New declaration.
53453         * m4/mbscspn.m4: New file.
53454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53455         GNULIB_MBSCSPN.
53456         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53457         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53458
53459 2007-02-04  Bruno Haible  <bruno@clisp.org>
53460
53461         New module mbscasestr, reduced goal of strcasestr.
53462         * modules/mbscasestr: New file.
53463         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53464         (mbscasestr): Renamed from strcasestr.
53465         * lib/strcasestr.c: Don't include mbuiter.h.
53466         (strcasestr): Remove support for multibyte locales.
53467         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53468         Change the conditional link warning.
53469         (mbscasestr): New declaration.
53470         * m4/mbscasestr.m4: New file.
53471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53472         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53473         REPLACE_STRCASESTR.
53474         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53476         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53477         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53478         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53479         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53480         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53481         (Depends-on): Remove mbuiter.
53482         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53483
53484 2007-02-04  Bruno Haible  <bruno@clisp.org>
53485
53486         Simplify handling of strncasecmp.
53487         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53488         the conditional link warning.
53489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53490         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53491         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53492         * modules/strcase (configure.ac): Don't invoke
53493         gl_STRING_MODULE_INDICATOR.
53494         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53495
53496 2007-02-04  Bruno Haible  <bruno@clisp.org>
53497
53498         New module mbscasecmp, reduced goal of strcasecmp.
53499         * modules/mbscasecmp: New file.
53500         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53501         (mbscasecmp): Renamed from strcasecmp.
53502         * lib/strcasecmp.c: Don't include mbuiter.h.
53503         (strcasecmp): Remove support for multibyte locales.
53504         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53505         Change the conditional link warning.
53506         (mbscasecmp): New declaration.
53507         * m4/mbscasecmp.m4: New file.
53508         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53509         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53510         REPLACE_STRCASECMP.
53511         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53513         GNULIB_MBSCASECMP.
53514         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53515         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53516         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53517         (Depends-on): Remove mbuiter.
53518         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53519
53520 2007-02-04  Bruno Haible  <bruno@clisp.org>
53521
53522         New module mbsstr. Remove module strstr.
53523         * modules/mbsstr: New file.
53524         * modules/strstr: Remove file.
53525         * lib/mbsstr.c: Renamed from lib/strstr.c.
53526         (mbsstr): Renamed from strstr.
53527         * lib/string_.h (strstr): Remove declaration. Change the conditional
53528         link warning.
53529         (mbsstr): New declaration.
53530         * m4/mbsstr.m4: New file.
53531         * m4/strstr.m4: Remove file.
53532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53533         REPLACE_STRSTR.
53534         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53535         Don't initialize GNULIB_STRSTR.
53536         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53537         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53538         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53539         (Support for systems lacking ANSI C 89): Remove strstr.
53540
53541 2007-02-04  Bruno Haible  <bruno@clisp.org>
53542
53543         New module mbsrchr.
53544         * modules/mbsrchr: New file.
53545         * lib/mbsrchr.c: New file.
53546         * lib/string_.h (strrchr): Add a conditional link warning.
53547         (mbsrchr): New declaration.
53548         * m4/mbsrchr.m4: New file.
53549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53550         GNULIB_MBSRCHR.
53551         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53552         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53553
53554 2007-02-04  Bruno Haible  <bruno@clisp.org>
53555
53556         New module mbschr.
53557         * modules/mbschr: New file.
53558         * lib/mbschr.c: New file.
53559         * lib/string_.h (strchr): Add a conditional link warning.
53560         (mbschr): New declaration.
53561         * m4/mbschr.m4: New file.
53562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53563         GNULIB_MBSCHR.
53564         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53565         * MODULES.html.sh (Internationalization functions): Add mbschr.
53566
53567 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53568
53569         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53570
53571         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53572
53573 2007-02-04  Bruno Haible  <bruno@clisp.org>
53574
53575         New module description section 'configure.ac-early'.
53576         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53577         (func_get_autoconf_early_snippet): New function.
53578         (func_import, func_create_testdir): Use it. Remove special cases for
53579         modules 'extensions' and 'lock'.
53580         * modules/extensions (configure.ac-early): Require
53581         gl_USE_SYSTEM_EXTENSIONS.
53582         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53583
53584 2007-02-04  Bruno Haible  <bruno@clisp.org>
53585
53586         Make use of gcj-4.3's -fsource and -ftarget option.
53587         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53588         and if so try the options -fsource and -ftarget.
53589         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53590         source_version, ftarget_option, target_version arguments.
53591         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53592         (is_envjavac_oldgcj_14_14_usable): Renamed from
53593         is_envjavac_gcj_14_14_usable.
53594         (is_envjavac_oldgcj_14_13_usable): Renamed from
53595         is_envjavac_gcj_14_13_usable.
53596         (is_gcj_present): Update.
53597         (is_gcj_43, is_gcj43_usable): New functions.
53598         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53599         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53600         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53601         try the options -fsource and -ftarget.
53602
53603 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53606         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53607         larger value.
53608
53609 2007-02-03  Jim Meyering  <jim@meyering.net>
53610
53611         Give tools a better chance to allocate space for very large buffers.
53612         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53613
53614         Make pwd and readlink work also when run with an unreadable parent dir
53615         on systems with openat support.
53616         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53617         provided getcwd function, even when we have openat support.
53618         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53619
53620 2007-02-02  Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53623         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53624         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53625         portability problems if one of these functions is only used on specific
53626         platforms.
53627         Reported by Paul Eggert.
53628
53629 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53632         is causing more trouble than it's curing.
53633         * lib/regex_internal.h (__mempcpy): Remove.
53634         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53635         (and make the code a tad smaller to boot).
53636         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53637
53638 2007-02-02  Jim Meyering  <jim@meyering.net>
53639
53640         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53641         section, not in the Makefile.am: one.
53642
53643 2007-02-02  Eric Blake  <ebb9@byu.net>
53644
53645         * lib/strchrnul.c: Always include config.h first.
53646
53647         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53648         gnulib strstr is not necessary here.
53649
53650 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53651
53652         * m4/socklen.m4: Fix typo.
53653
53654 2007-02-02  Eric Blake  <ebb9@byu.net>
53655
53656         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53657         * modules/netinet_in (Makefile.am): Likewise.
53658
53659 2007-02-01  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/string_.h (GL_LINK_WARNING): New macro.
53662         (strcasecmp, strstr, strcasestr): If provided by the system,
53663         conditionally define as a macro that leads to a warning instead of to
53664         an error.
53665         (strncasecmp): Conditionally define as a macro that leads to a warning.
53666
53667 2007-02-01  Karl Berry  <karl@gnu.org>
53668
53669         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53670
53671 2007-02-01  Bruno Haible  <bruno@clisp.org>
53672
53673         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53674         renamings.
53675
53676 2007-02-01  Eric Blake  <ebb9@byu.net>
53677
53678         * modules/regex (Depends-on): Revert dependence on mempcpy.
53679         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53680         module's definition of mempcpy.
53681         Reported by Paul Eggert.
53682
53683 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53686         the symbol XYZ before redefining it.  This fixes a problem with
53687         programs that don't use XYZ, when compiled on systems that define
53688         XYZ to something else.
53689
53690 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53693         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53694         writeable to group or other and (2) is intended to have a special
53695         mode bit that is set or cleared.  In such a case, the directory
53696         should be neither group- nor other-writeable until the special
53697         mode bits are right.
53698
53699 2007-01-31  Eric Blake  <ebb9@byu.net>
53700
53701         * modules/mountlist (Depends-on): Add strstr.
53702
53703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53704         bug.
53705         * modules/string (Makefile.am): Remove redundant replacement.
53706         * modules/regex (Depends-on): Add mempcpy.
53707
53708 2007-01-31  Bruno Haible  <bruno@clisp.org>
53709
53710         New module description field 'Link'.
53711         * gnulib-tool (func_usage): Document --extract-link-directive.
53712         (sed_extract_prog): Recognize 'Link' directive.
53713         (func_get_link_directive): New function.
53714         (func_import): Show summary of link directives.
53715         Handle --extract-link-directive option.
53716         * modules/acl (Link): New section.
53717         * modules/clock-time (Link): New section.
53718         * modules/euidaccess (Link): New section.
53719         * modules/gettext (Link): New section.
53720         * modules/iconv (Link): New section.
53721         * modules/lock (Link): New section.
53722         * modules/nanosleep (Link): New section.
53723         * modules/readline (Link): New section.
53724
53725 2007-01-27  Bruno Haible  <bruno@clisp.org>
53726
53727         Enforce the use of gnulib modules for unportable <string.h> functions.
53728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53729         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53730         (gl_HEADER_STRING_H_BODY): Require it.
53731         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53732         the symbol XYZ to one that gives a link error.
53733         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53734         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53735         * modules/mempcpy (configure.ac): Likewise.
53736         * modules/memrchr (configure.ac): Likewise.
53737         * modules/stpcpy (configure.ac): Likewise.
53738         * modules/stpncpy (configure.ac): Likewise.
53739         * modules/strcase (configure.ac): Likewise.
53740         * modules/strcasestr (configure.ac): Likewise.
53741         * modules/strchrnul (configure.ac): Likewise.
53742         * modules/strdup (configure.ac): Likewise.
53743         * modules/strndup (configure.ac): Likewise.
53744         * modules/strnlen (configure.ac): Likewise.
53745         * modules/strpbrk (configure.ac): Likewise.
53746         * modules/strsep (configure.ac): Likewise.
53747         * modules/strstr (configure.ac): Likewise.
53748         * modules/strtok_r (configure.ac): Likewise.
53749
53750 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53751
53752         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53753
53754 2007-01-30  Jim Meyering  <jim@meyering.net>
53755
53756         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53757
53758 2007-01-29  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53761         * lib/execute.c: Likewise.
53762         * lib/pipe.c: Likewise.
53763         * lib/printf-args.h: Likewise.
53764         * lib/printf-args.c: Likewise.
53765         * lib/printf-parse.c: Likewise.
53766         * lib/vasnprintf.c: Likewise.
53767
53768 2007-01-29  Eric Blake  <ebb9@byu.net>
53769
53770         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53771         declaration.
53772
53773 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * lib/strptime.h (strptime): Use 'restrict' for args where
53776         POSIX requires this.
53777         * lib/strptime.c (strptime): Likewise.
53778         Change license notice from LGPL to GPL, since gnulib-tool will
53779         change this as needed.
53780         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53781         defined.
53782         Include "strptime.h" first, to check interface.
53783         Do not #undef _LIBC and _NL_CURRENT.
53784         Do not include <stdlib.h>; no longer needed.
53785         Include "time_r.h" and declare ptime_locale_status
53786         only if _LIBC is not defined.
53787         (__P): Remove unused macro.
53788         (match_string): Bring back glibc version, but use it only if _LIBC
53789         is defined.
53790         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53791         Remove unnecessary assertion and abort() call.
53792         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53793         * m4/strptime.m4: Fix serial number comment.
53794         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53795         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53796         (Depends-on): Add time_r.
53797
53798 2007-01-29  Bruno Haible  <bruno@clisp.org>
53799
53800         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53801         strptime.
53802         * modules/strptime (Depends-on): Add stdbool.
53803         * lib/strptime.h: Include <time.h> always. Add comments.
53804
53805 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53806
53807         * modules/strptime: New file.
53808         * lib/strptime.h: New file.
53809         * lib/strptime.c: New file.
53810         * m4/strptime.m4: New file.
53811
53812 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * MODULES.html.sh: New module mpsort.
53815         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53816
53817         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53818         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53820         All uses changed.
53821         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53822         All uses changed.
53823         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53824         to _Restrict_.
53825         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53826         the parameter matches the prototype.
53827
53828 2007-01-28  Jim Meyering  <jim@meyering.net>
53829
53830         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53831         sys/time.h here, reverting that part of the previous patch:
53832         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53833
53834 2007-01-28  Bruno Haible  <bruno@clisp.org>
53835
53836         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53837         value of $(SYS_TIME_H).
53838         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53839         remove it conditionally, too. [added by Jim Meyering]
53840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53841         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53842         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53843         GETTIMEOFDAY_REPLACEMENT to 1.
53844
53845 2007-01-28  Bruno Haible  <bruno@clisp.org>
53846
53847         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53848         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53850         Set UNISTD_H instead of UNISTD_H2.
53851         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53852
53853 2007-01-28  Bruno Haible  <bruno@clisp.org>
53854
53855         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53856         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53857
53858 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53859
53860         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53861         (func_create_testdir): Ensure C locale for `grep' and `tr'
53862         character ranges.
53863         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53864         ACLOCAL_AMFLAGS parsing state machine.
53865
53866 2007-01-27  Bruno Haible  <bruno@clisp.org>
53867
53868         * modules/unistr/base: Update.
53869
53870 2007-01-27  Bruno Haible  <bruno@clisp.org>
53871
53872         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53873         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53874         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53875         modules/unistr/u32-mbtouc.
53876         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53877         * lib/unistr.h: Update.
53878         * lib/linebreak.c: Update.
53879         * modules/unistr/u32-mbtouc: Renamed from
53880         modules/unistr/u32-mbtouc-safe.
53881         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53882         * lib/unistr.h: Update.
53883         * lib/unistr/u32-to-u8.c: Update.
53884         * lib/unistr/u32-to-u16.c: Update.
53885
53886 2007-01-27  Bruno Haible  <bruno@clisp.org>
53887
53888         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53889         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53890         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53891         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53892         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53893         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53894         modules/unistr/u16-mbtouc.
53895         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53896         * lib/unistr.h: Update.
53897         * lib/linebreak.c: Update.
53898         * modules/linebreak: Update.
53899         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53900         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53901         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53902         * modules/unistr/u16-mbtouc: Renamed from
53903         modules/unistr/u16-mbtouc-safe.
53904         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53905         * lib/unistr.h: Update.
53906         * lib/unistr/u16-to-u8.c: Update.
53907         * modules/unistr/u16-to-u8: Update.
53908         * lib/unistr/u16-to-u32.c: Update.
53909         * modules/unistr/u16-to-u32: Update.
53910
53911 2007-01-27  Bruno Haible  <bruno@clisp.org>
53912
53913         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53914         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53915         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53916         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53917         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53918         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53919         modules/unistr/u8-mbtouc.
53920         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53921         * lib/unistr.h: Update.
53922         * lib/striconveh.c: Update.
53923         * modules/striconveh: Update.
53924         * lib/linebreak.c: Update.
53925         * modules/linebreak: Update.
53926         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53927         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53928         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53929         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53930         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53931         * lib/unistr.h: Update.
53932         * lib/striconveh.c: Update.
53933         * modules/striconveh: Update.
53934         * lib/unistr/u8-to-u16.c: Update.
53935         * modules/unistr/u8-to-u16: Update.
53936         * lib/unistr/u8-to-u32.c: Update.
53937         * modules/unistr/u8-to-u32: Update.
53938
53939 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53940
53941         Sync from Libtool.
53942         * lib/argz.c: Do not include strings.h nor memory.h, include
53943         string.h unconditionally.  Patch by Simon Josefsson.
53944
53945 2007-01-27  Bruno Haible  <bruno@clisp.org>
53946
53947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53948         from gl_HEADER_STRING_H_BODY.
53949         (gl_HEADER_STRING_H_BODY): Require it.
53950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53951         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53952         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53953         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53955         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53957         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53958         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53959         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53960         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53961         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53962         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53963         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53964         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53965
53966 2007-01-27  Bruno Haible  <bruno@clisp.org>
53967
53968         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53969         check_PROGRAMS into noinst_PROGRAMS.
53970         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53971         check_PROGRAMS in this case.
53972         (func_import): Set for_test to false.
53973         (func_create_testdir): Set for_test to true.
53974
53975 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53976             Bruno Haible  <bruno@clisp.org>
53977
53978         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53979         (Depends-on): Add string.
53980         (Includes): Use <string.h> instead of strcasestr.h.
53981         * modules/string (Makefile.am): Also substitute the value of
53982         REPLACE_STRCASESTR.
53983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53984         assume strcasestr is declared in <string.h> not <strings.h>. Also
53985         set REPLACE_STRCASESTR.
53986         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53987         REPLACE_STRCASESTR.
53988         * lib/strcasestr.h: Remove file.
53989         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53990         * lib/string_.h (strcasestr): New declaration.
53991
53992 2007-01-27  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/string_.h: Use 'extern'.
53995
53996 2007-01-27  Jim Meyering  <jim@meyering.net>
53997
53998         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53999         of set-but-not-used local, "q".
54000
54001         * lib/mempcpy.c: Include <config.h> before <string.h>.
54002         This fixes a compilation error on HP-UX, due to the system's
54003         "restrict"-using mempcpy prototype.
54004
54005 2007-01-26  Bruno Haible  <bruno@clisp.org>
54006
54007         Small optimization.
54008         * lib/javacomp.c: Include c-strstr.h.
54009          (is_envjavac_gcj): Use c_strstr instead of strstr.
54010         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54011
54012 2007-01-26  Bruno Haible  <bruno@clisp.org>
54013
54014         * MODULES.html.sh (Unicode string functions): Add the new modules.
54015
54016         * modules/uniconv/u32-strconv-to-locale: New file.
54017         * lib/uniconv/u32-strconv-to-locale.c: New file.
54018
54019         * modules/uniconv/u16-strconv-to-locale: New file.
54020         * lib/uniconv/u16-strconv-to-locale.c: New file.
54021
54022         * modules/uniconv/u8-strconv-to-locale: New file.
54023         * lib/uniconv/u8-strconv-to-locale.c: New file.
54024
54025         * modules/uniconv/u32-strconv-from-locale: New file.
54026         * lib/uniconv/u32-strconv-from-locale.c: New file.
54027
54028         * modules/uniconv/u16-strconv-from-locale: New file.
54029         * lib/uniconv/u16-strconv-from-locale.c: New file.
54030
54031         * modules/uniconv/u8-strconv-from-locale: New file.
54032         * lib/uniconv/u8-strconv-from-locale.c: New file.
54033
54034         * modules/uniconv/u32-strconv-to-enc: New file.
54035         * lib/uniconv/u32-strconv-to-enc.c: New file.
54036         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54037         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54038
54039         * modules/uniconv/u16-strconv-to-enc: New file.
54040         * lib/uniconv/u16-strconv-to-enc.c: New file.
54041         * lib/uniconv/u-strconv-to-enc.h: New file.
54042         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54043         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54044
54045         * modules/uniconv/u8-strconv-to-enc: New file.
54046         * lib/uniconv/u8-strconv-to-enc.c: New file.
54047         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54048         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54049
54050         * modules/uniconv/u32-strconv-from-enc: New file.
54051         * lib/uniconv/u32-strconv-from-enc.c: New file.
54052         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54053         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54054
54055         * modules/uniconv/u16-strconv-from-enc: New file.
54056         * lib/uniconv/u16-strconv-from-enc.c: New file.
54057         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54058         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54059
54060         * modules/uniconv/u8-strconv-from-enc: New file.
54061         * lib/uniconv/u8-strconv-from-enc.c: New file.
54062         * lib/uniconv/u-strconv-from-enc.h: New file.
54063         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54064         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54065
54066         * modules/uniconv/u32-conv-from-enc: New file.
54067         * lib/uniconv/u32-conv-from-enc.c: New file.
54068         * modules/uniconv/u32-conv-from-enc-tests: New file.
54069         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54070
54071         * modules/uniconv/u16-conv-from-enc: New file.
54072         * lib/uniconv/u16-conv-from-enc.c: New file.
54073         * lib/uniconv/u-conv-from-enc.h: New file.
54074         * modules/uniconv/u16-conv-from-enc-tests: New file.
54075         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54076
54077         * modules/uniconv/u8-conv-from-enc: New file.
54078         * lib/uniconv/u8-conv-from-enc.c: New file.
54079         * modules/uniconv/u8-conv-from-enc-tests: New file.
54080         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54081
54082         * modules/uniconv/base: New file.
54083         * lib/uniconv.h: New file.
54084
54085 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54086
54087         * doc/gnulib-tool.texi (Initial import): Update to match current
54088         behavior with strdup module.
54089         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54090         * lib/memmem.h: Remove; all uses removed.  This is now done
54091         by <string.h>.
54092         * lib/mempcpy.h: Likewise.
54093         * lib/memrchr.h: Likewise.
54094         * lib/stpcpy.h: Likewise.
54095         * lib/stpncpy.h: Likewise.
54096         * lib/strcase.h: Likewise.
54097         * lib/strchrnul.h: Likewise.
54098         * lib/strdup.h: Likewise.
54099         * lib/strndup.h: Likewise.
54100         * lib/strnlen.h: Likewise.
54101         * lib/strpbrk.h: Likewise.
54102         * lib/strsep.h: Likewise.
54103         * lib/strstr.h: Likewise.
54104         * lib/strtok_r.h: Likewise.
54105         * lib/string_.h: New file.
54106         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54107         Rely on <string.h> instead.
54108         * lib/canon-host.c: Likewise.
54109         * lib/chdir-long.c: Likewise.
54110         * lib/concatpath.c: Likewise.
54111         * lib/exclude.c: Likewise.
54112         * lib/fchdir.c: Likewise.
54113         * lib/getaddrinfo.c: Likewise.
54114         * lib/getcwd.c: Likewise.
54115         * lib/getsubopt.c: Likewise.
54116         * lib/glob.c: Likewise.
54117         * lib/hard-locale.c: Likewise.
54118         * lib/iconvme.c: Likewise.
54119         * lib/javacomp.c: Likewise.
54120         * lib/mempcpy.c: Likewise.
54121         * lib/memrchr.c: Likewise.
54122         * lib/regex_internal.h: Likewise.
54123         * lib/stpncpy.c: Likewise.
54124         * lib/strcasecmp.c: Likewise.
54125         * lib/strchrnul.c: Likewise.
54126         * lib/strdup.c: Likewise.
54127         * lib/striconv.c: Likewise.
54128         * lib/striconveh.c: Likewise.
54129         * lib/striconveha.c: Likewise.
54130         * lib/strncasecmp.c: Likewise.
54131         * lib/strndup.c: Likewise.
54132         * lib/strnlen.c: Likewise.
54133         * lib/strsep.c: Likewise.
54134         * lib/strstr.c: Likewise.
54135         * lib/strtok_r.c: Likewise.
54136         * lib/userspec.c: Likewise.
54137         * lib/w32spawn.h: Likewise.
54138         * lib/xstrndup.c: Likewise.
54139         * lib/mountlist.c (strstr): Remove decl.
54140         * m4/string_h.m4: New file.
54141         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54142         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54143         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54144         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54145         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54146         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54147         Set REPLACE_STRCASECMP if necessary.
54148         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54150         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54151         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54152         HAVE_DECL_STRDUP if necessary.
54153         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54154         since gl_FUNC_STRNDUP does that now.
54155         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54156         Check for decl here...
54157         (gl_PREREQ_STRNLEN): ... not here.
54158         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54159         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54160         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54162         necessary.
54163         * modules/string: New file.
54164         * modules/memmem (Files): Remove special-purpose include file.
54165         (Depends-on): Add string.
54166         (Include): Include <string.h>, not the removed file.
54167         * modules/mempcpy: Likewise.
54168         * modules/memrchr: Likewise.
54169         * modules/stpcpy: Likewise.
54170         * modules/stpncpy: Likewise.
54171         * modules/strcase: Likewise.
54172         * modules/strchrnul: Likewise.
54173         * modules/strdup: Likewise.
54174         * modules/strndup: Likewise.
54175         * modules/strnlen: Likewise.
54176         * modules/strpbrk: Likewise.
54177         * modules/strsep: Likewise.
54178         * modules/strstr: Likewise.
54179         * modules/strtok_r: Likewise.
54180         * tests/test-dirname.c: Don't include "strdup.h", since
54181         <string.h> now suffices.
54182         * tests/test-memmem.c: Don't include "memmem.h", since
54183         <string.h> now suffices.
54184
54185 2007-01-25  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54188         *resultp is 0.
54189
54190         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54191         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54192         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54193         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54194
54195         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54196         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54197         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54198         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54199         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54200         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54201
54202 2007-01-24  Bruno Haible  <bruno@clisp.org>
54203
54204         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54206         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54207         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54208         gl_FUNC_FTS_CORE.
54209         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54210         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54211         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54212         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54213         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54214         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54215         gl_FUNC_FCHOWNAT.
54216         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54217         gl_FUNC_STRFTIME.
54218         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54219         Reported by Ralf Wildenhues.
54220
54221 2007-01-24  Bruno Haible  <bruno@clisp.org>
54222
54223         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54224         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54225         gl_GETADDRINFO.
54226         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54227         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54228         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54229
54230 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54231
54232         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54233         Don't use 'exit'; just return from 'main'.
54234         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54235
54236         * lib/fnmatch_.h: Readjust white space and comments to match
54237         glibc, to avoid spurious diffs.
54238
54239 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54242         2004-12-01 change by Jakub Jelinek, since this code won't compile
54243         if !LIBC.  Problem reported by Bob Proulx.
54244
54245 2007-01-23  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/striconveh.c: Include c-strcaseeq.h.
54248         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54249         * modules/striconveh (Depends-on): Add c-strcaseeq.
54250
54251 2007-01-23  Bruno Haible  <bruno@clisp.org>
54252
54253         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54254
54255         * modules/c-strcaseeq: New file.
54256         * lib/c-strcaseeq.h: New file.
54257
54258         * modules/streq: New file.
54259         * lib/streq.h: New file.
54260
54261 2007-01-23  Bruno Haible  <bruno@clisp.org>
54262
54263         * modules/striconveha-tests: New file.
54264         * tests/test-striconveha.c: New file.
54265
54266         * lib/striconveha.h: Include <stdbool.h>.
54267         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54268         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54269         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54270         (mem_iconveha): New function.
54271         (str_iconveha_notranslit): Renamed from str_iconveha.
54272         (str_iconveha): New function.
54273         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54274         c-strcase.
54275
54276 2007-01-23  Bruno Haible  <bruno@clisp.org>
54277
54278         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54279         encodings without forgiving before trying any encoding with handler.
54280         (str_iconveha): Try all encodings without forgiving before trying any
54281         encoding with handler.
54282
54283 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         Import the following changes from libc.
54286
54287         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54288
54289         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54290
54291         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54292
54293         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54294         normal_bracket label.
54295
54296         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54297
54298         [BZ #361]
54299         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54300         to normal_bracket after fetching the next character.
54301
54302 2007-01-22  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54305         argument.
54306         * lib/striconveh.c (iconv_carefully_1): New function.
54307         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54308         argument.
54309         (str_cd_iconveh): Update.
54310         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54311         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54312         * tests/test-striconveh.c (MAGIC): New macro.
54313         (new_offsets): New function.
54314         (main): Test call with and without offsets.
54315
54316 2007-01-22  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54319         * modules/sys_select (Makefile.am): Likewise.
54320         * modules/sys_socket (Makefile.am): Likewise.
54321         * modules/sys_time (Makefile.am): Likewise.
54322
54323 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54324
54325         * modules/gettimeofday (License): Change from GPL to LGPL, since
54326         gettimeofday is a library function.
54327
54328 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54329
54330         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54331
54332 2007-01-21  Bruno Haible  <bruno@clisp.org>
54333
54334         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54335
54336 2007-01-21  Bruno Haible  <bruno@clisp.org>
54337
54338         * modules/striconveha: New file.
54339         * lib/striconveha.h: New file.
54340         * lib/striconveha.c: New file.
54341         * MODULES.html.sh (Internationalization functions): Add striconveha.
54342         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54343         string.
54344         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54345
54346 2007-01-21  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54349         * lib/striconveh.c (str_iconveh): Likewise.
54350
54351 2007-01-21  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/striconveh.h (mem_iconveh): New declaration.
54354         * lib/striconveh.c (mem_iconveh): New function.
54355         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54356
54357 2007-01-21  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54360
54361         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54362         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54363         original result buffer.
54364         (str_cd_iconveh): Update.
54365         * tests/test-striconveh.c (main): Update.
54366
54367         * lib/striconv.h (mem_cd_iconv): Change specification.
54368         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54369         result buffer.
54370         (str_cd_iconv): Update.
54371         * tests/test-striconv.c (main): Update.
54372
54373 2007-01-21  Bruno Haible  <bruno@clisp.org>
54374
54375         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54376
54377 2007-01-20  Jim Meyering  <jim@meyering.net>
54378
54379         * lib/userspec.c (parse_with_separator): If a user or group string
54380         starts with "+", skip the corresponding name-to-ID look-up, since
54381         such a look-up must fail: user and group names may not include "+".
54382
54383 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54384
54385         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54386         since we now assume the sys_time module.
54387         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54388         check for sys/time.h; no longer needed.
54389         * modules/poll (Depends-on): Depend on sys_time.
54390
54391 2007-01-18  Bruno Haible  <bruno@clisp.org>
54392
54393         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54394         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54395
54396         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54397         gettimeofday.
54398
54399         * tests/test-gettimeofday.c: Include <time.h>.
54400         (dummy): Remove variable.
54401
54402         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54403         gl_HEADER_SYS_TIME_H.
54404         (gl_HEADER_SYS_TIME_H): New macro.
54405
54406         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54407         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54408         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54409         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54410         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54411         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54412         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54413         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54414         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54415         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54416         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54417
54418         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54419         last change; it caused a compilation error when cross-compiling to
54420         Cygwin.
54421
54422 2007-01-18  Jim Meyering  <jim@meyering.net>
54423
54424         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54425         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54426         than the race-prone "test -d sys || mkdir sys".
54427         (configure.ac): Use AC_PROG_MKDIR_P.
54428         * modules/sys_select: Likewise.
54429         * modules/sys_socket: Likewise.
54430         * modules/sys_time: Likewise.
54431
54432 2007-01-18  Eric Blake  <ebb9@byu.net>
54433
54434         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54435         replace gettimeofday.
54436         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54437         name, to avoid infinite recursion.
54438
54439 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54442         module sys_time.
54443         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54444         assume timespec.h defines struct timeval.
54445         * lib/settime.c: Likewise.
54446         * lib/utimens.c: Likewise.
54447         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54448         since we now assume the gettimeofday module.
54449         * lib/tempname.c (__gen_tempname): Likewise.
54450         * lib/gettimeofday.h: Remove.
54451         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54452         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54453         Include <time.h>, for 'time()'.
54454         (localtime_buffer_addr): Also use this workaround if
54455         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54456         to simplify the uses.  All uses changed.
54457         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54458         that #undef is inside {}, and 'const' follows type name consistently.
54459         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54460         (gettimeofday): Do not use the maximum possible value for
54461         tv->tv_usec, since that might break usages other than ls.c.
54462         Instead, we'll leave ls.c alone.  This undoes today's patch
54463         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54464         we've never observed the problem but might as well keep the
54465         canary.
54466         * lib/nanosleep.c: Include timespec.h first, for interface check.
54467         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54468         now assume the sys_time module.
54469         * lib/tempname.c: Likewise.
54470         * lib/timespec.h: Likewise.
54471         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54472         needed.
54473         * lib/strftime.c: Likewise.
54474         * lib/timespec.h: Likewise.
54475         * lib/posixtm.c: Include posixtm.h first, for interface check.
54476         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54477         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54478         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54479         * lib/sys_time_.h: New file.
54480         * lib/timespec.h (struct timespec): Use long int, not long.
54481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54482         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54483         Remove obsolescent call to AC_HEADER_TIME.
54484         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54486         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54487         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54488         Likewise.
54489         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54490         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54492         into the sys_time module.  Check for gettimeofday just once.
54493         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54494         for gettimeofday signature to just check the signature.  Merely
54495         compile it, since linking doesn't test signature.  Improve test for
54496         whether gettimeofday.o is actually needed.
54497         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54498         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54499         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54500         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54501         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54502         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54503         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54504         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54505         than worrying about sys/time.h.
54506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54507         Don't bother worrying about TIME_WITH_SYS_TIME.
54508         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54509         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54510         * m4/sys_time_h.m4: New file.
54511         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54512         Don't include sys/time.h.  Return from main rather than exiting.
54513         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54514         all uses changed.
54515         * modules/gethrxtime (Depends-on): Add sys_time.
54516         * modules/gettime (Depends-on): Likewise.
54517         * modules/gettimeofday (Depends-on): Likewise.
54518         * modules/nanosleep (Depends-on): Likewise.
54519         * modules/settime (Depends-on): Likewise.
54520         * modules/tempname (Depends-on): Likewise.
54521         * modules/utimens (Depends-on): Likewise.
54522         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54523         (Include): Change back to <sys/time.h>.
54524         (Maintainer): Add self.
54525         * modules/sys_time: New file.
54526         * modules/tempname (Depends-on): Add gettimeofday.
54527         * tests/test-gettimeofday.c: Include <sys/time.h>
54528         rather than gettimeofday.h.
54529
54530 2007-01-17  Bruno Haible  <bruno@clisp.org>
54531
54532         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54533         the license default to GPL.
54534         (func_create_testdir): Don't complain if a module is LGPL and its
54535         tests module depends on GPLed modules.
54536
54537 2007-01-17  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/gettimeofday.c (gettimeofday): Add code for the case
54540         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54541         maximum possible value for tv->tv_usec, rather than the minimum one.
54542
54543 2005-10-08  Martin Lambers  <marlam@marlam.de>
54544 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54545 2007-01-16  Bruno Haible  <bruno@clisp.org>
54546
54547         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54548         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54549         gl_FUNC_GETTIMEOFDAY.
54550         (Include): Add gettimeofday.h.
54551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54552         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54553         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54554         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54555         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54556         * lib/gettimeofday.h: New file.
54557         * lib/gettimeofday.c: Include <sys/timeb.h>.
54558         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54559         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54560         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54561         fall back on time().
54562
54563         * tests/test-gettimeofday.c: New file.
54564         * modules/gettimeofday-tests: New file.
54565
54566 2007-01-16  Eric Blake  <ebb9@byu.net>
54567
54568         * modules/fnmatch (Depends-on): Depend on wchar.
54569         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54570         * m4/fnmatch.m4: Likewise.
54571         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54572         * m4/mbchar.m4: Likewise.
54573         * modules/mbswidth (Depends-on): Depend on wchar.
54574         * lib/mbswidth.c: Assume <wchar.h>.
54575         * m4/mbswidth.m4: Likewise.
54576         * modules/quotearg (Depends-on): Depend on wchar.
54577         * lib/quotearg.c: Assume <wchar.h>.
54578         * m4/quotearg.m4: Likewise.
54579         * modules/regex (Depends-on): Depend on wchar.
54580         * lib/regex_internal.h: Assume <wchar.h>.
54581         * m4/regex.m4: Likewise.
54582         * modules/stdint (Depends-on): Depend on wchar.
54583         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54584         * m4/stdint.m4: Likewise.
54585         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54586         * modules/strftime (Depends-on): Depend on wchar.
54587         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54588         * modules/strtol (Depends-on): Depend on wchar.
54589         * lib/strtol.c: Assume <wchar.h>.
54590         * modules/wcwidth (Depends-on): Depend on wchar.
54591         * lib/wcwidth.h: Assume <wchar.h>.
54592         * m4/wcwidth.m4: Likewise.
54593
54594 2007-01-16  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/csharpexec-script: New, created from...
54597         * modules/csharpexec: ... this.
54598
54599 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54600
54601         * modules/javaexec-script: New, created from...
54602         * modules/javaexec: ... this.
54603
54604 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54605
54606         * modules/poll (Dependencies): Add sys_select.
54607
54608 2007-01-15  Jim Meyering  <jim@meyering.net>
54609
54610         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54611         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54612         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54613         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54614
54615 2007-01-15  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/striconveh: New file.
54618         * lib/striconveh.h: New file.
54619         * lib/striconveh.c: New file.
54620         * MODULES.html.sh (Internationalization functions): Add striconveh.
54621
54622         * modules/striconveh-tests: New file.
54623         * tests/test-striconveh.c: New file.
54624
54625 2007-01-15  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54628         not from GNU libiconv or GNU libc.
54629
54630 2007-01-15  Bruno Haible  <bruno@clisp.org>
54631
54632         * doc/gnulib-intro.texi (Copyright): Explain the different license
54633         terms for module descriptions, autoconf macros, tests, documentation.
54634
54635 2007-01-14  Bruno Haible  <bruno@clisp.org>
54636
54637         * modules/striconv-tests: New file.
54638         * tests/test-striconv.c: New file.
54639
54640 2007-01-14  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/iconv-tests: New file.
54643         * tests/test-iconv.c: New file.
54644
54645 2007-01-14  Bruno Haible  <bruno@clisp.org>
54646
54647         * gnulib-tool (func_get_license): For test modules, use the license of
54648         the main module.
54649
54650 2007-01-14  Bruno Haible  <bruno@clisp.org>
54651
54652         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54653         if iconv is found to exist.
54654
54655 2007-01-14  Bruno Haible  <bruno@clisp.org>
54656
54657         * modules/c-ctype-tests: New file.
54658         * tests/test-c-ctype.c: New file.
54659
54660 2007-01-14  Bruno Haible  <bruno@clisp.org>
54661
54662         * modules/binary-io-tests: New file.
54663         * tests/test-binary-io.sh: New file.
54664         * tests/test-binary-io.c: New file.
54665
54666 2007-01-14  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/array-oset-tests: New file.
54669         * tests/test-array_oset.c: New file.
54670
54671 2007-01-14  Bruno Haible  <bruno@clisp.org>
54672
54673         * modules/array-list-tests: New file.
54674         * tests/test-array_list.c: New file.
54675
54676 2007-01-14  Bruno Haible  <bruno@clisp.org>
54677
54678         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54679         and make.
54680         Reported by Simon Josefsson in
54681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54682
54683 2007-01-14  Bruno Haible  <bruno@clisp.org>
54684
54685         * modules/allocsa-tests: New file.
54686         * tests/test-allocsa.c: New file.
54687
54688 2007-01-14  Bruno Haible  <bruno@clisp.org>
54689
54690         * modules/fchdir (Depends-on): Add absolute-header.
54691         * modules/unistd (Depends-on): Likewise.
54692
54693 2006-12-30  Bruno Haible  <bruno@clisp.org>
54694
54695         * modules/fchdir: New file.
54696         * modules/unistd (Files): Add lib/unistd_.h.
54697         (Makefile.am): Generate unistd.h from unistd_.h.
54698         * lib/fchdir.c: New file.
54699         * lib/dirent_.h: New file.
54700         * lib/unistd_.h: New file.
54701         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54702         * m4/fchdir.m4: New file.
54703         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54704         (gl_HEADER_UNISTD): Invoke it.
54705         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54706         function.
54707         * lib/backupfile.c (opendir, closedir): Undefine.
54708         * lib/chown.c (open, close): Undefine.
54709         * lib/clean-temp.c (open, close): Undefine.
54710         * lib/copy-file.c (open, close): Undefine.
54711         * lib/execute.c (open, close): Undefine.
54712         * lib/fsusage.c (open, close): Undefine.
54713         * lib/gc-gnulib.c (open, close): Undefine.
54714         * lib/getcwd.c (opendir, closedir): Undefine.
54715         * lib/glob.c (opendir, closedir): Undefine.
54716         * lib/javacomp.c (open, close): Undefine.
54717         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54718         * lib/openat-proc.c (open, close): Undefine.
54719         * lib/pagealign_alloc.c (open, close): Undefine.
54720         * lib/pipe.c (open, close): Undefine.
54721         * lib/progreloc.c (open, close): Undefine.
54722         * lib/savedir.c (opendir, closedir): Undefine.
54723         * lib/utime.c (open, close): Undefine.
54724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54725
54726 2007-01-10  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54729
54730 2007-01-12  Eric Blake  <ebb9@byu.net>
54731
54732         Provide a robust <wchar.h>.  Further simplifications are now
54733         possible in other modules, but not included here.
54734         * modules/wchar: New module.
54735         * m4/wchar.m4: New file.
54736         * lib/wchar_.h: Likewise.
54737         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54738         of the new module.
54739         * MODULES.html.sh (Extended multibyte and wide character utilities):
54740         New section.
54741
54742 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54743
54744         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54745         to a reasonable default for memory allocation.
54746         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54747         file system that reports garbage st_size values for symlinks.
54748         Problem reported by Liyang Hu.
54749
54750 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54751
54752         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54753         Emacs .#* auto-save files).
54754
54755 2007-01-11  Bruno Haible  <bruno@clisp.org>
54756
54757         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54758         directory.
54759
54760 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54761
54762         Use @...@ consistently in lib/wctype_.h.
54763         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54764         on it being set to 1 or 0.
54765         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54766         go back to AC_SUBSTing it.
54767         * modules/wctype (Makefile.am): Undo previous change.
54768
54769 2007-01-10  Eric Blake  <ebb9@byu.net>
54770
54771         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54772         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54773         * modules/wctype (Makefile.am): Likewise.
54774         Reported by Chris McGuire.
54775
54776 2007-01-10  Jim Meyering  <jim@meyering.net>
54777
54778         fts.c: a small readability/maintainability improvement
54779         * lib/fts.c (fts_read): Make this code slightly more readable and
54780         maintainable by hoisting the "sp->fts_cur = p" assignments to
54781         immediately follow the statements that set P.  Derived from
54782         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54783
54784 2007-01-10  Eric Blake  <ebb9@byu.net>
54785
54786         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54787         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54789         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54790         Reported by Chris McGuire.
54791
54792 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54793
54794         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54795         in sed script.
54796
54797 2007-01-09  Bruno Haible  <bruno@clisp.org>
54798
54799         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54800         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54801         variables.
54802         (func_module): Use them.
54803
54804 2007-01-09  Bruno Haible  <bruno@clisp.org>
54805
54806         * modules/unistr/base: New file.
54807         * lib/unistr.h: New file.
54808
54809         * modules/unistr/u8-to-u16: New file.
54810         * lib/unistr/u8-to-u16.c: New file.
54811
54812         * modules/unistr/u8-to-u32: New file.
54813         * lib/unistr/u8-to-u32.c: New file.
54814
54815         * modules/unistr/u16-to-u8: New file.
54816         * lib/unistr/u16-to-u8.c: New file.
54817
54818         * modules/unistr/u16-to-u32: New file.
54819         * lib/unistr/u16-to-u32.c: New file.
54820
54821         * modules/unistr/u32-to-u8: New file.
54822         * lib/unistr/u32-to-u8.c: New file.
54823
54824         * modules/unistr/u32-to-u16: New file.
54825         * lib/unistr/u32-to-u16.c: New file.
54826
54827         * modules/unistr/u8-check: New file.
54828         * modules/unistr/u16-check: New file.
54829         * modules/unistr/u32-check: New file.
54830         * lib/unistr/u8-check.c: New file.
54831         * lib/unistr/u16-check.c: New file.
54832         * lib/unistr/u32-check.c: New file.
54833
54834         * modules/unistr/u8-chr: New file.
54835         * modules/unistr/u16-chr: New file.
54836         * modules/unistr/u32-chr: New file.
54837         * lib/unistr/u8-chr.c: New file.
54838         * lib/unistr/u16-chr.c: New file.
54839         * lib/unistr/u32-chr.c: New file.
54840
54841         * modules/unistr/u8-cmp: New file.
54842         * modules/unistr/u16-cmp: New file.
54843         * modules/unistr/u32-cmp: New file.
54844         * lib/unistr/u8-cmp.c: New file.
54845         * lib/unistr/u16-cmp.c: New file.
54846         * lib/unistr/u32-cmp.c: New file.
54847
54848         * modules/unistr/u8-cpy: New file.
54849         * modules/unistr/u16-cpy: New file.
54850         * modules/unistr/u32-cpy: New file.
54851         * lib/unistr/u8-cpy.c: New file.
54852         * lib/unistr/u16-cpy.c: New file.
54853         * lib/unistr/u32-cpy.c: New file.
54854         * lib/unistr/u-cpy.h: New file.
54855
54856         * modules/unistr/u8-cpy-alloc: New file.
54857         * modules/unistr/u16-cpy-alloc: New file.
54858         * modules/unistr/u32-cpy-alloc: New file.
54859         * lib/unistr/u8-cpy-alloc.c: New file.
54860         * lib/unistr/u16-cpy-alloc.c: New file.
54861         * lib/unistr/u32-cpy-alloc.c: New file.
54862         * lib/unistr/u-cpy-alloc.h: New file.
54863
54864         * modules/unistr/u8-endswith: New file.
54865         * modules/unistr/u16-endswith: New file.
54866         * modules/unistr/u32-endswith: New file.
54867         * lib/unistr/u8-endswith.c: New file.
54868         * lib/unistr/u16-endswith.c: New file.
54869         * lib/unistr/u32-endswith.c: New file.
54870         * lib/unistr/u-endswith.h: New file.
54871
54872         * modules/unistr/u8-mblen: New file.
54873         * modules/unistr/u16-mblen: New file.
54874         * modules/unistr/u32-mblen: New file.
54875         * lib/unistr/u8-mblen.c: New file.
54876         * lib/unistr/u16-mblen.c: New file.
54877         * lib/unistr/u32-mblen.c: New file.
54878
54879         * modules/unistr/u8-mbtouc: New file.
54880         * modules/unistr/u16-mbtouc: New file.
54881         * modules/unistr/u32-mbtouc: New file.
54882         * lib/unistr/u8-mbtouc.c: New file.
54883         * lib/unistr/u16-mbtouc.c: New file.
54884         * lib/unistr/u32-mbtouc.c: New file.
54885
54886         * modules/unistr/u8-mbtouc-safe: New file.
54887         * modules/unistr/u16-mbtouc-safe: New file.
54888         * modules/unistr/u32-mbtouc-safe: New file.
54889         * lib/unistr/u8-mbtouc-safe.c: New file.
54890         * lib/unistr/u16-mbtouc-safe.c: New file.
54891         * lib/unistr/u32-mbtouc-safe.c: New file.
54892
54893         * modules/unistr/u8-move: New file.
54894         * modules/unistr/u16-move: New file.
54895         * modules/unistr/u32-move: New file.
54896         * lib/unistr/u8-move.c: New file.
54897         * lib/unistr/u16-move.c: New file.
54898         * lib/unistr/u32-move.c: New file.
54899         * lib/unistr/u-move.h: New file.
54900
54901         * modules/unistr/u8-next: New file.
54902         * modules/unistr/u16-next: New file.
54903         * modules/unistr/u32-next: New file.
54904         * lib/unistr/u8-next.c: New file.
54905         * lib/unistr/u16-next.c: New file.
54906         * lib/unistr/u32-next.c: New file.
54907
54908         * modules/unistr/u8-prev: New file.
54909         * modules/unistr/u16-prev: New file.
54910         * modules/unistr/u32-prev: New file.
54911         * lib/unistr/u8-prev.c: New file.
54912         * lib/unistr/u16-prev.c: New file.
54913         * lib/unistr/u32-prev.c: New file.
54914
54915         * modules/unistr/u8-set: New file.
54916         * modules/unistr/u16-set: New file.
54917         * modules/unistr/u32-set: New file.
54918         * lib/unistr/u8-set.c: New file.
54919         * lib/unistr/u16-set.c: New file.
54920         * lib/unistr/u32-set.c: New file.
54921         * lib/unistr/u-set.h: New file.
54922
54923         * modules/unistr/u8-startswith: New file.
54924         * modules/unistr/u16-startswith: New file.
54925         * modules/unistr/u32-startswith: New file.
54926         * lib/unistr/u8-startswith.c: New file.
54927         * lib/unistr/u16-startswith.c: New file.
54928         * lib/unistr/u32-startswith.c: New file.
54929         * lib/unistr/u-startswith.h: New file.
54930
54931         * modules/unistr/u8-stpcpy: New file.
54932         * modules/unistr/u16-stpcpy: New file.
54933         * modules/unistr/u32-stpcpy: New file.
54934         * lib/unistr/u8-stpcpy.c: New file.
54935         * lib/unistr/u16-stpcpy.c: New file.
54936         * lib/unistr/u32-stpcpy.c: New file.
54937         * lib/unistr/u-stpcpy.h: New file.
54938
54939         * modules/unistr/u8-stpncpy: New file.
54940         * modules/unistr/u16-stpncpy: New file.
54941         * modules/unistr/u32-stpncpy: New file.
54942         * lib/unistr/u8-stpncpy.c: New file.
54943         * lib/unistr/u16-stpncpy.c: New file.
54944         * lib/unistr/u32-stpncpy.c: New file.
54945         * lib/unistr/u-stpncpy.h: New file.
54946
54947         * modules/unistr/u8-strcat: New file.
54948         * modules/unistr/u16-strcat: New file.
54949         * modules/unistr/u32-strcat: New file.
54950         * lib/unistr/u8-strcat.c: New file.
54951         * lib/unistr/u16-strcat.c: New file.
54952         * lib/unistr/u32-strcat.c: New file.
54953         * lib/unistr/u-strcat.h: New file.
54954
54955         * modules/unistr/u8-strchr: New file.
54956         * modules/unistr/u16-strchr: New file.
54957         * modules/unistr/u32-strchr: New file.
54958         * lib/unistr/u8-strchr.c: New file.
54959         * lib/unistr/u16-strchr.c: New file.
54960         * lib/unistr/u32-strchr.c: New file.
54961
54962         * modules/unistr/u8-strcmp: New file.
54963         * modules/unistr/u16-strcmp: New file.
54964         * modules/unistr/u32-strcmp: New file.
54965         * lib/unistr/u8-strcmp.c: New file.
54966         * lib/unistr/u16-strcmp.c: New file.
54967         * lib/unistr/u32-strcmp.c: New file.
54968
54969         * modules/unistr/u8-strcpy: New file.
54970         * modules/unistr/u16-strcpy: New file.
54971         * modules/unistr/u32-strcpy: New file.
54972         * lib/unistr/u8-strcpy.c: New file.
54973         * lib/unistr/u16-strcpy.c: New file.
54974         * lib/unistr/u32-strcpy.c: New file.
54975         * lib/unistr/u-strcpy.h: New file.
54976
54977         * modules/unistr/u8-strcspn: New file.
54978         * modules/unistr/u16-strcspn: New file.
54979         * modules/unistr/u32-strcspn: New file.
54980         * lib/unistr/u8-strcspn.c: New file.
54981         * lib/unistr/u16-strcspn.c: New file.
54982         * lib/unistr/u32-strcspn.c: New file.
54983         * lib/unistr/u-strcspn.h: New file.
54984
54985         * modules/unistr/u8-strdup: New file.
54986         * modules/unistr/u16-strdup: New file.
54987         * modules/unistr/u32-strdup: New file.
54988         * lib/unistr/u8-strdup.c: New file.
54989         * lib/unistr/u16-strdup.c: New file.
54990         * lib/unistr/u32-strdup.c: New file.
54991         * lib/unistr/u-strdup.h: New file.
54992
54993         * modules/unistr/u8-strlen: New file.
54994         * modules/unistr/u16-strlen: New file.
54995         * modules/unistr/u32-strlen: New file.
54996         * lib/unistr/u8-strlen.c: New file.
54997         * lib/unistr/u16-strlen.c: New file.
54998         * lib/unistr/u32-strlen.c: New file.
54999         * lib/unistr/u-strlen.h: New file.
55000
55001         * modules/unistr/u8-strmblen: New file.
55002         * modules/unistr/u16-strmblen: New file.
55003         * modules/unistr/u32-strmblen: New file.
55004         * lib/unistr/u8-strmblen.c: New file.
55005         * lib/unistr/u16-strmblen.c: New file.
55006         * lib/unistr/u32-strmblen.c: New file.
55007
55008         * modules/unistr/u8-strmbtouc: New file.
55009         * modules/unistr/u16-strmbtouc: New file.
55010         * modules/unistr/u32-strmbtouc: New file.
55011         * lib/unistr/u8-strmbtouc.c: New file.
55012         * lib/unistr/u16-strmbtouc.c: New file.
55013         * lib/unistr/u32-strmbtouc.c: New file.
55014
55015         * modules/unistr/u8-strncat: New file.
55016         * modules/unistr/u16-strncat: New file.
55017         * modules/unistr/u32-strncat: New file.
55018         * lib/unistr/u8-strncat.c: New file.
55019         * lib/unistr/u16-strncat.c: New file.
55020         * lib/unistr/u32-strncat.c: New file.
55021         * lib/unistr/u-strncat.h: New file.
55022
55023         * modules/unistr/u8-strncmp: New file.
55024         * modules/unistr/u16-strncmp: New file.
55025         * modules/unistr/u32-strncmp: New file.
55026         * lib/unistr/u8-strncmp.c: New file.
55027         * lib/unistr/u16-strncmp.c: New file.
55028         * lib/unistr/u32-strncmp.c: New file.
55029
55030         * modules/unistr/u8-strncpy: New file.
55031         * modules/unistr/u16-strncpy: New file.
55032         * modules/unistr/u32-strncpy: New file.
55033         * lib/unistr/u8-strncpy.c: New file.
55034         * lib/unistr/u16-strncpy.c: New file.
55035         * lib/unistr/u32-strncpy.c: New file.
55036         * lib/unistr/u-strncpy.h: New file.
55037
55038         * modules/unistr/u8-strnlen: New file.
55039         * modules/unistr/u16-strnlen: New file.
55040         * modules/unistr/u32-strnlen: New file.
55041         * lib/unistr/u8-strnlen.c: New file.
55042         * lib/unistr/u16-strnlen.c: New file.
55043         * lib/unistr/u32-strnlen.c: New file.
55044         * lib/unistr/u-strnlen.h: New file.
55045
55046         * modules/unistr/u8-strpbrk: New file.
55047         * modules/unistr/u16-strpbrk: New file.
55048         * modules/unistr/u32-strpbrk: New file.
55049         * lib/unistr/u8-strpbrk.c: New file.
55050         * lib/unistr/u16-strpbrk.c: New file.
55051         * lib/unistr/u32-strpbrk.c: New file.
55052         * lib/unistr/u-strpbrk.h: New file.
55053
55054         * modules/unistr/u8-strrchr: New file.
55055         * modules/unistr/u16-strrchr: New file.
55056         * modules/unistr/u32-strrchr: New file.
55057         * lib/unistr/u8-strrchr.c: New file.
55058         * lib/unistr/u16-strrchr.c: New file.
55059         * lib/unistr/u32-strrchr.c: New file.
55060
55061         * modules/unistr/u8-strspn: New file.
55062         * modules/unistr/u16-strspn: New file.
55063         * modules/unistr/u32-strspn: New file.
55064         * lib/unistr/u8-strspn.c: New file.
55065         * lib/unistr/u16-strspn.c: New file.
55066         * lib/unistr/u32-strspn.c: New file.
55067         * lib/unistr/u-strspn.h: New file.
55068
55069         * modules/unistr/u8-strstr: New file.
55070         * modules/unistr/u16-strstr: New file.
55071         * modules/unistr/u32-strstr: New file.
55072         * lib/unistr/u8-strstr.c: New file.
55073         * lib/unistr/u16-strstr.c: New file.
55074         * lib/unistr/u32-strstr.c: New file.
55075         * lib/unistr/u-strstr.h: New file.
55076
55077         * modules/unistr/u8-strtok: New file.
55078         * modules/unistr/u16-strtok: New file.
55079         * modules/unistr/u32-strtok: New file.
55080         * lib/unistr/u8-strtok.c: New file.
55081         * lib/unistr/u16-strtok.c: New file.
55082         * lib/unistr/u32-strtok.c: New file.
55083         * lib/unistr/u-strtok.h: New file.
55084
55085         * modules/unistr/u8-uctomb: New file.
55086         * modules/unistr/u16-uctomb: New file.
55087         * modules/unistr/u32-uctomb: New file.
55088         * lib/unistr/u8-uctomb.c: New file.
55089         * lib/unistr/u16-uctomb.c: New file.
55090         * lib/unistr/u32-uctomb.c: New file.
55091
55092         * MODULES.html.sh (Unicode string functions): Add the new modules.
55093
55094 2007-01-08  Bruno Haible  <bruno@clisp.org>
55095
55096         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55097         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55098         subdirectories.
55099
55100 2007-01-08  Karl Berry  <karl@gnu.org>
55101
55102         * doc/error.texi: mention that main() fns must set program_name
55103         when progname is used.
55104
55105 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55108         WCTYPE_H is empty, for the benefit of builds from non-distclean
55109         directories.  Problem reported by Eric Blake in
55110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55111
55112 2007-01-08  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55115         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55116         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55117         PROVIDE_CANONICALIZE_FILENAME_MODE.
55118         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55119
55120 2007-01-08  Bruno Haible  <bruno@clisp.org>
55121
55122         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55123         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55124         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55125         * lib/fts.c: Likewise.
55126         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55127
55128 2006-12-25  Bruno Haible  <bruno@clisp.org>
55129
55130         * modules/utf8-ucs4-safe: New file.
55131         * lib/utf8-ucs4-safe.h: New file.
55132         * lib/unistr/utf8-ucs4-safe.c: New file.
55133
55134         * modules/utf16-ucs4-safe: New file.
55135         * lib/utf16-ucs4-safe.h: New file.
55136         * lib/unistr/utf16-ucs4-safe.c: New file.
55137
55138         * MODULES.html.sh (Unicode string functions): Add the new modules.
55139
55140 2007-01-08  Bruno Haible  <bruno@clisp.org>
55141
55142         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55143         (Depends-on): Add unitypes.
55144         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55145         (u8_mbtouc_aux): Move out to separate file.
55146         (u8_mbtouc): Use ucs4_t, uint8_t types.
55147         * lib/unistr/utf8-ucs4.c: New file.
55148
55149         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55150         (Depends-on): Add unitypes.
55151         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55152         (u16_mbtouc_aux): Move out to separate file.
55153         (u16_mbtouc): Use ucs4_t, uint16_t types.
55154         * lib/unistr/utf16-ucs4.c: New file.
55155
55156         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55157         (Depends-on): Add unitypes.
55158         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55159         (u8_uctomb_aux): Move out to separate file.
55160         (u8_uctomb): Use ucs4_t, uint8_t types.
55161         * lib/unistr/ucs4-utf8.c: New file.
55162
55163         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55164         (Depends-on): Add unitypes.
55165         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55166         (u16_uctomb_aux): Move out to separate file.
55167         (u16_uctomb): Use ucs4_t, uint16_t types.
55168         * lib/unistr/ucs4-utf16.c: New file.
55169
55170 2006-12-25  Bruno Haible  <bruno@clisp.org>
55171
55172         * modules/unitypes: New file.
55173         * lib/unitypes.h: New file.
55174         * MODULES.html.sh (func_all_modules): New section "Unicode string
55175         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55176         this section. Add unitypes.
55177
55178 2007-01-08  Bruno Haible  <bruno@clisp.org>
55179
55180         Avoid variable names that conflict with those from libtool.
55181         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55182         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55183         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55184         library_names_spec to acl_library_names_spec, hardcode_* to
55185         acl_hardcode_*.
55186         Reported by Ralf Wildenhues.
55187
55188 2007-01-08  Bruno Haible  <bruno@clisp.org>
55189
55190         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55191         definition.
55192         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55193         definition.
55194         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55195         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55196         definition.
55197         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55198         definition.
55199         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55200         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55201         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55202         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55203         definition.
55204         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55205         definition.
55206         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55207         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55208         GC_USE_<algorithm>.
55209         * lib/gc-libgcrypt.c: Likewise.
55210         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55211         * modules/gc-arctwo (configure.ac): Likewise.
55212         * modules/gc-des (configure.ac): Likewise.
55213         * modules/gc-hmac-md5 (configure.ac): Likewise.
55214         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55215         * modules/gc-md2 (configure.ac): Likewise.
55216         * modules/gc-md4 (configure.ac): Likewise.
55217         * modules/gc-md5 (configure.ac): Likewise.
55218         * modules/gc-random (configure.ac): Likewise.
55219         * modules/gc-rijndael (configure.ac): Likewise.
55220         * modules/gc-sha1 (configure.ac): Likewise.
55221
55222 2007-01-08  Bruno Haible  <bruno@clisp.org>
55223
55224         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55225         macro definition.
55226         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55227         definition.
55228         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55229         definition.
55230         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55231         * modules/fcntl-safer (configure.ac): Likewise.
55232         * modules/fopen-safer (configure.ac): Likewise.
55233         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55234         GNULIB_FWRITEERROR macro definition.
55235
55236 2007-01-08  Bruno Haible  <bruno@clisp.org>
55237
55238         * m4/gnulib-common.m4: New file.
55239         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55240         (func_get_filelist): Add m4/gnulib-common.m4.
55241
55242 2007-01-08  Bruno Haible  <bruno@clisp.org>
55243
55244         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55245         command.
55246
55247 2007-01-08  Jim Meyering  <jim@meyering.net>
55248
55249         Use a more robust test for a "can't happen" condition.
55250         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55251         narrowed the st_size value.  Presuming the "can't happen" condition
55252         is true, that narrowing could conceivably convert an invalid st_size
55253         value into a valid one.  Instead, use a change based on Matthew
55254         Woehlke's original patch.
55255
55256         Slight readability improvement: use an assert-like macro
55257         in place of literal "abort ()" uses.
55258         * lib/fts.c (fts_assert): Define.
55259         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55260         Use this macro instead of a bare 'abort'.
55261
55262 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55265         simply work around them.
55266         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55267         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55268         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55269         declaring.
55270         Don't bother to define as macros, since the standard doesn't require it.
55271         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55272         longer worry about IRIX 5.3.
55273         (HAVE_WCTYPE_CTMP_BUG): Remove.
55274
55275 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55278         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55279         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55280         Problems reported by Georg Schwarz for IRIX 5.3.
55281
55282         * gnulib-tool (autoconf_minversion): Take the maximum version number
55283         found, not the minimum.  Problem reported by James Youngman.
55284
55285 2007-01-03  Karl Berry  <karl@gnu.org>
55286
55287         * doc/error.texi: new file, explaining interaction with progname.
55288         * doc/gnulib.texi: include it.  Update copyright.
55289
55290 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55291
55292         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55293         AC_CANONICAL_HOST, to improve autobuild outputs.
55294
55295 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55296             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55297
55298         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55299         sockets, server sockets, and other file descriptors.  Count errors
55300         to compute the return value.  Reorder the code a bit to be easier
55301         to follow.  Don't set event bits that were not requested (except
55302         POLLERR and POLLHUP).
55303
55304 2007-01-01  Bruno Haible  <bruno@clisp.org>
55305
55306         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55307
55308 2007-01-03  Jim Meyering  <jim@meyering.net>
55309
55310         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55311
55312 2007-01-02  Bruno Haible  <bruno@clisp.org>
55313
55314         * modules/settime (Include): Require timespec.h.
55315         * modules/nanosleep (Include): Likewise.
55316
55317 2007-01-01  Bruno Haible  <bruno@clisp.org>
55318
55319         * gnulib-tool (func_emit_copyright_notice): Bump year.
55320         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55321
55322 2007-01-01  Bruno Haible  <bruno@clisp.org>
55323
55324         Improve support for OpenBSD.
55325         * build-aux/config.rpath (libname_spec): Export.
55326         (library_names_spec): New variable. Export.
55327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55328         library_names_spec from the config.rpath output. Locate shared library
55329         through the name pattern in library_names_spec.
55330
55331 2007-01-01  Eric Blake  <ebb9@byu.net>
55332
55333         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55334
55335 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55336
55337         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55338         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55339         assume the C locale, and avoid an "eval" that could cause trouble.
55340         Problem with SORT reported by Bob Proulx.
55341
55342         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55343         Define.  Trivial patch from Henning Nielsen Lund, originally
55344         sent to bug-grep@gnu.org today.
55345
55346 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55349         struct stat.  Problem reported by Henning Nielsen Lund.
55350         * lib/acl.c: Include acl.h first, to check interface.  Don't
55351         bother to include sys/types.h and sys/stat.h again.
55352
55353 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55354
55355         Import the following change from libc; problem reported by
55356         Sven Verdoolaege.
55357
55358         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55359
55360         [BZ #1373]
55361         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55362
55363 2006-12-28  Jim Meyering  <jim@meyering.net>
55364
55365         * build-aux/announce-gen: Do not assume that the package
55366         builds any of tar.gz, tar.bz2, and .xdelta files.
55367         Suggestion from Simon Josefsson.
55368
55369 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55370
55371         * modules/announce-gen: New file.
55372
55373 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55376         handles its gotchas now.
55377         * lib/mbswidth.c: Likewise.
55378         * lib/wcwidth.h: Likewise.
55379         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55380         and iswcntrl; the wctype module does this stuff now.
55381         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55383         * modules/mbchar (Depends-on): Add wctype.
55384         * modules/mbswidth (Depends-on): Likewise.
55385         * modules/wcwidth (Depends-on): Likewise.
55386
55387 2006-12-27  Eric Blake  <ebb9@byu.net>
55388
55389         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55390         module uses more than what <wctype.h> is required to provide.
55391
55392 2006-12-26  Eric Blake  <ebb9@byu.net>
55393
55394         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55395
55396 2006-12-26  Eric Blake  <ebb9@byu.net>
55397
55398         * modules/absolute-header: New module.
55399         * modules/fcntl (Depends-on): Depend on it.
55400         * modules/inttypes (Depends-on): Likewise.
55401         * modules/stdint (Depends-on): Likewise.
55402         * modules/sys_stat (Depends-on): Likewise.
55403         * modules/wctype (Depends-on): Likewise.
55404         * MODULES.html.sh (Support for building libraries and
55405         executables): Document it.
55406
55407 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * gnulib-tool (SED): Remove, undoing previous change.
55410         The problem was that it broke coreutils on Solaris, because
55411         "sed --posix" leaked into a makefile.
55412         (sed): New alias, if 'alias' and GNU sed.
55413
55414 2006-12-24  Jim Meyering  <jim@meyering.net>
55415
55416         Work around an fchownat bug in glibc-2.4:
55417         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55418         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55419         in spite of the -P option.
55420         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55421         New macros.
55422         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55423         * modules/openat (Files): Add lib/fchownat.c.
55424         * lib/openat.c (fchownat): Don't define here.  Move to...
55425         * lib/fchownat.c: ...this new file.
55426
55427 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         Fix bug reported by Bruno Haible in
55430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55431         where quotearg.c didn't compile on Mac OS X 10.2 because it
55432         lacks <wchar.h> and wint_t.
55433         * lib/wctype_.h (__wctype_wint_t): New type.
55434         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55435         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55436         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55437         Arg is now of type __wctype_wint_t, not wint_t.
55438         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55439         substitute HAVE_WINT_T.
55440         * modules/wctype (Files): Add m4/wint_t.m4.
55441         (wctype.h): Substitute HAVE_WINT_T.
55442
55443 2006-12-23  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55446
55447 2006-12-23  Bruno Haible  <bruno@clisp.org>
55448
55449         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55450         S_ISLNK.
55451         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55452         mingw.
55453
55454 2006-12-22  Bruno Haible  <bruno@clisp.org>
55455
55456         * lib/copy-file.c: Include acl.h.
55457         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55458         Close the file descriptors only after being done with copy_acl.
55459         * modules/copy-file (Depends-on): Add acl.
55460
55461 2006-12-22  Bruno Haible  <bruno@clisp.org>
55462
55463         * gnulib-tool (SED): New variable.
55464         Use $SED instead of sed everywhere.
55465
55466 2006-12-22  Bruno Haible  <bruno@clisp.org>
55467
55468         * modules/no-c++: New file.
55469         * m4/no-c++.m4: New file.
55470         * MODULES.html.sh (Support for building libraries and executables):
55471         Add no-c++.
55472
55473 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55474
55475         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55476         Include <limits.h>, and use its INT_MAX to rewrite the
55477         j loop so that it does not overflow 'int'.  Problem reported by
55478         Ralf Wildenhues in
55479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55480         Play it safe by shifting left by 1 rather than multiplying by 2,
55481         as GCC is less likely to optimize this away when the value
55482         is signed (when it assumes overflow leads to undefined behavior).
55483         Also, don't assume time_t uses two's complement.
55484
55485 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55486
55487         * MODULES.html.sh: New module wctype.
55488         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55489         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55490         <wctype.h>, since the new wctype module should fix this.
55491         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55492         the wctype module should arrange for it.
55493         * lib/regex_internal.h: Likewise.
55494         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55495         since the wctype module should handle this now.
55496         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55497         * modules/fnmatch (Depends-on): Add wctype.
55498         * modules/quotearg (Depends-on): Likewise.
55499         * modules/regex (Depends-on): Likewise.
55500
55501 2006-12-19  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55504         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55505
55506 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55507
55508         * modules/savewd (Depends-on): Fix dependency on fcntl.
55509
55510 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55511
55512         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55513         conforms to C99, rather than relying on the user's environment
55514         setting of STDINT_H.
55515
55516 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55517         and Eric Blake  <ebb9@byu.net>
55518
55519         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55520         This is more consistent with the other defines here.
55521         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55522         Port to z/OS.  Problem reported by Paul Gilmartin.
55523         Change local vars to use gl_ prefix rather than ac_.
55524         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55525         with other defines.
55526         * modules/double-slash-root: New module.
55527         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55528         (Depends-on): Add double-slash-root.
55529         * MODULES.html.sh (File system functions): Mention new module.
55530
55531 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55532
55533         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55534         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55535         This is for the benefit of gzip, which doesn't do i18n.
55536
55537 2006-12-12  Jim Meyering  <jim@meyering.net>
55538
55539         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55540         Reported by Andreas Schwab <schwab@suse.de>.
55541
55542 2006-12-12  Bruno Haible  <bruno@clisp.org>
55543
55544         Merge these changes.
55545         2006-09-05  Bruno Haible  <bruno@clisp.org>
55546         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55547         iconv_alloc succeeded.
55548         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55549         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55550         test for " && dest " at the end - dest is always != NULL there. Call
55551         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55552         with 2xNULL arguments, also to flush the state storage. Handle the
55553         IRIX iconv behaviour. Realloc the final result, to throw away unused
55554         memory.
55555
55556 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55557
55558         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55559         and fchmodat unconditionally, since glibc 2.4 has them.
55560         Problem reported by Arkadiusz Miskiewicz.
55561
55562 2006-12-10  Bruno Haible  <bruno@clisp.org>
55563
55564         * gnulib-tool (func_import): Show the include files only for those
55565         modules that are copied and specified.
55566         Reported by Karl Berry.
55567
55568 2006-12-08  Jim Meyering  <jim@meyering.net>
55569
55570         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55571         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55572
55573         * build-aux/announce-gen: Add two new options, both optional:
55574         --bootstrap-tools=TOOL_LIST
55575               a comma-separated list of tools, e.g.,
55576               autoconf,automake,bison,gnulib
55577         --gnulib-snapshot-date=DATE
55578               if gnulib is in the bootstrap tool list,
55579               then report this as the snapshot date.
55580               If not specified, use the current date/time.
55581               If you specify a date here, be sure it's UTC.
55582
55583 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55584
55585         * tests/test-argp-2.sh: Fix test to match actual output.
55586         (func_compare): Fix sed script to be portable.
55587
55588 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55591         workaround for this case.  It is not autoconfigured now; offhand
55592         it's hard to see how to autoconfigure it.
55593
55594 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55595
55596         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55597         a directory that is about to be chowned.  Such a directory's
55598         initial file permissions should permit the owner only and this
55599         should not be changed until after the chown, since the group and
55600         other bits would be incorrect if they granted permission before
55601         the chown.
55602
55603         Fix porting problem for iswctype reported by Georg Schwarz in:
55604         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55605         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55606         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55608         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55609
55610 2006-12-03  Jim Meyering  <jim@meyering.net>
55611
55612         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55613         p->fts_statp may not yet be defined.
55614         (fts_read): Instead, set it in the caller, once p->fts_statp is
55615         sure to be defined, and corresponds to a top-level directory.
55616         This bug made du -x fail.  Here's the coreutils test case:
55617         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55618         Reported by Mike Frysinger.
55619
55620 2006-12-01  Jim Meyering  <jim@meyering.net>
55621
55622         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55623         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55624         Reported by Simon Josefsson.
55625
55626 2006-11-30  Jim Meyering  <jim@meyering.net>
55627
55628         * m4/warning.m4: Use the all-permissive copyright notice
55629         recommended by RMS (rather than LGPL).
55630         * m4/vararrays.m4: Likewise.
55631         * m4/flexmember.m4: Likewise.
55632
55633 2006-11-29  Bruno Haible  <bruno@clisp.org>
55634
55635         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55636         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55637         using +=.
55638         Reported by Simon Josefsson <simon@josefsson.org>.
55639
55640 2006-11-28  James Youngman <jay@gnu.org>
55641
55642         * README: Advise users that they might find the bug-gnulib@gnu.org
55643         and autotools-announce@gnu.org mailing lists useful.
55644
55645 2006-11-28  Bruno Haible  <bruno@clisp.org>
55646
55647         * m4/ptrdiff_max.m4: Remove file.
55648
55649 2006-11-21  Bruno Haible  <bruno@clisp.org>
55650
55651         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55652         _AC_COMPUTE_INT.
55653         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55654         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55655         _AC_COMPUTE_INT.
55656         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55657         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55658         _AC_COMPUTE_INT.
55659         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55660
55661 2006-11-28  Jim Meyering  <jim@meyering.net>
55662
55663         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55664         warning from "gcc -Wshadow" about shadowing the builtin.
55665
55666 2006-11-27  Bruno Haible  <bruno@clisp.org>
55667
55668         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55669         _AC_COMPUTE_INT.
55670         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55671
55672 2006-11-27  Bruno Haible  <bruno@clisp.org>
55673             Paul Eggert  <eggert@cs.ucla.edu>
55674
55675         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55676
55677 2006-11-26  Bruno Haible  <bruno@clisp.org>
55678
55679         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55680         noinst_LTLIBRARIES.
55681
55682 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55683             Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55686         if compiling with "gcc -ansi".
55687
55688 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55689
55690         Fix some incompatibilities with gcc -ansi -pedantic.
55691         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55692         if compiling pedantically with GCC, unless it's C99 or later.
55693         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55694         it mishandles gcc -ansi -pedantic as well.
55695         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55696         if gcc -pedantic.
55697         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55698         initializers for struct if -pedantic, unless it's C99 or later.
55699
55700 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55701
55702         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55703         Don't close an fd more than once. Identical atimes indicate
55704         success, not failure.
55705
55706 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55707
55708         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55709
55710 2006-11-23  Jim Meyering  <jim@meyering.net>
55711
55712         * build-aux/announce-gen: New file.  From coreutils.
55713
55714 2006-11-22  Jim Meyering  <jim@meyering.net>
55715
55716         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55717         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55718         (fts_read): Use a temporary to narrow the overused st_size member
55719         before using it in a switch statement.  Reported by Matthew Woehlke.
55720
55721         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55722         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55723
55724 2006-11-20  Bruno Haible  <bruno@clisp.org>
55725
55726         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55727         changequote instead of pairs of brackets.
55728         Reported by Andreas Schwab <schwab@suse.de>.
55729
55730 2006-11-21  Jim Meyering  <jim@meyering.net>
55731
55732         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55733         so as to remain compatible with older compilers.
55734         Patch from Michael Deutschmann.
55735
55736 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55737
55738         * MODULES.html.sh (File system functions): Add openat.
55739
55740         * lib/openat.h (rpl_fstatat): New macro, if
55741         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55742         (fstatat): Define to rpl_fstatat under the same conditions,
55743         unless COMPILING_FSTATAT.
55744         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55745         seems to have the bug.
55746         * lib/fstatat.c: New file.
55747         * modules/openat (Files): Add it.
55748
55749 2006-11-20  Bruno Haible  <bruno@clisp.org>
55750
55751         * Makefile: New file.
55752
55753 2006-11-20  Jim Meyering  <jim@meyering.net>
55754
55755         The beginnings of syntax-related checks for gnulib.
55756         * lib/Makefile: New file.
55757         * lib/t-idcache: New script.  Ensure that the two halves of
55758         idcache.c stay in sync.
55759
55760         * lib/idcache.c: Adjust comments in user- and group- portions to
55761         be more accurate, and to be consistent with one another.
55762
55763 2006-11-20  Jim Meyering  <jim@meyering.net>
55764
55765         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55766         continue using the flexible array member (thus, this module performs
55767         half as many malloc calls), with the addition that...
55768         (getgroup, getuser): Consistently record a non-match via an empty
55769         "name" string, and map an empty string match to a NULL return value.
55770         * modules/idcache (Depends-on): Re-add flexmember.
55771
55772         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55773         (getuidbyname, getgroup, getgidbyname): Likewise.
55774
55775         Use cleaner syntax: NULL rather than 0.
55776         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55777
55778 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55781         It mishandled the case where the group was missing.
55782         Problem reported by Greg Schafer.
55783         * modules/idcache: Likewise.
55784
55785 2006-11-18  Jim Meyering  <jim@meyering.net>
55786
55787         * check-module (%exempt_header): Add exception for some
55788         conditionally-included headers.
55789
55790         * modules/i-ring (Depends-on): Add verify.
55791         (License): Change to LGPL.
55792
55793 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55794
55795         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55796         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55797         and inttostr.h.  Use snprintf rather than uinttostr, so that
55798         LGPLed code doesn't depend on GPLed.
55799
55800 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55801
55802         * modules/inline (License): Change from GPL to LGPL.
55803
55804 2006-11-17  Jim Meyering  <jim@meyering.net>
55805
55806         * modules/d-type (License): Switch to LGPL.
55807
55808 2006-11-15  Bruno Haible  <bruno@clisp.org>
55809
55810         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55811
55812 2006-11-15  Eric Blake  <ebb9@byu.net>
55813
55814         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55815         the module dependency.
55816
55817 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55818             Bruno Haible  <bruno@clisp.org>
55819
55820         * gnulib-tool (func_create_testdir): Add license consistency check.
55821
55822 2006-11-15  Eric Blake  <ebb9@byu.net>
55823
55824         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55825         random "(cached)" in configure output.
55826
55827 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55828
55829         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55830         test for conforming inttypes.h is both announced and cached.
55831
55832         * MODULES.html.sh (seen_modules, seen_files): New variables.
55833         (func_module): Rewrite to use a few less gnulib-tool and sed
55834         invocations.  Avoid a couple of quadratic algorithms for ...
55835         (missed_modules, missed_files): ... these, with ...
55836         (func_append, func_tmpdir): ... these new functions, from
55837         gnulib-tool.  Analogously, install traps for cleanup.
55838
55839         * tests/test-gc.c (main): Remove unused variables.
55840         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55841
55842 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55843
55844         * modules/inttostr (License): Change to LGPL.
55845
55846 2006-11-14  Eric Blake  <ebb9@byu.net>
55847
55848         * modules/tempname (License): Change to LGPL.
55849
55850 2006-11-14  Eric Blake  <ebb9@byu.net>
55851
55852         * doc/functions.texi (Function Portability): *printf functions on
55853         Cygwin now understand all POSIX size specifiers.
55854
55855 2006-11-14  Bruno Haible  <bruno@clisp.org>
55856
55857         * modules/c-ctype (License): Change to LGPL.
55858
55859 2006-11-12  Bruno Haible  <bruno@clisp.org>
55860
55861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55862         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55863         for GNOME libraries, for which the include files are installed in
55864         subdirectories of $prefix/include.
55865
55866 2006-11-12  Bruno Haible  <bruno@clisp.org>
55867
55868         * m4/lib-link.m4: Require at least autoconf-2.54.
55869         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55870         name to underscores for the --with option.
55871
55872 2006-11-13  Bruno Haible  <bruno@clisp.org>
55873
55874         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55875         the tests directory.
55876         Reported by Ralf Wildenhues.
55877
55878 2006-11-13  Bruno Haible  <bruno@clisp.org>
55879
55880         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55881         (func_emit_initmacro_end): Undo the override here.
55882         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55883         Works around the famous automake error in coreutils.
55884
55885 2006-11-13  Eric Blake  <ebb9@byu.net>
55886
55887         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55888         element, not its node.
55889
55890 2006-11-12  Bruno Haible  <bruno@clisp.org>
55891
55892         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55893         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55894
55895 2006-11-12  Bruno Haible  <bruno@clisp.org>
55896
55897         * gnulib-tool: New option --local-symlink.
55898         (func_usage): Document it.
55899         (lsymbolic): New variable.
55900         (func_import, func_create_testdir): If --symlink was not specified,
55901         test whether --local-symlink was specified and the file comes from
55902         the local_gnulib_dir.
55903
55904 2006-11-12  Bruno Haible  <bruno@clisp.org>
55905
55906         * gnulib-tool (func_ln): New function.
55907         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55908
55909 2006-11-12  Bruno Haible  <bruno@clisp.org>
55910
55911         Finish support for source files in subdirectories.
55912         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55913         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55914         AUTOMAKE_OPTIONS.
55915         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55916
55917 2006-11-12  Bruno Haible  <bruno@clisp.org>
55918
55919         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55920         EXTRA_lib_SOURCES augmentation.
55921         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55922
55923 2006-11-12  Jim Meyering  <jim@meyering.net>
55924
55925         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55926         file descriptors.  This also averts a failure on systems with
55927         native openat support when a traversed directory lacks "x" access.
55928         * lib/fts_.h: Include "i-ring.h"
55929         (struct FTS) [fts_fd_ring]: New member.
55930         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55931         (FCHDIR): Add parentheses.
55932         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55933         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55934         When descending, rather than simply closing the previous
55935         fts_cwd_fd value, push that file descriptor onto the ring.
55936         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55937         (fts_open): Initialize the new fd_ring member.
55938         (fts_close): Clear the ring.
55939         (fts_safe_changedir): When possible, use our new fd_ring to skip
55940         the diropen and fstat and dev/ino comparison that would normally
55941         accompany a virtual `chdir ("..")'.
55942
55943         * modules/fts (Depends-on): Add i-ring.
55944         * modules/i-ring: New module.
55945         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55946         * m4/i-ring.m4: New file.
55947
55948 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55949
55950         * gnulib-tool (func_create_testdir): Fix replacement of
55951         `build-aux' in configure.ac.  Run autotools in gltests
55952         subdirectory.
55953         (func_create_testdir, func_create_megatestdir, test): There is
55954         no need for '--force' in most autotool invocations in a new
55955         tree.  Actually fail the whole test if any of the tools, or the
55956         configure or make stages fail.
55957
55958         Sync from Automake.
55959         * build-aux/gnupload: Revert last change.  Add pointer to upload
55960         instructions of the GNU Maintenance Instructions.
55961         Suggestion by Karl Berry.
55962
55963 2006-11-10  Jim Meyering  <jim@meyering.net>
55964
55965         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55966
55967 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55968
55969         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55970         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55971         (bind_textdomain_codeset) [! ENABLE_NLS]:
55972         Evaluate all the arguments.  That way, callers get compatible behavior
55973         if the arguments have side effects.  Also, it avoids some GCC
55974         diagnostics in some cases; Joel E. Denny reported problems when Bison
55975         was configured with --enable-gcc-warnigs.
55976
55977 2006-11-10  Jim Meyering  <jim@meyering.net>
55978
55979         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55980         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55981         account.
55982
55983 2006-11-10  Jim Meyering  <jim@meyering.net>
55984
55985         * modules/inline: New file/module.
55986         * modules/xalloc (Files): Remove m4/inline.m4.
55987         (Depends-on): Add inline, instead.
55988         * modules/oset: Likewise.
55989         * modules/list: Likewise.
55990
55991 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55992
55993         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55994         Problem reported by Matthew Woehlke.
55995
55996 2006-11-09  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/tempname.c (gen_tempname): Remove variant that invokes
55999         __gen_tempname.
56000         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56001         __gen_tempname.
56002
56003 2006-11-08  Bruno Haible  <bruno@clisp.org>
56004
56005         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56006         to 'yes' instead of 'cross-compiling'.
56007
56008 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56009
56010         * lib/quotearg.h (quotearg_free): New decl.
56011         * lib/quotearg.c (quotearg_free): New function.
56012         (slot0, nslots, slotvec0, slotvec):
56013         Now file-scope so that quotearg_free can get at them.
56014
56015 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56016
56017         Sync from Automake.
56018         * build-aux/gnupload: Add missing 'gnu' to example URL.
56019         Report by Karl Berry.
56020
56021 2006-11-08  Bruno Haible  <bruno@clisp.org>
56022
56023         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56024         Suggested by Paul Eggert.
56025
56026 2006-11-08  Jim Meyering  <jim@meyering.net>
56027
56028         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56029         It's already included if !_LIBC.
56030         (fts_safe_changedir): Add a comment.
56031
56032 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56033
56034         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56035         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56036         Matthew Woehlke.
56037
56038         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56039         definitions up, to avoid colliding with change below.
56040         (static_inline) [HAVE_INLINE]: New macro.
56041         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56042         Provide extern decls when !HAVE_INLINE.  Do not define unless
56043         static_inline is defined, either by us or by xmalloc.c.  Use
56044         static_inline rather than static inline.
56045         (XCALLOC): Optimize sizeof(T) = 1 case.
56046         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56047
56048 2006-11-07  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56051         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56052         AC_C_INLINE.
56053         * modules/xalloc (Files): Add m4/inline.m4.
56054
56055 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56056
56057         * README: Fix typo.
56058         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56059         (Miscellanous Notes): ...from this.
56060
56061 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56062
56063         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56064         Mention that offsetof should be used instead of sizeof.
56065         From Bruno Haible.
56066
56067 2006-11-07  Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56070
56071 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56072
56073         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56074         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56075         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56076         (gl_tree_add_before, gl_tree_add_after):
56077         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56078         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56079         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56080         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56081         (gl_linked_add_after, gl_linked_add_at): Likewise.
56082         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56083         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56084         (gl_tree_add_before, gl_tree_add_after): Likewise.
56085         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56086         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56087         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56088
56089 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56090
56091         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56092
56093 2006-11-06  Bruno Haible  <bruno@clisp.org>
56094
56095         * m4/inline.m4: New file.
56096         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56097         * modules/list (Files): Add m4/inline.m4.
56098         * modules/oset (Files): Likewise.
56099
56100 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * lib/idcache.c: Include <stddef.h>, for offsetof.
56103         (struct userid.name): Change from char * to a flexible array member.
56104         All uses changed.
56105         * modules/idcache (Depends-on): Add flexmember.
56106
56107         * MODULES.html.sh (Core language properties): New module flexmember.
56108         * modules/flexmember, m4/flexmember.m4: New files.
56109
56110         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56111         inline functions that are identical with the old xnmalloc_inline,
56112         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56113         that we can avoid some unnecessary integer multiplications and
56114         divisions in the common case where the element size is known at
56115         compile time.
56116         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56117         needed.
56118         (xnboundedmalloc): Remove.
56119         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56120         arguments, for consistency with rest of this header.
56121         (xcharalloc): Rewrite using XNMALLOC.
56122         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56123         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56124         versions have been moved to lib/xalloc.h and renamed to be the
56125         non-*_inline versions.
56126         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56127         and xnrealloc functions, since those functions are now inline and
56128         now call us.
56129         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56130         renaming described above.
56131         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56132         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56133         captures the dependency in AC_C_INLINE.
56134
56135         New module canonicalize-lgpl, proposed by Charles Wilson in
56136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56137         with a few small changes afterwards.
56138         * MODULES.html.sh (File system functions): New module
56139         canonicalize-lgpl.
56140         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56141         and canonicalize_file_name.
56142         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56143         * modules/canonicalize-lgpl: New files.
56144
56145 2006-11-05  Bruno Haible  <bruno@clisp.org>
56146
56147         * gnulib-tool (func_import, func_create_testdir): Create directories
56148         also for files in subdirectories of lib/.
56149
56150 2006-11-05  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56153         ANSI C compliant.
56154
56155 2006-11-03  Bruno Haible  <bruno@clisp.org>
56156
56157         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56158         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56159         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56160         (xnboundedmalloc): New inline function.
56161         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56162         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56163         xmalloc.
56164         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56165         xmalloc.
56166         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56167         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56168         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56169         xmalloc.
56170         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56171         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56172         xmalloc.
56173         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56174         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56175         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56176         xmalloc.
56177         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56178         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56179         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56180         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56181         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56182         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56183         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56184
56185 2006-11-03  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/c-ctype.h [C++]: Define functions without name mangling.
56188         * lib/fwriteerror.h [C++]: Likewise.
56189         * lib/gcd.h [C++]: Likewise.
56190         * lib/linebreak.h [C++]: Likewise.
56191
56192 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56193
56194         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56195         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56196         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56198         Check for functions and headers just once.
56199         Check for declaration of canonicalize_file_name.
56200         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56201
56202 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56203
56204         * gnulib-tool (func_import): Fix typo in actioncmd.
56205
56206 2006-11-02  Bruno Haible  <bruno@clisp.org>
56207
56208         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56209         newline sequence in the Makefile.am snippet as a space, like "make"
56210         does.
56211         Reported by Roger Persson <perrog@gmail.com>.
56212
56213 2006-11-01  Bruno Haible  <bruno@clisp.org>
56214
56215         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56216         already declared in <string.h>.
56217         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56218
56219 2006-11-01  Bruno Haible  <bruno@clisp.org>
56220
56221         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56222         * lib/strcase.h: Include <string.h>.
56223         (strcasecmp): Define to rpl_strcasecmp here.
56224
56225 2006-11-01  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56228
56229 2006-11-01  Eric Blake  <ebb9@byu.net>
56230
56231         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56232
56233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56234
56235 2006-10-29  Bruno Haible  <bruno@clisp.org>
56236
56237         Make it compile in C++ mode.
56238         * lib/full-write.c (full_rw): Add a cast.
56239
56240 2006-11-01  Bruno Haible  <bruno@clisp.org>
56241
56242         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56243         be POSIX compliant.
56244         Reported by Roger Persson <perrog@gmail.com>.
56245
56246 2006-11-01  Eric Blake  <ebb9@byu.net>
56247
56248         * lib/getopt_.h: Fix comments.
56249
56250 2006-10-31  Eric Blake  <ebb9@byu.net>
56251
56252         * modules/tmpdir (Depends-on): Add sys_stat.
56253         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56254         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56255         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56256         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56257         tempname.
56258
56259 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         Avoid some C++ diagnostics reported by Bruno Haible.
56262         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56263         xmalloc.
56264         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56265         (struct slotvec): Move to top level.
56266         (quotearg_n_options): Rewrite to avoid xmalloc.
56267         * lib/xalloc.h (xcharalloc): New function.
56268         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56269         [defined __cplusplus]: Add function template that provides result
56270         type propagation.  This part of the change is from Bruno Haible.
56271
56272 2006-10-29  Bruno Haible  <bruno@clisp.org>
56273
56274         Make it compile in C++ mode.
56275         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56276         * lib/strnlen1.c (strnlen1): Cast memchr result.
56277         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56278         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56279         (create_temp_dir): Rename local variable 'template'.
56280         (compile_csharp_using_sscli): Add cast.
56281         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56282         * lib/findprog.c (find_in_path): Likewise.
56283         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56284         * lib/wait-process.c (register_slave_subprocess): Likewise.
56285
56286 2006-10-22  Bruno Haible  <bruno@clisp.org>
56287
56288         * modules/tsearch: New file.
56289         * lib/tsearch.h: New file.
56290         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56291         * m4/tsearch.m4: New file.
56292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56293
56294 2006-10-29  Eric Blake  <ebb9@byu.net>
56295
56296         * lib/arcfour.c: Assume config.h.
56297         * lib/arctwo.c: Likewise.
56298         * lib/base64.c: Likewise.
56299         * lib/check-version.c: Likewise.
56300         * lib/crc.c: Likewise.
56301         * lib/des.c: Likewise.
56302         * lib/gc-gnulib.c: Likewise.
56303         * lib/gc-libgcrypt.c: Likewise.
56304         * lib/gc-pbkdf2-sha1.c: Likewise.
56305         * lib/getaddrinfo.c: Likewise.
56306         * lib/getdelim.c: Likewise.
56307         * lib/getline.c: Likewise.
56308         * lib/hmac-md5.c: Likewise.
56309         * lib/hmac-sha1.c: Likewise.
56310         * lib/iconvme.c: Likewise.
56311         * lib/md2.c: Likewise.
56312         * lib/md4.c: Likewise.
56313         * lib/memxor.c: Likewise.
56314         * lib/read-file.c: Likewise.
56315         * lib/readline.c: Likewise.
56316         * lib/rijndael-alg-fst.c: Likewise.
56317         * lib/rijndael-api-fst.c: Likewise.
56318         * lib/xgetdomainname.c: Likewise.
56319
56320 2006-10-28  Eric Blake  <ebb9@byu.net>
56321
56322         * lib/xstrndup.c: Assume config.h.
56323
56324 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56325
56326         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56327         stat-macros.h is now for our own macros, whereas stat_h is for
56328         macros in the <sys/stat.h> name space.
56329         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56330         (STAT_MACROS_H): Remove.
56331         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56332         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56333         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56334         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56335         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56336         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56337         Move these macros to ...
56338         * lib/stat_.h: here.  Don't include stat-macros.h.
56339         * lib/canonicalize.c: Don't include stat-macros.h.
56340         * lib/chown.c: Likewise.
56341         * lib/euidaccess.c: Likewise.
56342         * lib/file-type.c: Likewise.
56343         * lib/filemode.c: Likewise.
56344         * lib/glob.c: Likewise.
56345         * lib/isapipe.c: Likewise.
56346         * lib/lchown.c: Likewise.
56347         * lib/lstat.c: Likewise.
56348         * lib/mkdir-p.c: Likewise.
56349         * lib/rmdir.c: Likewise.
56350         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56352         unless mkdir isn't declared, to speed up 'configure'.
56353         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56354         would define all the S_* symbols.
56355         * modules/canonicalize (Depends-on):
56356         Depend on sys_stat, not stat-macros.
56357         * modules/chown: Likewise.
56358         * modules/euidaccess: Likewise.
56359         * modules/filemode: Likewise.
56360         * modules/file-type: Likewise.
56361         * modules/glob: Likewise.
56362         * modules/isapipe: Likewise.
56363         * modules/lchown: Likewise.
56364         * modules/lstat: Likewise.
56365         * modules/mkancesdirs: Likewise.
56366         * modules/rmdir: Likewise.
56367         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56368         * modules/modechange: Likewise.
56369         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56370         (configure.ac): Remove gl_STAT_MACROS.
56371         * modules/sys_stat (Depends-on): Remove stat-macros.
56372
56373 2006-10-27  Bruno Haible  <bruno@clisp.org>
56374
56375         * m4/signed.m4: Remove file.
56376         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56377         invocation.
56378         * modules/vasnprintf (Files): Remove m4/signed.m4.
56379
56380 2006-10-27  Bruno Haible  <bruno@clisp.org>
56381
56382         Update to GNU gettext 0.16.
56383         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56384         m4/inttypes-h.m4, m4/signed.m4.
56385         * m4/gettext.m4: Update to GNU gettext 0.16.
56386         * m4/intl.m4: New file, from GNU gettext.
56387         * m4/intldir.m4: New file, from GNU gettext.
56388         * config/srclist.txt: Update
56389
56390 2006-10-27  Eric Blake  <ebb9@byu.net>
56391
56392         * MODULES.html.sh: Document tempname.
56393         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56394         dependencies.
56395         (Files): Move lib/tempname.c...
56396         * modules/tempname: ...to this new module.
56397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56398         (gl_PREREQ_TEMPNAME): Move...
56399         * m4/tempname.m4: ...to this new file.
56400         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56401         * modules/sys_stat (Depends-on): Add stat-macros.
56402         * lib/stat_.h (includes): Pick up stat macros.
56403         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56404         if stat macros are broken.
56405         * lib/tempname.c (includes): No need to include "stat-macros.h".
56406         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56407         (direxists, __path_search) [!_LIBC]: Don't compile these in
56408         gnulib; the tmpdir module covers that.
56409         * lib/tempname.h: New file.
56410
56411 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         * COPYING: Explain how gnulib-tool converts licence headers.
56414         Almost all wording by Eric Blake.
56415
56416 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56417
56418         * lib/mbchar.h (is_basic_table): Make read-only.
56419         * lib/mbchar.c (is_basic_table): Likewise.
56420         Reported by John Darrington.
56421
56422 2006-10-25  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/progname.h (set_program_name): Undefine before defining.
56425
56426 2006-10-25  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56429         false for non-gcc C++ compilers.
56430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56431
56432 2006-10-24  Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56435         iconv implementations like Irix iconv.
56436
56437 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56438
56439         * modules/vararrays: New file.
56440         * m4/vararrays.m4: New file, taken from diffutils.
56441         * MODULES.html.sh: New module vararrays.
56442
56443 2006-10-24  Karl Berry  <karl@gnu.org>
56444
56445         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56446         Don't call GNU Unix.
56447
56448 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56449
56450         * users.txt: Add Libtool.
56451
56452         Sync from Libtool:
56453
56454         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56457         to gnulib's policy of including config.h unconditionally.
56458
56459 2006-10-24  Bruno Haible  <bruno@clisp.org>
56460
56461         * modules/wcwidth (Files): Add m4/wint_t.m4.
56462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56463         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56464
56465 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56468         to pacify GCC with some -W flags enabled.  Problem reported by
56469         Bruno Haible.
56470
56471 2006-10-24  Jim Meyering  <jim@meyering.net>
56472
56473         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56474         Reported by Karl Berry.
56475
56476 2006-10-23  Bruno Haible  <bruno@clisp.org>
56477
56478         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56479
56480 2006-10-24  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/gl_list.h: Use C comment style, not C++ comment style.
56483
56484 2006-10-23  Eric Blake  <ebb9@byu.net>
56485
56486         * lib/getaddrinfo.c (includes): Add missing include.
56487
56488 2006-10-23  Bruno Haible  <bruno@clisp.org>
56489             Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         Ability to rename obstack_free.
56492         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56493         obstack_free.
56494         (obstack_free): Invoke the __obstack_free macro.
56495         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56496
56497 2006-10-23  Bruno Haible  <bruno@clisp.org>
56498             Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56501         __argc, __argv from the declaration. (They are defined as macros on
56502         mingw.)
56503
56504 2006-10-22  Bruno Haible  <bruno@clisp.org>
56505
56506         * doc/gnulib-intro.texi: New file.
56507         * doc/gnulib.texi: Include it.
56508
56509 2006-10-21  Bruno Haible  <bruno@clisp.org>
56510
56511         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56512         "Introduction", "Miscellanous Notes", "Particular Modules".
56513
56514 2006-10-21  Bruno Haible  <bruno@clisp.org>
56515
56516         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56517         Change mostlyclean-local rule to avoid sh syntax error from bash
56518         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56519
56520 2006-10-23  Jim Meyering  <jim@meyering.net>
56521
56522         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56523         in place of snprintf.
56524
56525         * modules/inttostr (Files): Add lib/uinttostr.c.
56526         * lib/uinttostr.c (inttostr): New file/function.
56527         * lib/inttostr.h (uinttostr): Declare.
56528         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56529         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56530         Add uinttostr.
56531         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56532
56533 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56534
56535         * lib/canonicalize.c (ELOOP): Define if not already defined.
56536         Problem reported by Bruno Haible in
56537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56538
56539 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56540
56541         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56542         Problem reported by Perry Smith and Ville Laurikari.
56543
56544         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56545         uses.
56546
56547 2006-10-19  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56550         for mingw.
56551
56552 2006-10-19  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56555         Needed for mingw.
56556
56557 2006-10-19  Bruno Haible  <bruno@clisp.org>
56558
56559         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56560
56561 2006-10-19  Bruno Haible  <bruno@clisp.org>
56562
56563         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56564         it.
56565
56566 2006-10-19  Bruno Haible  <bruno@clisp.org>
56567
56568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56569         invocation.
56570
56571 2006-10-19  Bruno Haible  <bruno@clisp.org>
56572
56573         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56574         mountlist by default.
56575
56576 2006-10-16  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/c-strstr.c: Include c-strstr.h.
56579
56580 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56581
56582         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56583         in a slash.
56584
56585 2006-10-18  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/lock.h [C++]: Wrap definitions in extern "C".
56588
56589 2006-10-18  Bruno Haible  <bruno@clisp.org>
56590
56591         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56592         gl_LIBOBJS list.
56593
56594 2006-10-18  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56597
56598 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56599
56600         * lib/xstrtol.h: Include gettext.h.
56601         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56602         Problem reported by Eric Blake.
56603         * modules/xstrtol (Depends-on): Add gettext-h.
56604
56605 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56606
56607         * lib/strftime.c (advance): New macro.
56608         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56609         incomplete type, so you can't add 0 to it.  Problem and patch
56610         reported by Eelco Dolstra for dietlibc.
56611
56612 2006-10-18  Jim Meyering  <jim@meyering.net>
56613
56614         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56615         type for a local, and rename it: s/up/user_proc/.
56616
56617 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56618
56619         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56620         READ_UTMP_USER_PROCESS.
56621         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56622
56623 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56624
56625         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56626         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56627
56628 2006-10-17  Eric Blake  <ebb9@byu.net>
56629
56630         * lib/sigprocmask.c (sigprocmask): Fix typo.
56631
56632         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56633
56634         * modules/clean-temp (Makefile.am): Don't add to make output...
56635         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56636         config.h.
56637
56638 2006-10-17  Bruno Haible  <bruno@clisp.org>
56639
56640         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56641         differently if DEFAULT_TEXT_DOMAIN is set.
56642
56643 2006-10-16  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/clean-temp.c: Include fwriteerror.h.
56646
56647 2006-10-16  Bruno Haible  <bruno@clisp.org>
56648
56649         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56650
56651 2006-10-16  Bruno Haible  <bruno@clisp.org>
56652
56653         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56654         * lib/sigprocmask.h: Include <sys/types.h>.
56655         (sigset_t): Use the system's definition if present.
56656
56657 2006-10-17  Eric Blake  <ebb9@byu.net>
56658
56659         * lib/xvasprintf.c (includes): Assume config.h.
56660         * lib/xasprintf.c (includes): Likewise.
56661
56662 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56663
56664         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56665         at least as wide as intmax_t.
56666
56667 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56668
56669         (Imported from Automake.)
56670         * build-aux/gnupload: Update to version 1.1 of directive file.
56671
56672 2006-10-16  Eric Blake  <ebb9@byu.net>
56673
56674         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56675         match Automake 1.10a.
56676
56677 2006-10-14  Bruno Haible  <bruno@clisp.org>
56678
56679         * modules/sigprocmask: New file.
56680         * lib/sigprocmask.h: New file.
56681         * lib/sigprocmask.c: New file.
56682         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56683         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56684         request sigprocmask.o.
56685         (gl_PREREQ_SIGPROCMASK): New macro.
56686         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56687         (Depends-on): Add sigprocmask.
56688         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56689         gt_SIGNALBLOCKING. Test for 'raise' only once.
56690         * lib/fatal-signal.c: Include sigprocmask.h.
56691         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56692         unblock_fatal_signals): Define always.
56693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56694         sigprocmask.
56695
56696 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56697
56698         Sync from Automake.
56699         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56700         which incorrectly sets the mode of an existing destination
56701         directory.  In some cases the unpatched install-sh could do the
56702         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56703         system.  We hope this is rare in practice, but it's clearly worth
56704         fixing.  Problem reported by Alex Unleashed in
56705         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56706         Also, don't bother to check for -m bugs unless we're using -m;
56707         suggested by Stepan Kasal.
56708
56709 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56710
56711         Sync from Automake.
56712         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56713         `-c' flag, so they appear at the same position as in %FASTDEP%
56714         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56715         which ignores unknown options only after the first non-option.
56716         Bug report against M4 by Nelson H. F. Beebe.
56717
56718 2006-10-13  Jim Meyering  <jim@meyering.net>
56719
56720         Fix a bug in yesterday's change.
56721         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56722         p->fts_statp->st_dev would be used uninitialized.
56723         Ensures that we always call fts_stat on the very first entry.
56724         Miklos Szeredi reported that find -xdev stopped working.
56725
56726 2006-10-12  Bruno Haible  <bruno@clisp.org>
56727
56728         * gnulib-tool (func_get_automake_snippet): Append an automatically
56729         computed EXTRA_DIST augmentation.
56730         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56731         * modules/alloca-opt (Makefile.am): Likewise.
56732         * modules/allocsa (Makefile.am): Likewise.
56733         * modules/arcfour (Makefile.am): Likewise.
56734         * modules/arctwo (Makefile.am): Likewise.
56735         * modules/argmatch (Makefile.am): Likewise.
56736         * modules/argz (Makefile.am): Likewise.
56737         * modules/atexit (Makefile.am): Likewise.
56738         * modules/backupfile (Makefile.am): Likewise.
56739         * modules/byteswap (Makefile.am): Likewise.
56740         * modules/c-strtod (Makefile.am): Likewise.
56741         * modules/c-strtold (Makefile.am): Likewise.
56742         * modules/calloc (Makefile.am): Likewise.
56743         * modules/canon-host (Makefile.am): Likewise.
56744         * modules/canonicalize (Makefile.am): Likewise.
56745         * modules/chdir-long (Makefile.am): Likewise.
56746         * modules/chdir-safer (Makefile.am): Likewise.
56747         * modules/check-version (Makefile.am): Likewise.
56748         * modules/chown (Makefile.am): Likewise.
56749         * modules/cloexec (Makefile.am): Likewise.
56750         * modules/close-stream (Makefile.am): Likewise.
56751         * modules/closeout (Makefile.am): Likewise.
56752         * modules/crc (Makefile.am): Likewise.
56753         * modules/csharpexec (Makefile.am): Likewise.
56754         * modules/cycle-check (Makefile.am): Likewise.
56755         * modules/des (Makefile.am): Likewise.
56756         * modules/dev-ino (Makefile.am): Likewise.
56757         * modules/dirfd (Makefile.am): Likewise.
56758         * modules/dirname (Makefile.am): Likewise.
56759         * modules/dup2 (Makefile.am): Likewise.
56760         * modules/eealloc (Makefile.am): Likewise.
56761         * modules/error (Makefile.am): Likewise.
56762         * modules/euidaccess (Makefile.am): Likewise.
56763         * modules/exclude (Makefile.am): Likewise.
56764         * modules/exitfail (Makefile.am): Likewise.
56765         * modules/fcntl-safer (Makefile.am): Likewise.
56766         * modules/fcntl (Makefile.am): Likewise.
56767         * modules/file-type (Makefile.am): Likewise.
56768         * modules/fileblocks (Makefile.am): Likewise.
56769         * modules/filemode (Makefile.am): Likewise.
56770         * modules/filenamecat (Makefile.am): Likewise.
56771         * modules/fnmatch (Makefile.am): Likewise.
56772         * modules/fopen-safer (Makefile.am): Likewise.
56773         * modules/fpending (Makefile.am): Likewise.
56774         * modules/fprintftime (Makefile.am): Likewise.
56775         * modules/free (Makefile.am): Likewise.
56776         * modules/fsusage (Makefile.am): Likewise.
56777         * modules/ftruncate (Makefile.am): Likewise.
56778         * modules/fts (Makefile.am): Likewise.
56779         * modules/gc-arcfour (Makefile.am): Likewise.
56780         * modules/gc-des (Makefile.am): Likewise.
56781         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56782         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56783         * modules/gc-md4 (Makefile.am): Likewise.
56784         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56785         * modules/gc-sha1 (Makefile.am): Likewise.
56786         * modules/gc (Makefile.am): Likewise.
56787         * modules/getaddrinfo (Makefile.am): Likewise.
56788         * modules/getcwd (Makefile.am): Likewise.
56789         * modules/getdelim (Makefile.am): Likewise.
56790         * modules/getdomainname (Makefile.am): Likewise.
56791         * modules/getgroups (Makefile.am): Likewise.
56792         * modules/gethostname (Makefile.am): Likewise.
56793         * modules/gethrxtime (Makefile.am): Likewise.
56794         * modules/getline (Makefile.am): Likewise.
56795         * modules/getloadavg (Makefile.am): Likewise.
56796         * modules/getlogin_r (Makefile.am): Likewise.
56797         * modules/getndelim2 (Makefile.am): Likewise.
56798         * modules/getopt (Makefile.am): Likewise.
56799         * modules/getpagesize (Makefile.am): Likewise.
56800         * modules/getpass-gnu (Makefile.am): Likewise.
56801         * modules/getpass (Makefile.am): Likewise.
56802         * modules/getsubopt (Makefile.am): Likewise.
56803         * modules/gettime (Makefile.am): Likewise.
56804         * modules/gettimeofday (Makefile.am): Likewise.
56805         * modules/getugroups (Makefile.am): Likewise.
56806         * modules/getusershell (Makefile.am): Likewise.
56807         * modules/glob (Makefile.am): Likewise.
56808         * modules/group-member (Makefile.am): Likewise.
56809         * modules/hard-locale (Makefile.am): Likewise.
56810         * modules/hash (Makefile.am): Likewise.
56811         * modules/hmac-md5 (Makefile.am): Likewise.
56812         * modules/hmac-sha1 (Makefile.am): Likewise.
56813         * modules/human (Makefile.am): Likewise.
56814         * modules/idcache (Makefile.am): Likewise.
56815         * modules/imaxabs (Makefile.am): Likewise.
56816         * modules/imaxdiv (Makefile.am): Likewise.
56817         * modules/inet_ntop (Makefile.am): Likewise.
56818         * modules/inet_pton (Makefile.am): Likewise.
56819         * modules/intprops (Makefile.am): Likewise.
56820         * modules/inttostr (Makefile.am): Likewise.
56821         * modules/inttypes (Makefile.am): Likewise.
56822         * modules/isapipe (Makefile.am): Likewise.
56823         * modules/javaversion (Makefile.am): Likewise.
56824         * modules/lchmod (Makefile.am): Likewise.
56825         * modules/lchown (Makefile.am): Likewise.
56826         * modules/localcharset (Makefile.am): Likewise.
56827         * modules/long-options (Makefile.am): Likewise.
56828         * modules/lstat (Makefile.am): Likewise.
56829         * modules/malloc (Makefile.am): Likewise.
56830         * modules/mathl (Makefile.am): Likewise.
56831         * modules/mbchar (Makefile.am): Likewise.
56832         * modules/md2 (Makefile.am): Likewise.
56833         * modules/md4 (Makefile.am): Likewise.
56834         * modules/md5 (Makefile.am): Likewise.
56835         * modules/memcasecmp (Makefile.am): Likewise.
56836         * modules/memchr (Makefile.am): Likewise.
56837         * modules/memcmp (Makefile.am): Likewise.
56838         * modules/memcoll (Makefile.am): Likewise.
56839         * modules/memcpy (Makefile.am): Likewise.
56840         * modules/memmem (Makefile.am): Likewise.
56841         * modules/memmove (Makefile.am): Likewise.
56842         * modules/mempcpy (Makefile.am): Likewise.
56843         * modules/memrchr (Makefile.am): Likewise.
56844         * modules/memset (Makefile.am): Likewise.
56845         * modules/memxor (Makefile.am): Likewise.
56846         * modules/mkancesdirs (Makefile.am): Likewise.
56847         * modules/mkdir-p (Makefile.am): Likewise.
56848         * modules/mkdir (Makefile.am): Likewise.
56849         * modules/mkdtemp (Makefile.am): Likewise.
56850         * modules/mkstemp (Makefile.am): Likewise.
56851         * modules/mktime (Makefile.am): Likewise.
56852         * modules/modechange (Makefile.am): Likewise.
56853         * modules/mountlist (Makefile.am): Likewise.
56854         * modules/nanosleep (Makefile.am): Likewise.
56855         * modules/obstack (Makefile.am): Likewise.
56856         * modules/openat (Makefile.am): Likewise.
56857         * modules/pagealign_alloc (Makefile.am): Likewise.
56858         * modules/pathmax (Makefile.am): Likewise.
56859         * modules/physmem (Makefile.am): Likewise.
56860         * modules/poll (Makefile.am): Likewise.
56861         * modules/posixtm (Makefile.am): Likewise.
56862         * modules/posixver (Makefile.am): Likewise.
56863         * modules/putenv (Makefile.am): Likewise.
56864         * modules/quote (Makefile.am): Likewise.
56865         * modules/quotearg (Makefile.am): Likewise.
56866         * modules/raise (Makefile.am): Likewise.
56867         * modules/read-file (Makefile.am): Likewise.
56868         * modules/readline (Makefile.am): Likewise.
56869         * modules/readlink (Makefile.am): Likewise.
56870         * modules/readtokens (Makefile.am): Likewise.
56871         * modules/readutmp (Makefile.am): Likewise.
56872         * modules/realloc (Makefile.am): Likewise.
56873         * modules/regex (Makefile.am): Likewise.
56874         * modules/rename-dest-slash (Makefile.am): Likewise.
56875         * modules/rename (Makefile.am): Likewise.
56876         * modules/rijndael (Makefile.am): Likewise.
56877         * modules/rmdir (Makefile.am): Likewise.
56878         * modules/rpmatch (Makefile.am): Likewise.
56879         * modules/safe-read (Makefile.am): Likewise.
56880         * modules/safe-write (Makefile.am): Likewise.
56881         * modules/same-inode (Makefile.am): Likewise.
56882         * modules/same (Makefile.am): Likewise.
56883         * modules/save-cwd (Makefile.am): Likewise.
56884         * modules/savedir (Makefile.am): Likewise.
56885         * modules/setenv (Makefile.am): Likewise.
56886         * modules/settime (Makefile.am): Likewise.
56887         * modules/sha1 (Makefile.am): Likewise.
56888         * modules/sig2str (Makefile.am): Likewise.
56889         * modules/snprintf (Makefile.am): Likewise.
56890         * modules/stat-macros (Makefile.am): Likewise.
56891         * modules/stat-time (Makefile.am): Likewise.
56892         * modules/stdbool (Makefile.am): Likewise.
56893         * modules/stdint (Makefile.am): Likewise.
56894         * modules/stdlib-safer (Makefile.am): Likewise.
56895         * modules/stpcpy (Makefile.am): Likewise.
56896         * modules/stpncpy (Makefile.am): Likewise.
56897         * modules/strcase (Makefile.am): Likewise.
56898         * modules/strcasestr (Makefile.am): Likewise.
56899         * modules/strchrnul (Makefile.am): Likewise.
56900         * modules/strcspn (Makefile.am): Likewise.
56901         * modules/strdup (Makefile.am): Likewise.
56902         * modules/strerror (Makefile.am): Likewise.
56903         * modules/strftime (Makefile.am): Likewise.
56904         * modules/strndup (Makefile.am): Likewise.
56905         * modules/strnlen (Makefile.am): Likewise.
56906         * modules/strpbrk (Makefile.am): Likewise.
56907         * modules/strsep (Makefile.am): Likewise.
56908         * modules/strstr (Makefile.am): Likewise.
56909         * modules/strtod (Makefile.am): Likewise.
56910         * modules/strtoimax (Makefile.am): Likewise.
56911         * modules/strtok_r (Makefile.am): Likewise.
56912         * modules/strtol (Makefile.am): Likewise.
56913         * modules/strtoll (Makefile.am): Likewise.
56914         * modules/strtoul (Makefile.am): Likewise.
56915         * modules/strtoull (Makefile.am): Likewise.
56916         * modules/strtoumax (Makefile.am): Likewise.
56917         * modules/strverscmp (Makefile.am): Likewise.
56918         * modules/sys_socket (Makefile.am): Likewise.
56919         * modules/sys_stat (Makefile.am): Likewise.
56920         * modules/sysexits (Makefile.am): Likewise.
56921         * modules/time_r (Makefile.am): Likewise.
56922         * modules/timegm (Makefile.am): Likewise.
56923         * modules/timespec (Makefile.am): Likewise.
56924         * modules/tmpfile-safer (Makefile.am): Likewise.
56925         * modules/trim (Makefile.am): Likewise.
56926         * modules/unistd-safer (Makefile.am): Likewise.
56927         * modules/unlinkdir (Makefile.am): Likewise.
56928         * modules/unlocked-io (Makefile.am): Likewise.
56929         * modules/userspec (Makefile.am): Likewise.
56930         * modules/utime (Makefile.am): Likewise.
56931         * modules/utimecmp (Makefile.am): Likewise.
56932         * modules/utimens (Makefile.am): Likewise.
56933         * modules/vasnprintf (Makefile.am): Likewise.
56934         * modules/vasprintf (Makefile.am): Likewise.
56935         * modules/vsnprintf (Makefile.am): Likewise.
56936         * modules/xalloc (Makefile.am): Likewise.
56937         * modules/xgetcwd (Makefile.am): Likewise.
56938         * modules/xnanosleep (Makefile.am): Likewise.
56939         * modules/xreadlink (Makefile.am): Likewise.
56940         * modules/xstrtod (Makefile.am): Likewise.
56941         * modules/xstrtol (Makefile.am): Likewise.
56942         * modules/xstrtold (Makefile.am): Likewise.
56943         * modules/yesno (Makefile.am): Likewise.
56944         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56945
56946 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56947
56948         * modules/error (Makefile.am): Distribute files through
56949         EXTRA_DIST, not lib_SOURCES.
56950
56951 2006-10-12  Eric Blake  <ebb9@byu.net>
56952
56953         * modules/error (Makefile.am): Distribute files in /lib.
56954         * modules/obstack (Makefile.am): Likewise.
56955
56956 2006-10-12  Bruno Haible  <bruno@clisp.org>
56957
56958         * modules/acl (Makefile.am): Distribute all files in lib/ through
56959         EXTRA_DIST.
56960         * modules/arcfour (Makefile.am): Likewise.
56961         * modules/arctwo (Makefile.am): Likewise.
56962         * modules/argmatch (Makefile.am): Likewise.
56963         * modules/argz (Makefile.am): Likewise.
56964         * modules/atexit (Makefile.am): Likewise.
56965         * modules/backupfile (Makefile.am): Likewise.
56966         * modules/c-strtod (Makefile.am): Likewise.
56967         * modules/c-strtold (Makefile.am): Likewise.
56968         * modules/calloc (Makefile.am): Likewise.
56969         * modules/canon-host (Makefile.am): Likewise.
56970         * modules/canonicalize (Makefile.am): Likewise.
56971         * modules/chdir-long (Makefile.am): Likewise.
56972         * modules/chdir-safer (Makefile.am): Likewise.
56973         * modules/check-version (Makefile.am): Likewise.
56974         * modules/chown (Makefile.am): Likewise.
56975         * modules/cloexec (Makefile.am): Likewise.
56976         * modules/close-stream (Makefile.am): Likewise.
56977         * modules/closeout (Makefile.am): Likewise.
56978         * modules/crc (Makefile.am): Likewise.
56979         * modules/cycle-check (Makefile.am): Likewise.
56980         * modules/des (Makefile.am): Likewise.
56981         * modules/dirfd (Makefile.am): Likewise.
56982         * modules/dirname (Makefile.am): Likewise.
56983         * modules/dup2 (Makefile.am): Likewise.
56984         * modules/euidaccess (Makefile.am): Likewise.
56985         * modules/exclude (Makefile.am): Likewise.
56986         * modules/exitfail (Makefile.am): Likewise.
56987         * modules/fcntl-safer (Makefile.am): Likewise.
56988         * modules/file-type (Makefile.am): Likewise.
56989         * modules/fileblocks (Makefile.am): Likewise.
56990         * modules/filemode (Makefile.am): Likewise.
56991         * modules/filenamecat (Makefile.am): Likewise.
56992         * modules/fnmatch (Makefile.am): Likewise.
56993         * modules/fopen-safer (Makefile.am): Likewise.
56994         * modules/fpending (Makefile.am): Likewise.
56995         * modules/fprintftime (Makefile.am): Likewise.
56996         * modules/free (Makefile.am): Likewise.
56997         * modules/fsusage (Makefile.am): Likewise.
56998         * modules/ftruncate (Makefile.am): Likewise.
56999         * modules/fts (Makefile.am): Likewise.
57000         * modules/gc (Makefile.am): Likewise.
57001         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57002         * modules/getaddrinfo (Makefile.am): Likewise.
57003         * modules/getcwd (Makefile.am): Likewise.
57004         * modules/getdelim (Makefile.am): Likewise.
57005         * modules/getdomainname (Makefile.am): Likewise.
57006         * modules/getgroups (Makefile.am): Likewise.
57007         * modules/gethostname (Makefile.am): Likewise.
57008         * modules/gethrxtime (Makefile.am): Likewise.
57009         * modules/getline (Makefile.am): Likewise.
57010         * modules/getloadavg (Makefile.am): Likewise.
57011         * modules/getlogin_r (Makefile.am): Likewise.
57012         * modules/getopt (Makefile.am): Likewise.
57013         * modules/getpass (Makefile.am): Likewise.
57014         * modules/getpass-gnu (Makefile.am): Likewise.
57015         * modules/getsubopt (Makefile.am): Likewise.
57016         * modules/gettime (Makefile.am): Likewise.
57017         * modules/gettimeofday (Makefile.am): Likewise.
57018         * modules/getugroups (Makefile.am): Likewise.
57019         * modules/getusershell (Makefile.am): Likewise.
57020         * modules/glob (Makefile.am): Likewise.
57021         * modules/group-member (Makefile.am): Likewise.
57022         * modules/hard-locale (Makefile.am): Likewise.
57023         * modules/hash (Makefile.am): Likewise.
57024         * modules/hmac-md5 (Makefile.am): Likewise.
57025         * modules/hmac-sha1 (Makefile.am): Likewise.
57026         * modules/human (Makefile.am): Likewise.
57027         * modules/idcache (Makefile.am): Likewise.
57028         * modules/imaxabs (Makefile.am): Likewise.
57029         * modules/imaxdiv (Makefile.am): Likewise.
57030         * modules/inet_ntop (Makefile.am): Likewise.
57031         * modules/inet_pton (Makefile.am): Likewise.
57032         * modules/inttostr (Makefile.am): Likewise.
57033         * modules/isapipe (Makefile.am): Likewise.
57034         * modules/lchown (Makefile.am): Likewise.
57035         * modules/long-options (Makefile.am): Likewise.
57036         * modules/lstat (Makefile.am): Likewise.
57037         * modules/malloc (Makefile.am): Likewise.
57038         * modules/mathl (Makefile.am): Likewise.
57039         * modules/mbchar (Makefile.am): Likewise.
57040         * modules/md2 (Makefile.am): Likewise.
57041         * modules/md4 (Makefile.am): Likewise.
57042         * modules/md5 (Makefile.am): Likewise.
57043         * modules/memcasecmp (Makefile.am): Likewise.
57044         * modules/memchr (Makefile.am): Likewise.
57045         * modules/memcmp (Makefile.am): Likewise.
57046         * modules/memcoll (Makefile.am): Likewise.
57047         * modules/memcpy (Makefile.am): Likewise.
57048         * modules/memmem (Makefile.am): Likewise.
57049         * modules/memmove (Makefile.am): Likewise.
57050         * modules/mempcpy (Makefile.am): Likewise.
57051         * modules/memrchr (Makefile.am): Likewise.
57052         * modules/memset (Makefile.am): Likewise.
57053         * modules/memxor (Makefile.am): Likewise.
57054         * modules/mkancesdirs (Makefile.am): Likewise.
57055         * modules/mkdir (Makefile.am): Likewise.
57056         * modules/mkdir-p (Makefile.am): Likewise.
57057         * modules/mkdtemp (Makefile.am): Likewise.
57058         * modules/mkstemp (Makefile.am): Likewise.
57059         * modules/mktime (Makefile.am): Likewise.
57060         * modules/modechange (Makefile.am): Likewise.
57061         * modules/mountlist (Makefile.am): Likewise.
57062         * modules/nanosleep (Makefile.am): Likewise.
57063         * modules/openat (Makefile.am): Likewise.
57064         * modules/pagealign_alloc (Makefile.am): Likewise.
57065         * modules/physmem (Makefile.am): Likewise.
57066         * modules/poll (Makefile.am): Likewise.
57067         * modules/posixtm (Makefile.am): Likewise.
57068         * modules/posixver (Makefile.am): Likewise.
57069         * modules/putenv (Makefile.am): Likewise.
57070         * modules/quote (Makefile.am): Likewise.
57071         * modules/quotearg (Makefile.am): Likewise.
57072         * modules/raise (Makefile.am): Likewise.
57073         * modules/read-file (Makefile.am): Likewise.
57074         * modules/readline (Makefile.am): Likewise.
57075         * modules/readlink (Makefile.am): Likewise.
57076         * modules/readtokens (Makefile.am): Likewise.
57077         * modules/readutmp (Makefile.am): Likewise.
57078         * modules/realloc (Makefile.am): Likewise.
57079         * modules/regex (Makefile.am): Likewise.
57080         * modules/rename (Makefile.am): Likewise.
57081         * modules/rename-dest-slash (Makefile.am): Likewise.
57082         * modules/rijndael (Makefile.am): Likewise.
57083         * modules/rmdir (Makefile.am): Likewise.
57084         * modules/rpmatch (Makefile.am): Likewise.
57085         * modules/safe-read (Makefile.am): Likewise.
57086         * modules/safe-write (Makefile.am): Likewise.
57087         * modules/same (Makefile.am): Likewise.
57088         * modules/save-cwd (Makefile.am): Likewise.
57089         * modules/savedir (Makefile.am): Likewise.
57090         * modules/setenv (Makefile.am): Likewise.
57091         * modules/settime (Makefile.am): Likewise.
57092         * modules/sha1 (Makefile.am): Likewise.
57093         * modules/sig2str (Makefile.am): Likewise.
57094         * modules/snprintf (Makefile.am): Likewise.
57095         * modules/stdlib-safer (Makefile.am): Likewise.
57096         * modules/stpcpy (Makefile.am): Likewise.
57097         * modules/stpncpy (Makefile.am): Likewise.
57098         * modules/strcase (Makefile.am): Likewise.
57099         * modules/strcasestr (Makefile.am): Likewise.
57100         * modules/strchrnul (Makefile.am): Likewise.
57101         * modules/strcspn (Makefile.am): Likewise.
57102         * modules/strdup (Makefile.am): Likewise.
57103         * modules/strerror (Makefile.am): Likewise.
57104         * modules/strftime (Makefile.am): Likewise.
57105         * modules/strndup (Makefile.am): Likewise.
57106         * modules/strnlen (Makefile.am): Likewise.
57107         * modules/strpbrk (Makefile.am): Likewise.
57108         * modules/strsep (Makefile.am): Likewise.
57109         * modules/strstr (Makefile.am): Likewise.
57110         * modules/strtod (Makefile.am): Likewise.
57111         * modules/strtoimax (Makefile.am): Likewise.
57112         * modules/strtok_r (Makefile.am): Likewise.
57113         * modules/strtol (Makefile.am): Likewise.
57114         * modules/strtoll (Makefile.am): Likewise.
57115         * modules/strtoul (Makefile.am): Likewise.
57116         * modules/strtoull (Makefile.am): Likewise.
57117         * modules/strtoumax (Makefile.am): Likewise.
57118         * modules/strverscmp (Makefile.am): Likewise.
57119         * modules/time_r (Makefile.am): Likewise.
57120         * modules/timegm (Makefile.am): Likewise.
57121         * modules/tmpfile-safer (Makefile.am): Likewise.
57122         * modules/unistd-safer (Makefile.am): Likewise.
57123         * modules/unlinkdir (Makefile.am): Likewise.
57124         * modules/userspec (Makefile.am): Likewise.
57125         * modules/utime (Makefile.am): Likewise.
57126         * modules/utimecmp (Makefile.am): Likewise.
57127         * modules/utimens (Makefile.am): Likewise.
57128         * modules/vasnprintf (Makefile.am): Likewise.
57129         * modules/vasprintf (Makefile.am): Likewise.
57130         * modules/vsnprintf (Makefile.am): Likewise.
57131         * modules/xalloc (Makefile.am): Likewise.
57132         * modules/xgetcwd (Makefile.am): Likewise.
57133         * modules/xnanosleep (Makefile.am): Likewise.
57134         * modules/xreadlink (Makefile.am): Likewise.
57135         * modules/xstrtod (Makefile.am): Likewise.
57136         * modules/xstrtol (Makefile.am): Likewise.
57137         * modules/xstrtold (Makefile.am): Likewise.
57138         * modules/yesno (Makefile.am): Likewise.
57139
57140 2006-10-12  Jim Meyering  <jim@meyering.net>
57141
57142         * m4/getloadavg.m4: Revert the change below.
57143
57144         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57145         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57146         fail with a symlink, which is what coreutils' ./bootstrap now
57147         creates by default.
57148
57149 2006-10-12  Bruno Haible  <bruno@clisp.org>
57150
57151         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57152         mingw.
57153         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57154         MSVC and mingw explicitly.
57155
57156 2006-10-11  Simon Josefsson  <jas@extundo.com>
57157             Bruno Haible  <bruno@clisp.org>
57158
57159         Add support for multiple gnulib-tool invocations in the scope of a
57160         single configure.ac file.
57161         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57162         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57163         with the same contents as the _LIBADD variable.
57164         (func_emit_initmacro_start, func_emit_initmacro_end,
57165         func_emit_initmacro_done): New functions.
57166         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57167         gl_LIBOBJS and gl_LTLIBOBJS.
57168
57169 2006-10-11  Bruno Haible  <bruno@clisp.org>
57170
57171         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57172         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57173         autoreconf. Instead, invoke autopoint explicitly but move back the
57174         *.m4 files from gnulib.
57175
57176 2006-10-11  Bruno Haible  <bruno@clisp.org>
57177
57178         * gnulib-tool (func_usage): Make module names after --create-testdir
57179         optional.
57180         (func_create_testdir): If no module was specified, use nearly all
57181         modules.
57182
57183 2006-10-12  Jim Meyering  <jim@meyering.net>
57184
57185         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57186         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57187         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57188         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57189         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57190         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57191         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57192         (fts_set_stat_required): New function.
57193         (fts_open): Defer the calls to fts_stat, if possible or requested.
57194         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57195         into fts_stat itself.
57196         (fts_read): Perform any required (deferred) fts_stat call.
57197         (fts_build): Likewise, for the directory we're about to open and read.
57198         In the readdir loop, carefully decide whether each entry will require
57199         an eventual call to fts_stat, using dirent.d_type info if available.
57200         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57201         a command line argument into this function.  Update all callers.
57202         Map a return value of FTS_DOT to FTS_D for a command line argument.
57203         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57204         Thanks to Miklos Szeredi for his tenacity and for the initial
57205         bug report about "find" failing on a FUSE-based file system.
57206
57207         * lib/fts.c (fts_open): Use consistent indentation.
57208
57209 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57210
57211         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57212         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57213         reported by Jim Meyering.  All uses of cache variables renamed
57214         to match Autoconf's.
57215         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57216         the other one.
57217
57218         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57219         Fix misspelling in diagnostic.
57220
57221 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57222
57223         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57224         defined.  Problem reported by Matthew Woehlke.
57225
57226         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57227         Add support for Tandem NonStop R series.
57228         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57229         Use new macro.
57230
57231         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57232         (has_trailing_slash): Omit size arg; all callers changed.
57233         Omit 'inline', since it doesn't help performance and we'd
57234         need to configure it.
57235         Don't count //, ///, etc. as having a trailing slash.
57236         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57237         (rpl_rename_dest_slash): On failure, use rename's errno rather
57238         than (in some cases) an incorrect or junk errno.
57239         Simplify code by removing need to compute length; this does
57240         cause it to make two passes instead of one over the file name,
57241         but it's worth it.
57242
57243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57244         change, since Autoconf's version may no longer be appropriate now
57245         that we are using CVS Autoconf's version.  Add support for Tandem.
57246
57247 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57248             Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57251         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57252         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57253         gl_AC_TYPE_LONG_LONG.
57254
57255         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57256         instead of HAVE_LONG_LONG.
57257         * lib/printf-args.c (printf_fetchargs): Likewise.
57258         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57259         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57260         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57261         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57262         gl_AC_TYPE_LONG_LONG.
57263
57264 2006-10-11  Bruno Haible  <bruno@clisp.org>
57265
57266         * m4/longlong.m4: Add comments.
57267         * m4/ulonglong.m4: Likewise.
57268
57269 2006-10-10  Bruno Haible  <bruno@clisp.org>
57270
57271         Make it possible to #define stpcpy, strdup to aliases.
57272         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57273         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57274
57275 2006-10-10  Bruno Haible  <bruno@clisp.org>
57276
57277         Make it possible to #define gcd to an alias.
57278         * lib/gcd.c: Include config.h.
57279
57280 2006-10-10  Bruno Haible  <bruno@clisp.org>
57281
57282         Make it possible to #define c_isascii to an alias.
57283         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57284         defined. Undefine the macros before defining them, to avoid gcc
57285         warnings.
57286         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57287         define NO_C_CTYPE_MACROS early.
57288
57289 2006-10-10  Bruno Haible  <bruno@clisp.org>
57290
57291         Make it possible to #define set_program_name to an alias.
57292         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57293         ENABLE_RELOCATABLE early.
57294
57295 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57298         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57299         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57300         More generally, don't assume that 64-bit signed int is available
57301         if unsigned int is, and vice versa.
57302         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57303         unsigned symbols, not on their signed counterparts.
57304         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57305         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57306         (UINT64_C, UINTMAX_C):
57307         Likewise.
57308         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57309         unsigned counterparts.
57310         (Have_long_long, Unsigned): New macros.
57311         (Int): Renamed from INT.
57312         (strtoimax): Use the new macros.
57313         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57314         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57315         * modules/inttypes (inttypes.h): Substitute
57316         HAVE_UNSIGNED_LONG_LONG_INT.
57317         * modules/stdint (stdint.h): Likewise.
57318         (Files): Add m4/ulonglong.m4.
57319
57320 2006-10-10  Bruno Haible  <bruno@clisp.org>
57321
57322         Fix a gcc -Wshadow warning.
57323         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57324         to 'bucket'.
57325         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57326         gl_linked_indexof_from_to): Likewise.
57327         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57328         Likewise.
57329         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57330         Likewise.
57331         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57332         Reported by Eric Blake.
57333
57334 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57337         for NetBSD.  Problem reported by Bruno Haible.
57338
57339 2006-10-09  Jim Meyering  <jim@meyering.net>
57340
57341         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57342         Patch from Bruno Haible.
57343
57344 2006-10-09  Jim Meyering  <jim@meyering.net>
57345
57346         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57347         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57348         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57349
57350 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57351
57352         Don't include <config.h> twice; this doesn't work in some cases,
57353         e.g., when config.h has "#define intmax_t long long int" and
57354         we include <config.h>, <inttypes.h>, <config.h> in that order.
57355         Problem reported by Matthew Woehlke in:
57356         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57357         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57358         * lib/fts-cycle.c: Don't include config.h.
57359         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57360         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57361         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57362         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57363         inttypes.h.
57364         * lib/xstrtoumax.c: Likewise.
57365         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57366         __strtol and the like, so that this module is more like its siblings.
57367         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57368         Remove; no longer needed now that we assume gnulib inttypes.h.
57369
57370 2006-10-08  Bruno Haible  <bruno@clisp.org>
57371
57372         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57373         option.
57374
57375 2006-10-07  Jim Meyering  <jim@meyering.net>
57376
57377         * modules/inttypes (inttypes.h): Revert what seems to have been
57378         an inadvertent part of today's change: use "|", not "/" in the
57379         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57380
57381 2006-10-07  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/sublist: New file.
57384
57385 2006-10-07  Bruno Haible  <bruno@clisp.org>
57386
57387         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57388         * modules/argz (argz.h): Likewise.
57389         * modules/arpa_inet (arpa/inet.h): Likewise.
57390         * modules/byteswap (byteswap.h): Likewise.
57391         * modules/configmake (configmake.h): Likewise.
57392         * modules/fcntl (fcntl.h): Likewise.
57393         * modules/fnmatch (fnmatch.h): Likewise.
57394         * modules/getopt (getopt.h): Likewise.
57395         * modules/glob (glob.h): Likewise.
57396         * modules/inttypes (inttypes.h): Likewise.
57397         * modules/netinet_in (netinet/in.h): Likewise.
57398         * modules/poll (poll.h): Likewise.
57399         * modules/stdbool (stdbool.h): Likewise.
57400         * modules/stdint (stdint.h): Likewise.
57401         * modules/sys_select (sys/select.h): Likewise.
57402         * modules/sys_socket (sys/socket.h): Likewise.
57403         * modules/sys_stat (sys/stat.h): Likewise.
57404         * modules/sysexits (sysexits.h): Likewise.
57405         * modules/unistd (unistd.h): Likewise.
57406         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57407         Add a "DO NOT EDIT" comment to the generated file.
57408         (func_import): Likewise for gnulib-comp.m4.
57409
57410 2006-10-07  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/gl_sublist.h: New file.
57413         * lib/gl_sublist.c: New file.
57414
57415 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57416
57417         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57418         name (relative to the original working directory) and the file
57419         name component (relative to the temporary working directory).  All
57420         callers changed.
57421         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57422         * lib/mkdir-p.c (make_dir_parents): Likewise.
57423         * lib/mkdir-p.h (make_dir_parents): Likewise.
57424
57425 2006-10-06  Eric Blake  <ebb9@byu.net>
57426
57427         Define several macros for use by the clean-temp module.
57428         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57429         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57430         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57431
57432         * lib/clean-temp.h (close_stream_temp): New declaration.
57433         * lib/clean-temp.c (includes): Pull in headers according to what
57434         other modules are in use.
57435         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57436
57437 2006-10-06  Bruno Haible  <bruno@clisp.org>
57438
57439         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57440         instead of fopen, fwriteerror.
57441
57442 2006-10-06  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57445         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57446         int.
57447         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57448         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57449         Return an error indicator.
57450         Suggested by Eric Blake.
57451
57452 2006-10-06  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57455         Reported by Eric Blake.
57456
57457 2006-10-06  Bruno Haible  <bruno@clisp.org>
57458
57459         * modules/closeout (Description): Mention stderr too.
57460
57461 2006-10-06  Bruno Haible  <bruno@clisp.org>
57462         and Paul Eggert  <eggert@cs.ucla.edu>
57463
57464         * lib/closeout.c (close_stdout): Also close stderr.
57465         * lib/closeout.h: Update comment.
57466
57467 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57470         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57471         * lib/dirchownmod.c: Include lchown.h.
57472         * lib/lchown.c: Don't include files that lchown.h now includes.
57473         Don't declare chown, since lchown.h now does that.
57474         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57475         (lchown): Define to rpl_chown if lchown is declared but
57476         does not exist.  Declare using a prototype if lchown is not
57477         declared.  Add a copyright notice.
57478         * lib/mkstemp.h: Include <unistd.h>.
57479         * lib/openat.c: Include lchown.h.
57480
57481         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57482         we now test for that separately.
57483         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57484         rather than O_NOFOLLOW, when testing whether it's possible to
57485         avoid a race condition reliably.
57486         * lib/savewd.c (savewd_chdir): Likewise.
57487
57488         Remove macros that are no longer needed now that stdint.h is
57489         reliable.
57490         * lib/fsusage.c (UINTMAX_MAX): Remove.
57491         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57492         * lib/utimecmp.c (SIZE_MAX): Remove.
57493
57494         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57495
57496         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57497         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57498         O_NOATIME works.
57499
57500 2006-10-05  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/gl_list.h (gl_sortedlist_search_from_to,
57503         gl_sortedlist_indexof_from_to): New declarations.
57504         (gl_list_implementation): New fields sortedlist_search_from_to,
57505         sortedlist_indexof_from_to.
57506         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57507         inline functions.
57508         * lib/gl_list.c (gl_sortedlist_search_from_to,
57509         gl_sortedlist_indexof_from_to): New functions.
57510         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57511         function.
57512         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57513         (gl_array_sortedlist_search_from_to): New function.
57514         (gl_array_list_implementation): Update.
57515         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57516         function.
57517         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57518         (gl_carray_sortedlist_search_from_to): New function.
57519         (gl_carray_list_implementation): Update.
57520         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57521         gl_linked_sortedlist_indexof_from_to): New functions.
57522         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57523         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57524         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57525         gl_tree_sortedlist_indexof_from_to): New functions.
57526         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57527         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57528         Update.
57529         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57530         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57531         Update.
57532
57533 2006-10-05  Bruno Haible  <bruno@clisp.org>
57534
57535         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57536         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57537         (struct gl_list_implementation): Add fields search_from_to,
57538         indexof_from_to. Remove fields search, indexof.
57539         (gl_list_search): Use the search_from_to method.
57540         (gl_list_search_from, gl_list_search_from_to): New functions.
57541         (gl_list_indexof): Use the indexof_from_to method.
57542         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57543         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57544         (gl_list_search_from, gl_list_search_from_to): New functions.
57545         (gl_list_indexof): Use the indexof_from_to method.
57546         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57547         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57548         gl_array_indexof. Add start_index, end_index arguments.
57549         (gl_array_search_from_to): Renamed from gl_array_search. Add
57550         start_index, end_index arguments.
57551         (gl_array_remove, gl_array_list_implementation): Update.
57552         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57553         gl_carray_indexof. Add start_index, end_index arguments.
57554         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57555         start_index, end_index arguments.
57556         (gl_carray_remove, gl_carray_list_implementation): Update.
57557         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57558         gl_linked_search. Add start_index, end_index arguments.
57559         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57560         start_index, end_index arguments.
57561         (gl_linked_remove): Update.
57562         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57563         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57564         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57565         field to 'size_t'.
57566         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57567         gl_tree_search. Add start_index, end_index arguments.
57568         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57569         start_index, end_index arguments.
57570         (gl_tree_remove): Update.
57571         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57572         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57573         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57574         function.
57575         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57576         gl_tree_search. Add start_index, end_index arguments.
57577         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57578         start_index, end_index arguments.
57579         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57580         Update.
57581         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57582
57583 2006-10-05  Bruno Haible  <bruno@clisp.org>
57584
57585         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57586
57587         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57588         fwriteerror_temp): New declarations.
57589         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57590         (descriptors): New variable.
57591         (cleanup): First, close the descriptors.
57592         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57593         fclose_temp, fwriteerror_temp): New functions.
57594
57595 2006-10-04  Jim Meyering  <jim@meyering.net>
57596
57597         * lib/fts.c (fts_open): Tiny comment change.
57598
57599 2006-10-04  Bruno Haible  <bruno@clisp.org>
57600
57601         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57602         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57603         gl_LOCK_BODY.
57604         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57605         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57606         gl_LOCK_EARLY_BODY.
57607         (gl_LOCK): Require gl_LOCK_BODY.
57608
57609 2006-10-04  Bruno Haible  <bruno@clisp.org>
57610
57611         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57612         (gl_oset_search_atleast): New declaration.
57613         (struct gl_oset_implementation): Add field 'search_atleast'.
57614         (gl_oset_search_atleast): New inline function.
57615         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57616         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57617         (gl_array_oset_implementation): Update.
57618         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57619         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57620         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57621
57622 2006-10-04  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57625
57626 2006-10-03  Bruno Haible  <bruno@clisp.org>
57627
57628         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57629         from gl_avltreehash_list_implementation.
57630
57631 2006-10-03  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/gl_oset.c (gl_oset_add): Fix return type.
57634
57635 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57636
57637         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57638
57639 2006-10-02  Eric Blake  <ebb9@byu.net>
57640
57641         * modules/strnlen (Depends-on): Add extensions.
57642
57643 2006-10-02  Eric Blake  <ebb9@byu.net>
57644
57645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57646         definition in 2.60+.
57647
57648 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57649
57650         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57651         checks.
57652
57653 2006-10-02  Bruno Haible  <bruno@clisp.org>
57654
57655         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57656         to the AUTOMAKE_OPTIONS.
57657         Reported by Jim Meyering.
57658
57659 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         Work around bug in Solaris 10 /proc file system:
57662         /proc/self/fd/NNN/.. isn't the parent directory of
57663         the directory whose file descriptor is NNN.  This needs to
57664         be worked around at run time, not compile time, since a
57665         program might be built on Solaris 8, where things work, and
57666         run on Solaris 10.
57667         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57668         to use the following interface instead:
57669         (OPENAT_BUFFER_SIZE): New macro.
57670         (openat_proc_name): New function.
57671         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57672         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57673         Likewise.
57674         * lib/openat-proc.c: New file.
57675         * modules/openat (Files): Add lib/openat-proc.c.
57676         (Depends-on): Add same-inode, stdbool.
57677         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57678
57679 2006-09-29  Bruno Haible  <bruno@clisp.org>
57680
57681         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57682         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57683         argument. Set stdout_closed before testing for ferror, not after.
57684         (fwriteerror, fwriteerror_no_ebadf): New functions.
57685
57686 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57687
57688         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57689
57690 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57691
57692         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57693         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57694
57695 2006-09-28  Jim Meyering  <jim@meyering.net>
57696
57697         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57698         Include <unistd.h>.
57699
57700 2006-09-28  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57703         * modules/linkedhash-list (Depends-on): Likewise.
57704         * modules/rbtreehash-list (Depends-on): Likewise.
57705
57706 2006-09-28  Bruno Haible  <bruno@clisp.org>
57707
57708         * lib/strndup.h: Simplify the redefinition of strndup.
57709         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57710         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57711
57712 2006-09-28  Bruno Haible  <bruno@clisp.org>
57713
57714         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57715         * lib/gl_linkedhash_list.c: Likewise.
57716         * lib/gl_rbtreehash_list.c: Likewise.
57717
57718 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57719
57720         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57721         getaddrinfo.
57722
57723         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57724         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57725         it causes <stdio_ext.h> to cause a compile-time error.
57726         Problem reported by Nelson H. F. Beebe.
57727         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57728         of HAVE_DECL___PENDING.
57729
57730         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57731         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57732         declaration.
57733
57734 2006-09-27  Jim Meyering  <jim@meyering.net>
57735
57736         This file could end up with a definition for a function
57737         named __strndup, rather than rpl_strndup on a system with
57738         incomplete weak_alias support.
57739         * lib/strndup.c (strndup): Rename from __strndup.
57740         Remove #defines that used to map __strndup to strndup.
57741         Don't use K&R prototypes.
57742         Remove LIBC-related code, since this file is not sync'd with glibc.
57743         * lib/strndup.h: Revamp, accordingly.
57744         * m4/strndup.m4: Modernize.
57745
57746 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * modules/savewd (Depends-on): Add 'raise'.
57749         * lib/savewd.c: Include <signal.h>, for 'raise'.
57750
57751 2006-09-26  Jim Meyering  <jim@meyering.net>
57752
57753         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57754         when we detect Darwin 8.7.0's acl_get_file bug.
57755         Rearrange to perform the new (below) run-test while $LIBS
57756         contains any acl-related library.  Set USE_ACL at the end.
57757         (gl_ACL_GET_FILE): New function.
57758
57759 2006-09-26  Eric Blake  <ebb9@byu.net>
57760
57761         * lib/verror.c: Include <config.h> unconditionally.
57762
57763 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57764
57765         * modules/clock-time (Maintainer): Add self.
57766         * modules/getlogin_r (Depends-on): Add extensions.
57767
57768 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57769
57770         * modules/clock-time: New module.
57771         * modules/nanosleep (Depends-on): Add clock-time.
57772         * modules/gethrxtime (Depends-on): Likewise.
57773         * modules/gettime (Depends-on): Likewise.
57774         * modules/settime (Depends-on): Likewise.
57775
57776         * modules/fts-lgpl: Depend on openat.
57777         * modules/mkancesdirs: Depend on savewd.
57778         * modules/mkdir-p: Likewise.
57779
57780 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57781
57782         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57783
57784         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57785         `gl_have_arbitrary_file_name_length_limit' to
57786         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57787         actually works between configure runs.
57788
57789 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57790             Bruno Haible  <bruno@clisp.org>
57791
57792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57793
57794 2006-09-25  Jim Meyering  <jim@meyering.net>
57795
57796         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57797         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57798
57799 2006-09-25  Eric Blake  <ebb9@byu.net>
57800
57801         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57802         exec's in 2006-09-18 patch when shuffling fds.
57803
57804 2006-09-25  Bruno Haible  <bruno@clisp.org>
57805
57806         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57807         Reported by Jim Meyering.
57808
57809 2006-09-24  Jim Meyering  <jim@meyering.net>
57810
57811         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57812         compare a pointer against a literal "0".  That caused failures with
57813         at least HP-UX's hpcc.
57814
57815 2006-09-22  Simon Josefsson  <jas@extundo.com>
57816
57817         * modules/gc-sha1:
57818         * modules/gc-md4:
57819         * modules/gc-hmac-sha1:
57820         * modules/gc-hmac-md5:
57821         * modules/gc-des:
57822         * modules/gc-arcfour: Distribute more files.
57823
57824 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57825
57826         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57827         (gl_linked_iterator_from_to): Initialize struct completely.
57828         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57829         (gl_tree_iterator_from_to): Likewise
57830         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57831         * lib/gl_array_list.c [lint] (gl_array_iterator)
57832         (gl_array_iterator_from_to): Likewise.
57833         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57834         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57835         (gl_carray_iterator_from_to): Likewise.
57836
57837         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57838         * lib/md4.c (md4_process_block): Remove unused variable.
57839         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57840         parentheses for clarity.
57841
57842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57843
57844         * modules/bison-i18n (Depends-on): Add gettext.
57845
57846 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57847
57848         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57849         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57850         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57851         also add missing comma that caused broken test.
57852         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57853         stdlib.h, for `abort'.
57854         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57855         variables.
57856         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57857         include unistd.h if present, for `rmdir'.
57858         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57859         variables.
57860         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57861         in the process include standard headers for prototypes.
57862         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57863         gets declared on GNU/Linux.
57864         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57865         unistd.h, for `rmdir'.
57866         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57867
57868         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57869         always true.
57870         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57871
57872         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57873
57874 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57875
57876         * gnulib-tool (func_version): Create output all at once.  This
57877         may help avoid triggering unnecessary SIGPIPEs, and at any
57878         rate it doesn't hurt.
57879
57880 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57881             Bruno Haible  <bruno@clisp.org>
57882
57883         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57884         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57885         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57886
57887         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57888         (gl_FUNC_VASPRINTF): Invoke it.
57889
57890 2006-09-22  Bruno Haible  <bruno@clisp.org>
57891
57892         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57893         getloadavg.c as first argument.
57894
57895 2006-09-22  Bruno Haible  <bruno@clisp.org>
57896
57897         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57898         at the beginning of the gl_INIT macro.
57899         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57900         gl_GETLOADAVG.
57901
57902 2006-09-22  Bruno Haible  <bruno@clisp.org>
57903
57904         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57905         module.
57906         Suggested by Ralf Wildenhues.
57907
57908 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         Import this patch from libc:
57911
57912         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57913
57914         * lib/regex_internal.c (re_string_reconstruct): Handle
57915         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57916         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57917         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57918         re_string_context_at.
57919
57920         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57921         now requires it.
57922         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57923         gl_REGEX now does it for us.
57924         (gl_REGEX): Add test taken from
57925         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57926
57927         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57928         Check that large offsets work.  Modernize Autoconf usages.
57929         Prefer "yes" to mean a good thing rather than a bad.
57930         Don't put "#define mkstemp" in config.h, as this might interfere
57931         with standard system headers that "#define mkstemp mkstemp64".
57932
57933         * modules/mkstemp (Depends-on): Add extensions, so that
57934         mkstemp is visible on some platforms.
57935         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57936         (Include): Change to "mkstemp.h" from <stdlib.h>.
57937         (Files): Add mkstemp.h.
57938
57939         * lib/mkstemp.h: New file, since some standard headers
57940         #define mkstemp.
57941         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57942         Include "mkstemp.h".
57943         Make the _LIBC code resemble glibc original more,
57944         e.g., use K&R style.
57945         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57946         (mkstemp): Remove, since mkstemp.h does this for us.
57947         * lib/stdlib--.h: Include mkstemp.h.
57948
57949         Import this patch from libc:
57950
57951         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57952
57953         * lib/tempname.c (__gen_tempname): Change attempts_min
57954         into a macro.  Use preprocessor to decide how to initialize
57955         attempts [Coverity CID 67].
57956
57957 2006-09-20  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/mkdtemp.c: Import from libc.
57960         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57961                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57962                 attempts_min into a macro.  Use preprocessor to decide how to
57963                 initialize attempts [Coverity CID 67].
57964         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57965                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57966                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57967
57968 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57969
57970         * gnulib-tool (func_exit): New function, to allow to pass the
57971         exit status portably through the trap.  Use everywhere.
57972         (--help, --version): Signal a write error.
57973         (trap): catch SIGPIPE, for write errors.
57974         Exit at the end of the trap, with the correct exit status.
57975
57976 2006-09-19  Karl Berry  <karl@gnu.org>
57977
57978         * doc/gnulib.texi: note about the license texinfo files.
57979
57980 2006-09-19  Eric Blake  <ebb9@byu.net>
57981
57982         * gnulib-tool: Avoid space-tab.
57983
57984 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57985
57986         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57987         that prevented coreutils 6.1 from building.  Problem reported
57988         by Petter Reinholdtsen.
57989
57990 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57991
57992         * gnulib-tool (avoidlist): Fix typo that broke options like
57993         --avoid=lock that are used by coreutils bootstrap.
57994
57995 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57996
57997         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57998         more systematically.
57999
58000 2006-09-18  Jim Meyering  <jim@meyering.net>
58001
58002         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58003
58004 2006-09-18  Bruno Haible  <bruno@clisp.org>
58005
58006         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58007
58008 2006-09-18  Bruno Haible  <bruno@clisp.org>
58009
58010         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58011         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58012         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58013         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58014         * m4/gettext.m4: Require autoconf >= 2.52.
58015         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58016         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58017         of gl_cv_header_inttypes_h.
58018
58019 2006-09-18  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/javaversion.c: Include configmake.h.
58022
58023 2006-09-18  Bruno Haible  <bruno@clisp.org>
58024
58025         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58026         avoid that the while loops be executed in a subshell.
58027
58028 2006-09-18  Bruno Haible  <bruno@clisp.org>
58029
58030         * MODULES.html.sh (func_module): Break long lines.
58031         Suggested by Bruce Korb <bkorb@gnu.org>.
58032
58033 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58034
58035         Speed up by a factor of 1.12.
58036         * gnulib-tool (nl): New variable.
58037         (func_import): Rewrite include directive extraction to only read each
58038         directive once.
58039
58040 2006-09-17  Bruno Haible  <bruno@clisp.org>
58041
58042         * modules/javaversion (Makefile.am): Remove DEFS setting.
58043         (Depends-on): Add configmake, for PKGDATADIR definition.
58044
58045 2006-09-17  Bruno Haible  <bruno@clisp.org>
58046
58047         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58048
58049 2006-09-17  Bruno Haible  <bruno@clisp.org>
58050
58051         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58052         (func_modules_transitive_closure, func_modules_add_dummy,
58053         func_modules_to_filelist, func_import, func_create_testdir,
58054         func_create_megatestdir, ...): Use it wherever possible.
58055         Suggested by Ralf Wildenhues.
58056
58057 2006-09-16  Karl Berry  <karl@gnu.org>
58058
58059         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58060         to avoid sectioning errors.
58061         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58062         [ifinfo]: blank line after @center-ed titles.
58063         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58064         Spell FSF address consistently with others.
58065         (These changes approved by rms.)
58066
58067 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58068
58069         Speed up by a factor of 1.61.
58070         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58071         already checked module names again.
58072
58073 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58074
58075         Speed up by a factor of 1.13.
58076         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58077         for new_files, and the input to func_add_or_update.
58078
58079 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58080
58081         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58082         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58083
58084 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * modules/mkancesdirs (Depends-on): Add fcntl.
58087         * modules/savewd: New file.
58088         * MODULES.html.sh (File system functions): Add savewd.
58089
58090         * modules/configmake (Makefile.am): Add support for the
58091         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58092
58093 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58094
58095         * m4/savewd.m4: New file.
58096
58097 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58098
58099         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58100         (dirchownmod): New arg FD.  All callers changed.
58101         Use FD rather than opening the directory ourself, as opening is
58102         now the caller's responsibility.
58103         * lib/dirchownmod.h: Likewise.
58104         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58105         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58106         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58107         (test_dir): Remove.
58108         (mkancesdirs): Return length of prefix of FILE that has already
58109         been made, or -2 if there is a child doing the work.  Redo
58110         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58111         ".", and treat ".." specially since it might stray back into
58112         already-created areas.  Use a subprocess if necessary.  New arg
58113         WD; all users changed.  MAKE_DIR function should now return 1
58114         if it creates a directory that is not readable.  Return -2 if
58115         a child process is spun off.
58116         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58117         Adjust signature to match code.
58118         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58119         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58120         all users changed.
58121         * lib/savewd.c, lib/savewd.h: New files.
58122
58123 2006-09-15  Jim Meyering  <jim@meyering.net>
58124
58125         * modules/rename-dest-slash: New module.
58126         * MODULES.html.sh (posix_compat): Add it here.
58127
58128         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58129
58130 2006-09-15  Jim Meyering  <jim@meyering.net>
58131
58132         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58133         file.
58134
58135         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58136
58137 2006-09-15  Jim Meyering  <jim@meyering.net>
58138
58139         * lib/rename-dest-slash.c (has_trailing_slash): Use
58140         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58141         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58142         test before testing whether SRC is a directory.
58143         Suggestions from Bruno Haible.
58144
58145         Avoid a warning about an unused variable.
58146         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58147         into the #ifdef block where it's used.
58148
58149         * lib/rename-dest-slash.c: New file.
58150
58151 2006-09-14  Bruno Haible  <bruno@clisp.org>
58152
58153         * lib/allocsa.c: Include <config.h> unconditionally.
58154         * lib/asnprintf.c: Likewise.
58155         * lib/asprintf.c: Likewise.
58156         * lib/c-strcasecmp.c: Likewise.
58157         * lib/c-strcasestr.c: Likewise.
58158         * lib/c-strncasecmp.c: Likewise.
58159         * lib/c-strstr.c: Likewise.
58160         * lib/classpath.c: Likewise.
58161         * lib/clean-temp.c: Likewise.
58162         * lib/concatpath.c: Likewise.
58163         * lib/copy-file.c: Likewise.
58164         * lib/csharpcomp.c: Likewise.
58165         * lib/csharpexec.c: Likewise.
58166         * lib/execute.c: Likewise.
58167         * lib/fatal-signal.c: Likewise.
58168         * lib/findprog.c: Likewise.
58169         * lib/fwriteerror.c: Likewise.
58170         * lib/gl_array_list.c: Likewise.
58171         * lib/gl_array_oset.c: Likewise.
58172         * lib/gl_avltree_list.c: Likewise.
58173         * lib/gl_avltree_oset.c: Likewise.
58174         * lib/gl_avltreehash_list.c: Likewise.
58175         * lib/gl_carray_list.c: Likewise.
58176         * lib/gl_linked_list.c: Likewise.
58177         * lib/gl_linkedhash_list.c: Likewise.
58178         * lib/gl_list.c: Likewise.
58179         * lib/gl_oset.c: Likewise.
58180         * lib/gl_rbtree_list.c: Likewise.
58181         * lib/gl_rbtree_oset.c: Likewise.
58182         * lib/gl_rbtreehash_list.c: Likewise.
58183         * lib/imaxabs.c: Likewise.
58184         * lib/imaxdiv.c: Likewise.
58185         * lib/javacomp.c: Likewise.
58186         * lib/javaexec.c: Likewise.
58187         * lib/javaversion.c: Likewise.
58188         * lib/linebreak.c: Likewise.
58189         * lib/localcharset.c: Likewise.
58190         * lib/lock.c: Likewise.
58191         * lib/mbchar.c: Likewise.
58192         * lib/mbswidth.c: Likewise.
58193         * lib/mkdtemp.c: Likewise.
58194         * lib/pipe.c: Likewise.
58195         * lib/printf-args.c: Likewise.
58196         * lib/printf-parse.c: Likewise.
58197         * lib/progname.c: Likewise.
58198         * lib/progreloc.c: Likewise.
58199         * lib/readlink.c: Likewise.
58200         * lib/sh-quote.c: Likewise.
58201         * lib/stpcpy.c: Likewise.
58202         * lib/stpncpy.c: Likewise.
58203         * lib/strcasecmp.c: Likewise.
58204         * lib/strcasestr.c: Likewise.
58205         * lib/strcspn.c: Likewise.
58206         * lib/striconv.c: Likewise.
58207         * lib/strncasecmp.c: Likewise.
58208         * lib/strnlen1.c: Likewise.
58209         * lib/strstr.c: Likewise.
58210         * lib/strtok_r.c: Likewise.
58211         * lib/tls.c: Likewise.
58212         * lib/tmpdir.c: Likewise.
58213         * lib/unicodeio.c: Likewise.
58214         * lib/unsetenv.c: Likewise.
58215         * lib/vasnprintf.c: Likewise.
58216         * lib/vasprintf.c: Likewise.
58217         * lib/wait-process.c: Likewise.
58218         * lib/xallocsa.c: Likewise.
58219         * lib/xsetenv.c: Likewise.
58220         * lib/xstriconv.c: Likewise.
58221
58222 2006-09-13  Simon Josefsson  <jas@extundo.com>
58223
58224         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58225         that internally, suggested by Ralf Wildenhues
58226         <Ralf.Wildenhues@gmx.de>.
58227
58228 2006-09-13  Simon Josefsson  <jas@extundo.com>
58229
58230         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58231         @LIBOBJS@.
58232         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58233
58234 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58235
58236         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58237         longer worry about uses that don't define HAVE_CONFIG_H.
58238         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58239         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58240         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58241         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58242         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58243         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58244         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58245         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58246         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58247         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58248         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58249         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58250         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58251         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58252         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58253         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58254         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58255         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58256         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58257         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58258         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58259         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58260         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58261         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58262         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58263         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58264         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58265         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58266         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58267         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58268         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58269         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58270         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58271         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58272         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58273         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58274         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58275         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58276         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58277         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58278         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58279         Likewise.
58280
58281 2006-09-13  Eric Blake  <ebb9@byu.net>
58282
58283         * lib/getopt.c: Fix typo in last commit.
58284
58285 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58286
58287         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58288         dgettext.
58289
58290 2006-09-12  Jim Meyering  <jim@meyering.net>
58291
58292         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58293         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58294         Reported by Nelson H. F. Beebe.
58295
58296 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58297
58298         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58299         program_invocation_name and program_invocation_short_name are
58300         initialized.
58301         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58302         and program_invocation_short_name to argp.h, so they are visible
58303         to user programs.
58304         * lib/argp.h: Likewise
58305
58306 2006-09-10  Bruno Haible  <bruno@clisp.org>
58307
58308         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58309         m4/inttypes_h.m4, m4/uintmax_t.m4.
58310
58311 2006-09-10  Bruno Haible  <bruno@clisp.org>
58312
58313         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58314         gl_AC_TYPE_UINTMAX_T.
58315
58316 2006-09-10  Bruno Haible  <bruno@clisp.org>
58317
58318         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58319
58320 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58321
58322         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58323         convention.  Text proposed by Bruno Haible.
58324         (struct argp_option): Document the use of N_() wrappers.
58325
58326         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58327         '\v', and translate the two parts separately, instead of feeding
58328         the whole string to gettext.  This allows to exclude
58329         '\v' from the strings visible to the translator by writing doc
58330         strings as N_("..") "\v" N_("..").
58331
58332 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58333
58334         * config/srclist.txt: Undo latest change; the bug was fixed.
58335
58336 2006-09-09  Bruno Haible  <bruno@clisp.org>
58337
58338         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58339         assignments if building a library without libtool.
58340         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58341         in func_emit_lib_Makefile_am.
58342         (func_import): When building a static library libfoo.a, arrange to
58343         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58344         (func_create_testdir): Likewise.
58345         * modules/gc (configure.ac, Makefile.am): If building statically,
58346         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58347         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58348         * modules/striconv (configure.ac, Makefile.am): Likewise.
58349         Based on a suggestion by Ralf Wildenhues.
58350
58351 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58352
58353         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58354         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58355         Also:
58356
58357         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58358         Add year_2050_test to catch glibc bug 2821
58359         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58360
58361         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58362         Prefer #ifdef to #if.
58363
58364         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58365         Return from 'main' instead of calling 'exit'.
58366
58367 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58370         returned the maximum time_t value rather than (time_t) -1.
58371         Problem originally reported by William Bardwell
58372         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58373
58374         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58375         Moved to here ...
58376         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58377         ... from here.
58378
58379 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58380
58381         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58382         2821 is fixed.
58383
58384 2006-09-08  Jim Meyering  <jim@meyering.net>
58385
58386         Don't make generated files read-only.  That would bother too many
58387         people.  However, do retain the ability to work when targets are
58388         read-only: remove the destination and temporary files before writing
58389         them (when generated via sed or echo), or by using the -f option for
58390         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58391         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58392         * modules/byteswap, modules/configmake, modules/fcntl:
58393         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58394         * modules/localcharset, modules/netinet_in, modules/poll:
58395         * modules/stdbool, modules/stdint, modules/sys_select:
58396         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58397
58398 2006-09-08  Jim Meyering  <jim@meyering.net>
58399
58400         Avoid new build failure on FreeBSD 6.0.
58401         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58402         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58403         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58404
58405 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58406
58407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58408
58409 2006-09-07  Jim Meyering  <jim@meyering.net>
58410
58411         Fix global typo in last change: use chmod u-w, not chmod u-x.
58412         Spotted by Paul Eggert and Bruce Korb.
58413         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58414         * modules/byteswap, modules/configmake, modules/fcntl:
58415         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58416         * modules/localcharset, modules/netinet_in, modules/poll:
58417         * modules/stdbool, modules/stdint, modules/sys_select:
58418         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58419
58420 2006-09-06  Jim Meyering  <jim@meyering.net>
58421
58422         Make generated files be read-only.
58423         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58424         Ensure that each generated file is now read-only.
58425         * modules/argz: Likewise.
58426         * modules/arpa_inet: Likewise.
58427         * modules/byteswap: Likewise.
58428         * modules/configmake: Likewise.
58429         * modules/fcntl: Likewise.
58430         * modules/fnmatch: Likewise.
58431         * modules/getopt: Likewise.
58432         * modules/glob: Likewise.
58433         * modules/inttypes: Likewise.
58434         * modules/netinet_in: Likewise.
58435         * modules/poll: Likewise.
58436         * modules/stdbool: Likewise.
58437         * modules/stdint: Likewise.
58438         * modules/sys_select: Likewise.
58439         * modules/sys_socket: Likewise.
58440         * modules/sys_stat: Likewise.
58441         * modules/sysexits: Likewise.
58442         * modules/localcharset: Same as above, but continue using temporary
58443         file named "t-$@" (why different?) rather than the "$@-t" used
58444         everywhere else.
58445
58446         * modules/sysexits (Makefile.am): Replace literal occurrences
58447         of "sysexit.h" more readable, and more consistent, "$@".
58448
58449 2006-09-06  Bruno Haible  <bruno@clisp.org>
58450
58451         * modules/striconv: New file.
58452         * modules/xstriconv: New file.
58453         * MODULES.html.sh (Internationalization functions): Add striconv,
58454         xstriconv.
58455
58456 2006-09-06  Bruno Haible  <bruno@clisp.org>
58457
58458         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58459         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58460         not using libtool correctly.
58461
58462 2006-09-06  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/striconv.h: New file.
58465         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58466         iconvstring.c.
58467         * lib/xstriconv.h: New file.
58468         * lib/xstriconv.c: New file.
58469
58470 2006-09-06  Bruno Haible  <bruno@clisp.org>
58471
58472         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58473         lib_..._LDFLAGS.
58474
58475 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58476
58477         * lib/argz_.h: Sync from Libtool.
58478
58479         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58480                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58481
58482         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58483
58484 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58485
58486         * modules/trim: New file.
58487
58488 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58489
58490         * lib/trim.h: New file.
58491         * lib/trim.c: New file.
58492
58493 2006-09-05  Bruno Haible  <bruno@clisp.org>
58494
58495         * MODULES.html.sh (String handling): Add trim.
58496
58497 2006-09-04  Karl Berry  <karl@gnu.org>
58498
58499         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58500         until next release.
58501
58502 2006-09-03  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58505         correctly.
58506
58507 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58508
58509         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58510         not gl_GETLOADAVG.  Omit unneeded semicolons.
58511         Problems reported by Ralf Wildenhues in
58512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58513         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58514         at the end, which is the usual gnulib style.
58515
58516         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58517         of doing all the work ourselves.
58518         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58519         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58520
58521 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58524         Problem reported by Ralf Wildenhues in
58525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58526
58527         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58528         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58529
58530 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58533         yesterday's patch by changing test -n to test -z.
58534
58535 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58538         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58539         the former is now obsolescent.
58540
58541         * modules/chdir-long (Depends-on): Add fcntl.
58542
58543 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58546         obsolescent, and programs should use gnulib instead.
58547         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58548         but with prefixes changed.
58549
58550 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58551
58552         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58553         or stdbool.h, because they might not exist while configuring.
58554
58555         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58556         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58557         does that for us.
58558         (O_DIRECTORY): Remove.
58559
58560 2006-08-31  Eric Blake  <ebb9@byu.net>
58561
58562         * gnulib-tool: Don't let emacs change spaces to TAB.
58563
58564 2006-08-31  Bruno Haible  <bruno@clisp.org>
58565
58566         * gnulib-tool: When calling func_import more than once, do it in a
58567         subshell.
58568         Reported by Eric Blake <ebb9@byu.net>.
58569
58570 2006-08-31  Bruno Haible  <bruno@clisp.org>
58571
58572         * gnulib-tool (nl): Remove variable.
58573         (sed_transform_lib_file): Use more robust test for config-h module.
58574         (func_import): Fix typo in 2006-08-25 patch.
58575
58576 2006-08-31  Bruno Haible  <bruno@clisp.org>
58577
58578         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58579         specified, augment Makefile.am variables instead of assigning them.
58580
58581 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58582
58583         Work around a bug in both the Linux and SunOS 64-bit kernels:
58584         nanosleep mishandles sleeps for longer than 2**31 seconds.
58585         Problem reported by Frank v Waveren in
58586         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58588         Check for nanosleep bug.
58589         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58590
58591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         Work around a bug in both the Linux and SunOS 64-bit kernels:
58594         nanosleep mishandles sleeps for longer than 2**31 seconds.
58595         Problem reported by Frank v Waveren in
58596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58597         * lib/nanosleep.c (BILLION): New constant.
58598         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58599         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58600         implementation.
58601
58602 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58603
58604         * modules/nanosleep (Depends-on): Add gettime.
58605
58606 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58607         and Simon Josefsson  <jas@extundo.com>
58608         and Oskar Liljeblad  <oskar@osk.mine.nu>
58609
58610         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58611         * gnulib-tool (func_import): New license type 'unmodifiable license
58612         text'.
58613         * modules/fdl: Use it.  Longer description.
58614         * module/gpl, module/lgpl: New files.
58615
58616 2006-08-30  Jim Meyering  <jim@meyering.net>
58617
58618         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58619         shadowing the parameter.
58620
58621 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58622
58623         Sync from Libtool:
58624
58625         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58626
58627         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58628         sharing with gnulib.  Report by Eric Blake.
58629
58630 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * modules/isapipe: New file.
58633         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58634
58635 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58636
58637         * modules/configmake (Makefile.am): Add a comment, and omit
58638         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58639         by Bruno Haible.
58640
58641 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58642
58643         * m4/isapipe.m4: New file.
58644
58645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58646
58647         * lib/isapipe.c, lib/isapipe.h: New files.
58648
58649 2006-08-29  Jim Meyering  <jim@meyering.net>
58650
58651         * modules/configmake (Makefile.am): Make configmake.h depend on
58652         Makefile.  Otherwise, a stale configmake.h could hang around.
58653
58654 2006-08-29  Eric Blake  <ebb9@byu.net>
58655
58656         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58657         resolution of upstream bug 3044.
58658
58659 2006-08-29  Bruno Haible  <bruno@clisp.org>
58660
58661         * modules/localcharset (Depends-on): Add configmake.
58662         (Makefile.am): Remove setting of LIBDIR through DEFS.
58663
58664 2006-08-29  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58667         defined.
58668
58669 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58670
58671         * modules/fcntl: New file.
58672         * modules/chdir-safer (Depends-on): Add fcntl.
58673         * modules/fts: Likewise.
58674         * modules/mkdir-p: Likewise.
58675
58676         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58677         This undoes the most recent change, since we're now addressing the
58678         problem in a different way.
58679
58680         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58681         into output, since the output might be called Makefile.am even
58682         if $makefile_name is something different.
58683         (func_import): Use $makefile_am rather than
58684         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58685         empty.
58686
58687         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58688
58689 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58690
58691         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58692         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58693         recent change to stdint.m4, since we're now addressing the problem in a
58694         different way.
58695
58696 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58697
58698         * m4/fcntl_h.m4: New file.
58699
58700 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         * lib/fcntl_.h: New file.
58703         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58704         the fcntl module.
58705         * lib/dirchownmod.c: Likewise.
58706         * lib/fts.c: Likewise.
58707
58708         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58709         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58710         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58711         just before including <inttypes.h>, to avoid circular inclusion.
58712
58713 2006-08-28  Jim Meyering  <jim@meyering.net>
58714
58715         * doc/visibility.texi: Actually read and correct the grammar of the
58716         sentence affected by yesterday's change.
58717
58718 2006-08-28  Eric Blake  <ebb9@byu.net>
58719
58720         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58721         needs wrapper.
58722
58723 2006-08-28  Eric Blake  <ebb9@byu.net>
58724
58725         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58726
58727 2006-08-28  Eric Blake  <ebb9@byu.net>
58728
58729         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58730
58731 2006-08-28  Bruno Haible  <bruno@clisp.org>
58732
58733         * modules/c-strstr: New file, from GNU gettext.
58734         * MODULES.html.sh (String handling): Add c-strstr.
58735
58736 2006-08-28  Bruno Haible  <bruno@clisp.org>
58737
58738         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58739         macros.
58740         Reported by Eric Blake.
58741
58742 2006-08-28  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58745         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58746         * lib/vasprintf.c: Include errno.h, limits.h.
58747         (EOVERFLOW): New fallback definition.
58748         (vasprintf): Test here whether the string length is > INT_MAX.
58749         * lib/vsnprintf.c: Include errno.h, limits.h.
58750         (EOVERFLOW): New fallback definition.
58751         (vsnprintf): Fix bug when generated string was too long for the buffer.
58752         Test here whether the string length is > INT_MAX.
58753
58754 2006-08-28  Bruno Haible  <bruno@clisp.org>
58755
58756         * lib/inttypes_.h (SCNX*): Remove definitions.
58757         Reported by Eric Blake.
58758
58759 2006-08-28  Bruno Haible  <bruno@clisp.org>
58760
58761         * lib/c-strstr.h: New file, from GNU gettext.
58762         * lib/c-strstr.c: New file, from GNU gettext.
58763
58764 2006-08-28  Bruno Haible  <bruno@clisp.org>
58765
58766         * gnulib-tool: Reorder some statements.
58767
58768 2006-08-28  Bruno Haible  <bruno@clisp.org>
58769
58770         * gnulib-tool: New option --makefile-name.
58771         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58772         $makefile_name.
58773         (func_import): Write $makefile_name to the cache file, and read it from
58774         there unless explicitly specified. Use $makefile_name as file name
58775         instead of Makefile.am. Adjust the recommendations accordingly.
58776
58777 2006-08-28  Bruno Haible  <bruno@clisp.org>
58778
58779         * gnulib-tool (func_verify_module): Check against misapplying patch.
58780
58781 2006-08-28  Bruno Haible  <bruno@clisp.org>
58782
58783         * gnulib-tool (func_relativize, func_relconcat): New functions.
58784         Give an error if --local-dir is given with --update.
58785         Remove trailing slashes from $local_gnulib_dir.
58786         (func_import): Store the relativized $local_gnulib_dir in
58787         gnulib-cache.m4, and read it from there if not specified explicitly.
58788
58789 2006-08-28  Bruno Haible  <bruno@clisp.org>
58790
58791         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58792         is the current directory. Respect also $local_gnulib_dir.
58793
58794 2006-08-28  Bruno Haible  <bruno@clisp.org>
58795             Simon Josefsson  <jas@extundo.com>
58796
58797         BeOS portability.
58798         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58799
58800 2006-08-27  Jim Meyering  <jim@meyering.net>
58801
58802         * doc/visibility.texi: Remove duplicate word: "pointer".
58803
58804 2006-08-26  Bruno Haible  <bruno@clisp.org>
58805
58806         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58807         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58808         (Makefile.am): Create inttypes.h from inttypes_.h.
58809         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58810
58811         * modules/imaxabs: New file.
58812
58813         * modules/imaxdiv: New file.
58814
58815 2006-08-26  Bruno Haible  <bruno@clisp.org>
58816
58817         * m4/inttypes.m4: New file.
58818         * m4/_inttypes_h.m4: Remove file.
58819         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58820         PRI_MACROS_BROKEN.
58821         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58822
58823         * m4/imaxabs.m4: New file.
58824
58825         * m4/imaxdiv.m4: New file.
58826
58827 2006-08-26  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/inttypes_.h: New file.
58830         * lib/inttypes.h: Remove file.
58831         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58832
58833         * lib/imaxabs.c: New file.
58834
58835         * lib/imaxdiv.c: New file.
58836
58837 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58838
58839         New config-h module, so that "make" output needn't be cluttered
58840         by -DHAVE_CONFIG_H.
58841         * MODULES.html.sh (Support for building libraries and executables):
58842         Add config-h.
58843         * modules/config-h: New file.
58844         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58845         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58846         the config-h module is used.
58847
58848         New configmake module, so that "make" output needn't be cluttered
58849         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58850         * MODULES.html.sh (Support for building libraries and executables):
58851         Add configmake.
58852         * modules/configmake: New file.
58853
58854 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         * m4/config-h.m4: New file.
58857
58858 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58859
58860         * config/srclist.txt: Add elisp-comp.
58861
58862 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         * MODULES.html.sh (Support for building libraries and executables):
58865         Add elisp-comp.
58866         * build-aux/elisp-comp: New file.
58867         * modules/elisp-comp: New file.
58868
58869 2006-08-24  Bruno Haible  <bruno@clisp.org>
58870
58871         * gnulib-tool (func_create_testdir): Use non-default values of
58872         sourcebase and m4base.
58873
58874 2006-08-24  Bruno Haible  <bruno@clisp.org>
58875
58876         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58877         HTML structure.
58878
58879 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * modules/openat (Depends-on): Add lchown.
58882
58883 2006-08-23  Bruno Haible  <bruno@clisp.org>
58884
58885         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58886         of gl_LOCK_EARLY instead of gl_LOCK.
58887
58888 2006-08-23  Bruno Haible  <bruno@clisp.org>
58889
58890         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58891         on OSF/1 to no.
58892         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58893
58894 2006-08-23  Bruno Haible  <bruno@clisp.org>
58895
58896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58897         as unusable.
58898
58899         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58900         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58901         (gl_LOCK): New macro.
58902
58903 2006-08-22  Simon Josefsson  <jas@extundo.com>
58904
58905         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58906         to md5 module.
58907
58908 2006-08-22  Simon Josefsson  <jas@extundo.com>
58909
58910         * MODULES.html.sh: Add "Support for maintaining and release
58911         projects".
58912
58913         * build-aux/gnupload: New file, from coreutils.
58914
58915 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         Avoid the need for AC_LIBSOURCES in m4 macros.
58918         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58919         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58920         * modules/check-version (EXTRA_DIST): Add check-version.h.
58921         * modules/crc (EXTRA_DIST): Add crc.h.
58922         * modules/des (EXTRA_DIST): Add des.h.
58923         * modules/gc (EXTRA_DIST): Add gc.h.
58924         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58925         * modules/getline (EXTRA_DIST): Add getline.h.
58926         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58927         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58928         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58929         * modules/md2 (EXTRA_DIST): Add md2.h.
58930         * modules/md4 (EXTRA_DIST): Add md4.h.
58931         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58932         * modules/read-file (EXTRA_DIST): Add read-file.h.
58933         * modules/readline (EXTRA_DIST): Add readline.h.
58934         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58935         rijndael-api-fst.h.
58936
58937 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58938
58939         * m4/rijndael.m4 (gl_ARCFOUR):
58940         * m4/arctwo.m4 (gl_ARCTWO):
58941         * m4/check-version.m4 (gl_CHECK_VERSION):
58942         * m4/crc.m4 (gl_CRC):
58943         * m4/des.m4 (gl_DES):
58944         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58945         * m4/gc.m4 (gl_GC):
58946         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58947         * m4/getline.m4 (gl_FUNC_GETLINE):
58948         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58949         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58950         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58951         * m4/md2.m4 (gl_MD2):
58952         * m4/md4.m4 (gl_MD4):
58953         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58954         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58955         * m4/readline.m4 (gl_FUNC_READLINE):
58956         * m4/rijndael.m4 (gl_RIJNDAEL):
58957         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58958         to get the necessary .h files and whatnot.
58959
58960 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58961
58962         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58963         gnulib rather than the other way around.
58964         * config/srclistvars.sh (COREUTILS): Remove.
58965
58966 2006-08-22  Jim Meyering  <jim@meyering.net>
58967
58968         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58969
58970         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58971
58972 2006-08-22  Eric Blake  <ebb9@byu.net>
58973
58974         * modules/regexprops-generic: New file.
58975         * MODULES.html.sh (Support for building documentation): List it.
58976
58977 2006-08-22  Eric Blake  <ebb9@byu.net>
58978
58979         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58980         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58981         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58982         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58983
58984 2006-08-22  Bruno Haible  <bruno@clisp.org>
58985
58986         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58987         and lib_LTLIBRARIES like the other lib_* variables.
58988
58989 2006-08-22  Bruno Haible  <bruno@clisp.org>
58990
58991         * build-aux/x-to-1.in: New file, from GNU gettext.
58992
58993 2006-08-22  Bruno Haible  <bruno@clisp.org>
58994
58995         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58996         <utmpx.h> exists.
58997
58998 2006-08-22  Bruno Haible  <bruno@clisp.org>
58999
59000         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59001         <utmpx.h> exists.
59002
59003 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         BeOS portability.
59006         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59007         exist.
59008         Problem reported by Bruno Haible.
59009
59010 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59011
59012         Avoid the need for AC_LIBSOURCES in m4 macros.
59013         * modules/acl (EXTRA_DIST): Add acl.h.
59014         * modules/argmatch (Files): Add m4/argmatch.m4.
59015         (configure.ac): Add gl_ARGMATCH.
59016         (EXTRA_DIST): Renamed from lib_SOURCES, for
59017         consistency with the other modules.  Remove argmatch.c.
59018         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59019         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59020         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59021         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59022         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59023         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59024         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59025         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59026         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59027         * modules/closeout (EXTRA_DIST): Add closeout.h.
59028         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59029         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59030         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59031         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59032         dirname.h; remove basename.c and stripslash.c.
59033         * modules/exclude (EXTRA_DIST): Add exclude.h.
59034         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59035         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59036         * modules/file-type (EXTRA_DIST): Add file-type.h.
59037         * modules/filemode (EXTRA_DIST): Add filemode.h.
59038         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59039         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59040         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59041         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59042         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59043         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59044         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59045         * modules/getdate (EXTRA_DIST): Add getdate.c.
59046         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59047         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59048         * modules/getpass (EXTRA_DIST): Add getpass.h.
59049         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59050         * modules/group-member (EXTRA_DIST): Add group-member.h.
59051         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59052         * modules/hash (EXTRA_DIST): Add hash.h.
59053         * modules/human (EXTRA_DIST): Add human.h.
59054         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59055         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59056         * modules/lchown (EXTRA_DIST): Add lchown.h.
59057         * modules/long-options (EXTRA_DIST): Add long-options.h.
59058         * modules/lstat (EXTRA_DIST): Add lstat.h.
59059         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59060         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59061         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59062         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59063         * modules/memxor (EXTRA_DIST): Add memxor.h.
59064         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59065         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59066         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59067         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59068         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59069         * modules/physmem (EXTRA_DIST): Add physmem.h.
59070         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59071         * modules/posixver (EXTRA_DIST): Add posixver.h.
59072         * modules/quote (EXTRA_DIST): Add quote.h.
59073         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59074         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59075         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59076         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59077         regex_internal.h regexec.c.
59078         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59079         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59080         * modules/same (EXTRA_DIST): Add same.h.
59081         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59082         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59083         * modules/savedir (EXTRA_DIST): Add savedir.h.
59084         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59085         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59086         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59087         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59088         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59089         * modules/strdup (EXTRA_DIST): Add strdup.h.
59090         * modules/strftime (EXTRA_DIST): Add strftime.h.
59091         * modules/strndup (EXTRA_DIST): Add strndup.h.
59092         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59093         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59094         * modules/time_r (EXTRA_DIST): Add time_r.h.
59095         * modules/timespec (EXTRA_DIST): Add timespec.h.
59096         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59097         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59098         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59099         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59100         * modules/userspec (EXTRA_DIST): Add userspec.h.
59101         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59102         * modules/utimens (EXTRA_DIST): Add utimens.h.
59103         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59104         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59105         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59106         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59107         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59108         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59109         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59110         * modules/yesno (EXTRA_DIST): Add yesno.h.
59111
59112 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59115
59116         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59117         * m4/dev-ino.m4, same-inode.m4: Remove.
59118
59119         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59120         * m4/acl.m4 (AC_FUNC_ACL):
59121         * m4/backupfile.m4 (gl_BACKUPFILE):
59122         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59123         * m4/canon-host.m4 (gl_CANON_HOST):
59124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59125         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59126         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59127         * m4/cloexec.m4 (gl_CLOEXEC):
59128         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59129         * m4/closeout.m4 (gl_CLOSEOUT):
59130         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59131         * m4/dirname.m4 (gl_DIRNAME):
59132         * m4/exclude.m4 (gl_EXCLUDE):
59133         * m4/exitfail.m4 (gl_EXITFAIL):
59134         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59135         * m4/file-type.m4 (gl_FILE_TYPE):
59136         * m4/filemode.m4 (gl_FILEMODE):
59137         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59138         * m4/fpending.m4 (gl_FUNC_FPENDING):
59139         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59140         * m4/fts.m4 (gl_FUNC_FTS):
59141         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59142         * m4/getdate.m4 (gl_GETDATE):
59143         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59144         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59145         * m4/getpass.m4 (gl_FUNC_GETPASS):
59146         * m4/gettime.m4 (gl_GETTIME):
59147         * m4/getugroups.m4 (gl_GETUGROUPS):
59148         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59149         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59150         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59151         * m4/hash.m4 (gl_HASH):
59152         * m4/idcache.m4 (gl_IDCACHE):
59153         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59154         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59155         * m4/long-options.m4 (gl_LONG_OPTIONS):
59156         * m4/lstat.m4 (gl_FUNC_LSTAT):
59157         * m4/md5.m4 (gl_MD5):
59158         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59159         * m4/memcoll.m4 (gl_MEMCOLL):
59160         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59161         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59162         * m4/memxor.m4 (gl_MEMXOR):
59163         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59164         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59165         * m4/modechange.m4 (gl_MODECHANGE):
59166         * m4/mountlist.m4 (gl_MOUNTLIST):
59167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59168         * m4/openat.m4 (gl_FUNC_OPENAT):
59169         * m4/pathmax.m4 (gl_PATHMAX):
59170         * m4/physmem.m4 (gl_PHYSMEM):
59171         * m4/posixtm.m4 (gl_POSIXTM):
59172         * m4/posixver.m4 (gl_POSIXVER):
59173         * m4/quote.m4 (gl_QUOTE):
59174         * m4/quotearg.m4 (gl_QUOTEARG):
59175         * m4/readtokens.m4 (gl_READTOKENS):
59176         * m4/readutmp.m4 (gl_READUTMP):
59177         * m4/regex.m4 (gl_REGEX):
59178         * m4/safe-read.m4 (gl_SAFE_READ):
59179         * m4/safe-write.m4 (gl_SAFE_WRITE):
59180         * m4/same.m4 (gl_SAME):
59181         * m4/save-cwd.m4 (gl_SAVE_CWD):
59182         * m4/savedir.m4 (gl_SAVEDIR):
59183         * m4/settime.m4 (gl_SETTIME):
59184         * m4/sha1.m4 (gl_SHA1):
59185         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59186         * m4/stat-macros.m4 (gl_STAT_MACROS):
59187         * m4/stat-time.m4 (gl_STAT_TIME):
59188         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59189         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59190         * m4/strdup.m4 (gl_FUNC_STRDUP):
59191         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59192         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59193         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59194         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59195         * m4/time_r.m4 (gl_TIME_R):
59196         * m4/timespec.m4 (gl_TIMESPEC):
59197         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59198         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59199         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59200         * m4/userspec.m4 (gl_USERSPEC):
59201         * m4/utimecmp.m4 (gl_UTIMECMP):
59202         * m4/utimens.m4 (gl_UTIMENS):
59203         * m4/xalloc.m4 (gl_XALLOC):
59204         * m4/xgetcwd.m4 (gl_XGETCWD):
59205         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59206         * m4/xreadlink.m4 (gl_XREADLINK):
59207         * m4/xstrtod.m4 (gl_XSTRTOD):
59208         * m4/yesno.m4 (gl_YESNO):
59209         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59210         to get the necessary .h files and whatnot.
59211
59212 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59213             Bruno Haible  <bruno@clisp.org>
59214
59215         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59216         /bin/sh understanding of '!' conditional negation.
59217
59218 2006-08-21  Jim Meyering  <jim@meyering.net>
59219
59220         * modules/openat (Depends-on): Really alphabetize.
59221
59222         * modules/acl (Depends-on): Add error and quote.
59223
59224         * check-module (find_included_lib_files): Add at-func.c to the
59225         ok-to-include-more-than-once white list.
59226
59227         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59228
59229 2006-08-21  Bruno Haible  <bruno@clisp.org>
59230
59231         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59232         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59233         Reported by Martin Lambers <marlam@marlam.de>.
59234
59235 2006-08-21  Bruno Haible  <bruno@clisp.org>
59236
59237         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59238         specify an installation location, don't emit a noinst_LIBRARIES or
59239         noinst_LTLIBRARIES assignment.
59240
59241 2006-08-21  Bruno Haible  <bruno@clisp.org>
59242
59243         BeOS portability.
59244         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59245         BeOS has mbrtowc() but no <wctype.h>.
59246
59247 2006-08-21  Bruno Haible  <bruno@clisp.org>
59248
59249         BeOS portability.
59250         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59251         exist.
59252
59253 2006-08-21  Bruno Haible  <bruno@clisp.org>
59254
59255         BeOS portability.
59256         * lib/mbchar.h: Include <wctype.h> only if it exists.
59257
59258 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         Remove files that are no longer needed by their respective modules.
59261         * m4/obstack.m4: Remove.
59262         * m4/strerror_r.m4: Remove.
59263         * m4/uint32_t.m4: Remove.
59264         * m4/uintptr_t.m4: Remove.
59265         * m4/ullong_max.m4: Remove.
59266         * m4/xstrtoimax.m4: Remove.
59267         * m4/xstrtoumax.m4: Remove.
59268
59269         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59270         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59271         dependencies now capture this.
59272
59273         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59274         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59275         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59276         * m4/human.m4 (gl_HUMAN): Likewise.
59277         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59278         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59279
59280         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59281
59282         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59283         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59284         stdint.
59285         * m4/human.m4 (gl_HUMAN): Likewise.
59286         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59287         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59288         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59289         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59290         * m4/xstrtol (gl_XSTRTOL): Likewise.
59291
59292         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59293         AC_TYPE_LONG_LONG_INT.
59294         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59295         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59296         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59297         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59298
59299         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59300         on stdbool.
59301
59302         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59303         (gl_PREREQ_XSTRTOUL): Remove.
59304
59305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59306
59307         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59308         mode.
59309
59310 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59311
59312         Add and change modules to make it easier for coreutils to use
59313         gnulib-tool.
59314         * modules/backupfile (Files): Remove m4/d-ino.m4.
59315         (Depends-on): Add d-ino.
59316         * modules/cycle-check (Depends-on): Add stdint.
59317         (lib_SOURCES): Add cycle-check.h.
59318         * modules/d-ino: New module.
59319         * modules/d-type: New module.
59320         * modules/error (Files): Remove m4/strerror_r.m4.
59321         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59322         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59323         m4/inttypes_h.m4, m4/uintmax_t.m4.
59324         (Depends-on): Add stdint.
59325         (lib_SOURCES): Add fsusage.h.
59326         * modules/getcwd (Files): Remove d-ino.m4.
59327         (Depends-on): Add d-ino.
59328         * modules/getndelim2 (Depends-on): Add stdint.
59329         * modules/glob (Files): Remove m4/d-type.m4.
59330         (Depends-on): Add d-type.
59331         * modules/host-os: New module.
59332         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59333         m4/inttypes_h.m4, m4/uintmax_t.m4.
59334         * Depends-on: Add stdint.
59335         (lib_SOURCES): Add human.h.
59336         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59337         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59338         m4/uintmax_t.m4, m4/ulonglong.m4.
59339         (Depends-on): Add stdint.
59340         (EXTRA_DIST): Add inttostr.h.
59341         * modules/lchmod: New module.
59342         * modules/link-follow: New module.
59343         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59344         (Depends-on): Add lchmod.
59345         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59346         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59347         (Depends-on): Add stdint.
59348         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59349         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59350         (Depends-on): Add stdint.
59351         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59352         * modules/perl: New module.
59353         * modules/regex (Depends-on): Add stdint.
59354         * modules/rmdir-errno: New module.
59355         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59356         m4/intmax_t.m4.
59357         (Depends-on): Add stdint.
59358         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59359         m4/uintmax_t.m4.
59360         (Depends-on): Add stdint.
59361         * modules/unlink-busy: New module.
59362         * modules/utimecmp (Depends-on): Add stdint.
59363         * modules/uptime: New module.
59364         * modules/winsz-ioctl: New module.
59365         * modules/winsz-termios: New module.
59366         * modules/xnanosleep (Depends-on): Add nanosleep.
59367         * modules/ullong_max: Remove.
59368         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59369         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59370         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59371         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59372         (Depends-on): Add inttypes.
59373         (lib_SOURCES): Add xstrtol.h.
59374         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59375         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59376         * MODULES.html.sh: Move 'assert' into the assert section.
59377         Move 'dummy' into the linking section.
59378         Remove ullong_max.
59379         Add section for compatibility checks for POSIX:2001 functions,
59380         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59381         winsz-ioctl, and winsz-termios into it.
59382         Add lchmod.
59383         Add top-level Misc section and put host-os, perl, and uptime
59384         into it.
59385
59386 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59389         now assume the stdint module.  Do not include inttypes.h.
59390         * lib/fsusage.h: Likewise.
59391         * lib/getndelim2.c: Likewise.
59392         * lib/human.h: Likewise.
59393         * lib/inttostr.h: Likewise.
59394         * lib/obstack.c: Likewise.
59395         * lib/regex_internal.h: Likewise.
59396         * lib/tempname.c: Likewise.
59397         * lib/utimecmp.c: Likewise.
59398         * lib/xstrtol.h: Likewise.
59399
59400         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59401
59402         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59403         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59404         * lib/xtime.h: Likewise.
59405
59406 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         * modules/openat (Files): Add lib/fchmodat.c.
59409         Fixes problem reported by Jay Youngman.
59410
59411 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59414         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59415
59416 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59417             Bruno Haible  <bruno@clisp.org>
59418
59419         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59420         and is a script that invokes bison. Tighten the code. Add comments.
59421
59422 2006-08-18  Jim Meyering  <jim@meyering.net>
59423
59424         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59425         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59426         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59427         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59428
59429 2006-08-18  Bruno Haible  <bruno@clisp.org>
59430
59431         * modules/bison-i18n: New file.
59432         * MODULES.html.sh (Internationalization functions): Add it.
59433
59434 2006-08-18  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59437         sys/statvfs.h. When getmntinfo was found, check its declaration and
59438         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59439
59440 2006-08-18  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/bison-i18n.m4: New file, from bison.
59443
59444 2006-08-18  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59447         (ME_DUMMY): Treat "kernfs" as a dummy.
59448         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59449
59450 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59451
59452         Update from coreutils.
59453
59454         2006-08-15  Jim Meyering  <jim@meyering.net>
59455
59456         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59457
59458         2006-01-17  Jim Meyering  <jim@meyering.net>
59459
59460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59461
59462         2006-01-11  Jim Meyering  <jim@meyering.net>
59463
59464         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59465         Check for the lchmod function.
59466
59467 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59468
59469         Update from coreutils.
59470
59471         * lib/__fpending.h: Add copyright notice.
59472         * lib/fprintftime.h: Likewise.
59473         * lib/savedir.c: Use (C) in copyright notice.
59474         * lib/savedir.h: Likewise.
59475
59476         2006-08-15  Jim Meyering  <jim@meyering.net>
59477
59478         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59479         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59480         in support of the EXPECTED_ERRNO macro.
59481         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59482         definitions.  Instead, define the appropriate symbols and include
59483         "at-func.c".
59484         * lib/mkdirat.c (mkdirat): Likewise.
59485         * lib/fchmodat.c (fchmodat): Likewise.
59486         (ENOSYS): Remove definition.
59487         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59488         it.  Don't include "unistd--.h" -- it wasn't ever used.
59489
59490         2006-01-17  Jim Meyering  <jim@meyering.net>
59491
59492         Rewrite fts.c not to change the current working directory,
59493         by using openat, fstatat, fdopendir, etc..
59494
59495         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59496         (HAVE_OPENAT_SUPPORT): Define.
59497         [_LIBC] (fchdir): Don't undef or define; no longer used.
59498         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59499         Now, this `function' always succeeds, and consumes its file descriptor
59500         parameter -- so callers must not close such FDs.  Update callers.
59501         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59502         (diropen): Add parameter, SP.  Adjust all callers.
59503         Implement using diropen_fd, rather than open.
59504         (fts_open): Initialize new member, fts_cwd_fd.
59505         Remove fts_rft-setting code.
59506         (fts_close): Close fts_cwd_fd, if necessary.
59507         (__opendir2): Define in terms of opendir or opendirat,
59508         depending on whether the FST_NOCHDIR flag is set.
59509         (fts_build): Since fts_safe_changedir consumes its FD, and since
59510         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59511         and close the dup'd file descriptor upon failure.
59512         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59513         (fts_safe_changedir): Tweak semantics to reflect that this function
59514         now calls cwd_advance_fd and hence consumes its FD argument.
59515         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59516         [struct FTS] (fts_rft): Remove now-unused member.
59517         [struct FTS] (fts_cycle.state): Improve comment.
59518
59519         * lib/openat.c (openat_needs_fchdir): New function.
59520         * lib/openat.h (openat_needs_fchdir): Declare it.
59521
59522 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59523
59524         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59525         Problem and fix reported by Pádraig Brady in
59526         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59527
59528 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59529
59530         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59531
59532 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59533
59534         * lib/memcoll.c (memcoll): Optimize for the common case where the
59535         arguments are bytewise equal.
59536
59537 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         * doc/regexprops-generic.texi: Add a copyright notice.
59540
59541 2006-08-15  Bruno Haible  <bruno@clisp.org>
59542
59543         * modules/tmpdir (License): Change to LGPL.
59544
59545 2006-08-15  Bruno Haible  <bruno@clisp.org>
59546
59547         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59548         module.
59549
59550 2006-08-14  Simon Josefsson  <jas@extundo.com>
59551
59552         * config/srclist.txt: Add gnupload.
59553
59554 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59555
59556         Change copyright notice from LGPL 2 to GPL 2, since that's the
59557         standard form used in the gnulib repository.
59558         * tests/test-lock.c: Likewise.
59559         * tests/test-stdint.c: Likewise.
59560         * tests/test-tls.c: Likewise.
59561
59562         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59563         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59564         Add copyright notice.
59565
59566         * check-module: Add copyright notice.  Output a copyright
59567         notice if "--version" is specified.
59568         * modules/COPYING: New file.
59569         * tests/test-getaddrinfo.c: Add copyright notice.
59570         * tests/test-verify.c: Likewise.
59571
59572 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         Change copyright notice from LGPL 2 to GPL 2, since that's the
59575         standard form used in the gnulib repository.
59576         * lib/lock.c: LGPL -> GPL.
59577         * lib/lock.h: Likewise.
59578         * lib/strnlen1.c: Likewise.
59579         * lib/strnlen1.h: Likewise.
59580         * lib/tls.c: Likewise.
59581         * lib/tls.h: Likewise.
59582         * lib/tmpdir.c: Likewise.
59583
59584         * lib/TODO: Remove; this belongs only in coreutils.
59585
59586 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         Add copyright notices to long-enough files that lack them, since
59589         otherwise the files aren't clearly free.  Use the same notice that
59590         getdate.texi already uses.
59591         * doc/alloca-opt.texi: Add copyright notice.
59592         * doc/alloca.texi: Likewise.
59593         * doc/ctime.texi: Likewise.
59594         * doc/functions.texi: Likewise.
59595         * doc/gcd.texi: Likewise.
59596         * doc/gnulib-tool.texi: Likewise.
59597         * doc/inet_ntoa.texi: Likewise.
59598         * doc/visibility.texi: Likewise.
59599
59600         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59601         * doc/quote.texi: Add copyright notice.
59602
59603         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59604         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59605         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59606         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59607         is now obsolete, and give a pointer to the Sun list.
59608         Add copyright notice.
59609
59610 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * config/srclistvars.sh: Add copyright notice.
59613
59614 2006-08-14  Eric Blake  <ebb9@byu.net>
59615
59616         Import the following change from libc:
59617
59618         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59619
59620         Upstream bug 2997.
59621         * lib/misc/error.c: Add space between program name and message if file
59622         name is missing.
59623
59624 2006-08-12  Karl Berry  <karl@gnu.org>
59625
59626         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59627         remove, these originate in gnulib now.
59628
59629 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59630
59631         * doc/Makefile (standards.info standards.html standards.dvi):
59632         Also depend on make-stds.texi.
59633
59634 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59635
59636         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59637         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59638
59639         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59640         in wchar_t.  Problem reported by Eric Blake.
59641
59642         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59643         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59644         Also, help the compiler to keep LEN in a register.
59645
59646 2006-08-11  Eric Blake  <ebb9@byu.net>
59647
59648         * users.txt: Sort.  Add tar.
59649
59650 2006-08-11  Bruno Haible  <bruno@clisp.org>
59651
59652         * users.txt: New file.
59653
59654 2006-08-11  Bruno Haible  <bruno@clisp.org>
59655
59656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59657         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59658
59659 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         * modules/snprintf (Depends-on): Remove minmax.
59662         (Maintainer): Add self and Bruno.
59663
59664 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59667         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59668         (EOVERFLOW): Define if the system does not.
59669         Do not include "minmax.h"; it wasn't used.
59670         (snprintf): Don't assume size_t promotes to an unsigned type.
59671         Fix bug when generated string was too long for the buffer: the
59672         buffer's contents are supposed to be the initial prefix of the
59673         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59674         exceeds INT_MAX; do the check ourselves.
59675
59676         Import the following changes from libc:
59677
59678         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59679
59680         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59681         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59682         set wc to the byte which couldn't be converted.
59683         (re_string_reconstruct): Don't clear valid_raw_len before calling
59684         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59685         tip_context using re_string_context_at.
59686
59687         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59688
59689         * lib/posix/regex.h: g++ still cannot handled [restrict].
59690
59691         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59692
59693         * lib/posix/regex.h: Remove special handling for VMS.
59694
59695 2006-08-10  Jim Meyering  <jim@meyering.net>
59696
59697         * modules/same-inode: New module.
59698         * modules/dev-ino: New module.
59699         * modules/cycle-check: Depend on these modules, rather than simply
59700         including their .h files.
59701         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59702         required via m4/cycle-check.m4.
59703         * modules/same: Depend on new same-inode module, rather than
59704         including same-inode.h.
59705         * modules/chdir-safer: New file.
59706
59707         * modules/chown (Depends-on): Add stat-macros.
59708
59709 2006-08-10  Jim Meyering  <jim@meyering.net>
59710
59711         * m4/cycle-check.m4: New file.
59712         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59713         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59714
59715 2006-08-10  Eric Blake  <ebb9@byu.net>
59716
59717         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59718         in from original proposal.
59719
59720 2006-08-10  Eric Blake  <ebb9@byu.net>
59721         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59722
59723         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59724         namespace.
59725
59726 2006-08-10  Bruno Haible  <bruno@clisp.org>
59727
59728         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59729         as well.
59730
59731 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         Sync from coreutils.
59734
59735         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59736
59737         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59738         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59739
59740 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59741
59742         * modules/restrict: Remove; no longer needed now that we assume
59743         Autoconf 2.59 or later.
59744         * MODULES.html.sh: Remove 'restrict'.
59745         * modules/argp (Depends-on): Remove 'restrict'.
59746         * modules/base64 (Depends-on): Likewise.
59747         * modules/gc (Depends-on): Likewise.
59748         * modules/getaddrinfo (Depends-on): Likewise.
59749         * modules/glob (Depends-on): Likewise.
59750         * modules/inet_ntop (Depends-on): Likewise.
59751         * modules/inet_pton (Depends-on): Likewise.
59752         * modules/memxor (Depends-on): Likewise.
59753         * modules/regex (Depends-on): Likewise.
59754         * modules/strtok_r (Depends-on): Likewise.
59755         * modules/time_r (Depends-on): Likewise.
59756
59757 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59760         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59761         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59762         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59763         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59764         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59765         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59766         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59767
59768         Merge from coreutils.
59769         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59770         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59771         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59772         * m4/time_r.m4 (gl_TIME_R): Likewise.
59773
59774 2006-08-09  Karl Berry  <karl@gnu.org>
59775
59776         * config/srclist.txt: no more gettext-tools, per Bruno.
59777
59778 2006-08-08  Eric Blake  <ebb9@byu.net>
59779
59780         * modules/verror: New module.
59781         * MODULES.html.sh: Document it.
59782
59783 2006-08-08  Eric Blake  <ebb9@byu.net>
59784
59785         * lib/verror.h, lib/verror.c: New files.
59786
59787 2006-08-08  Eric Blake  <ebb9@byu.net>
59788
59789         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59790         verror_at_line output complies with GNU Coding Standards even when
59791         file is NULL.
59792
59793 2006-08-07  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59796         versions of AIX.
59797         Reported by Ralf Wildenhues.
59798
59799 2006-08-07  Bruno Haible  <bruno@clisp.org>
59800
59801         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59802         in an AC_DEFUN. Needed so that the autoconf snippets can use
59803         AC_REQUIRE.
59804
59805 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59806
59807         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59808         Initialize pkgdata_DATA.
59809         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59810         overriding it.
59811
59812 2006-08-06  Eric Blake  <ebb9@byu.net>
59813
59814         * lib/error.h: Fold in some upstream changes from glibc.
59815         * lib/error.c: Likewise.
59816
59817 2006-08-04  Bruno Haible  <bruno@clisp.org>
59818
59819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59820         Make the mostlyclean-local rule depend on mostlyclean-generic.
59821         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59822
59823 2006-07-31  Bruno Haible  <bruno@clisp.org>
59824
59825         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59826         <stdlib.h>, <string.h>.
59827
59828 2006-07-30  Bruno Haible  <bruno@clisp.org>
59829
59830         * modules/readlink (License): Change to LGPL.
59831
59832 2006-07-30  Bruno Haible  <bruno@clisp.org>
59833
59834         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59835         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59836         set PKGDATADIR to point to it.
59837
59838 2006-07-30  Bruno Haible  <bruno@clisp.org>
59839
59840         * modules/csharpexec (configure.ac): Comment out macro invocation.
59841         * modules/javaexec (configure.ac): Likewise.
59842         * modules/javacomp-script (configure.ac): Likewise.
59843
59844         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59845
59846 2006-07-30  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59849         linked-list.
59850
59851 2006-07-30  Bruno Haible  <bruno@clisp.org>
59852
59853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59854
59855 2006-07-30  Bruno Haible  <bruno@clisp.org>
59856
59857         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59858         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59859         get removed.
59860
59861 2006-07-29  Bruno Haible  <bruno@clisp.org>
59862
59863         Make it possible for gnulib-tool to work with locally modified or
59864         augmented gnulib repositories.
59865         * gnulib-tool (func_usage): Document --local-dir option.
59866         (local_gnulib_dir): New variable.
59867         Handle --local-dir option.
59868         (func_lookup_file): New function.
59869         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59870         (func_get_description, func_get_filelist, func_get_description,
59871         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59872         func_get_automake_snippet, func_get_include_directive,
59873         func_get_license, func_get_maintainer): Use func_lookup_file.
59874         (func_import, func_create_testdir): Use func_lookup_file.
59875
59876 2006-07-29  Bruno Haible  <bruno@clisp.org>
59877
59878         * modules/setenv (Depends-on): Add unistd.
59879
59880 2006-07-29  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59883
59884 2006-07-29  Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59887
59888 2006-07-29  Bruno Haible  <bruno@clisp.org>
59889
59890         * gnulib-tool (import, update): If there is no Makefile.am, look at
59891         aclocal.m4, instead of bailing out.
59892
59893 2006-07-29  Bruno Haible  <bruno@clisp.org>
59894
59895         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59896         Categorize the options by when they are useful.
59897
59898 2006-07-29  Bruno Haible  <bruno@clisp.org>
59899
59900         * gnulib-tool (func_usage): Document option --no-libtool.
59901         Handle option --no-libtool.
59902         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59903         for changed semantics of $libtool variable.
59904         (func_import): Likewise. If libtool is not used, show this through
59905         an option --no-libtool.
59906         (func_create_testdir): Update.
59907
59908 2006-07-29  Bruno Haible  <bruno@clisp.org>
59909
59910         * gnulib-tool (func_import): Extend error message about missing
59911         --doc-base.
59912
59913 2006-07-29  Bruno Haible  <bruno@clisp.org>
59914
59915         * gnulib-tool (func_import): Don't create the $docbase directory if
59916         there is no file to store there.
59917
59918 2006-07-29  Bruno Haible  <bruno@clisp.org>
59919
59920         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59921         relevant, look for configure.ac there, not in the current directory.
59922         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59923
59924 2006-07-29  Bruno Haible  <bruno@clisp.org>
59925
59926         * gnulib-tool (SORT): New variable.
59927         (func_usage): Undocument --assume-autoconf option.
59928         Remove --assume-autoconf option handling.
59929         (autoconf_minversion): Determine from the contents of configure.ac.
59930         (func_import): Remove autoconf_minversion handling.
59931         Suggested by Eric Blake.
59932
59933 2006-07-29  Bruno Haible  <bruno@clisp.org>
59934
59935         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59936
59937 2006-07-29  Bruno Haible  <bruno@clisp.org>
59938
59939         * config/srclist.txt (*setenv.[ch]): Remove rules.
59940
59941 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59942
59943         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59944
59945 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59946
59947         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59948         arpa/inet.h.
59949
59950 2006-07-28  Simon Josefsson  <jas@extundo.com>
59951
59952         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59953         * modules/inet_pton (Depends-on): Likewise.
59954
59955 2006-07-28  Simon Josefsson  <jas@extundo.com>
59956
59957         * m4/netinet_in_h.m4: New file.
59958
59959 2006-07-28  Simon Josefsson  <jas@extundo.com>
59960
59961         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59962         #include's.
59963
59964 2006-07-28  Simon Josefsson  <jas@extundo.com>
59965
59966         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59967         #include's.
59968
59969 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59970
59971         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59972         setgid on directories only if they set these bits.
59973         * lib/modechange.h: Remove obsolete comment about masks.
59974
59975 2006-07-28  Eric Blake  <ebb9@byu.net>
59976
59977         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59978         macro expansion.
59979
59980 2006-07-28  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59983
59984 2006-07-28  Bruno Haible  <bruno@clisp.org>
59985
59986         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59987
59988 2006-07-28  Bruno Haible  <bruno@clisp.org>
59989
59990         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59991         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59992         Define fallbacks.
59993         Avoids link error on FreeBSD 4.x.
59994         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59995
59996         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59997         encoding.
59998         * lib/mbswidth.c (iswcntrl): Likewise.
59999
60000 2006-07-27  Bruno Haible  <bruno@clisp.org>
60001
60002         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60003         test.
60004
60005 2006-07-27  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60008         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60009         defined.
60010
60011 2006-07-26  Eric Blake  <ebb9@byu.net>
60012
60013         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60014
60015 2006-07-26  Eric Blake  <ebb9@byu.net>
60016
60017         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60018         like mingw that lack mkstemp.
60019         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60020         avoid compilation warning on mingw.
60021
60022 2006-07-26  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60025         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60026         INT_FAST*_MIN, INTPTR_MIN.
60027
60028 2006-07-25  Bruno Haible  <bruno@clisp.org>
60029
60030         * modules/version-etc (Depends-on): Add stdarg.
60031
60032 2006-07-25  Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60035         complex commands.
60036
60037 2006-07-25  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60040         defined in <stdarg.h> or config.h.
60041
60042 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60045         (gl_STDIO_SAFER): Remove.
60046
60047 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * MODULES.html.sh (File stream based Input/Output):
60050         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60051         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60052         * modules/fopen-safer, modules/tmpfile-safer: New files.
60053         * modules/stdio-safer: Remove.
60054
60055 2006-07-24  Bruno Haible  <bruno@clisp.org>
60056
60057         * modules/tmpdir: New file.
60058         * MODULES.html.sh (File system functions): Add it.
60059
60060 2006-07-24  Bruno Haible  <bruno@clisp.org>
60061
60062         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60063         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60064
60065 2006-07-24  Bruno Haible  <bruno@clisp.org>
60066
60067         * modules/clean-temp: New file.
60068
60069 2006-07-24  Bruno Haible  <bruno@clisp.org>
60070
60071         * m4/tmpdir.m4: New file, from GNU gettext.
60072
60073 2006-07-24  Bruno Haible  <bruno@clisp.org>
60074
60075         * lib/tmpdir.h: New file, from GNU gettext.
60076         * lib/tmpdir.c: New file, from GNU gettext.
60077
60078 2006-07-24  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/clean-temp.h: New file, from GNU gettext.
60081         * lib/clean-temp.c: New file, from GNU gettext.
60082
60083 2006-07-23  Eric Blake  <ebb9@byu.net>
60084
60085         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60086         (Depends-on): Add binary-io.
60087
60088 2006-07-23  Eric Blake  <ebb9@byu.net>
60089
60090         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60091
60092 2006-07-23  Eric Blake  <ebb9@byu.net>
60093
60094         * lib/tmpfile-safer.c: New file.
60095         * lib/stdio-safer.h (fopen_safer): Add prototype.
60096         * lib/stdio--.h (tmpfile): Make safer.
60097
60098 2006-07-23  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60101         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60102         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60103         gl_linked_remove_at): Use it.
60104
60105 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60106         and Simon Josefsson <jas@extundo.com>
60107
60108         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60109
60110         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60111
60112 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60113
60114         * modules/close-stream: New file.
60115         * modules/closeout (Description): Make it clear that it exits
60116         with a diagnostic on error.
60117         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60118         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60119
60120 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * m4/close-stream.m4: New file.
60123
60124 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60125
60126         * lib/close-stream.c, lib/close-stream.h: New files.
60127
60128 2006-07-22  Bruno Haible  <bruno@clisp.org>
60129
60130         Merge from GNU gettext 0.15.
60131
60132         2006-05-01  Bruno Haible  <bruno@clisp.org>
60133
60134                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60135
60136         2006-07-22  Bruno Haible  <bruno@clisp.org>
60137
60138                 * modules/javaversion: New file.
60139                 * MODULES.html.sh (Java): Add javaversion.
60140
60141         2006-03-12  Bruno Haible  <bruno@clisp.org>
60142
60143                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60144
60145         2005-12-04  Bruno Haible  <bruno@clisp.org>
60146
60147                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60148                 (untested).
60149
60150         2006-06-21  Bruno Haible  <bruno@clisp.org>
60151
60152                 Avoid warnings from recent versions of mcs.
60153                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60154                 -o, -L, -r any more. Use options documented since mcs-1.0
60155                 instead. Similarly for -g.
60156
60157         2005-12-04  Bruno Haible  <bruno@clisp.org>
60158
60159                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60160                 .resources, not .resource.
60161
60162         2005-07-09  Bruno Haible  <bruno@clisp.org>
60163
60164                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60165                 add a .dll suffix.
60166                 Reported by Mark Junker <mjscod@gmx.de>.
60167
60168         2006-07-22  Bruno Haible  <bruno@clisp.org>
60169
60170                 * modules/gettext: Upgrade to gettext-0.15.
60171                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60172                 m4/visibility.m4.
60173                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60174
60175 2006-07-22  Bruno Haible  <bruno@clisp.org>
60176
60177         Merge from GNU gettext 0.15.
60178
60179         2006-03-25  Bruno Haible  <bruno@clisp.org>
60180
60181                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60182
60183         2006-07-21  Bruno Haible  <bruno@clisp.org>
60184
60185                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60186                 "1.1".
60187
60188         2006-05-09  Bruno Haible  <bruno@clisp.org>
60189
60190                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60191                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60192                 for the conftestver execution.
60193
60194         2006-05-01  Bruno Haible  <bruno@clisp.org>
60195
60196                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60197                 optional target-version argument. Verify that the compiler
60198                 groks source of the specified source-version, or add -source
60199                 option as necessary. Verify that the compiler produces
60200                 bytecode in the specified target-version, or add -target and
60201                 -source options as necessary. Make the result of the test
60202                 available as variable CONF_JAVAC. Also log error output in
60203                 config.log.
60204
60205         2006-03-11  Bruno Haible  <bruno@clisp.org>
60206
60207                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60208
60209         2006-05-09  Bruno Haible  <bruno@clisp.org>
60210
60211                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60212                 CLASSPATH_SEPARATOR to a semicolon.
60213
60214         2006-03-12  Bruno Haible  <bruno@clisp.org>
60215
60216                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60217                 available as variable CONF_JAVA, for subsequent autoconf
60218                 tests. Also log error output in config.log.
60219
60220         2006-07-19  Bruno Haible  <bruno@clisp.org>
60221
60222                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60223                 that getline works on glibc2 systems. Needed to avoid trouble
60224                 in relocatable.c.
60225                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60226
60227         2005-12-04  Bruno Haible  <bruno@clisp.org>
60228
60229                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60230                 launcher (untested).
60231
60232         2005-12-04  Bruno Haible  <bruno@clisp.org>
60233
60234                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60235
60236         2006-07-22  Bruno Haible  <bruno@clisp.org>
60237
60238                 * gettext.m4: Update from GNU gettext-0.15.
60239                 * nls.m4: Likewise.
60240                 * po.m4: Likewise.
60241                 * inttypes-pri.m4: Likewise.
60242                 * inttypes-h.m4: Renamed from inttypes.m4.
60243                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60244
60245 2006-07-22  Bruno Haible  <bruno@clisp.org>
60246
60247         Merge from GNU gettext 0.15.
60248
60249         2005-07-05  Bruno Haible  <bruno@clisp.org>
60250
60251                 * printf-args.c (printf_fetchargs): Work around broken
60252                 definition of wint_t on mingw.
60253
60254         2005-02-12  Bruno Haible  <bruno@clisp.org>
60255
60256                 * xallocsa.h: Add extern "C" for C++.
60257
60258         2006-05-17  Bruno Haible  <bruno@clisp.org>
60259
60260                 Cygwin portability.
60261                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60262
60263         2006-04-30  Bruno Haible  <bruno@clisp.org>
60264
60265                 * progreloc.c: Include <mach-o/dyld.h> if available.
60266                 (find_executable): Use _NSGetExecutablePath when possible.
60267
60268         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60269
60270                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60271                 function.
60272
60273         2005-12-29  Bruno Haible  <bruno@clisp.org>
60274
60275                 * progreloc.c (set_program_name_and_installdir): Fix
60276                 compilation error.
60277
60278         2005-12-04  Bruno Haible  <bruno@clisp.org>
60279
60280                 Cygwin portability.
60281                 * progreloc.c: Include <windows.h> also on Cygwin.
60282                 (find_executable): Add support for Cygwin.
60283                 (set_program_name_and_installdir): Handle also platforms with
60284                 nonempty EXEEXT.
60285
60286         2006-07-11  Bruno Haible  <bruno@clisp.org>
60287
60288                 * javacomp.c: Fix a comment.
60289                 Reported by Jim Meyering.
60290
60291         2006-04-30  Bruno Haible  <bruno@clisp.org>
60292
60293                 * javacomp.h (compile_java_class): Add source_version,
60294                 target_version arguments.
60295                 * javacomp.c: Rewritten to choose only a compiler that
60296                 respects the specified source_version and target_version.
60297
60298         2006-06-27  Bruno Haible  <bruno@clisp.org>
60299
60300                 Assume correct S_ISDIR macro.
60301                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60302
60303         2006-07-22  Bruno Haible  <bruno@clisp.org>
60304
60305                 * javaversion.h: New file, from GNU gettext.
60306                 * javaversion.c: New file, from GNU gettext.
60307                 * javaversion.java: New file, from GNU gettext.
60308                 * javaversion.class: New file, from GNU gettext.
60309
60310         2006-05-17  Bruno Haible  <bruno@clisp.org>
60311
60312                 Cygwin portability.
60313                 * javaexec.c (execute_java_class): Test for jview program
60314                 also on Cygwin.
60315
60316         2006-04-09  Bruno Haible  <bruno@clisp.org>
60317
60318                 * fatal-signal.c: Don't include string.h.
60319                 (at_fatal_signal): Use a copying loop instead of memcpy.
60320
60321         2005-12-04  Bruno Haible  <bruno@clisp.org>
60322
60323                 * csharpexec.c: Add support for 'clix' launcher (untested).
60324                 (execute_csharp_using_sscli): New function.
60325                 (execute_csharp_program): Call it.
60326
60327         2006-06-21  Bruno Haible  <bruno@clisp.org>
60328
60329                 Avoid warnings from recent versions of mcs.
60330                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60331                 -o, -L, -r any more. Use options documented since mcs-1.0
60332                 instead. Similarly for -g.
60333
60334         2005-07-09  Bruno Haible  <bruno@clisp.org>
60335
60336                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60337                 add a .dll suffix.
60338                 Reported by Mark Junker <mjscod@gmx.de>.
60339
60340         2006-06-17  Bruno Haible  <bruno@clisp.org>
60341
60342                 * config.charset: Update for NetBSD 3.0.
60343
60344         2006-05-17  Bruno Haible  <bruno@clisp.org>
60345
60346                 Cygwin portability.
60347                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60348
60349         2006-05-16  Bruno Haible  <bruno@clisp.org>
60350
60351                 * localcharset.c [CYGWIN]: Include <windows.h>.
60352                 (get_charset_aliases): For Cygwin, return the same CPxxx
60353                 aliases list as under WIN32.
60354                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60355                 the environment variables. Fall back to GetACP().
60356
60357         2006-04-05  Bruno Haible  <bruno@clisp.org>
60358
60359                 * config.charset: Update Juan Manuel Guerrero's address.
60360
60361         2005-02-12  Bruno Haible  <bruno@clisp.org>
60362
60363                 * allocsa.h: Add extern "C" for C++.
60364
60365         2005-02-10  Bruno Haible  <bruno@clisp.org>
60366
60367                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60368                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60369
60370         2006-07-22  Bruno Haible  <bruno@clisp.org>
60371
60372                 * gettext.h: Update to GNU gettext-0.15.
60373
60374 2006-07-22  Bruno Haible  <bruno@clisp.org>
60375
60376         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60377         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60378         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60379
60380 2006-07-21  Eric Blake  <ebb9@byu.net>
60381
60382         * modules/stdlib-safer: New file.
60383         * MODULES.html.sh (File stream based Input/Output): Add
60384         stdlib-safer.
60385
60386 2006-07-21  Eric Blake  <ebb9@byu.net>
60387
60388         * lib/stdlib-safer.h: New file from coreutils, required by
60389         stdlib--.h.
60390
60391 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60394
60395 2006-07-20  Bruno Haible  <bruno@clisp.org>
60396
60397         * gnulib-tool: Recognize new option --assume-autoconf.
60398         (autoconf_minversion): New variable.
60399         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60400
60401 2006-07-20  Bruno Haible  <bruno@clisp.org>
60402
60403         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60404
60405 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60406
60407         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60408         Reindent and repaginate.
60409
60410 2006-07-19  Derek Price  <derek@ximbiot.com>
60411
60412         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60413         Correct grammar.
60414
60415 2006-07-17  Bruno Haible  <bruno@clisp.org>
60416
60417         * modules/list: New file.
60418         * modules/array-list: New file.
60419         * modules/carray-list, modules/carray-list-tests: New files.
60420         * modules/linked-list, modules/linked-list-tests: New files.
60421         * modules/avltree-list, modules/avltree-list-tests: New files.
60422         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60423         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60424         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60425         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60426         * modules/oset: New file.
60427         * modules/array-oset: New file.
60428         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60429         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60430         * tests/test-carray_list.c: New file.
60431         * tests/test-linked_list.c: New file.
60432         * tests/test-avltree_list.c: New file.
60433         * tests/test-rbtree_list.c: New file.
60434         * tests/test-linkedhash_list.c: New file.
60435         * tests/test-avltreehash_list.c: New file.
60436         * tests/test-rbtreehash_list.c: New file.
60437         * tests/test-avltree_oset.c: New file.
60438         * tests/test-rbtree_oset.c: New file.
60439         * MODULES.html.sh (Container data structures): New section.
60440
60441 2006-07-17  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/gl_list.m4: New file.
60444
60445 2006-07-17  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/gl_list.h: New file.
60448         * lib/gl_list.c: New file.
60449         * lib/gl_array_list.h: New file.
60450         * lib/gl_array_list.c: New file.
60451         * lib/gl_carray_list.h: New file.
60452         * lib/gl_carray_list.c: New file.
60453         * lib/gl_linked_list.h: New file.
60454         * lib/gl_linked_list.c: New file.
60455         * lib/gl_anylinked_list1.h: New file.
60456         * lib/gl_anylinked_list2.h: New file.
60457         * lib/gl_avltree_list.h: New file.
60458         * lib/gl_avltree_list.c: New file.
60459         * lib/gl_anyavltree_list1.h: New file.
60460         * lib/gl_anyavltree_list2.h: New file.
60461         * lib/gl_rbtree_list.h: New file.
60462         * lib/gl_rbtree_list.c: New file.
60463         * lib/gl_anyrbtree_list1.h: New file.
60464         * lib/gl_anyrbtree_list2.h: New file.
60465         * lib/gl_anytree_list1.h: New file.
60466         * lib/gl_anytree_list2.h: New file.
60467         * lib/gl_linkedhash_list.h: New file.
60468         * lib/gl_linkedhash_list.c: New file.
60469         * lib/gl_anyhash_list1.h: New file.
60470         * lib/gl_anyhash_list2.h: New file.
60471         * lib/gl_avltreehash_list.h: New file.
60472         * lib/gl_avltreehash_list.c: New file.
60473         * lib/gl_rbtreehash_list.h: New file.
60474         * lib/gl_rbtreehash_list.c: New file.
60475         * lib/gl_anytreehash_list1.h: New file.
60476         * lib/gl_anytreehash_list2.h: New file.
60477
60478         * lib/gl_oset.h: New file.
60479         * lib/gl_oset.c: New file.
60480         * lib/gl_array_oset.h: New file.
60481         * lib/gl_array_oset.c: New file.
60482         * lib/gl_avltree_oset.h: New file.
60483         * lib/gl_avltree_oset.c: New file.
60484         * lib/gl_rbtree_oset.h: New file.
60485         * lib/gl_rbtree_oset.c: New file.
60486         * lib/gl_anytree_oset.h: New file.
60487
60488 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * m4/mkancesdirs.m4: New file.
60491         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60492         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60493         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60494         it.
60495
60496 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60499         * lib/mkancesdirs.h: New files.
60500         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60501         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60502         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60503         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60504         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60505         callers changed.  Revamp internals significantly, by not
60506         attempting to create directories that are temporarily more
60507         permissive than the final results.  Do not attempt to use
60508         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60509         This removes some race conditions, fixes some bugs, and simplifies
60510         things.  Use new dirchownmod function to do owner and mode changes.
60511         * lib/mkdir-p.h: Likewise.
60512         * lib/modechange.c (octal_to_mode): New function.
60513         (struct mode_change): New member mentioned.
60514         (make_node_op_equals): New arg mentioned.  All callers changed.
60515         (mode_compile): Keep track of which mode bits the user has explicitly
60516         mentioned.
60517         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60518         New arg PMODE_BITS, to keep track of which mode bits the user
60519         mentioned; it treats S_ISUID and S_ISGID speciall.
60520         All callers changed.
60521         * lib/modechange.h: Likewise.
60522
60523 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * MODULES.html.sh: Add mkancestors.
60526         * modules/mkancesdirs: New module.
60527         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60528         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60529         The chdir-safer and afs files are now orphans; I'll remove them
60530         unless someone speaks up.
60531         Add lib/dirchownmod.c, lib/dirchownmod.h.
60532         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60533         Add lchown, mkancesdirs.
60534         (Maintainer): Add self.
60535
60536 2006-07-15  Karl Berry  <karl@gnu.org>
60537
60538         * gnulib-tool: help message wording/arrangement.
60539
60540 2006-07-14  Simon Josefsson  <jas@extundo.com>
60541
60542         * doc/gnulib.texi (Libtool and Windows): New section.
60543
60544 2006-07-12  Simon Josefsson  <jas@extundo.com>
60545
60546         * modules/gendocs (License): Fix license, approved by Karl.
60547
60548 2006-07-12  Eric Blake  <ebb9@byu.net>
60549
60550         * MODULES.html.sh: Add gendocs.
60551
60552 2006-07-11  Eric Blake  <ebb9@byu.net>
60553
60554         * modules/fdl: New module, to install doc/fdl.texi.
60555         * MODULES.html.sh: Add new section for documentation modules.
60556         * gnulib-tool: Avoid space-tab.
60557         (--doc-base): New option, to manage files from doc.
60558
60559 2006-07-11  Eric Blake  <ebb9@byu.net>
60560
60561         * m4/absolute-header.m4: Fix comments to match recent change.
60562
60563 2006-07-11  Eric Blake  <ebb9@byu.net>
60564
60565         * gnulib-tool: List --doc-base before --tests-base.
60566
60567 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60568
60569         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60570
60571 2006-07-11  Bruno Haible  <bruno@clisp.org>
60572
60573         * README: Mention where to put documentation.
60574
60575 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60576
60577         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60578
60579 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60582         to stdint.m4.
60583
60584 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60585
60586         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60587         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60588         "no/such/file/stdint.h" when there is no such file, so that
60589         the resulting C code can be parsed by dodgy compilers.
60590         Problems reported by Bob Proulx.
60591
60592 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60593
60594         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60595         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60596         macros into the GNU _D_EXACT_NAMLEN.
60597         * lib/savedir.c:  Likewise.
60598         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60599
60600 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60601         and Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60604         * m4/savedir.m4:
60605         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60606         macros into the GNU _D_EXACT_NAMLEN.
60607
60608 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60609
60610         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60611         around the absolute name, to work around a problem with the HP-UX
60612         11.23 native C compiler, reported by Bob Proulx.
60613
60614 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * doc/maintain.texi, make-stds.texi: Sync from
60617         <http://savannah.gnu.org/projects/gnustandards>.
60618
60619 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60620
60621         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60622
60623 2006-07-09  Jim Meyering  <jim@meyering.net>
60624
60625         * m4/glob.m4: Remove a doubled word in a comment.
60626
60627 2006-07-09  Jim Meyering  <jim@meyering.net>
60628
60629         * lib/argp-pv.c: Remove a doubled word in a comment.
60630         * lib/check-version.c (check_version): Likewise.
60631         * lib/javacomp.c (compile_java_class): Likewise.
60632
60633 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60634
60635         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60636         for the benefit of people using Autoconf 2.60.  If you want to
60637         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60638         (or m4/onceonly.m4, if pre-2.57) manually.
60639
60640 2006-07-08  Jim Meyering  <jim@meyering.net>
60641
60642         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60643         comment.
60644         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60645         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60646         comment.
60647
60648 2006-07-08  Jim Meyering  <jim@meyering.net>
60649
60650         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60651
60652 2006-07-07  Simon Josefsson  <jas@extundo.com>
60653
60654         * tests/test-crc.c: Change expected crc value, the test vector
60655         were probably computed using the old broken crc.c?
60656
60657 2006-07-06  Simon Josefsson  <jas@extundo.com>
60658
60659         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60660         now the canonical place for the M4 file).
60661
60662         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60663         from the sys_socket dependency now.
60664
60665         * modules/inet_pton (Files): Ditto.
60666
60667         * modules/inet_ntop (Files): Ditto.
60668
60669 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60670
60671         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60672         not gl_PREREQ_GETUSERSHELL.
60673
60674 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60675
60676         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60677         with only one argument, for Autoconf 2.60.
60678         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60679         expand to nothing, so add a shell command to avoid syntax error.
60680         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60681
60682 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60683
60684         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60685
60686 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60687
60688         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60689         no longer needed.  Check for isblank decl.
60690         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60691         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60692         of existence.
60693
60694 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60695
60696         * lib/getloadavg.c: Use __VMS, not VMS.
60697         * lib/getopt.c: Likewise.
60698         * lib/getpagesize.h: Likewise.
60699         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60700         and probably does not work.
60701
60702 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60703
60704         * lib/.cppi-disable: Add wcwidth.
60705         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60706         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60707         (ISGRAPH): Remove.  All uses changed to isgraph.
60708         (FOLD) [!defined _LIBC]: Remove special case.
60709         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60710         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60711         HAVE_ISBLANK.
60712         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60713         case.
60714
60715 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60716
60717         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60718         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60719         brackets.  Other minor changes to suppress some compiler
60720         warnings.
60721
60722 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60723         and Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60726         of invoking obsolescent AC_HEADER_DIRENT macro.
60727         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60728         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60729         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60731         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60732         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60733         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60734         * m4/readdir.m4: Remove; no longer needed.
60735
60736 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60737         and Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60740         Don't worry about this obsolete case any more.
60741         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60742         directories.
60743         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60744         worry about this obsolete case any more.
60745         * lib/fts.c: Likewise.
60746         * lib/getcwd.c: Likewise.
60747         * lib/glob.h: Likewise.
60748         * lib/savedir.c: Likewise.
60749
60750 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60753         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60754         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60755         needed.
60756         All uses removed.
60757         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60758         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60759         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60760         needed.
60761         * m4/getdate.m4 (gl_GETDATE): Likewise.
60762         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60763         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60764         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60765         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60766         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60767         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60768         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60769         needed.
60770
60771 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60772
60773         * lib/memcasecmp.c: Include <limits.h>.
60774         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60775         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60776         Don't assume isdigit succeeds only on '0' through '9'.
60777
60778 2006-07-05  Eric Blake  <ebb9@byu.net>
60779
60780         * modules/getaddrinfo (Depends-on): Add snprintf.
60781
60782 2006-07-05  Eric Blake  <ebb9@byu.net>
60783
60784         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60785         to avoid 'header present but could not be compiled' on cygwin.
60786
60787 2006-07-05  Eric Blake  <ebb9@byu.net>
60788
60789         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60790         missing from netdb.h.
60791         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60792
60793 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60794
60795         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60796         no longer needed.
60797         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60798         * m4/getdate.m4 (gl_GETDATE): Likewise.
60799         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60800         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60801         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60802         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60803         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60804
60805 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60806
60807         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60808         All uses of is_space replaced by isspace.
60809         * lib/exit.h: Don't talk about STDC_HEADERS.
60810         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60811         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60812         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60813         replaced by isprint etc.
60814         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60815         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60816         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60817         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60818         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60819         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60820
60821 2006-07-05  Bruno Haible  <bruno@clisp.org>
60822
60823         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60824         the function exists, before testing against AIX.
60825         Reported by Martin Lambers <marlam@marlam.de>.
60826
60827 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60830         From Mark D. Baushke.
60831
60832 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60833
60834         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60835         to the absolute name, not just one, to bypass Sun C 5.8's
60836         "warning: #include of /usr/include/... may be non-portable".
60837
60838 2006-07-04  Eric Blake  <ebb9@byu.net>
60839
60840         * modules/dirname-tests: New test module.
60841         * tests/test-dirname.c: New file, replacing dirname.c
60842         TEST_DIRNAME section that was recently deleted.
60843
60844 2006-07-04  Bruno Haible  <bruno@clisp.org>
60845
60846         Assume ANSI C header files and <ctype.h> functions.
60847         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60848         (mbsnwidth): Use isprint, iscntrl instead.
60849
60850 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         Merge from coreutils.
60853         * MODULES.html.sh: Add xstrtold.
60854         * modules/xstrtold: New file.
60855         * modules/cycle-check (Files): Add lib/same-inode.h.
60856         * modules/dirname (Files): Add m4/double-slash-root.m4.
60857         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60858         * modules/mkdir-p (Files): Add lib/same-inode.h.
60859         * modules/same (Files): Add lib/same-inode.h.
60860
60861 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60864         This is to keep the terminology clean; POSIX talks about
60865         "absolute pathnames", not "full pathnames", but the GNU
60866         Coding Standards say to use "path" for something else;
60867         so use "absolute" to keep both sides happy.
60868         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60869         Set gl_absolute_header, not gl_full_header_path.
60870         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60871         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60872         All uses changed.
60873
60874         Merge from coreutils.
60875
60876         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60879         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60880         want to require the building of c-strtod.o.
60881         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60882         needs -lm directly.
60883         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60884
60885         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60888         --as-needed option if available.  Problem reported by Albert Chin in
60889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60890         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60891         cc merely issues a bunch of annoying warnings for --as-needed
60892         (this problem was reported by Bob Proulx).  Also, try linking with
60893         -lm to detect a bug in binutils 2.16 (this problem was reported
60894         by Ralf Wildenhues).
60895
60896         2006-06-18  Jim Meyering  <jim@meyering.net>
60897
60898         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60899         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60900         macro.
60901         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60902         also check for glibc-2.4's abort-inducing bug.
60903
60904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60905         Low-probability clean-up should be to use rmdir to get rid of
60906         the just-created directory, not unlink.
60907
60908         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60909         configure fail, and request a bug report to inform us about it.
60910         Add a comment that, barring reports to the contrary, in 2007 we'll
60911         assume ftruncate is universally available.
60912
60913         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60916
60917         2006-03-12  Jim Meyering  <jim@meyering.net>
60918
60919         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60920         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60921         * m4/same.m4 (gl_SAME): Likewise.
60922         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60923
60924         2006-03-11  Eric Blake  <ebb9@byu.net>
60925
60926         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60927         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60928         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60929         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60930
60931 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60934         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60935         reported by Mark D. Baushke, one in
60936         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60937
60938         Merge from coreutils.
60939
60940         * lib/.cppi-disable: Add stdint_.h.
60941         * lib/.cvsignore: Add stdint.h.
60942
60943         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60946         both double and long double versions.
60947         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60948         * lib/xstrtold.c: New file.
60949         * lib/xstrtod.h (xstrtold): New decl.
60950
60951         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * lib/filemode.c (setst): Remove.
60954         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60955         (arguably) clearer, and the generated code is a bit smaller on my
60956         Debian GNU/Linux stable x86 host.
60957
60958         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60961         Assume that filemode.h includes sys/types.h and sys/stat.h.
60962         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60963         (ftypelet): Reorder to put common cases first, for efficiency.
60964         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60965         to do 'M'.
60966         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60967         of 10, for compatibility with FreeBSD.  All callers changed.
60968         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60969         types that can't be deduced solely from st_mode.  First arg is now a
60970         const pointer.
60971         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60972         (strmode): Renamed from mode_string.
60973         (filemodestring): New decl.
60974         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60975         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60976         needed.
60977         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60978
60979         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60982         fsusage.h now does that.  Include fsusage.h first, to test interface.
60983         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60984         at most one method (the old code could have generated decls that
60985         didn't conform to C89, not that this was ever exercised).
60986         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60987
60988         2006-03-19  Jim Meyering  <jim@meyering.net>
60989
60990         Work even in a chroot where d_ino values for entries in "/"
60991         don't match the stat.st_ino values for the same names.
60992         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60993         number, iterate through all entries again, using lstat instead.
60994         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60995         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60996
60997         * lib/getcwd.c (__getcwd): Clarify a comment.
60998         Use memcpy in place of a call to strcpy.
60999
61000         2006-03-12  Jim Meyering  <jim@meyering.net>
61001
61002         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61003         matches that of the current directory (which we're about to chdir ".."
61004         out of), then save the dev-ino of the parent, instead.
61005
61006         * lib/same-inode.h (SAME_INODE): New file/macro.
61007         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61008         Include "same-inode.h", instead.
61009         * lib/same.c: Likewise.
61010         * lib/cycle-check.h: Include "same-inode.h".
61011         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61012         * lib/cycle-check.c (SAME_INODE): Remove definition.
61013         * lib/root-dev-ino.h: Include "same-inode.h".
61014
61015         2006-03-11  Eric Blake  <ebb9@byu.net>
61016
61017         * lib/same.c (same_name): s/base_name/last_component/
61018         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61019         * lib/filenamecat.c (file_name_concat): Likewise.
61020
61021         2006-03-11  Eric Blake  <ebb9@byu.net>,
61022                     Paul Eggert  <eggert@cs.ucla.edu>
61023
61024         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61025         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61026         drive prefix.
61027         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61028         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61029         (last_component): New method.
61030         * lib/dirname.c (dir_len): Determine when drive letters need a
61031         subsequent slash.  Preserve // when it is special.
61032         (dir_name): Don't append dot when drive letter is absolute.
61033         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61034         * lib/basename.c (base_name): New semantics - malloc the result.
61035         Preserve // when it is special.  Preserve relative files that look
61036         like drive letters.
61037         (base_len): Preserve // when it is special.
61038         (last_component): New method, similar to old base_name semantics.
61039         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61040         base_name.  Strip redundant slashes from ///.
61041
61042 2006-07-03  Jim Meyering  <jim@meyering.net>
61043
61044         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61045         macro is used before the first cycle_check call.
61046
61047 2006-07-03  Eric Blake  <ebb9@byu.net>
61048
61049         * modules/dirname (Depends-on): Add xstrndup.
61050
61051 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61054         test cases, so that config.log is a bit easier to follow.
61055
61056 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61059         both are 64 bits, since this seems to be the tradition, and this
61060         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61061         we ever run into a host that prefers long long to long in this
61062         case, we'll need another configure-time test.  Problem reported by
61063         Jim Meyering.
61064
61065 2006-07-02  Eric Blake  <ebb9@byu.net>
61066
61067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61068
61069 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * modules/inttypes (Depends-on): No longer depends on stdint.
61072         * modules/stdint (Description): Say more about assumptions.
61073         Say that the fast types might differ.  Say macros are used.
61074         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61075         (Makefile.am): Revise list of substituted symbols to match
61076         new stdint.m4.
61077         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61078         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61079         * tests/test-stdint.c (verify_same_types)
61080         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61081         the code conforms to C99/C89.
61082         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61083         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61084
61085 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61088         but fix a bug, by requiring at least 64 bits.
61089         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61090         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61091         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61092         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61093
61094         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61095         changes.  Make 2.59 a prerequisite.  Check and substitute for
61096         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61097         inttypes.h.  Do not use special include files; just use the
61098         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61099         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61100         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61101         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61102         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61103         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61104         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61105         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61106         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61107         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61108         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61109         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61110         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61111         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61112         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61113         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61114         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61115         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61116         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61117         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61118         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61119         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61120         not check for things that C99 does not require, e.g., int8_t.  If
61121         a test isn't needed unless <stdint.h> isn't working, and is
61122         unlikely to be needed for any other reason, then don't do it
61123         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61124         size_t, since we assume C89 freestanding at least.  Do not check
61125         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61126         the right thing even if the types are not defined.  Instead use:
61127         (gl_STDINT_TYPE_PROPERTIES): New macro.
61128         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61129         testing whether <sys/types.h> clashes, as Autoconf does this for
61130         us now.  All uses removed.
61131         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61132         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61133         (gl_CHECK_TYPE_SAME):
61134         Remove; no longer needed.
61135         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61136         exists, since we'll return 0 anyway in that case.
61137         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61138
61139 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61140
61141         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61142         possible collision with system files.
61143         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61144         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61145         WCHAR_MIN and WCHAR_MAX in this case.
61146         (<stddef.h>): Do not include; no longer needed.
61147         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61148         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61149         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61150         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61151         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61152         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61153         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61154         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61155         !defined(__c99))]: Include in this case too, since it's harmless
61156         now.
61157         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61158         dangerous to do so.
61159         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61160         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61161         (_STDINT_MIN, _STDINT_MAX): New macros.
61162         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61163         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61164         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61165         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61166         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61167         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61168         macros, not typedefs; this simplifies things quite a bit.
61169         Use long int for all types narrower than int64_t.
61170         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61171         Define in terms of long long int or int64_t or long int,
61172         not int64_t or int32_t.  This saves some compile-time testing.
61173         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61174         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61175         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61176         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61177         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61178         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61179         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61180         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61181         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61182         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61183         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61184         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61185         undef any previous version and define our own version, for
61186         simplicity and consistency with the new macros for types.
61187         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61188         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61189         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61190         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61191         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61192         @WINT_T_SUFFIX@ to keep things simple here.
61193         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61194         Simplify by assuming typical 8/16/32/64 host, since we're
61195         already doing that elsewhere anyway.
61196         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61197         and assume long long int is 64 bits if available.  This
61198         speeds up 'configure'.
61199
61200 2006-07-01  Eric Blake  <ebb9@byu.net>
61201
61202         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61203         Reported by Andreas Buening.
61204
61205 2006-07-01  Eric Blake  <ebb9@byu.net>
61206
61207         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61208
61209 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61210
61211         * lib/getaddrinfo.c: fixed typo
61212
61213 2006-06-29  Jim Meyering  <jim@meyering.net>
61214
61215         * modules/strftime (Maintainer): Add my name, since with the
61216         FPRINTFTIME changes strftime.c has forked from glibc.
61217
61218 2006-06-29  Eric Blake  <ebb9@byu.net>
61219
61220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61221
61222 2006-06-29  Eric Blake  <ebb9@byu.net>
61223
61224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61225
61226 2006-06-29  Eric Blake  <ebb9@byu.net>
61227
61228         * lib/stat_.h: New file.
61229
61230 2006-06-29  Eric Blake  <ebb9@byu.net>
61231
61232         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61233         unused static function.
61234
61235 2006-06-29  Eric Blake  <ebb9@byu.net>
61236
61237         * doc/functions.texi (Function Portability): Document missing lstat
61238         on mingw.
61239
61240 2006-06-29  Eric Blake  <ebb9@byu.net>
61241
61242         * MODULES.html.sh: Add sys_stat.
61243         * modules/sys_stat: New module.
61244         * modules/mkstemp (Depends-on): Add sys_stat.
61245
61246 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61247
61248         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61249
61250 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61251
61252         * m4/c-bs-a.m4: Removed.
61253
61254 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61255
61256         * lib/strftime.c: Assume strftime() exists.
61257
61258 2006-06-29  Derek Price  <derek@ximbiot.com>
61259
61260         * modules/c-bs-a: Removed - \a is C89.
61261         * MODULES.html.sh: Remove c-bs-a.
61262
61263 2006-06-29  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/wcwidth (License): Change to LGPL.
61266
61267 2006-06-28  Simon Josefsson  <jas@extundo.com>
61268
61269         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61270         on _WIN32.
61271
61272         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61273         getnameinfo.
61274
61275 2006-06-28  Simon Josefsson  <jas@extundo.com>
61276
61277         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61278
61279 2006-06-28  Simon Josefsson  <jas@extundo.com>
61280
61281         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61282         functions there.  It will succeed on Windows XP, but on Windows
61283         2000 and (presumably) earlier, it will fail, and use the internal
61284         re-implementation.
61285         (use_win32_p): New function.
61286         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61287         Support AI_NUMERICSERV to disable getservbyname.
61288         (getnameinfo): New function, only supports
61289         NI_NUMERICHOST|NI_NUMERICSERV for now.
61290
61291         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61292         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61293         getnameinfo.
61294
61295 2006-06-28  Eric Blake  <ebb9@byu.net>
61296
61297         * modules/wcwidth: New file.
61298         * modules/mbchar (Depends-on): Add wcwidth.
61299         * modules/mbswidth (Depends-on): Add wcwidth.
61300         * MODULES.html.sh: Add wcwidth.
61301
61302 2006-06-28  Eric Blake  <ebb9@byu.net>
61303
61304         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61306
61307 2006-06-28  Eric Blake  <ebb9@byu.net>
61308
61309         * lib/xvasprintf.h: Fix comments.
61310
61311 2006-06-28  Eric Blake  <ebb9@byu.net>
61312
61313         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61314         * lib/mbswidth.c (wcwidth): Move from here...
61315         * lib/wcwidth.h: ...to this new file.
61316
61317 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61318
61319         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61320
61321         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61322         it's obsolete.
61323         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61324
61325 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61326
61327         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61328         Autoconf 2.60 says this stuff was obsolete.
61329
61330 2006-06-28  Bruno Haible  <bruno@clisp.org>
61331
61332         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61333
61334 2006-06-28  Bruno Haible  <bruno@clisp.org>
61335
61336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61337         gt_TYPE_WCHAR_T.
61338
61339 2006-06-28  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61342         declaration for wcwidth.
61343         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61344
61345 2006-06-28  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61348         (mkdir): Define using _mkdir.
61349
61350 2006-06-28  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/getaddrinfo.h: Fix POSIX URL.
61353         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61354         _WIN32.
61355         (use_win32_p): Make static.
61356         (getaddrinfo): Reject service name if it is empty or does not consist
61357         solely of decimal digits, or if its value is > 65535.
61358         (getnameinfo): Remove useless casts.
61359
61360 2006-06-27  Simon Josefsson  <jas@extundo.com>
61361
61362         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61363         Eggert and Martin Lambers.
61364
61365 2006-06-27  Simon Josefsson  <jas@extundo.com>
61366
61367         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61368         Eggert and Martin Lambers.
61369
61370 2006-06-27  Bruno Haible  <bruno@clisp.org>
61371
61372         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61373         result to 0, not to empty.
61374         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61375
61376 2006-06-27  Bruno Haible  <bruno@clisp.org>
61377
61378         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61379
61380 2006-06-26  Simon Josefsson  <jas@extundo.com>
61381
61382         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61383         present.
61384
61385 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61386
61387         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61388         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61390
61391 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61392
61393         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61394
61395 2006-06-26  Bruno Haible  <bruno@clisp.org>
61396
61397         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61398
61399 2006-06-26  Bruno Haible  <bruno@clisp.org>
61400
61401         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61402
61403 2006-06-26  Bruno Haible  <bruno@clisp.org>
61404
61405         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61406         SGI C compiler in pre-C99 mode.
61407         Suggested by Mark D. Baushke and Larry Jones.
61408
61409 2006-06-26  Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61412         WCHAR_MAX.
61413         Reported by Mark D. Baushke and Larry Jones.
61414
61415 2006-06-26  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61418         in pre-C99 mode.
61419         Suggested by Mark D. Baushke and Larry Jones.
61420
61421 2006-06-23  Simon Josefsson  <jas@extundo.com>
61422             Bruno Haible  <bruno@clisp.org>
61423
61424         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61425         Emit mostlyclean-local rule.
61426         (func_emit_tests_Makefile_am): Likewise.
61427         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61428
61429 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61430
61431         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61432
61433 2006-06-23  Bruno Haible  <bruno@clisp.org>
61434
61435         * tests/test-stdint.c: Update to match ISO C 99 Technical
61436         Corrigendum 1.
61437
61438 2006-06-23  Bruno Haible  <bruno@clisp.org>
61439
61440         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61441
61442 2006-06-23  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/stdint_.h: Treat IRIX like OpenBSD.
61445
61446 2006-06-23  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61449         ISO C 99 Technical Corrigendum 1.
61450
61451 2006-06-22  Simon Josefsson  <jas@extundo.com>
61452
61453         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61454         MinGW.
61455
61456 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61459         needed.  Some compiler complained about some of them.  Problem reported
61460         by Larry Jones in
61461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61462
61463 2006-06-21  Simon Josefsson  <jas@extundo.com>
61464
61465         * tests/test-getaddrinfo.c: New file.
61466
61467         * modules/getaddrinfo-tests: New file.
61468
61469         * MODULES.html.sh: Add inet_pton.
61470
61471         * modules/inet_pton: New file.
61472
61473 2006-06-21  Simon Josefsson  <jas@extundo.com>
61474
61475         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61476         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61477         of using the (limited) gnulib implementation on Windows XP.
61478
61479         * m4/inet_pton.m4: New file.
61480
61481 2006-06-21  Simon Josefsson  <jas@extundo.com>
61482
61483         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61484         variable.
61485
61486         * lib/socket_.h: Don't define WINVER.
61487
61488         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61489         slightly modified to work in gnulib.
61490
61491 2006-06-21  Simon Josefsson  <jas@extundo.com>
61492
61493         * doc/gnulib.texi (Windows sockets): Add.
61494
61495 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * lib/read-file.c (fread_file): Start with buffer allocation of
61498         0 bytes rather than 1 byte; this simplifies the code.
61499         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61500         code to free buffer and save/restore errno.
61501         (internal_read_file): Remove unused local.
61502
61503 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61506         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61507         Problem reported by Denis Excoffier in
61508         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61509
61510 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61511
61512         * modules/sys_socket, modules/socklen: Include sys/types since
61513         FreeBSD 4.x's sys/socket.h needs it.
61514
61515 2006-06-19  Simon Josefsson  <jas@extundo.com>
61516
61517         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61518
61519 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61522
61523 2006-06-19  Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61526         and FULL_PATH_INTTYPES_H in angle brackets.
61527         Reported by Mark D. Baushke <mdb@gnu.org>.
61528
61529 2006-06-17  Eric Blake  <ebb9@byu.net>
61530
61531         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61532         errno.
61533
61534 2006-06-17  Bruno Haible  <bruno@clisp.org>
61535
61536         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61537         <sys/inttypes.h>.
61538
61539 2006-06-17  Bruno Haible  <bruno@clisp.org>
61540
61541         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61542         whether errno is declared. Assume <errno.h> declares errno.
61543
61544 2006-06-17  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61547
61548 2006-06-17  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61551         problem on Solaris 2.5.1.
61552
61553 2006-06-16  Eric Blake  <ebb9@byu.net>
61554
61555         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61556         * lib/unicodeio.c [!defined errno]: Likewise.
61557         * lib/strtol.c [!defined errno]: Likewise.
61558         * lib/strtod.c [!defined errno]: Likewise.
61559
61560 2006-06-15  Eric Blake  <ebb9@byu.net>
61561
61562         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61563
61564 2006-06-15  Eric Blake  <ebb9@byu.net>
61565
61566         * config/srclist.txt (ssize_t.m4): Lose sync.
61567
61568 2006-06-15  Bruno Haible  <bruno@clisp.org>
61569
61570         * modules/stdint (Files): Include m4/full-header-path.m4,
61571         m4/size_max.m4, m4/wchar_t.m4.
61572         (Makefile.am): Many more substitutions.
61573         * modules/stdint-tests: New file.
61574         * tests/test-stdint.c: New file.
61575
61576 2006-06-15  Bruno Haible  <bruno@clisp.org>
61577
61578         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61579         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61580         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61581         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61582         gl_CHECK_TYPE_SAME): New macros.
61583
61584 2006-06-15  Bruno Haible  <bruno@clisp.org>
61585
61586         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61587
61588 2006-06-15  Bruno Haible  <bruno@clisp.org>
61589
61590         * lib/stdint_.h: Rewritten to be fully auto-configured.
61591         Fixes bug on HP-UX/IA64.
61592
61593 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61594
61595         * lib/getdate.y (__attribute__): Don't define if already defined.
61596         Problem reported by Larry Jones.
61597         * lib/utimens.c (__attribute__): Likewise.
61598
61599 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61602         reported by Andreas Schwab.
61603
61604 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61605             Bruno Haible  <bruno@clisp.org>
61606
61607         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61608         check for the declaration of strnlen and a run test that exposes the
61609         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61610         rpl_strndup.
61611
61612 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61613             Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61616
61617 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61618
61619         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61620         compile test, for Tru64 4.0D.
61621
61622 2006-05-28  Karl Berry  <karl@gnu.org>
61623
61624         * config/srclist.txt (printf-args.c): lose sync.
61625
61626 2006-05-26  Martin Lambers  <marlam@marlam.de>
61627
61628         * lib/getpass.c: Updates the test for the native W32 API, and adds
61629         missing includes, thus fixing compilation warnings.
61630
61631 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61632
61633         * lib/exclude.c (exclude_fnmatch): New function.
61634         (excluded_file_name): Call exclude_fnmatch.
61635         * lib/exclude.h (excluded_file_name): New prototype
61636
61637 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61638
61639         * lib/tempname.c (small_open, large_open): New macros.
61640         (__open, __open64) [!_LIBC]: Remove.
61641         (__gen_tempname): Use small_open and large_open instead of __open
61642         and __open64.  This fixes a portability bug on HP-UX 11.11i
61643         reported by Simon Wing-Tang in
61644         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61645
61646 2006-05-24  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61649         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61650         Reported by Thorsten Maerz <torte@netztorte.de> via
61651         Aaron Stone <aaron@serendipity.cx>.
61652
61653 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61656         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61657         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61658         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61659         not really conditional on the cache.
61660         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61661
61662 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61665         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61666         (my_usleep): Don't mishandle maximum value.
61667
61668 2006-05-19  Jim Meyering  <jim@meyering.net>
61669
61670         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61671
61672 2006-05-17  Bruno Haible  <bruno@clisp.org>
61673
61674         Cygwin portability.
61675         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61676
61677 2006-05-17  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/stdint_.h: Fix recognition of Cygwin.
61680
61681 2006-05-15  Bruno Haible  <bruno@clisp.org>
61682
61683         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61684         on libtool patch by Ralf Wildenhues.
61685
61686 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61689         test for C99 conformance; (bool) 0.5 is an integer constant
61690         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61691         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61692
61693 2006-05-11  Simon Josefsson  <jas@extundo.com>
61694
61695         * m4/xvasprintf.m4: Fix obvious typo.
61696
61697 2006-05-11  Jim Meyering  <jim@meyering.net>
61698
61699         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61700         James Lemley.
61701
61702 2006-05-10  Simon Josefsson  <jas@extundo.com>
61703
61704         * lib/md4.c: Typo fix, update copyright years.
61705         (K1, K2): Don't use L because it turn computations into 64-bit on
61706         64-bit platforms.
61707
61708 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61711         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61712         unwanted sign propagation, e.g., on hosts with 64-bit int.
61713         There still are some problems with reeelly weird theoretical hosts
61714         (e.g., 33-bit int) but it's not worth worrying about now.
61715         * lib/sha1.c (rol): Likewise.
61716         (K1, K2, K3, K4): Remove unnecessary L suffix.
61717
61718 2006-05-10  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/des.c: Cast to avoid warnings.
61721
61722 2006-05-09  Bruno Haible  <bruno@clisp.org>
61723
61724         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61725         (Depends-on): Depend also on xsize, stdarg.
61726         (configure.ac): Add gl_XVASPRINTF.
61727
61728 2006-05-09  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/xvasprintf.m4: New file.
61731
61732 2006-05-09  Bruno Haible  <bruno@clisp.org>
61733
61734         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61735         (EOVERFLOW): Define fallback value.
61736         (xstrcat): New function.
61737         (xvasprintf): Recognize the special case of a string concatenation.
61738
61739 2006-05-08  Eric Blake  <ebb9@byu.net>
61740
61741         * gnulib-tool (func_version): Base copyright year on CVS date.
61742         (func_emit_copyright_notice): New function.
61743         (func_emit_lib_Makefile_am): Use it.
61744         (func_emit_tests_Makefile_am): Likewise.
61745         (func_import): Likewise.
61746
61747 2006-05-08  Bruno Haible  <bruno@clisp.org>
61748
61749         * modules/stdarg: New file.
61750         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61751
61752 2006-05-08  Bruno Haible  <bruno@clisp.org>
61753
61754         * m4/stdarg.m4: New file, from GNU gettext.
61755
61756 2006-05-08  Bruno Haible  <bruno@clisp.org>
61757
61758         * config/srclist.txt (build-aux/config.rpath): different from latest
61759         release.
61760
61761 2006-05-08  Bruno Haible  <bruno@clisp.org>
61762
61763         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61764
61765 2006-05-05  Jim Meyering  <jim@meyering.net>
61766
61767         * m4/warning.m4: New file, derived from bison's file by the same name.
61768
61769 2006-05-03  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/stdint_.h: Shorter URL.
61772         * lib/inttypes.h: Likewise.
61773
61774 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61777
61778 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61779
61780         * lib/verify.h: Document the internals better.  Most of this change
61781         was written by Bruno Haible.
61782
61783 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * doc/verify.texi: New file, partly based on a proposal by
61786         Bruno Haible.
61787
61788 2006-05-02  Bruno Haible  <bruno@clisp.org>
61789
61790         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61791         test from here...
61792         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61793
61794 2006-04-29  Bruno Haible  <bruno@clisp.org>
61795
61796         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61797         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61798
61799 2006-04-29  Bruno Haible  <bruno@clisp.org>
61800
61801         * gnulib-tool: Make --update option actually work.
61802
61803 2006-04-29  Bruno Haible  <bruno@clisp.org>
61804
61805         * doc/gcd.texi: New file.
61806         * doc/gnulib.texi: Include it.
61807
61808 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         * lib/getdate.y (get_date): When adding relative date, start with the
61811         initial time, not with the result of the first mktime call.
61812
61813 2006-04-25  Bruno Haible  <bruno@clisp.org>
61814
61815         * gnulib-tool (func_import): Output the include directives in three
61816         blocks, sorted separately.
61817         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61818
61819 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61822         to define main with arguments, for C++.  Reported by Eric Blake.
61823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61824         Prefer 'int main ()' to 'int main (void)', for C++.
61825         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61826         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61827         for 'main', for C99 and C++.
61828
61829 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61832         Don't assume that exit status -1 is valid.
61833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61834         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61835         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61836         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61837         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61838         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61839         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61840         functions can be used without declaring them, or that you can
61841         exit with status -1.
61842         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61843
61844 2006-04-24  Karl Berry  <karl@gnu.org>
61845
61846         * config/srclist.txt (longdouble.m4): sync lost.
61847
61848 2006-04-24  Eric Blake  <ebb9@byu.net>
61849
61850         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61851
61852 2006-04-24  Bruno Haible  <bruno@clisp.org>
61853
61854         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61855         poll() implementation in AIX.
61856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61857
61858 2006-04-24  Bruno Haible  <bruno@clisp.org>
61859
61860         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61861         assigned exactly once.
61862
61863 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61864             Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61867         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61868         for AM_CPPFLAGS.
61869
61870 2006-04-23  Bruno Haible  <bruno@clisp.org>
61871
61872         * modules/copy-file: Depend on unistd.
61873         * modules/execute: Likewise.
61874         * modules/fatal-signal: Likewise.
61875         * modules/findprog: Likewise.
61876         * modules/mkdtemp : Likewise.
61877         * modules/pipe: Likewise.
61878         * modules/wait-process: Likewise.
61879
61880 2006-04-23  Bruno Haible  <bruno@clisp.org>
61881
61882         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61883         condition was already detected.
61884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61885
61886 2006-04-23  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/copy-file.c: Include <unistd.h> unconditionally.
61889         * lib/execute.c: Likewise.
61890         * lib/fatal-signal.c: Likewise.
61891         * lib/findprog.c: Likewise.
61892         * lib/mkdtemp.c: Likewise.
61893         * lib/pipe.h: Likewise.
61894         * lib/pipe.c: Likewise.
61895         * lib/wait-process.h: Likewise.
61896
61897 2006-04-23  Bruno Haible  <bruno@clisp.org>
61898
61899         * gnulib-tool (func_usage): Fix --import description. Document
61900         --update.
61901         (func_import): Create temporary file in a temporary directory, if
61902         --dry-run is specified. Silence errors from 'grep' when there are no
61903         m4 files in $m4dir.
61904         (func_create_testdir): Silence errors from 'grep' when there are no
61905         m4 files in $m4dir.
61906         Reported by Karl Berry <karl@freefriends.org>.
61907
61908 2006-04-20  Bruno Haible  <bruno@clisp.org>
61909
61910         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61911         one argument, so that the code will be portable to Autoconf 2.60.
61912         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61913         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61914         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61915
61916 2006-04-19  Derek Price  <derek@ximbiot.com>
61917             Eric Blake  <ebb9@byu.net>
61918
61919         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61920         rather than "/full/path.h".  Update comment to match.  Shorten &
61921         generalize m4_translit call via AS_TR_CPP.
61922
61923 2006-04-19  Derek Price  <derek@ximbiot.com>
61924             Eric Blake  <ebb9@byu.net>
61925
61926         * lib/inttypes.h: Correct grammar in comment.
61927
61928 2006-04-18  Derek Price  <derek@ximbiot.com>
61929             Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * modules/inttypes: New file.
61932         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61933
61934 2006-04-18  Derek Price  <derek@ximbiot.com>
61935             Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61938         New files.
61939
61940 2006-04-18  Derek Price  <derek@ximbiot.com>
61941             Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         * lib/inttypes.h: New file.
61944         * lib/strtoimax.c: Assume <inttypes.h>.
61945
61946 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61949         isn't mounted.  Problem reported by Kir Kolyshkin.
61950
61951 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61954         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61955         Derek R. Price.
61956         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61957         implementation.
61958
61959 2006-04-12  Eric Blake  <ebb9@byu.net>
61960
61961         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61962         is now done automatically by the corresponding Autoconf macro.
61963
61964 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61965
61966         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61967         time_r.h.
61968
61969 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         Merge regex changes from libc, removing some of our
61972         POSIX-conformance changes that were rejected and redoing them in a
61973         less-intrusive way.
61974
61975         * lib/regcomp.c (re_compile_internal, init_dfa):
61976         Length arg is now size_t, not Idx.  All uses changed.
61977         (peek_token): Forward decl now says internal_function.
61978         (__re_error_msgid, __re_error_msgid_idx):
61979         Now static rather than extern with attribute_hidden.
61980         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61981         For some reason libc prefers K&R style defns for external functions.
61982         (regerror) [!defined _LIBC]: Likewise.
61983         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61984         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61985         (build_range_exp, build_collating_symbol):
61986         Use K&R-style defn.
61987         (re_compile_fastmap): Use '\0' to memset, not 0.
61988         (utf8_sb_map): Make the calculations more obvious.
61989         (init_dfa, parse_bracket_exp, build_charclass_op):
61990         Call calloc and cast result, as glibc does.
61991         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61992         (build_range_exp, build_collating_symbol):
61993         Now internal functions.
61994
61995         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61996
61997         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61998         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61999         Don't depend on VMS; depend on __VMS instead, for POSIX
62000         namespace cleanness.
62001         (regoff_t): Define to ssize_t, not long int.
62002
62003         Remove the REG_ macros named below.  Instead, make the old names
62004         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62005         __USE_GNU_REGEX.
62006         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62007         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62008         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62009         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62010         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62011         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62012         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62013         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62014         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62015         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62016         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62017         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62018         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62019         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62020         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62021         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62022         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62023         (REG_NREGS):
62024         Remove.  All uses replaced by the old RE_* names.
62025         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62026         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62027         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62028         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62029         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62030         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62031         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62032         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62033         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62034         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62035         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62036         Don't bother having these macros be independent of each others'
62037         values, since they no longer exist in the POSIX name space.
62038
62039         Rename the following member names back to their old names,
62040         unless !__USE_GNU_REGEX.  All uses changed back.
62041         (buffer): Renamed from re_buffer.
62042         (allocated): Renamed from re_allocated.
62043         (used): Renamed from re_used.
62044         (syntax): Renamed from re_syntax.
62045         (fastmap): Renamed from re_fastmap.
62046         (translate): Renamed from re_translate.
62047         (can_be_null): Renamed from re_can_be_null.
62048         (regs_allocated): Renamed from re_regs_allocated.
62049         (fastmap_accurate): Renamed from re_fastmap_accurate.
62050         (no_sub): Renamed from re_no_sub.
62051         (not_bol): Renamed from re_not_bol.
62052         (not_eol): Renamed from re_not_eol.
62053         (newline_anchor): Renamed from re_newline_anchor.
62054         (num_regs): Renamed from rm_num_regs.
62055         (start): Renamed from rm_start.
62056         (end): Renamed from rm_end.
62057
62058         (free_state): Move up a bit.
62059
62060         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62061         #define to be empty.
62062         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62063         when that is what is intended.
62064         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62065         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62066         (MAX): New macro.
62067         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62068         All uses changed back to re_malloc, etc.  It's now the caller's
62069         responsibility to check for overflow; all callers changed.
62070         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62071         (re_x2nrealloc): Remove.
62072         (free_state): Remove decl.
62073
62074         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62075         (re_set_registers, re_exec):
62076         Use K&R-style defn.
62077
62078         2006-01-31  Roland McGrath  <roland@redhat.com>
62079
62080         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62081         Reported by Mike Frysinger <vapier@gentoo.org>.
62082
62083         2006-01-15  Andreas Jaeger  <aj@suse.de>
62084
62085         [BZ #1950]
62086         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62087         build_wcs_upper_buffer change.
62088         (build_wcs_upper_buffer): Change return type.
62089
62090         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62091
62092         * lib/regex_internal.h: Include <stdint.h> if available.
62093
62094         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62095
62096         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62097
62098         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62099
62100         * lib/regcomp.c: Adjust for changed secondary hash function.
62101
62102         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62103
62104         * lib/regex.h: Pretty printing.
62105         Clean up namespace a bit.
62106
62107         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62108
62109         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62110         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62111
62112         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62113                     Ulrich Drepper  <drepper@redhat.com>
62114
62115         [BZ #1302]
62116         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62117         changed.
62118         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62119
62120         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62121
62122         [BZ #281]
62123         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62124         * lib/regcomp.c: Remove unnecessary uses of
62125         unsigned RE_TRANSLATE_TYPE.
62126         * lib/regex_internal.h: Likewise.
62127         * lib/regex_internal.c: Likewise.
62128         * lib/regexec.c: Likewise.
62129         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62130
62131         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62132
62133         * lib/regexec.c (find_recover_state): Remove unnecessary
62134         initialization.
62135         (transit_state_bkref): Make DFA a const pointer.
62136         (get_subexp): Likewise.
62137         (check_arrival): Likewise.
62138         (update_cur_sifted_state): Likewise.
62139         (re_search_internal): Likewise.
62140         (prune_impossible_nodes): Likewise.
62141         (acquire_init_state_context): Likewise.
62142         (proceed_next_node): Likewise.
62143         (set_regs): Likewise.
62144         (free_fail_stack_return): Likewise.
62145         (check_arrival_expand_ecl): Mark DFA parameter as const.
62146         (check_arrival_expand_ecl_sub): Likewise.
62147         (check_subexp_limits): Likewise.
62148         (sub_epsilon_src_nodes):  Likewise.
62149         (add_epsilon_src_nodes):  Likewise.
62150         (merge_state_array): Likewise.
62151         (update_regs): Likewise.
62152         (build_trtable): Likewise.
62153         (sift_states_backward): Mark MCTX parameter as const.
62154         (build_sifted_states): Likewise.
62155         (update_cur_sifted_state): Likewise.
62156         (sift_states_mkref): Likewise.
62157         (check_arrival_expand_ecl): Mark eclosure as const.
62158         (check_dst_limits_calc_pos_1): Likewise.
62159         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62160         pointer.
62161
62162         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62163
62164         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62165         (transit_state_sb): Likewise.
62166         (transit_state_mb): Likewise.
62167         (sift_states_iter_mb): Likewise.
62168         (check_arrival_add_next_nodes): Likewise.
62169         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62170         [_LIBC] (re_search_2_stub): Use mempcpy.
62171
62172         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62173         mbrtowc for very simple UTF-8 case.
62174
62175         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62176         a pointer-to-const.
62177         (re_acquire_state_context): Likewise.
62178         * lib/regex_internal.h: Adjust prototypes.
62179
62180         * lib/regex.c: Prevent using C++ compilers.
62181
62182         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62183         (re_acquire_state_context): Likewise.
62184
62185 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62186
62187         * modules/regex (Depends-on): Add ssize_t.
62188
62189 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62192         translation table.
62193
62194 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62197
62198 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62199             Bruno Haible  <bruno@clisp.org>
62200
62201         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62202         <sys/types.h> and <inttypes.h>.
62203
62204 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62205
62206         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62207         `__error_t_defined', so argp.h will not typedef the former.
62208
62209 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62210
62211         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62212         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62213         glibc names.  Even if glibc is changed to conform to POSIX, the
62214         traditional names will be available anyway, since regex depends on
62215         the extensions module.  Also, fix a longstanding typo in the
62216         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62217         reported by Emanuele Giaquinta.  Also, change sense of cached
62218         variable, so that the message makes sense.
62219
62220 2006-03-24  Simon Josefsson  <jas@extundo.com>
62221
62222         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62223         including some doc fixes.
62224         (base64_encode_alloc): Fix +1 bug on allocation failures.
62225
62226 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62227
62228         * lib/base64.c (base64_encode): Do not read past end of array with
62229         unsanitized input on systems with CHAR_BIT > 8.
62230
62231 2006-03-24  Eric Blake  <ebb9@byu.net>
62232
62233         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62234
62235 2006-03-22  Karl Berry  <karl@gnu.org>
62236
62237         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62238         * config/srclistvars.sh (COREUTILS): new var.
62239
62240 2006-03-17  Jim Meyering  <jim@meyering.net>
62241
62242         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62243         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62244
62245 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62246
62247         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62248         no longer needs it.  Instead, check that regoff_t is as least
62249         as wide as ptrdiff_t.
62250
62251         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62252         so that our regex.h stays compatible with the installed regex.
62253         This is helpful for installers who configure --without-included-regex.
62254         Problem reported by Emanuele Giaquinta.
62255
62256 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62257
62258         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62259         Typedef to long int, not to off_, as POSIX will likely change
62260         in that direction.
62261
62262 2006-03-15  Eric Blake  <ebb9@byu.net>
62263
62264         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62265
62266 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62267
62268         * lib/argp-help.c (validate_uparams): Fix typo
62269         * lib/argp-parse.c (argp_default_options): Consistently begin help
62270         messages with a lowercase letter.
62271
62272 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62275         overrun buffers and shouldn't be used (much as gets shouldn't be
62276         used).
62277         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62278
62279 2006-03-08  Simon Josefsson  <jas@extundo.com>
62280
62281         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62282         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62283
62284 2006-03-08  Simon Josefsson  <jas@extundo.com>
62285
62286         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62287         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62288
62289 2006-03-08  Simon Josefsson  <jas@extundo.com>
62290
62291         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62292         signal that configure disabled the device.
62293
62294 2006-03-08  Simon Josefsson  <jas@extundo.com>
62295
62296         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62297         languages.
62298
62299 2006-03-07  Simon Josefsson  <jas@extundo.com>
62300
62301         * modules/getopt (Depends-on): Add unistd.
62302
62303         * modules/unistd: New file.
62304
62305 2006-03-07  Simon Josefsson  <jas@extundo.com>
62306
62307         * modules/gc-random: New file.
62308
62309 2006-03-07  Simon Josefsson  <jas@extundo.com>
62310
62311         * m4/unistd_h.m4: New file.
62312
62313 2006-03-07  Simon Josefsson  <jas@extundo.com>
62314
62315         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62316         test to be side-effect free by storing the result in the cache
62317         variable gl_cv_lib_readline, and moving the assignment of
62318         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62319         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62320
62321 2006-03-07  Simon Josefsson  <jas@extundo.com>
62322
62323         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62324         error on missing devices (the functions will return an error).
62325
62326         * m4/gc.m4: Move random stuff to gc-random.m4
62327
62328 2006-03-07  Simon Josefsson  <jas@extundo.com>
62329
62330         * lib/unistd_.h: New file.
62331
62332 2006-03-07  Simon Josefsson  <jas@extundo.com>
62333
62334         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62335
62336 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62339         Problem reported by Juan Manuel Guerrero.
62340
62341 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62342
62343         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62344         the unistd module.
62345         * lib/getlogin_r.c: Likewise.
62346         * lib/getlogin_r.h: Likewise.
62347         * lib/glob.c: Likewise.
62348         * lib/pagealign_alloc.c: Likewise.
62349         * lib/unistd_.h: Remove; no longer needed.
62350
62351 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62354         Add unistd.
62355         * modules/c-stack (Depends-on): Add unistd.
62356         * modules/getlogin_r: Likewise.
62357         * modules/glob: Likewise.
62358         * modules/pagealign_alloc: Likewise.
62359         * modules/unistd (Files): Remove lib/unistd_.h.
62360         (EXTRA_DIST): Remove.
62361         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62362         need unistd_.h.
62363         (MOSTLYCLEANFILES): Remove unistd.h-t.
62364
62365 2006-03-03  Simon Josefsson  <jas@extundo.com>
62366
62367         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62368
62369 2006-03-03  Simon Josefsson  <jas@extundo.com>
62370
62371         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62372         libidn and bison.
62373
62374 2006-03-03  Simon Josefsson  <jas@extundo.com>
62375
62376         * build-aux/maint.mk: Add indent target.
62377
62378 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62379
62380         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62381         our replacement poll.h in any case, to avoid a differing
62382         declaration from a system header.  Seen on AIX.
62383
62384 2006-03-01  Simon Josefsson  <jas@extundo.com>
62385
62386         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62387         <kasal@ucw.cz>.
62388
62389 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * modules/gettime (Depends-on): Add extensions module.
62392         * modules/nanosleep (Depends-on): Likewise.
62393         * modules/settime (Depends-on): Likewise.
62394
62395 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62398         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62399         pedantically.
62400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62401         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62402
62403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62404         not "==".  Reported by Ralf Wildenhues.
62405
62406 2006-03-01  Karl Berry  <karl@gnu.org>
62407
62408         * doc/Copyright/request-*: new files, synced from gnuorg.
62409
62410 2006-03-01  Karl Berry  <karl@gnu.org>
62411
62412         * config/srclist.txt (Copyright/*): new entries.
62413
62414 2006-02-28  Simon Josefsson  <jas@extundo.com>
62415
62416         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62417
62418 2006-02-27  Simon Josefsson  <jas@extundo.com>
62419
62420         * lib/base64.h: Indent #define's.  From Jim Meyering
62421         <jim@meyering.net>.
62422
62423 2006-02-27  Jim Meyering  <jim@meyering.net>
62424
62425         Revert the change of 2006-02-24, so these files can continue
62426         to be sync'd from gettext.
62427         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62428         of `config.h'.
62429
62430 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * modules/intprops: New file.
62433         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62434         Add intprops.
62435         * modules/getloadavg (Files): Remove lib/intprops.h.
62436         (Depends-on): Add intprops.
62437         * modules/human: Likewise.
62438         * modules/inttostr: Likewise.
62439         * modules/openat: Likewise.
62440         * modules/sig2str: Likewise.
62441         * modules/userspec: Likewise.
62442         * modules/utimecmp: Likewise.
62443         * modules/xnanosleep: Likewise.
62444         * modules/xstrtol: Likewise.
62445
62446 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62447
62448         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62449         * modules/lock-tests (TESTS): Use $(EXEEXT).
62450         * modules/tls-tests: Likewise.
62451         * modules/argp-tests: Likewise.
62452         (check_PROGRAMS): New var, replacing...
62453         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62454
62455 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62456
62457         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62458         `config.h'.
62459
62460 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62463
62464 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62465
62466         Sync from coreutils.
62467         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62468         gl_CHDIR_SAFER.
62469
62470 2006-02-22  Jim Meyering  <jim@meyering.net>
62471
62472         Sync from coreutils.
62473         * m4/chdir-safer.m4: New file.
62474
62475 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62478         AT_FDCWD exceeds INT_MAX.
62479         * lib/openat.h (AT_FDCWD): Likewise.
62480
62481 2006-02-17  Eric Blake  <address@hidden>
62482
62483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62484
62485 2006-02-16  Simon Josefsson  <jas@extundo.com>
62486
62487         * modules/getaddrinfo (Depends-on): Add sys_socket.
62488
62489 2006-02-15  Simon Josefsson  <jas@extundo.com>
62490
62491         * build-aux/maint.mk: Add dsyntax-check rule.
62492
62493 2006-02-15  Eric Blake  <ebb9@byu.net>
62494
62495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62496         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62497         'present but cannot compile' warnings on cygwin.
62498         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62499         use ws2tcpip.h if sys/socket.h works.
62500         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62501         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62502
62503 2006-02-14  Simon Josefsson  <jas@extundo.com>
62504
62505         * modules/maintainer-makefile (Files): Rename.
62506
62507         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62508         and (the local) Makefile.cfg to maint-cfg.mk.
62509
62510         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62511         to the latter.
62512
62513         * modules/maintainer-makefile: New module.
62514
62515         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62516         severaly stripped to make it possible to build it up from scratch
62517         with reliable tests.
62518
62519         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62520         fixes to permit overriding the default actions when configure and
62521         makefile are not available.
62522
62523 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         Sync from coreutils.
62526         * modules/lstat (Depends-on): Don't depend on xalloc.
62527         (License): Change from GPL to LGPL, since this is now simply a
62528         replacement for a libc function.
62529
62530 2006-02-14  Jim Meyering  <jim@meyering.net>
62531
62532         Sync from coreutils.
62533
62534         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62535         failure on deficient systems, and simplify gnulib lgpl dependencies.
62536         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62537         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62538
62539         * lib/xalloc-die.c: Remove unused definition of N_.
62540
62541 2006-02-14  Jim Meyering  <jim@meyering.net>
62542
62543         Sync from coreutils.
62544         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62545         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62546         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62547         double-quote uses of that variable, to accommodate the rare case in
62548         which getmntent is available in none of the libraries checked.  This
62549         happens at least on FreeBSD 5.0.
62550
62551 2006-02-13  Simon Josefsson  <jas@extundo.com>
62552
62553         * gnulib-tool (Usage): Fix --import, from
62554         karl@freefriends.org (Karl Berry).
62555
62556 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62557
62558         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62559
62560 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62561
62562         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62563         "autoupdate" on 2005-12-12.
62564
62565 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * modules/closeout (Depends-on): Remove atexit.
62568
62569 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62570
62571         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62572         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62573
62574 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62575
62576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62577         __EXTENSIONS__ if this causes compilation to fail.  Problem
62578         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62579         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62580
62581 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62584         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62585         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62586         All uses changed.
62587
62588 2006-01-26  Simon Josefsson  <jas@extundo.com>
62589
62590         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62591         prototype is visible on mingw32.
62592
62593         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62594         for mingw32.
62595
62596         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62597         mingw32).
62598
62599 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62602         attempt to open for write; this always fails, at least on POSIX
62603         hosts.  This reinstates the 2006-01-09 change, which was
62604         inadvertently removed.
62605
62606 2006-01-26  Bruno Haible  <bruno@clisp.org>
62607
62608         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62609         Reported by Paul Eggert.
62610
62611 2006-01-26  Bruno Haible  <bruno@clisp.org>
62612             Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * lib/stdbool_.h (_Bool)
62615         [(! (defined __cplusplus || defined __BEOS__)
62616           && !defined __GNUC__
62617           && !(defined __HP_cc || defined __xlc__
62618                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62619                || defined __sgi))]:
62620         #define to signed char in these cases too; this simplifies
62621         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62622         etc., separately) and makes it more conservative.
62623
62624 2006-01-25  Simon Josefsson  <jas@extundo.com>
62625
62626         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62627         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62628         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62629
62630 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62631
62632         * lib/argp-namefrob.h: Bugfix. Remove stray #
62633
62634 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62635
62636         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62637         so that we test the test.
62638         Check for yet another HP-UX cc bug involving *bool |= bool.
62639
62640 2006-01-25  Karl Berry  <karl@gnu.org>
62641
62642         * config/srclist.txt (vasnprintf.c): sync lost.
62643
62644 2006-01-25  Jim Meyering  <jim@meyering.net>
62645
62646         Sync from the stable (b5) branch of coreutils:
62647
62648         * lib/fts.c (fts_children): Don't let close() clobber errno from
62649         failed fchdir().
62650
62651         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62652         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62653         a dangling symlink.  That can also happen at least for ELOOP.
62654         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62655         FYI, this bug predates the inclusion of fts.c in coreutils.
62656
62657         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62658         in their own block, so pre-c99 compilers don't object.
62659
62660         Avoid the double-free (first in fts_read, second in fts_close) that
62661         would occur when an `active' directory is made inaccessible (e.g.,
62662         via chmod a-x) during a traversal.
62663         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62664         before returning.  Reproduce this failure by
62665         mkdir -p a/b; cd a; chmod a-x . b
62666         Reported by Stavros Passas.
62667
62668 2006-01-25  Jim Meyering  <jim@meyering.net>
62669
62670         * lib/fileblocks.c: Remove more useless parentheses.
62671         * lib/readutmp.h: Likewise.
62672
62673 2006-01-25  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62676         warnings.
62677         Reported by Paul Eggert.
62678
62679 2006-01-25  Bruno Haible  <bruno@clisp.org>
62680
62681         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62682         rid of a trap command. For Solaris sh.
62683         Reported by Mark D. Baushke <mdb@gnu.org>.
62684
62685 2006-01-24  Simon Josefsson  <jas@extundo.com>
62686
62687         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62688         Bruno.
62689
62690 2006-01-24  Karl Berry  <karl@gnu.org>
62691
62692         * config/srclist.txt (argp-namefrob.h): sync lost.
62693
62694 2006-01-24  Jim Meyering  <jim@meyering.net>
62695
62696         * modules/openat (Files): Add lib/intprops.h.
62697         From Mark D. Baushke.
62698
62699 2006-01-24  Jim Meyering  <jim@meyering.net>
62700
62701         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62702         Reported by Mark D. Baushke.
62703
62704 2006-01-24  Jim Meyering  <jim@meyering.net>
62705
62706         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62707
62708 2006-01-24  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/strnlen (Maintainer): Change from glibc to all.
62711
62712 2006-01-24  Bruno Haible  <bruno@clisp.org>
62713
62714         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62715         Patch by Paul Eggert.
62716
62717 2006-01-24  Bruno Haible  <bruno@clisp.org>
62718
62719         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62720         already has it.
62721         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62722         2005-11-26.
62723
62724         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62725         'signed char' to avoid problems with the built-in _Bool type.
62726         Reported by Paul Eggert on 2005-11-26.
62727
62728 2006-01-24  Bruno Haible  <bruno@clisp.org>
62729
62730         * gnulib-tool (func_import): Avoid constructing complicated sed
62731         expressions inside backquote.
62732         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62733
62734 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62735
62736         These changes imported from libc.
62737         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62738         test and two separate function calls.
62739         * lib/strndup.c (__strndup): Add libc_hidden_def.
62740
62741 2006-01-23  Simon Josefsson  <jas@extundo.com>
62742
62743         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62744         Remove the test_*_SOURCES variable: automake infers it by default.
62745         * modules/tls-tests: Likewise.
62746
62747 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         Work around porting bugs reported by Dieter in
62750         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62751         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62752         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62753         Include "getopt.h" first, to check interface.
62754         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62755         !HAVE_DECL_GETENV.
62756         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62757         (__strndup): Revert to K&R-style function dfns, the glibc style.
62758         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62759         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62760         Include strnlen.h first, to get prototype properly.
62761         (strnlen): Renamed from __strnlen.
62762         Remove weak alias.
62763
62764 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62767
62768 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         * config/srclist.txt: Adjust to reflect glibc reorganization.
62771         This affects only comments.
62772
62773 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62774
62775          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62776          Reported by Bruce Korb <bkorb@gnu.org>.
62777
62778 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62779
62780         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62781         to pacify gcc -Wswitch-default.
62782
62783 2006-01-22  Bruno Haible  <bruno@clisp.org>
62784
62785         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62786         temporary buffer for sprintf, take into account the precision also
62787         for 'd', 'i', 'u', 'o', 'x', 'X'.
62788
62789 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62790
62791         * modules/argp-tests: New module
62792         * tests/test-argp.c: New file
62793         * tests/test-argp-2.sh: New file
62794
62795 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62796
62797         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62798         (__argp_base_name): Removed
62799         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62800         typo.
62801         (__argp_base_name): Provide macro definition or extern declaration
62802         depending on the configuration
62803
62804 2006-01-20  Simon Josefsson  <jas@extundo.com>
62805
62806         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62807
62808 2006-01-20  Simon Josefsson  <jas@extundo.com>
62809
62810         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62811
62812 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62813
62814         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62815         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62816         Suggested by Bruno Haible.
62817
62818 2006-01-20  Karl Berry  <karl@gnu.org>
62819
62820         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62821         until changes propagate, I guess.
62822
62823 2006-01-19  Simon Josefsson  <jas@extundo.com>
62824
62825         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62826
62827 2006-01-19  Simon Josefsson  <jas@extundo.com>
62828
62829         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62830
62831 2006-01-19  Simon Josefsson  <jas@extundo.com>
62832
62833         * gnulib-tool: Set check_PROGRAMS.
62834
62835         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62836         modules/des-tests, modules/gc-arcfour-tests,
62837         modules/gc-arctwo-tests, modules/gc-des-tests,
62838         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62839         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62840         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62841         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62842         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62843         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62844         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62845         test_*_SOURCES.
62846
62847 2006-01-18  Simon Josefsson  <jas@extundo.com>
62848
62849         * modules/socklen (Depends-on): Depend on sys_socket.
62850
62851 2006-01-18  Simon Josefsson  <jas@extundo.com>
62852
62853         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62854         modules/des-tests, modules/gc-arcfour-tests,
62855         modules/gc-arctwo-tests, modules/gc-des-tests,
62856         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62857         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62858         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62859         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62860         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62861         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62862         $(EXEEXT) to automake TESTS variable, for mingw32.
62863
62864 2006-01-17  Simon Josefsson  <jas@extundo.com>
62865
62866         * modules/socklen (Include): Need sys/socket.h.
62867
62868 2006-01-17  Bruno Haible  <bruno@clisp.org>
62869
62870         * modules/ssize_t (Include): Add <sys/types.h>.
62871
62872 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62873
62874         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62875         it's not portable and it doesn't work with cross-compiles.
62876         Problem reported by Bruno Haible.  Fix missing-$ typo in
62877         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62878         -zignore from being used with Sun's C compiler.
62879
62880 2006-01-12  Simon Josefsson  <jas@extundo.com>
62881
62882         * lib/base64.c: Fix warning, reported by Bruno Haible
62883         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62884
62885 2006-01-12  Bruno Haible  <bruno@clisp.org>
62886
62887         * modules/ldd: New file.
62888         * build-aux/ldd.sh.in: New file.
62889         * MODULES.html.sh (Support for building libraries and executables): Add
62890         ldd.
62891
62892 2006-01-12  Bruno Haible  <bruno@clisp.org>
62893
62894         * m4/ldd.m4: New file.
62895
62896 2006-01-12  Bruno Haible  <bruno@clisp.org>
62897
62898         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62899         endless loop while replacing $auxdir with build-aux.
62900
62901 2006-01-11  Simon Josefsson  <jas@extundo.com>
62902
62903         * lib/stdint_.h (SIZE_MAX): Add missing (.
62904
62905 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62906
62907         Sync from coreutils.
62908         * lib/md5.c: Fix commentary typos.
62909         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62910         * lib/md5.h (__attribute__): Remove; unused.
62911         * lib/sha1.c: Fix commentary to match md5 better.
62912         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62913         so that we don't need to worry about alignment.  All uses changed.
62914         This merges the 2005-10-28 md5 change into sha1.
62915
62916 2006-01-11  Jim Meyering  <jim@meyering.net>
62917
62918         Sync from coreutils.
62919         * lib/md5.c (OP): Fix spacing.
62920
62921 2006-01-11  Bruno Haible  <bruno@clisp.org>
62922
62923         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62924         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62925         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62926
62927 2006-01-11  Bruno Haible  <bruno@clisp.org>
62928
62929         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62930         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62931         the "early" section as well.
62932
62933 2006-01-11  Bruno Haible  <bruno@clisp.org>
62934
62935         Avoid "ar: no archive members specified" error on MacOS X.
62936         * gnulib-tool (func_modules_add_dummy): New function.
62937         (func_import, func_create_testdir): Invoke it.
62938
62939 2006-01-11  Bruno Haible  <bruno@clisp.org>
62940
62941         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62942         with $auxdir in AC_CONFIG_FILES statements.
62943
62944 2006-01-11  Bruno Haible  <bruno@clisp.org>
62945
62946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62947         Initialize also noinst_HEADERS to empty.
62948
62949 2006-01-11  Bruno Haible  <bruno@clisp.org>
62950
62951         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62952         variables.
62953         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62954         autoreconf.
62955
62956 2006-01-11  Bruno Haible  <bruno@clisp.org>
62957
62958         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62959         overridable by the user.
62960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62961
62962 2006-01-10  Simon Josefsson  <jas@extundo.com>
62963
62964         * modules/sys_socket: New file.
62965
62966 2006-01-10  Simon Josefsson  <jas@extundo.com>
62967
62968         * m4/sys_socket_h.m4: New file.
62969
62970 2006-01-10  Simon Josefsson  <jas@extundo.com>
62971
62972         * lib/socket_.h: New file.
62973
62974 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62975
62976         * modules/readutmp (Maintainer): Add myself.
62977
62978 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62981         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62982         People who are still concerned with buggy memcmp implementations
62983         can invoke gl_FUNC_MEMCMP themselves.
62984
62985 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         * lib/regex_internal.h (BITSET_WORD_BITS):
62988         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62989         preprocessor mishandles large unsigned values as if they were signed.
62990         Problem reported by Claudio Fontana in
62991         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62992
62993 2006-01-10  Jim Meyering  <jim@meyering.net>
62994
62995         Avoid the double-free (first in fts_read, second in fts_close) that
62996         would occur when an `active' directory is made inaccessible (e.g.,
62997         via chmod a-x) during a traversal.
62998         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62999         before returning.  Reproduce this failure by
63000         mkdir -p a/b; cd a; chmod a-x . b
63001         Reported by Stavros Passas.
63002
63003         Sync from coreutils.
63004         * lib/sha1.c: Tweak grammar in a comment.
63005
63006 2006-01-10  Jim Meyering  <jim@meyering.net>
63007
63008         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63009         Patch by Joerg Sonnenberger.
63010
63011 2006-01-10  Bruno Haible  <bruno@clisp.org>
63012
63013         * modules/readutmp: Depend on module free.
63014         * modules/strtok_r: Depend on module restrict.
63015
63016 2006-01-10  Bruno Haible  <bruno@clisp.org>
63017
63018         * modules/gettext (configure.ac): Add an invocation of
63019         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63020
63021 2006-01-10  Bruno Haible  <bruno@clisp.org>
63022
63023         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63024         Reported by Werner Lemberg <wl@gnu.org>.
63025
63026 2006-01-10  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/localcharset.c: Update from GNU gettext.
63029
63030 2006-01-10  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/argp.h (__const): Remove macro. Use const instead.
63033         * lib/argp-fmtstream.h (__const): Likewise.
63034         * lib/glob_.h (__const): Remove macro.
63035         * lib/glob-libc.h: Use const instead of __const.
63036
63037 2006-01-10  Bruno Haible  <bruno@clisp.org>
63038
63039         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63040         variable.
63041         Needed to avoid an automake error regarding the 'gettext' module.
63042
63043 2006-01-09  Simon Josefsson  <jas@extundo.com>
63044
63045         * modules/inet_ntop (Depends-on): Add restrict.
63046
63047 2006-01-09  Simon Josefsson  <jas@extundo.com>
63048
63049         * modules/gc-rijndael-tests (License): Put under LGPL.
63050
63051         * modules/gc-des-tests (License): Likewise.
63052
63053         * modules/gc-arcfour-tests (License): Likewise.
63054
63055         * modules/gc-arctwo-tests (License): Likewise.
63056
63057         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63058
63059         * modules/gc-hmac-sha1-tests (Files): Likewise.
63060
63061         * modules/gc-hmac-md5-tests (License): Likewise.
63062
63063         * modules/gc-sha1-tests (License): Likewise.
63064
63065         * modules/gc-md5-tests (License): Likewise.
63066
63067         * modules/gc-md4-tests (License): Likewise.
63068
63069         * modules/gc-md2-tests (License): Likewise.
63070
63071         * modules/gc-tests (License): Likewise.
63072
63073         * modules/des-tests (License): Likewise.
63074
63075         * modules/md4-tests (License): Likewise.
63076
63077         * modules/md2-tests (License): Likewise.
63078
63079 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         Sync from coreutils:
63082
63083         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63084         * modules/lib-ignore: New file.
63085         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63086         chdir-safer.m4, lchmod.m4.
63087         * modules/openat: Add mkdirat.c, openat-priv.h.
63088
63089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         Sync from coreutils.
63092         * m4/lib-ignore.m4: New file.
63093         * m4/lchmod.m4: New file.
63094
63095 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         Sync from coreutils.
63098         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63099         for write access: POSIX says that must fail.
63100         * lib/fts.c (diropen): Likewise.
63101         * lib/save-cwd.c (save_cwd): Likewise.
63102         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63103         well, for minor improvements on hosts that lack O_DIRECTORY.
63104         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63105         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63106         Fall back on chown if open failed with EACCES.
63107
63108         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63109         Report an error at compile-time if only a 1-second nominal clock
63110         resolution is found.
63111
63112         * lib/lchmod.h: New file.
63113         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63114         (make_dir_parents): Use lchown rather than chown, and
63115         lchmod rather than chmod.
63116
63117         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63118         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63119         "proc" reported by n0dalus.
63120
63121         * lib/mountlist.c: Include <limits.h>.
63122         (dev_from_mount_options)
63123         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63124         New function.  It no longer assumes "dev=" has the System V meaning
63125         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63126         (read_file_system_list)
63127         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63128         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63129         dev= in that case.
63130
63131         * lib/posixtm.h (PDS_PRE_2000): New macro.
63132         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63133         allow_century.  All usages changed.  Reject dates outside the range
63134         1969-1999 if PDS_PRE_2000 is used.
63135
63136 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         Sync from coreutils.
63139         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63140         (Time of day items): Mention the possibility of leap seconds.
63141         Problem reported by Dr. David Alan Gilbert.
63142
63143 2006-01-09  Jim Meyering  <jim@meyering.net>
63144
63145         Sync from coreutils.
63146
63147         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63148
63149         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63150
63151         * lib/modechange.c (mode_compile): Reject an invalid mode string
63152         that starts with an octal digit.  From Andreas Gruenbacher.
63153
63154         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63155         and dup to open_safer and dup_safer, respectively.
63156         (openat_permissive): Fix typo in comment.
63157
63158         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63159         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63160         (_): Remove; no longer needed.
63161         (openat): Renamed from rpl_openat; no need for rpl_openat
63162         since openat.h renames openat for us.
63163         Replace most of the body with a call to openat_permissive,
63164         to avoid duplicate code.
63165         Port to (probably hypothetical) environments were mode_t is
63166         wider than int.
63167         (openat_permissive): Require mode arg, so that we can check
63168         types better.  Put it just after flags.  Change cwd failure
63169         indicator from pointer-to-bool to pointer-to-errno-value.
63170         All callers changed.
63171         Invoke openat_save_fail and/or openat_restore_fail if
63172         cwd_errno is null, so that openat can call us.
63173         (openat_permissive, fdopendir, fstatat, unlinkat):
63174         Simplify errno handling to avoid some duplicate code,
63175         as it's OK to set errno on success.
63176         * lib/openat.h: Revamp code so that function macros depend on
63177         __OPENAT_PREFIX only, not also on AT_FDCWD.
63178         (openat_ro): Remove.  Caller changed to use openat_permissive.
63179         (openat_permissive): Now a macro, if not a function.
63180         (openat_restore_fail, openat_save_fail): Now always functions,
63181         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63182
63183         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63184         and openat.c.
63185         * lib/mkdirat.c: Include openat-priv.h.
63186         Remove definitions of macros defined therein.
63187         * lib/openat.c: Likewise.
63188
63189         * lib/mkdirat.c (mkdirat): New file and function.
63190         * lib/openat.h (mkdirat): Declare.
63191
63192         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63193
63194         * lib/openat.h (openat_permissive): Declare.
63195         (openat_ro): Define.
63196
63197         * lib/openat.c (EXPECTED_ERRNO): New macro.
63198         (openat_permissive): New function -- used in remove.c rewrite.
63199         (all functions): Set errno just before returning, only if there
63200         was an actual failure.
63201         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63202
63203         Emulate openat-family functions using Linux's procfs, if possible.
63204         Idea and some code based on Ulrich Drepper's glibc changes.
63205
63206         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63207         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63208         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63209         before falling back on save_cwd and restore_cwd.
63210         (fdopendir, fstatat, unlinkat): Likewise.
63211
63212         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63213         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63214
63215         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63216         as second argument to va_arg.  Otherwise, some versions of gcc
63217         warn that `if this code is reached, the program will abort'.
63218
63219 2006-01-09  Jim Meyering  <jim@meyering.net>
63220
63221         Sync from coreutils.
63222         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63223         Require openat-priv.h.
63224
63225 2006-01-09  Bruno Haible  <bruno@clisp.org>
63226
63227         * modules/strnlen (Include): Use strnlen.h.
63228
63229 2006-01-09  Bruno Haible  <bruno@clisp.org>
63230
63231         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63232
63233 2006-01-09  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/sysexit_.h (EX_OK): New macro.
63236         Suggested by Martin Lambers <marlam@marlam.de>.
63237
63238 2006-01-09  Bruno Haible  <bruno@clisp.org>
63239
63240         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63241         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63242
63243 2006-01-09  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63246         numbers.
63247
63248 2006-01-09  Bruno Haible  <bruno@clisp.org>
63249
63250         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63251         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63252         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63253         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63254
63255 2006-01-09  Bruno Haible  <bruno@clisp.org>
63256
63257         * build-aux/javacomp.sh.in: New file, moved from lib/.
63258         * modules/javacomp-script (Files): Update.
63259         (configure.ac): Add AC_CONFIG_FILES invocation.
63260         (EXTRA_DIST): Remove variable.
63261
63262         * build-aux/javaexec.sh.in: New file, moved from lib/.
63263         * modules/javaexec (Files): Update.
63264         (configure.ac): Add AC_CONFIG_FILES invocation.
63265         (EXTRA_DIST): Remove javaexec.sh.in.
63266
63267         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63268         * modules/csharpcomp-script (Files): Update.
63269         (configure.ac): Add AC_CONFIG_FILES invocation.
63270         (EXTRA_DIST): Remove variable.
63271
63272         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63273         * modules/csharpexec (Files): Update.
63274         (configure.ac): Add AC_CONFIG_FILES invocation.
63275         (EXTRA_DIST): Remove csharpexec.sh.in.
63276
63277 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63278
63279         Sync from coreutils.
63280
63281         Add POSIX ACL support
63282         * lib/acl.h (copy_acl, set_acl): Add declarations.
63283         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63284         systems other than Linux.
63285         (chmod_or_fchmod): New function: use fchmod when possible,
63286         and chmod otherwise.
63287         (file_has_acl): Add a POSIX ACL implementation, with a
63288         Linux-specific subcase.
63289         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63290         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63291         acls are unsupported.
63292         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63293         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63294         are unsupported.
63295
63296 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63297
63298         Sync from coreutils.
63299         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63300
63301 2006-01-07  Bruno Haible  <bruno@clisp.org>
63302
63303         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63304         gl_EARLY.
63305
63306 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63309         Problem reported for Mingw by Mark Junker.
63310
63311 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         * README: Gnulib normally doesn't generate a tarball.
63314
63315 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63318         long int, not int, for nanosecond counts, so that people who are
63319         used to POSIX struct timespec won't be surprised.  Reported by Jim
63320         Meyering.
63321
63322 2005-12-28  Bruno Haible  <bruno@clisp.org>
63323
63324         * build-aux/config.rpath: Update from GNU gettext.
63325
63326 2005-12-16  Jim Meyering  <jim@meyering.net>
63327
63328         * modules/fprintftime: New module.
63329         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63330
63331 2005-12-16  Jim Meyering  <jim@meyering.net>
63332
63333         * m4/fprintftime.m4: New file.
63334
63335 2005-12-16  Jim Meyering  <jim@meyering.net>
63336
63337         * lib/fprintftime.c, lib/fprintftime.h: New files.
63338
63339 2005-12-15  Simon Josefsson  <jas@extundo.com>
63340
63341         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63342         new m4/socklen.m4.
63343
63344 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63345
63346         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63347         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63348
63349 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63350
63351         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63352         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63353         struct uparams is valid. Fall back to the default values if it is
63354         not.
63355
63356 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63357
63358         * modules/argp (Files): Add argp-pin.c
63359         (Depends-on): dirname
63360         (lib_SOURCES): Add argp-pin.c
63361
63362 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63363
63364         * m4/argp.m4:  Check if program_invocation_name and
63365         program_invocation_short_name are declared and define appropriate
63366         macros if they are not.
63367
63368 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63369
63370         * lib/argp-help.c (__argp_base_name): New function
63371         (__argp_short_program_name): Rewrite using __argp_base_name
63372         * lib/argp-namefrob.h: Define program_invocation_name and
63373         program_invocation_short_name if requested
63374         (__argp_base_name): Add prototype
63375         * lib/argp-parse.c (argp_def): Use gettext wrappers
63376         (argp_default_parser): Use __argp_base_name
63377         * lib/argp-pin.c: New file. Defines program_invocation_name and
63378         program_invocation_short_name on systems that lack them.
63379
63380 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63383         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63384         porting problem reported by Georg Schwarz in
63385         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63386
63387 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63388
63389         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63390         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63391         porting problem reported by Georg Schwarz in
63392         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63393
63394 2005-12-05  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63397         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63398         Reported by Mark Junker <mjscod@gmx.de>.
63399
63400 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63403         Use implementation from Albert Chin, with some
63404         comments/corrections by Stepan Kasal and myself.
63405
63406 2005-12-02  Bruno Haible  <bruno@clisp.org>
63407
63408         * gnulib-tool (func_import): Accept GPLed build tool modules when
63409         --lgpl is given.
63410         * modules/csharpcomp-script: New file.
63411         * modules/csharpcomp: Depend on it.
63412         * modules/javacomp-script: New file.
63413         * modules/javacomp: Depend on it.
63414         Suggested by Simon Josefsson.
63415
63416 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63419         statement, to work around an HP-UX 10.20 compiler bug reported by
63420         Peter O'Gorman.
63421
63422 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * modules/savedir (Depends-on): Add openat.
63425
63426 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63429         (uintmax_t) [defined uintmax_t]: Do not declare.
63430         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63431         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63432         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63433         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63434         sake of portability to weird hosts that C allows (though we don't
63435         know of any practical examples).
63436
63437         * lib/savedir.h (fdsavedir): New decl.
63438         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63439         contains most of the former guts of savedir.
63440         (savedir): Use savedirstream.
63441         Include "openat.h".
63442
63443 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * modules/obstack (Files): Add m4/ulonglong.m4.
63446         Problem reported by Davide Angelocola.
63447
63448 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63451         coreutils no longer futzes with rounding modes.
63452
63453 2005-11-14  Jim Meyering  <jim@meyering.net>
63454
63455         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63456         replacement of mkstemp.
63457
63458 2005-11-10  Simon Josefsson  <jas@extundo.com>
63459
63460         * lib/readline.c: Remove EOL.
63461
63462 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63463
63464         * modules/gethrxtime (Depends-on): Add gettime.
63465
63466 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63467
63468         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63469         or gettimeofday; no longer needed.
63470
63471 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63474         time business.
63475         (gethrxtime) [! (HAVE_NANOUPTIME
63476         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63477         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63478         our own approximation.
63479
63480 2005-11-08  Eric Blake  <ebb9@byu.net>
63481
63482         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63483
63484 2005-11-08  Eric Blake  <ebb9@byu.net>
63485
63486         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63487
63488 2005-11-04  Bruno Haible  <bruno@clisp.org>
63489
63490         * gnulib-tool: Implement --update mode.
63491
63492 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         Fix porting problem reported by Theodoros V. Kalamatianos.
63495         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63496         Don't assume that futimes failing means we must fail.
63497
63498 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63499
63500         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63501         variables to suggest the intended function of the PATH_MAX check.
63502
63503 2005-10-30  Kean Johnston  <jkj@sco.com>
63504
63505         Trivial changes to support SCO systems.
63506         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63507         as PATH_MAX.
63508         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63509         where __ptr is null when no I/O is pending.
63510
63511 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63512
63513         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63514         leave errno alone.  Problem reported by Dmitry V. Levin.
63515
63516 2005-10-28  Simon Josefsson  <jas@extundo.com>
63517
63518         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63519         Test more.
63520
63521         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63522
63523         * modules/md2, modules/md2-tests: New files.
63524
63525 2005-10-28  Simon Josefsson  <jas@extundo.com>
63526
63527         * m4/inet_ntop.m4: More tests.
63528
63529         * m4/gc-md2.m4, md2.m4: New file.
63530
63531 2005-10-28  Simon Josefsson  <jas@extundo.com>
63532
63533         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63534         "restrict" keywords, as per POSIX.  Protect the function
63535         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63536         Don't use K&R prototypes.  Check the sprintf return values.
63537         Re-define EAFNOSUPPORT if not present.  Indent.
63538
63539         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63540         suggested by Bruno Haible <bruno@clisp.org>.
63541
63542         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63543
63544         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63545
63546         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63547         libgcrypt).
63548
63549         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63550
63551         * lib/md2.h, lib/md2.c: New files.
63552
63553 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63556         errno alone.  Problem reported by Frederic Jolliton.
63557
63558 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63559
63560         * modules/verify (License): Change from GPL to LGPL.  This is a
63561         tiny module and there are apparently near-equivalents that are
63562         under the BSD license.
63563
63564 2005-10-24  Simon Josefsson  <jas@extundo.com>
63565
63566         * modules/sha1: Relicense to LGPL.
63567
63568 2005-10-24  Simon Josefsson  <jas@extundo.com>
63569
63570         * lib/md4.h: Shrink buffer size, now that we changed the type.
63571
63572 2005-10-23  Simon Josefsson  <jas@extundo.com>
63573
63574         * gnulib-tool (func_import): Fix --tests-base.
63575
63576 2005-10-22  Simon Josefsson  <jas@extundo.com>
63577
63578         * modules/arcfour (Depends-on): Need stdint.
63579
63580 2005-10-22  Simon Josefsson  <jas@extundo.com>
63581
63582         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63583         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63584
63585 2005-10-22  Simon Josefsson  <jas@extundo.com>
63586
63587         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63588         suggested by Bruno Haible <bruno@clisp.org>.
63589
63590 2005-10-22  Simon Josefsson  <jas@extundo.com>
63591
63592         * lib/crc.h: Include stddef.h, for size_t.
63593
63594 2005-10-22  Simon Josefsson  <jas@extundo.com>
63595
63596         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63597         arcfour_context struct (simplify test vector testing in GNU
63598         Shishi).
63599
63600 2005-10-21  Simon Josefsson  <jas@extundo.com>
63601
63602         * modules/des, modules/des-tests: New files.
63603
63604         * modules/gc-des, modules/gc-des-tests: New files.
63605
63606         * tests/test-des.c, tests/test-gc-des.c: New file.
63607
63608 2005-10-21  Simon Josefsson  <jas@extundo.com>
63609
63610         * modules/arctwo, modules/arctwo-tests: New files.
63611
63612         * tests/test-arctwo.c: New file.
63613
63614         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63615
63616         * tests/test-gc-arctwo.c: New file.
63617
63618 2005-10-21  Simon Josefsson  <jas@extundo.com>
63619
63620         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63621         Bruno Haible <bruno@clisp.org>.
63622
63623         * m4/gc-des.m4: New file.
63624
63625 2005-10-21  Simon Josefsson  <jas@extundo.com>
63626
63627         * m4/arctwo.m4: New file.
63628
63629         * m4/gc-arctwo.m4: New file.
63630
63631 2005-10-21  Simon Josefsson  <jas@extundo.com>
63632
63633         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63634         block.
63635
63636 2005-10-21  Simon Josefsson  <jas@extundo.com>
63637
63638         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63639         <bruno@clisp.org>.
63640
63641         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63642
63643         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63644         Bruno Haible <bruno@clisp.org>.
63645
63646         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63647         <bruno@clisp.org>.
63648
63649 2005-10-21  Simon Josefsson  <jas@extundo.com>
63650
63651         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63652
63653 2005-10-21  Simon Josefsson  <jas@extundo.com>
63654
63655         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63656
63657 2005-10-21  Simon Josefsson  <jas@extundo.com>
63658
63659         * lib/des.h, lib/des.c: New files.
63660
63661         * lib/gc-gnulib.c: Support DES.c
63662
63663 2005-10-21  Simon Josefsson  <jas@extundo.com>
63664
63665         * lib/arctwo.h, lib/arctwo.c: New files.
63666
63667         * lib/gc-gnulib.c: Support ARCTWO.
63668
63669 2005-10-21  Simon Josefsson  <jas@extundo.com>
63670
63671         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63672         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63673
63674 2005-10-21  Simon Josefsson  <jas@extundo.com>
63675
63676         * gnulib-tool (func_import, func_create_testdir): Define automake
63677         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63678         Makefile.am snippet),
63679         suggested by Bruno Haible <bruno@clisp.org>.
63680
63681         * modules/gc (Makefile.am): Use it.
63682
63683 2005-10-21  Bruno Haible  <bruno@clisp.org>
63684
63685         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63686         patch.
63687
63688 2005-10-19  Simon Josefsson  <jas@extundo.com>
63689
63690         * tests/test-gc-rijndael.c: New file.
63691
63692         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63693
63694 2005-10-19  Simon Josefsson  <jas@extundo.com>
63695
63696         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63697         interface too.
63698
63699 2005-10-19  Simon Josefsson  <jas@extundo.com>
63700
63701         * tests/test-gc-arcfour.c: New file.
63702
63703         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63704
63705 2005-10-19  Simon Josefsson  <jas@extundo.com>
63706
63707         * modules/gc-md4, modules/gc-md4-tests: New file.
63708
63709         * tests/test-gc-md4.c: New file.
63710
63711 2005-10-19  Simon Josefsson  <jas@extundo.com>
63712
63713         * m4/gc-md4.m4: New file.
63714
63715 2005-10-19  Simon Josefsson  <jas@extundo.com>
63716
63717         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63718         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63719         <kasal@ucw.cz>.
63720
63721 2005-10-19  Simon Josefsson  <jas@extundo.com>
63722
63723         * m4/gc-arcfour.m4: New file.
63724
63725         * m4/gc-rijndael.m4: New file.
63726
63727 2005-10-19  Simon Josefsson  <jas@extundo.com>
63728
63729         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63730
63731 2005-10-19  Simon Josefsson  <jas@extundo.com>
63732
63733         * lib/gc-gnulib.c: Support ARCFOUR.
63734
63735 2005-10-19  Simon Josefsson  <jas@extundo.com>
63736
63737         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63738         support.
63739
63740         * lib/gc.h: Add ECB enum type.
63741
63742         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63743
63744 2005-10-18  Simon Josefsson  <jas@extundo.com>
63745
63746         * tests/test-md5.c: New file.
63747
63748         * modules/md5-tests: New file.
63749
63750 2005-10-18  Simon Josefsson  <jas@extundo.com>
63751
63752         * tests/test-md4.c: New file.
63753
63754         * modules/md4, modules/md4-tests: New files.
63755
63756 2005-10-18  Simon Josefsson  <jas@extundo.com>
63757
63758         * m4/md4.m4: New file.
63759
63760 2005-10-18  Simon Josefsson  <jas@extundo.com>
63761
63762         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63763
63764 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63765
63766         * gnulib-tool (func_create_testdir): Omit the second check whether
63767         BUILT_SOURCES in nonempty.
63768
63769 2005-10-17  Simon Josefsson  <jas@extundo.com>
63770
63771         * tests/test-rijndael.c: New file.
63772
63773 2005-10-17  Simon Josefsson  <jas@extundo.com>
63774
63775         * modules/sha1: Depend on stdint instead of md5.
63776
63777         * modules/md5: Depend on stdint, remove uint32_t.
63778
63779 2005-10-17  Simon Josefsson  <jas@extundo.com>
63780
63781         * modules/gc-sha1-tests: New file.
63782
63783         * tests/test-gc-sha1.c: New file.
63784
63785 2005-10-17  Simon Josefsson  <jas@extundo.com>
63786
63787         * m4/md5.m4: Remove call to uint32_t.m4.
63788
63789 2005-10-17  Simon Josefsson  <jas@extundo.com>
63790
63791         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63792
63793         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63794         md5.h.
63795
63796         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63797
63798         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63799
63800 2005-10-17  Simon Josefsson  <jas@extundo.com>
63801
63802         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63803
63804 2005-10-17  Simon Josefsson  <jas@extundo.com>
63805
63806         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63807
63808 2005-10-17  Simon Josefsson  <jas@extundo.com>
63809
63810         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63811
63812         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63813
63814 2005-10-17  Bruno Haible  <bruno@clisp.org>
63815
63816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63817         that it can also be used in a test.
63818
63819 2005-10-16  Bruno Haible  <bruno@clisp.org>
63820
63821         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63822         TESTS_ENVIRONMENT, so that individual tests can augment it.
63823
63824         * gnulib-tool (func_create_testdir): Use an intermediate target for
63825         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63826         macros, like $(ALLOCA_H), which cannot be passed through the command
63827         line.
63828
63829 2005-10-15  Simon Josefsson  <jas@extundo.com>
63830
63831         * modules/rijndael-tests: New file.
63832
63833         * modules/rijndael: New file.
63834
63835 2005-10-15  Simon Josefsson  <jas@extundo.com>
63836
63837         * m4/rijndael.m4: New file.
63838
63839 2005-10-15  Simon Josefsson  <jas@extundo.com>
63840
63841         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63842
63843         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63844
63845 2005-10-14  Simon Josefsson  <jas@extundo.com>
63846
63847         * tests/test-arcfour.c: New file.
63848
63849         * modules/arcfour, modules/arcfour-tests: New files.
63850
63851 2005-10-14  Simon Josefsson  <jas@extundo.com>
63852
63853         * m4/arcfour.m4: New file.
63854
63855 2005-10-14  Simon Josefsson  <jas@extundo.com>
63856
63857         * lib/arcfour.h, lib/arcfour.c: New files.
63858
63859 2005-10-14  Roland McGrath  <roland@redhat.com>
63860
63861         Import from libc.  [BZ #1331]
63862         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63863         macro argument.
63864         Reported by Matej Vela <vela@debian.org>.
63865
63866 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63869         include <wchar.h>; no longer needed.
63870
63871 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63872
63873         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63874
63875 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63876         and  Ulrich Drepper  <drepper@redhat.com>
63877
63878         Import from libc.
63879         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63880         instead of inline stream orientation test and two separate
63881         function calls.  Pay no attention to USE_IN_LIBIO.
63882
63883 2005-10-13  Simon Josefsson  <jas@extundo.com>
63884
63885         * modules/gc-hmac-md5-tests: New file.
63886
63887         * tests/test-gc-hmac-sha1.c: New file.
63888
63889         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63890
63891         * modules/gc-hmac-md5-tests: New file.
63892
63893         * tests/test-gc-md5.c: New file.
63894
63895         * modules/gc-md5-tests: New file.
63896
63897 2005-10-13  Simon Josefsson  <jas@extundo.com>
63898
63899         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63900         Move memory allocation outside of loop.
63901
63902 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63905         intermediate directory is in a read-only file system.  Problem
63906         reported by Eric Blake.
63907
63908 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63909
63910         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63911
63912 2005-10-12  Simon Josefsson  <jas@extundo.com>
63913
63914         * tests/test-hmac-sha1.c: New file.
63915
63916         * modules/hmac-sha1-tests: New file.
63917
63918         * modules/hmac-sha1: New file.
63919
63920 2005-10-12  Simon Josefsson  <jas@extundo.com>
63921
63922         * modules/gc-sha1: New file.
63923
63924 2005-10-12  Simon Josefsson  <jas@extundo.com>
63925
63926         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63927
63928         * tests/test-gc-pbkdf2-sha1.c: New file.
63929
63930 2005-10-12  Simon Josefsson  <jas@extundo.com>
63931
63932         * modules/gc-md5, modules/gc-hmac-md5: New files.
63933
63934         * modules/gc (Files): Remove md5, memxor and hmac files.
63935
63936 2005-10-12  Simon Josefsson  <jas@extundo.com>
63937
63938         * m4/gc-pbkdf2-sha1.m4: New file.
63939
63940         * m4/gc-hmac-sha1.m4: New file.
63941
63942         * m4/gc-sha1: New file.
63943
63944         * m4/hmac-sha1.m4: New file.
63945
63946 2005-10-12  Simon Josefsson  <jas@extundo.com>
63947
63948         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63949
63950         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63951
63952 2005-10-12  Simon Josefsson  <jas@extundo.com>
63953
63954         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63955         suggested by Bruno Haible <bruno@clisp.org>.
63956
63957 2005-10-12  Simon Josefsson  <jas@extundo.com>
63958
63959         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63960
63961 2005-10-12  Simon Josefsson  <jas@extundo.com>
63962
63963         * lib/gc-pbkdf2-sha1.c: New file.
63964
63965         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63966
63967 2005-10-12  Simon Josefsson  <jas@extundo.com>
63968
63969         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63970
63971         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63972
63973 2005-10-12  Simon Josefsson  <jas@extundo.com>
63974
63975         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63976         GC_USE_HMAC_MD5, respectively.
63977
63978         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63979         (gc_md5): Fix typo.
63980
63981         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63982
63983         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63984
63985         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63986
63987 2005-10-12  Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63990         Reported by Stepan Kasal <kasal@ucw.cz>.
63991
63992 2005-10-11  Simon Josefsson  <jas@extundo.com>
63993
63994         * tests/test-crc.c: New file.
63995
63996         * modules/crc, modules/crc-tests: New files.
63997
63998 2005-10-11  Simon Josefsson  <jas@extundo.com>
63999
64000         * m4/crc.m4: New file.
64001
64002 2005-10-11  Simon Josefsson  <jas@extundo.com>
64003
64004         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64005
64006         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64007
64008         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64009
64010 2005-10-11  Simon Josefsson  <jas@extundo.com>
64011
64012         * lib/crc.h, lib/crc.c: New files.
64013
64014         * lib/gc.h (gc_hash_buffer): Add doc.
64015
64016 2005-10-11  Bruno Haible  <bruno@clisp.org>
64017
64018         * modules/c-strcasestr: New file.
64019         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64020
64021 2005-10-11  Bruno Haible  <bruno@clisp.org>
64022
64023         * modules/c-strcase: New file.
64024         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64025
64026 2005-10-11  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/strcasecmp.c: Include limits.h.
64029         (strcasecmp): Avoid integer overflow on exotic platforms.
64030         * lib/strncasecmp.c: Include limits.h.
64031         (strncasecmp): Avoid integer overflow on exotic platforms.
64032         Reported by Paul Eggert.
64033
64034 2005-10-11  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/c-strcasestr.h: New file, from GNU gettext.
64037         * lib/c-strcasestr.c: New file, from GNU gettext.
64038
64039 2005-10-11  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/c-strcase.h: New file, from GNU gettext.
64042         * lib/c-strcasecmp.c: New file, from GNU gettext.
64043         * lib/c-strncasecmp.c: New file, from GNU gettext.
64044
64045 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * modules/mempcpy (License): GPL -> LGPL.
64048         * modules/strchrnul (License): Likewise.
64049         * modules/sysexits (License): Likewise.
64050
64051 2005-10-08  Simon Josefsson  <jas@extundo.com>
64052
64053         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64054
64055 2005-10-07  Simon Josefsson  <jas@extundo.com>
64056
64057         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64058
64059 2005-10-06  Simon Josefsson  <jas@extundo.com>
64060
64061         * tests/test-hmac-md5.c: New file.
64062
64063         * modules/hmac-md5-tests: New file.
64064
64065         * modules/hmac-md5: New file.
64066
64067 2005-10-06  Simon Josefsson  <jas@extundo.com>
64068
64069         * m4/hmac-md5.m4: New file.
64070
64071         * m4/memxor.m4: Require gl_C_RESTRICT.
64072
64073 2005-10-06  Simon Josefsson  <jas@extundo.com>
64074
64075         * lib/memxor.c (memxor): Avoid casts and warnings.
64076
64077 2005-10-06  Simon Josefsson  <jas@extundo.com>
64078
64079         * lib/hmac-md5.c: New file.
64080
64081         * lib/hmac.h: New file.
64082
64083 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64086         promotes to int, not unsigned int, to catch the AIX 5.3
64087         compiler bug.
64088
64089 2005-10-05  Simon Josefsson  <jas@extundo.com>
64090
64091         * modules/memxor: New file.
64092
64093         * modules/iconv (Files): Move config.rpath to havelib, it is used
64094         there.
64095
64096         * modules/havelib (Files): Add config.rpath.
64097
64098 2005-10-05  Simon Josefsson  <jas@extundo.com>
64099
64100         * m4/memxor.m4: New file.
64101
64102 2005-10-05  Simon Josefsson  <jas@extundo.com>
64103
64104         * lib/memxor.c (memxor): Fix compiler error.
64105
64106         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64107         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64108
64109         * lib/memxor.h, lib/memxor.c: New files.
64110
64111         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64112         we assume all systems have it, suggested by Jim Meyering
64113         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64114         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64115         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64116         same reasons.
64117
64118 2005-10-05  Simon Josefsson  <jas@extundo.com>
64119
64120         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64121
64122 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64125         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64126         needed, since the source code now assumes these .h files.
64127
64128 2005-10-05  Derek Price  <derek@ximbiot.com>
64129
64130         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64131
64132 2005-10-05  Bruno Haible  <bruno@clisp.org>
64133
64134         * modules/stdint (License): Change to LGPL.
64135
64136 2005-10-04  Simon Josefsson  <jas@extundo.com>
64137
64138         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64139         D. Baushke" <mdb@gnu.org>.
64140
64141 2005-10-04  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/verify.h (verify_true): Provide alternative definition for C++.
64144
64145 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64148         (SSIZE_MAX): New macro, if not already defined.
64149         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64150         than 2 GiB.
64151
64152 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         Sync from coreutils.
64155         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64156         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64157         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64158         ULLONG_MAX doesn't work with 2.7.2.1.
64159
64160 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64161
64162         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64163         From Ben Pfaff.
64164
64165         * modules/exclude (Depends-on): Depend on verify.
64166         * modules/strtoimax (Depends-on): Likewise.
64167         * modules/utimecmp (Depends-on): Likewise.
64168
64169 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * lib/exclude.c: Include verify.h.
64172         (verify): Remove.  All callers changed to use verify.h's version.
64173         * lib/strtoimax.c: Likewise.
64174         * lib/utimecmp.c: Likewis.e
64175
64176         Sync from coreutils.
64177         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64178         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64179         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64180         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64181         bother returning ENOSYS if settimeofday or stime fails; just let
64182         them return whatever errno they want to return.
64183         * lib/utimens.c: Include unistd.h, for dup2.
64184         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64185         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64186
64187 2005-10-02  Jim Meyering  <jim@meyering.net>
64188
64189         Sync from coreutils.
64190         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64191         from glibc-2.2.5 that fails for read-only files.
64192
64193 2005-10-02  Jim Meyering  <jim@meyering.net>
64194
64195         Sync from coreutils.
64196         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64197         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64198         `#if HAVE_CONFIG_H'.
64199         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64200         Remove AT_FDCWD test.
64201         Do not consume the fd unless successful.
64202         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64203         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64204         block, so that we don't even try to compile it if settimeofday is
64205         available.  This works around a compilation failure on OSF1 V5.1,
64206         due to stime requiring a `long int*' while tv_sec is `int'.
64207
64208 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64209
64210         Sync from coreutils.
64211         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64212         against `yes', rather than just testing for nonempty.
64213
64214 2005-10-01  Simon Josefsson  <jas@extundo.com>
64215
64216         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64217         and Darwin.
64218
64219         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64220         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64221         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64222         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64223         Check if struct addrinfo is declared.
64224
64225 2005-10-01  Simon Josefsson  <jas@extundo.com>
64226
64227         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64228         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64229         AI_* and EAI_* definitions.  Protect function declarations.
64230
64231 2005-10-01  Jim Meyering  <jim@meyering.net>
64232
64233         Sync from coreutils.
64234
64235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64236         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64237         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64239         in the inet and nsl libraries.  Required on Solaris 5.7.
64240
64241 2005-10-01  Jim Meyering  <jim@meyering.net>
64242
64243         Sync from coreutils.
64244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64245         in the inet and nsl libraries.  Required on Solaris 5.7.
64246
64247 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64248
64249         * lib/getdelim.c (getdelim): Remove unused variables.
64250
64251 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64252
64253         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64254         so that the code works even with ancient cpp.  Portability problem
64255         with GCC 2.7.2.1 reported by Thomas M.Ott.
64256
64257 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64258
64259         * modules/regex (Depends-on): Add strcase.
64260
64261         * modules/gethostname (Licence): Change from GPL to LGPL, since
64262         gethostname.c is a trivial implementation of a standard library
64263         function.
64264         * modules/poll (License): Change from GPL to LGPL, since it's
64265         derived from LGPL code.
64266
64267 2005-09-27  Jim Meyering  <jim@meyering.net>
64268
64269         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64270         HAVE_CONFIG_H.
64271
64272         * lib/intprops.h (signed_type_or_expr__): Define.
64273         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64274         for unsigned types.
64275
64276 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * lib/verify.h (verify_expr): Remove, replacing with:
64279         (verify_true): New macro that returns true instead of void.
64280         (verify_type__): Remove.
64281         (verify): Use verify_true rather than verify_type__.
64282
64283 2005-09-26  Bruno Haible  <bruno@clisp.org>
64284
64285         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64286         is necessary.
64287         (lib_SOURCES): Remove mbchar.c.
64288         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64289         (Files): Add m4/mbrtowc.m4.
64290         * modules/mbiter: Likewise.
64291         * modules/mbuiter: Likewise.
64292
64293 2005-09-26  Bruno Haible  <bruno@clisp.org>
64294
64295         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64296         compile mbchar.c if they are not both present.
64297         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64298         * m4/mbiter.m4 (gl_MBITER): Likewise.
64299         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64300         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64301         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64302
64303 2005-09-25  Jim Meyering  <jim@meyering.net>
64304
64305         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64306         also uses socklen_t.
64307
64308 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64309
64310         * lib/utimens.c (ENOSYS): Define if not already defined.
64311         (futimens): Support having a null PATH if the file descriptor
64312         is nonnegative.
64313
64314         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64315         Remove.
64316         (__attribute): Define to empty unless GCC 3.1 or later.
64317         This works around a core dump on OpenBSD 3.4, which has GCC
64318         2.95.3, which dumps core when given __attribute__(()).  It also
64319         simplifies other tests, since we really don't want to bother with
64320         worrying about which ancient version of GCC supported what.
64321         Original problem reported by Yoann Vandoorselaere, with part of
64322         the fix suggested by Derek Price.
64323
64324 2005-09-24  Jim Meyering  <jim@meyering.net>
64325
64326         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64327         so we can once again use a positive bitfield width of 1 -- now we
64328         don't have to explain why we were using a bitfield width of 2.
64329
64330 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64333         and similarly for the other external symbols.  Problem reported
64334         by James Gallager.
64335
64336         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64337         bug reported by Jim Meyering.
64338
64339         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64341         not needed, since socklen is a prerequisite module.
64342
64343 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64344
64345         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64346         Problem reported by Eric Blake.
64347         (getaddrinfo): Initialize se so that it's not garbage.
64348         Redo internal storage allocation so that it doesn't make unportable
64349         assumptions about alignment.
64350         Fix a memory leak.
64351
64352         * lib/utimens.c (futimens): Use futimesat if available.
64353         Prefer it to futimes since it doesn't have the futimes bug.
64354
64355         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64356         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64357         Instead, declare a function that returns a pointer to an array,
64358         and use verify_type__ to declare the size of the array.
64359         Problem and germ of a solution reported by Bruno Haible.
64360         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64361         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64362
64363 2005-09-23  Jim Meyering  <jim@meyering.net>
64364
64365         Sync from coreutils.
64366         Correct build failure (socklen_t not defined) on at least
64367         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64369
64370 2005-09-23  Jim Meyering  <jim@meyering.net>
64371
64372         * modules/getaddrinfo (Depends-on): Add socklen.
64373
64374 2005-09-23  Bruno Haible  <bruno@clisp.org>
64375
64376         * tests/test-verify.c: New file.
64377
64378 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         Sync from coreutils.
64381
64382         * modules/argmatch (Depends-on): Add verify.
64383         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64384         unistd-safer.
64385         * modules/save-cwd (Depends-on): Likewise.
64386
64387         * modules/openat (Files): Add lib/openat-die.c.
64388         (Depends-on): Remove error, exitfail.
64389         Add dirname.
64390
64391         * modules/verify: New file.
64392         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64393         with "verify" module.
64394
64395 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64396
64397         Sync from coreutils.
64398
64399         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64400         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64401         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64402         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64403         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64404         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64405         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64406         Don't bother checking for string.h, stdlib.h, unistd.h.
64407         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64408         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64409         module's job.
64410         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64411         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64412
64413         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64414         (gl_GETDATE): Use it.
64415
64416         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64417
64418 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         Sync from coreutils.
64421
64422         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64423         stat-time.h.
64424         * lib/argmatch.h: Include verify.h
64425         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64426         (ARGMATCH_ASSERT): Remove; unused.
64427         * lib/canonicalize.c: Assume STDC_HEADERS.
64428         * lib/exclude.c: Include "strcase.h".
64429         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64430         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64431         and stdio-safer.h.
64432         (getusershell): Call fopen, not fopen_safer.
64433         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64434         Do not include unistd-safer.h.
64435         (save_cwd): Don't call fd_safer; no longer needed
64436         now that we include fcntl--.h.
64437
64438         * lib/getdate.y (relative_time): New type.
64439         (RELATIVE_TIME_0): New constant.
64440         (parser_control): Use relative_time instead of doing it ourselves.
64441         (%union): Add new relative_time rel member.
64442         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64443         Now typeless.
64444         (relunit, relunit_snumber): Now of type rel.
64445         (zone, rel, relunit, get_date): Adjust to above changes.
64446
64447         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64448         Do not include unistd-safer.h.
64449         (getloadavg): Don't call fd_safer; no longer needed
64450         now that we include fcntl--.h.
64451
64452         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64453         (make_dir_parents): Treat ENOSYS like EEXIST.
64454
64455         Improve quality of diagnostics on restore_cwd failure.
64456         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64457         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64458         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64459         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64460         each time through the loop.  Do not diagnose restore_cwd failure;
64461         that is the caller's job (and perhaps the caller does not care).
64462
64463         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64464         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64465         If the file already exists but is not a directory, don't bother
64466         to try to make its parents.
64467         Close potential file descriptor leak if we can't chdir("/") (!).
64468         Don't always return true if chdir($PWD) fails; return true only
64469         if the requested action was done successfully (except for the
64470         chdir($PWD)).
64471         Don't log final directory unless we actually made it.
64472         Refactor to avoid duplicate code to fix up permissions.
64473         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64474
64475         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64476         to make it a bit faster and (I hope) clearer.
64477         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64478         Fix bug in formats like %2N.
64479
64480         * lib/verify.h: New file.
64481
64482 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         Sync from coreutils.
64485         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64486
64487 2005-09-22  Jim Meyering  <jim@meyering.net>
64488
64489         Sync from coreutils.
64490
64491         * m4/lstat.m4 (gl_FUNC_LSTAT):
64492         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64493         Remove obsolete comment.
64494         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64495         * m4/xstrtod.m4: Likewise.
64496
64497         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64498
64499 2005-09-22  Jim Meyering  <jim@meyering.net>
64500
64501         Sync from coreutils.
64502
64503         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64504
64505         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64506         the .tm_year member, since otherwise gcc-4.0 would now warn about
64507         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64508
64509         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64510         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64511
64512         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64513         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64514         when run in a time zone for which daylight savings time is in effect
64515         for the starting date.
64516
64517         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64518         stop us from restricting permissions of just-created absolute-named
64519         directories.
64520         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64521         to restore initial working directory.
64522         * lib/mkdir-p.c (make_dir_parents): New parameter:
64523         different_working_dir, to tell caller if/when we change the working
64524         directory and are unable to return to the initial one.
64525         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64526         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64527         `return false'.  This fixes a bug introduced on 2004-07-30.
64528
64529         * lib/openat.c (fdopendir): Be sure to close the supplied
64530         file descriptor before returning.  This makes our replacement
64531         implementation a little closer to Solaris's, where fdopendir
64532         ties the file descriptor to the returned DIR* pointer.
64533         * lib/openat.c (unlinkat): New function.
64534         * lib/openat.h (unlinkat): Add prototype.
64535         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64536         (openat_restore_fail): Rename from openat_restore_die.
64537         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64538
64539         Provide an alternative to exiting immediately upon save_cwd or
64540         restore_cwd failure.  Now, an application can arrange e.g.,
64541         to perform a longjump in that case.
64542         * lib/openat.c: Include dirname.h.
64543         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64544         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64545         and openat_restore_die rather than calling error directly.
64546         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64547
64548         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64549         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64550         define.
64551
64552         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64553         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64554                             int utc, int nanoseconds);
64555         Background:
64556         date should not have to allocate a megabyte of virtual memory to
64557         handle a format argument like +%1048575T.  When implemented with
64558         strftime, it must allocate such a buffer, use strftime to fill it
64559         in, print it, then free it.
64560         With fprintftime, it simply prints everything and exits.
64561         With no need for memory allocation, that's one fewer way to fail.
64562         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64563         optional field width, not before, so we accept %9:z, not %:9z.
64564         (my_strftime): Be sure to use L_('x') for literals.
64565
64566         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64567         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64568         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64569         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64570         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64571         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64572         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64573         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64574         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64575         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64576         * lib/xgethostname.c, lib/xreadlink.c:
64577         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64578
64579         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64580         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64581         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64582         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64583         and don't include <sys/file.h>).
64584
64585 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64586
64587         Sync from coreutils.
64588
64589         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64590         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64591         [!LDAV_DONE]: Avoid unused variable warning.
64592
64593 2005-09-21  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/unicodeio.h (unicode_to_mb): New declaration.
64596
64597 2005-09-20  Derek Price  <derek@ximbiot.com>
64598
64599         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64600         getaddrinfo.h.
64601
64602 2005-09-20  Bruno Haible  <bruno@clisp.org>
64603
64604         * gnulib-tool: Remove trailing slashes from the values specified for
64605         --source-base, --m4-base, --tests-base, --aux-dir.
64606         Suggested by Simon Josefsson <jas@extundo.com>.
64607
64608 2005-09-20  Bruno Haible  <bruno@clisp.org>
64609
64610         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64611         func_modules_to_filelist, func_import, func_create_testdir): Make all
64612         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64613         change when gnulib-tool is invoked in a different locale.
64614
64615 2005-09-19  Simon Josefsson  <jas@extundo.com>
64616
64617         * m4/socklen.m4: Fix typo.
64618
64619 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64620
64621         Use a consistent style for including <config.h>.
64622         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64623         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64624         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64625         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64626         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64627         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64628         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64629         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64630         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64631         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64632         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64633         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64634         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64635         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64636         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64637         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64638         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64639         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64640         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64641         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64642         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64643         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64644         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64645         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64646         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64647         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64648         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64649         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64650         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64651         lib/xstrtoumax.c, lib/yesno.c:
64652         Standardize inclusion of config.h.
64653         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64654         lib/inttostr.h:  Removed inclusion of config.h from header files.
64655         * lib/inttostr.c:  Adjusted in-tree users.
64656         * lib/timespec.h: Remove superfluous warning to include config.h.
64657         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64658         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64659         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64660         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64661         config.h with HAVE_CONFIG_H.
64662
64663 2005-09-19  Jim Meyering  <jim@meyering.net>
64664
64665         * modules/pathmax (License): Change to LGPL.
64666
64667 2005-09-19  Derek Price  <derek@ximbiot.com>
64668
64669         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64670
64671 2005-09-19  Bruno Haible  <bruno@clisp.org>
64672
64673         * gnulib-tool (import): Provide default for --tests-base.
64674
64675 2005-09-19  Bruno Haible  <bruno@clisp.org>
64676
64677         * doc/quote.texi: New file, extracted from gnulib.texi.
64678         * doc/ctime.texi: New file, extracted from gnulib.texi.
64679         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64680         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64681         * doc/gnulib.texi: Include them.
64682
64683 2005-09-18  Bruno Haible  <bruno@clisp.org>
64684
64685         Portability fix.
64686         * gnulib-tool (func_readlink): New function.
64687         (func_ln_if_changed): Use it.
64688
64689 2005-09-18  Bruno Haible  <bruno@clisp.org>
64690
64691         * gnulib-tool: Support --with-tests also with --import.
64692         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64693         (func_import): Use variables $testsbase and $inctests. Emit a
64694         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64695         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64696         SUBDIRS += $testsdir.
64697         (func_create_testdir): Update.
64698
64699 2005-09-18  Bruno Haible  <bruno@clisp.org>
64700
64701         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64702         instead of $dry_run.
64703         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64704         (func_ln_if_changed): Don't handle dry-run here.
64705         (func_import): In dry-run mode, detect more precisely which actions
64706         would be performed, and don't use "...ing" verbs.
64707
64708 2005-09-18  Bruno Haible  <bruno@clisp.org>
64709
64710         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64711         (func_import): Use join on two temporary files instead of three nested
64712         loops, in order to determine which files are new or old.
64713
64714 2005-09-18  Bruno Haible  <bruno@clisp.org>
64715
64716         * gnulib-tool (func_import): Comment out code that spits out the
64717         new files with --dry-run.
64718
64719 2005-09-18  Bruno Haible  <bruno@clisp.org>
64720
64721         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64722
64723 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64724
64725         * lib/stat-time.h: New file.
64726         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64727         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64728         in a different way.
64729         (timespec_cmp): New function.
64730         * lib/utimecmp.c: Include stat-time.h.
64731         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64732         members exist, not on the obsolescent ST_MTIM_NSEC.
64733         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64734
64735 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64736
64737         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64738
64739 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * MODULES.html.sh (File system functions): Add stat-time.
64742         * modules/stat-time: New file.
64743         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64744         is now done in a different way, by the stat-time module.
64745         * modules/utimecmp (Depends-on): Add stat-time.
64746
64747 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * m4/st_mtim.m4: Remove.  Superseded by...
64750         * m4/stat-time.m4: New file.
64751         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64752         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64753
64754 2005-09-15  Derek Price  <derek@ximbiot.com>
64755
64756         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64757
64758 2005-09-15  Derek Price  <derek@ximbiot.com>
64759
64760         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64761         * lib/regex_internal.c: Ditto, using this...
64762         (__GNUC_PREREQ): ...new macro.
64763         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64764         using...
64765         (__GNUC_PREREQ): ...this new macro.
64766
64767         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64768
64769 2005-09-15  Derek Price  <derek@ximbiot.com>
64770             Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64773         changes, consolidating in...
64774         * lib/regex_internal.h: ...this file.
64775
64776 2005-09-13  Jim Meyering  <jim@meyering.net>
64777
64778         * lib/canon-host.c: Filter through gnu indent and reword comments
64779         slightly.
64780         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64781
64782 2005-09-13  Derek Price  <derek@ximbiot.com>
64783
64784         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64785         failure.
64786         Reported by Jim Meyering  <jim@meyering.net>.
64787
64788 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64789
64790         * lib/base64.c: Typo.
64791         (base64_encode): Put b64str in initialized data section.
64792
64793 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64794
64795         Merge glibc and coreutils changes into gnulib, plus a few
64796         extra fixes.
64797         * lib/md5.c: Use #error rather than a string.
64798         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64799         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64800         (__attribute__): Define to empty for non recent-GCC.
64801         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64802         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64803         Renamed from their non-__ counterparts, with new macros replacing
64804         them if not _LIBC.  Add __THROW attribute.
64805         (rol): Remove.
64806         (struct md5_ctx): Align buffer if using GCC.
64807         * lib/sha1.h (struct sha1_ctx): Likewise.
64808         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64809         The old name was backwards.
64810         (NOTSWAP): Remove; not used.
64811         (rol): New macro, moved here from md5.h.
64812         (sha1_process_block): Remove a FIXME that doesn't make sense.
64813
64814 2005-09-12  Derek Price  <derek@ximbiot.com>
64815
64816         Return usable errors from canon-host.
64817         * lib/canon-host.h: New file.
64818         * lib/canon-host.c (canon_host): Wrap...
64819         (canon_host_r): ...this new function, which now relies exclusively on
64820         getaddrinfo.
64821         (ch_strerror): New function.
64822         (last_cherror): New global.
64823         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64824         interface.
64825         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64826         void *.
64827         (freeaddrinfo): Free ai->ai_canonname when set.
64828
64829 2005-09-12  Derek Price  <derek@ximbiot.com>
64830
64831         Make canon-host require getaddrinfo.
64832         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64833         AC_LIBSOURCE canon-host.h.  Call...
64834         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64835         gl_GETADDRINFO.
64836         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64837
64838 2005-09-12  Derek Price  <derek@ximbiot.com>
64839
64840         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64841         LGPL.
64842         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64843
64844 2005-09-12  Derek Price  <derek@ximbiot.com>
64845
64846         * lib/gai_strerror.c: Include config.h when available.  Include
64847         getaddrinfo.h before other headers to test interface.
64848         Reported by Larry Jones <lawrence.jones@ugs.com>.
64849
64850 2005-09-12  Derek Price  <derek@ximbiot.com>
64851             Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * modules/glob (Files): Add glob-libc.h.
64854
64855 2005-09-12  Derek Price  <derek@ximbiot.com>
64856             Paul Eggert  <eggert@cs.ucla.edu>
64857
64858         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64859         glob_.h, glob-libc.h.
64860         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64861
64862 2005-09-12  Derek Price  <derek@ximbiot.com>
64863             Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64866         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64867         protecting things that should be done only in gnulib contexts.
64868         * lib/glob_.h: New file, containing only the glob things needed for
64869         gnulib.
64870         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64871         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64872         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64873         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64874         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64875         and to respect the namespace rules better.
64876
64877 2005-09-08  Simon Josefsson  <jas@extundo.com>
64878
64879         * modules/socklen: New file.
64880
64881 2005-09-08  Simon Josefsson  <jas@extundo.com>
64882
64883         * m4/socklen.m4: New file.
64884
64885 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * modules/utimens (Files): Add m4/utimbuf.m4, since
64888         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64889         Reported by Sergey Poznyakoff.
64890
64891 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64892
64893         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64894         definitions, since that's the preferred style in glibc.
64895         Fix a minor spacing issue, and update copyright notice to match
64896         glibc's.
64897
64898 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64899
64900         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64901
64902 2005-09-06  Simon Josefsson  <jas@extundo.com>
64903
64904         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64905         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64906
64907 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64910         warning.
64911
64912 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         * config/srclist.txt: Add glibc bug 1302.
64915
64916 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         Change bitset word type from unsigned int to unsigned long int,
64919         as this has better performance on typical 64-bit hosts.
64920         Port bitset code to hosts with unusual word sizes.
64921         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64922         (build_collating_symbol):
64923         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64924         argument is a bitset.  This is merely a style issue, but it makes
64925         it clearer that an entire array is expected.
64926         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64927         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64928         Port to the case where bitset_word is not the same as unsigned int.
64929         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64930         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64931         Likewise.
64932         * lib/regexec.c (check_dst_limits_calc_pos_1,
64933         check_subexp_matching_top):
64934         (build_trtable, group_nodes_into_DFAstates):
64935         Likewise.
64936         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64937         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64938         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64939         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64940         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64941         * lib/regcomp.c (optimize_subexps, lower_subexp):
64942         Work even if bitset_word has holes in its bitwise representation.
64943         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64944         * lib/regexec.c (check_dst_limits_calc_pos_1,
64945         check_subexp_matching_top):
64946         Likewise.
64947         * lib/regex_internal.c (re_string_reconstruct):
64948         Don't assume UCHAR_MAX == 255.
64949         * lib/regex_internal.h (bitset_set_all): Likewise.
64950         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64951         All uses changed.
64952         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64953         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64954         All uses changed.
64955         (BITSET_WORD_MAX): New macro.
64956         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64957         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64958         (bitset_empty, bitset_copy):
64959         Prefer sizeof (bitset) to multiplying it out ourselves.
64960         (bitset_not_merge): Remove; unused.
64961         (bitset_contain): Return bool, not unsigned int with one bit on.
64962         All callers changed.
64963         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64964         alignment than re_node_set; do this by defining a new internal
64965         type struct dests_alloc and using it to allocate memory.
64966
64967 2005-09-05  Bruno Haible  <bruno@clisp.org>
64968
64969         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64970         links.
64971
64972 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64973
64974         * modules/size_max (Makefile.am): Add size_max.h
64975
64976 2005-09-04  Derek Price  <derek@ximbiot.com>
64977
64978         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64979
64980 2005-09-03  Simon Josefsson  <jas@extundo.com>
64981
64982         * gnulib-tool: Fix typo.
64983
64984 2005-09-03  Simon Josefsson  <jas@extundo.com>
64985
64986         * config/srclist.txt: Add glibc bug 1293.
64987
64988 2005-09-03  Derek Price  <derek@ximbiot.com>
64989
64990         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64991         From Larry Jones <lawrence.jones@ugs.com>.
64992
64993 2005-09-02  Simon Josefsson  <jas@extundo.com>
64994
64995         * modules/socklen: New file.
64996
64997 2005-09-02  Simon Josefsson  <jas@extundo.com>
64998
64999         * modules/havelib: New module.
65000
65001         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65002         Use havelib.
65003
65004 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         Check for arithmetic overflow when calculating sizes, to prevent
65007         some buffer-overflow issues.  These patches are conservative, in the
65008         sense that when I couldn't determine whether an overflow was possible,
65009         I inserted a run-time check.
65010         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65011         macros.
65012         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65013         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65014         (re_xnrealloc, re_x2nrealloc): New inline functions.
65015         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65016         parse_bracket_exp):
65017         (build_equiv_class, build_charclass): Check for arithmetic overflow
65018         in size expression calculations.
65019         * lib/regex_internal.c (re_string_realloc_buffers):
65020         (build_wcs_upper_buffer, re_node_set_add_intersect):
65021         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65022         (re_dfa_add_node, register_state): Likewise.
65023         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65024         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65025         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65026         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65027
65028 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65031         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65032
65033 2005-09-02  Bruno Haible  <bruno@clisp.org>
65034
65035         Support for lib vs. lib64 distinction on biarch platforms.
65036         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65037         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65039
65040 2005-09-02  Bruno Haible  <bruno@clisp.org>
65041
65042         * gnulib-tool (import): In the other first-use case, provide defaults
65043         as well.
65044
65045 2005-09-02  Bruno Haible  <bruno@clisp.org>
65046
65047         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65048         patches not yet found in the latest gettext release.
65049
65050 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65051
65052         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65053         to avoid a collision with bits/local_lim.h in glibc.
65054         All uses changed.  Problem reported by Dmitry V. Levin in
65055         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65056
65057         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65058         bugs in int versus size_t comparisons.
65059         (re_string_context_at): Fix bug where the code assumed that
65060         Idx is signed.
65061
65062         Use bool where appropriate.
65063         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65064         All callers changed.
65065         (calc_eclosure_iter): Likewise, for ROOT arg.
65066         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65067         (build_charclass_op): Likewise, for NON_MATCH arg.
65068         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65069         (re_string_construct_common): Likewise, for ICASE arg.
65070         * lib/regexec.c (re_search_2_stub, re_search_stub):
65071         Likewise, for RET_LEN arg.
65072         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65073         (set_regs): Likewise, for FL_BACKTRACK arg.
65074         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65075         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65076         (calc_eclosure_iter, parse_bracket_exp):
65077         Use bool for internal variables that are booleans.
65078         * lib/regexec.c (re_search_internal, check_matching,
65079         proceed_next_node):
65080         (set_regs, build_sifted_states, sift_states_bkref):
65081         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65082         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65083         (find_collation_sequence_value):
65084         Likewise.
65085         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65086         (re_node_set_compare):
65087         Return bool, not int. All callers changed.
65088         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65089         (build_trtable, check_node_accept): Likewise.
65090         * lib/regex_internal.h: Include stdbool.h.
65091
65092         Fix bugs uncovered when converting to bool.
65093         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65094         failure instead of charging ahead blindly.
65095         * lib/regex_internal.c (register_state): Likewise.
65096         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65097         for freeing internal storage.
65098         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65099         bitset pieces used as boolean, to avoid undefined behavior
65100         on hosts that do int overflow checking.
65101
65102 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         * config/srclist.txt: Add glibc bugs 1285-1287.
65105
65106 2005-09-01  Jim Meyering  <jim@meyering.net>
65107
65108         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65109         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65110         Require gl_STAT_MACROS, too.
65111
65112 2005-09-01  Bruno Haible  <bruno@clisp.org>
65113
65114         * gnulib-tool (import): In the first-use case, provide defaults.
65115
65116 2005-09-01  Bruno Haible  <bruno@clisp.org>
65117
65118         * gnulib-tool (func_import): Remove the .tmp files.
65119
65120 2005-09-01  Bruno Haible  <bruno@clisp.org>
65121
65122         * gnulib-tool (func_import): Fix handling of symbolic links.
65123
65124 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65127         old glibc regex code mishandles strings longer than 2**31 bytes.
65128         This patch fixes this when the regex code is used in gnulib
65129         (i.e., outside glibc).
65130
65131         This patch should not affect the use of the regex code inside
65132         glibc.  No doubt this problem also needs to be handled for glibc
65133         as well, but the result will be an incompatible change to the
65134         glibc ABI, and the old ABI will have to be supported too.  That
65135         can be the the subject for another patch.
65136
65137         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65138         governing whether the rest of this patch is active.  By default,
65139         the macro is disabled and the patch has no effect.
65140         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65141         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65142         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65143         (re_match_2, re_set_registers): Use the new types.
65144         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65145         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65146         New macros.
65147         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65148         (re_string_context_at, bin_tree_t, re_dfastate_t):
65149         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65150         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65151         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65152         (re_string_char_size_at, re_string_wchar_at):
65153         (re_string_elem_size_at):
65154         Use the new types and macros to port to 64-bit hosts.
65155         Use unsigned types for internal values, so that the code
65156         mostly works even for arrays larger than SSIZE_MAX.
65157         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65158         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65159         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65160         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65161         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65162         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65163         (calc_inveclosure, parse_dup_op, build_range_exp):
65164         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65165         (fetch_number, create_token_tree, mark_opt_subexp):
65166         Likewise.
65167         * lib/regex_internal.c (re_string_construct_common,
65168         create_ci_newstate):
65169         (create_cd_newstate, re_string_allocate, re_string_construct):
65170         (re_string_realloc_buffers, build_wcs_upper_buffer):
65171         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65172         (re_string_reconstruct, re_string_peek_byte_case):
65173         (re_string_fetch_byte_case, re_string_context_at):
65174         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65175         (re_node_set_init_copy, re_node_set_add_intersect):
65176         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65177         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65178         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65179         (re_acquire_state, re_acquire_state_context, register_state):
65180         Likewise.
65181         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65182         search_cur_bkref_entry):
65183         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65184         (re_search_internal, re_search_2_stub, re_search_stub)
65185         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65186         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65187         (update_cur_sifted_state, check_dst_limits):
65188         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65189         (check_subexp_limits, sift_states_bkref, merge_state_array):
65190         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65191         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65192         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65193         (expand_bkref_cache, check_node_accept_bytes):
65194         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65195         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65196         (acquire_init_state_context, check_halt_node_context):
65197         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65198         (sift_states_backward, clean_state_log_if_needed):
65199         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65200         (find_recover_state, transit_state_sb, transit_state_mb):
65201         (transit_state_bkref, build_trtable, match_ctx_clean):
65202         Likewise.
65203         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65204         to work around an assumption that REG_MISSING is negative.
65205
65206         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65207         (seek_collating_symbol_entry) [defined _LIBC]:
65208         (lookup_collation_sequence_value) [defined _LIBC]:
65209         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65210         Use prototypes rather than old-style function definitions.
65211         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65212         (transit_state_sb) [0]:
65213         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65214
65215         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65216         rm_eo.
65217
65218         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65219         (optimize_subexps, lower_subexp):
65220         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65221         since the signed shift might overflow.  Use 1u<<31 instead.
65222         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65223         Likewise.
65224         * lib/regexec.c (check_dst_limits_calc_pos_1,
65225         check_subexp_matching_top): Likewise.
65226
65227         * lib/regcomp.c (optimize_subexps, lower_subexp):
65228         Use CHAR_BIT rather than 8, for clarity.
65229         * lib/regexec.c (check_dst_limits_calc_pos_1):
65230         (check_subexp_matching_top): Likewise.
65231         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65232         have to worry about portability issues when shifting it left.
65233         Remove no-longer-needed test for table_size > 0.
65234         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65235         in a word, as the resulting behavior is undefined.
65236         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65237         in one case, a <= should have been an <, and in another case the
65238         whole test was missing.
65239         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65240         the standard name CHAR_BIT.
65241         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65242         this is not true on one's complement and signed-magnitude hosts.
65243
65244         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65245         next_last_offset.
65246         (struct re_dfa_t): Remove unused member states_alloc.
65247         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65248
65249 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65252         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65253         and large-file glibc and in 32-bit large-file Solaris.
65254
65255 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65258         lengths fit in regoff_t; this isn't true if regoff_t is the same
65259         width as size_t.
65260         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65261         (= START + RANGE) instead of RANGE.  This avoids overflow
65262         problems when regoff_t is the same width as size_t.
65263         All callers changed.
65264         (re_search_2_stub): Check for overflow when adding the
65265         sizes of the two strings.
65266         (re_search_stub): Check for overflow when adding START
65267         to RANGE; if it occurs, substitute the extreme value.
65268
65269 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65272
65273 2005-08-31  Jim Meyering  <jim@meyering.net>
65274
65275         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65276         a pointer-to-const.
65277         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65278         (register_state): Likewise.
65279         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65280         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65281         (group_nodes_into_DFAstates): Likewise.
65282
65283 2005-08-31  Jim Meyering  <jim@meyering.net>
65284
65285         * check-module: Add a FIXME comment.
65286
65287 2005-08-31  Eric Blake  <ebb9@byu.net>
65288
65289         * modules/unistd-safer (Files): Add unistd--.h.
65290         * modules/stdio-safer (Files): Add stdio--.h.
65291
65292 2005-08-31  Derek Price  <derek@ximbiot.com>
65293
65294         * lib/getdelim.c (getdelim): Return EOF on EOF.
65295         Reported by Larry Jones <lawrence.jones@ugs.com>.
65296
65297 2005-08-31  Bruno Haible  <bruno@clisp.org>
65298
65299         Avoid unnecessary diffs in the generated lib/Makefile.am.
65300         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65301         the generated files.
65302         (func_import): Don't set cmd.
65303
65304 2005-08-31  Bruno Haible  <bruno@clisp.org>
65305
65306         * lib/strstr.c: Include <stddef.h>, for NULL.
65307         * lib/strcasestr.c: Likewise.
65308         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65309
65310 2005-08-31  Bruno Haible  <bruno@clisp.org>
65311
65312         * gnulib-tool: New option --macro-prefix.
65313         (func_import): Use macro_prefix.
65314         (import): Handle option --macro-prefix.
65315
65316 2005-08-31  Bruno Haible  <bruno@clisp.org>
65317
65318         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65319         Also use new variables cached_lgpl, cached_libtool.
65320
65321 2005-08-31  Bruno Haible  <bruno@clisp.org>
65322
65323         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65324         always instantiating them.
65325
65326 2005-08-31  Bruno Haible  <bruno@clisp.org>
65327
65328         * gnulib-tool (func_import): Read the previous cached settings
65329         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65330         earlier added by gnulib but are now dropped. Warn when a gnulib file
65331         overwrites a non-gnulib file.
65332
65333 2005-08-31  Bruno Haible  <bruno@clisp.org>
65334
65335         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65336         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65337         projects that don't keep autogenerated files in CVS. Put into
65338         actioncmd only the specified modules, not the transitive closure.
65339
65340 2005-08-31  Bruno Haible  <bruno@clisp.org>
65341
65342         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65343         Create directories that shall be filled.
65344         (import): Don't look for gl_* macros in configure.ac. Recurse across
65345         all directories containing a gnulib-cache.m4 files, if meaningful.
65346
65347 2005-08-31  Bruno Haible  <bruno@clisp.org>
65348
65349         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65350         (import): Set seen_libtool when we see gl_LIBTOOL.
65351
65352 2005-08-31  Bruno Haible  <bruno@clisp.org>
65353
65354         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65355         declaration macro definitions from generated gnulib.m4.
65356
65357 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65358
65359         * lib/iconvme.h: Add prototype for iconv_alloc.
65360
65361 2005-08-29  Simon Josefsson  <jas@extundo.com>
65362
65363         * lib/iconvme.c: Fix errno.
65364
65365 2005-08-29  Bruno Haible  <bruno@clisp.org>
65366
65367         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65368         that it works when the directory contains spaces.
65369
65370 2005-08-29  Bruno Haible  <bruno@clisp.org>
65371
65372         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65373
65374 2005-08-29  Bruno Haible  <bruno@clisp.org>
65375
65376         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65377         Emit more advice.
65378
65379 2005-08-29  Bruno Haible  <bruno@clisp.org>
65380         and Stepan Kasal  <kasal@ucw.cz>
65381
65382         * check-module: If more parameters are given, check each of them
65383         separately; add more exceptions, as noted by Jim Meyering.
65384         (check_module): New procedure.
65385         (%exempt_header): Now contains all exceptions.
65386
65387 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65388
65389         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65390
65391 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65392
65393         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65394
65395 2005-08-28  Bruno Haible  <bruno@clisp.org>
65396
65397         * m4/gnulib-tool.m4: New file.
65398
65399 2005-08-27  Jim Meyering  <jim@meyering.net>
65400
65401         * modules/unistd-safer (Files): Add pipe-safer.c.
65402         * modules/fcntl-safer (Files): Add creat-safer.c.
65403
65404 2005-08-27  Jim Meyering  <jim@meyering.net>
65405
65406         * m4/stdlib-safer.m4: New file.  From coreutils.
65407         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65408         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65409         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65410         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65411         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65412
65413 2005-08-27  Jim Meyering  <jim@meyering.net>
65414
65415         * lib/fopen-safer.c: Merge minor changes from coreutils.
65416         * lib/dup-safer.c: Likewise.
65417         * lib/fd-safer.c: Likewise.
65418
65419         Merge from coreutils.
65420         * lib/stdio--.h: New file.
65421         * lib/stdlib--.h: New file.
65422         * lib/mkstemp-safer.c: New file.
65423
65424         GNU tar needs these.
65425         * lib/pipe-safer.c: New file.
65426         * lib/creat-safer.c: New file.
65427         * lib/fcntl--.h (creat): Define to creat_safer.
65428         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65429         * lib/unistd--.h (pipe): Define to pipe_safer.
65430         * lib/unistd-safer.h: Declare pipe_safer.
65431
65432 2005-08-26  Simon Josefsson  <jas@extundo.com>
65433
65434         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65435         Haible <bruno@clisp.org>.
65436
65437 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * lib/regex_internal.h: Remove all references to
65440         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65441         or better.
65442         (bitset_not, bitset_merge, bitset_not_merge):
65443         (bitset_mask, re_string_allocate, re_string_construct):
65444         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65445         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65446         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65447         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65448         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65449         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65450         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65451         (re_acquire_state_context):
65452         Remove unnecessary forward decls.
65453         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65454         Put __attribute at function definition,
65455         now that the function decl has been removed.
65456         * lib/regex_internal.c (re_string_peek_byte_case):
65457         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65458         Likewise.
65459
65460 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65461
65462         * m4/regex.m4: Add AC_PREREQ(2.50).
65463         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65464
65465 2005-08-25  Simon Josefsson  <jas@extundo.com>
65466
65467         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65468         __fsetlocking.
65469
65470 2005-08-25  Simon Josefsson  <jas@extundo.com>
65471
65472         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65473         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65474         GLIBC specific code.
65475
65476 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65477
65478         Make regex safe for g++.  This fixes one real bug (an "err"
65479         that should have been "*err").  g++ problem reported by
65480         Sam Steingold.
65481         * lib/regex_internal.h (re_calloc): New macro, consistent with
65482         re_malloc etc.  All callers of calloc changed to use re_calloc.
65483         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65484         not int.  All callers changed.
65485         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65486         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65487         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65488         (find_recover_state): Change "err" to "*err"; this fixes what
65489         appears to be a real bug.
65490         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65491         versus int.
65492
65493 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65494
65495         * modules/regex (Depends-on): Add malloc, since the code
65496         assumes that !malloc(0) means failure.
65497
65498 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65501
65502         alloca modernization/simplification for regex.
65503         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65504         needs to be at the start of the file, and can be moved into
65505         regex_internal.h and simplified.
65506         * lib/regex_internal.h: Include <alloca.h>.
65507         (__libc_use_alloca) [!defined _LIBC]: New macro.
65508         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65509         now works outside glibc.
65510
65511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         * config/srclist.txt: Add glibc bugs 1241, 1245.
65514
65515 2005-08-25  Jim Meyering  <jim@meyering.net>
65516
65517         * lib/open-safer.c: Include <config.h>.
65518         Otherwise, we'd lose LARGEFILE support in any file using
65519         e.g. "fcntl--.h"
65520
65521 2005-08-25  Bruno Haible  <bruno@clisp.org>
65522
65523         * m4/minmax.m4: Require autoconf 2.52.
65524         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65525         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65526         alternatives of translit over the alphabet.
65527         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65528
65529 2005-08-24  Simon Josefsson  <jas@extundo.com>
65530
65531         * tests/test-getpass.c: New file.
65532
65533 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65536         for GNU regex features.
65537
65538 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65539
65540         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65541         * lib/regex.h (regerror): Likewise.
65542
65543         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65544         requires this.  (The code never needed it.)
65545
65546         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65547         All uses of recently-renamed identifiers changed to use the new,
65548         POSIX-compliant names.  The code will build and run just fine
65549         without these changes, but it's better to eat our own dog food
65550         and use the standard-conforming names.
65551
65552         * lib/regex.h: Fix a multitude of POSIX name space violations.
65553         These changes have an effect only for programs that define
65554         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65555         do not change anything for programs compiled in the normal way.
65556         Also, there is no effect on the ABI.
65557
65558         (_REGEX_SOURCE): New macro.
65559         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65560         defined and _GNU_SOURCE is not; this fixes a name space violation.
65561
65562         Rename the following macros to obey POSIX requirements.
65563         The old names are still visible as macros if _REGEX_SOURCE is defined.
65564         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65565         RE_BACKSLASH_ESCAPE_IN_LISTS.
65566         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65567         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65568         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65569         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65570         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65571         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65572         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65573         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65574         (REG_INTERVALS): renamed from RE_INTERVALS.
65575         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65576         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65577         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65578         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65579         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65580         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65581         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65582         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65583         RE_UNMATCHED_RIGHT_PAREN_ORD.
65584         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65585         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65586         (REG_DEBUG): renamed from RE_DEBUG.
65587         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65588         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65589         unusual, since we can't clash with the POSIX REG_ICASE.
65590         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65591         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65592         (REG_NO_SUB): renamed from RE_NO_SUB.
65593         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65594         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65595         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65596         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65597         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65598         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65599         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65600         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65601         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65602         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65603         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65604         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65605         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65606         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65607         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65608         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65609         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65610         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65611         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65612         (REG_FIXED): Renamed from REGS_FIXED.
65613         (REG_NREGS): Renamed from RE_NREGS.
65614
65615         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65616         of other REG_* macros, since POSIX says the user is allowed to
65617         #undef these macros selectively.
65618
65619         (reg_errcode_t): Update comment stating what other tables need
65620         to be consistent.
65621
65622         Rename the following enum values to obey POSIX requirements.
65623         The old names are still visible as macros.
65624         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65625         is not defined, since GNU is supposed to be a superset of POSIX as
65626         much as possible, and since we want reg_errcode_t to be a signed
65627         type for implementation consistency.
65628         (_REG_NOERROR): Renamed from REG_NOERROR.
65629         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65630         (_REG_BADPAT): Renamed from REG_BADPAT.
65631         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65632         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65633         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65634         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65635         (_REG_EBRACK): Renamed from REG_EBRACK.
65636         (_REG_EPAREN): Renamed from REG_EPAREN.
65637         (_REG_EBRACE): Renamed from REG_EBRACE.
65638         (_REG_BADBR): Renamed from REG_BADBR.
65639         (_REG_ERANGE): Renamed from REG_ERANGE.
65640         (_REG_ESPACE): Renamed from REG_ESPACE.
65641         (_REG_BADRPT): Renamed from REG_BADRPT.
65642         (_REG_EEND): Renamed from REG_EEND.
65643         (_REG_ESIZE): Renamed from REG_ESIZE.
65644         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65645         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65646         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65647         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65648         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65649
65650         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65651         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65652         changed.  But support the old name if the new one is not defined
65653         and if _REGEX_SOURCE.
65654
65655         Change the following member names in struct re_pattern_buffer.
65656         The old names are still supported if !_REGEX_SOURCE.
65657         The new names are always supported, regardless of _REGEX_SOURCE.
65658         (re_buffer): Renamed from buffer.
65659         (re_allocated): Renamed from allocated.
65660         (re_used): Renamed from used.
65661         (re_syntax): Renamed from syntax.
65662         (re_fastmap): Renamed from fastmap.
65663         (re_translate): Renamed from translate.
65664         (re_can_be_null): Renamed from can_be_null.
65665         (re_regs_allocated): Renamed from regs_allocated.
65666         (re_fastmap_accurate): Renamed from fastmap_accurate.
65667         (re_no_sub): Renamed from no_sub.
65668         (re_not_bol): Renamed from not_bol.
65669         (re_not_eol): Renamed from not_eol.
65670         (re_newline_anchor): Renamed from newline_anchor.
65671
65672         Change the following member names in struct re_registers.
65673         The old names are still supported if !_REGEX_SOURCE.
65674         The new names are always supported, regardless of _REGEX_SOURCE.
65675         (rm_num_regs): Renamed from num_regs.
65676         (rm_start): Renamed from start.
65677         (rm_end): Renamed from end.
65678
65679         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65680         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65681         Prepend __ to parameter names.
65682
65683         Undo yesterday's changes.
65684
65685 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65688         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65689         lib/regex.c.
65690
65691 2005-08-24  Jim Meyering  <jim@meyering.net>
65692
65693         Sync from coreutils.
65694         * m4/fcntl-safer.m4: New file.
65695
65696         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65697         and object files for this module.
65698
65699 2005-08-24  Jim Meyering  <jim@meyering.net>
65700
65701         Sync from coreutils.
65702         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65703
65704 2005-08-24  Jim Meyering  <jim@meyering.net>
65705
65706         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65707         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65708
65709 2005-08-24  Jim Meyering  <jim@meyering.net>
65710
65711         * modules/fcntl-safer: New module.
65712         * modules/fts (Depends-on): Add fcntl-safer.
65713         * MODULES.html.sh (File descriptor based Input/Output):
65714         Add fcntl-safer.
65715
65716 2005-08-24  Bruno Haible  <bruno@clisp.org>
65717
65718         Support for unit test modules.
65719         * modules/README: Mention tests modules.
65720         * modules/TEMPLATE-TESTS: New file.
65721         * gnulib-tool: New options --extract-tests-module, --with-tests and
65722         --tests-base (unused for the moment).
65723         (testsbase, inctests): New variables.
65724         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65725         (func_verify_module): Exclude TEMPLATE-TESTS.
65726         (func_verify_nontests_module, func_verify_tests_module): New functions.
65727         (func_get_dependencies): Add implicit dependency for tests modules.
65728         (func_get_tests_module): New function.
65729         (func_modules_transitive_closure): When --with-tests was specified,
65730         include the unit tests as well, unless explicitly avoided.
65731         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65732         (func_emit_tests_Makefile_am): New function.
65733         (func_create_testdir): When --with-tests was specified, emit a
65734         tests/ directory.
65735         * MODULES.html.sh (Future developments): Update.
65736
65737 2005-08-24  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/tls-tests: New file.
65740         * tests/test-tls.c: New file, from GNU gettext.
65741
65742 2005-08-24  Bruno Haible  <bruno@clisp.org>
65743
65744         * modules/lock-tests: New file.
65745         * tests/test-lock.c: New file, from GNU gettext.
65746
65747 2005-08-24  Bruno Haible  <bruno@clisp.org>
65748
65749         * lib/lock.h: Add multiple inclusion guard.
65750         * lib/tls.h: Add multiple inclusion guard.
65751
65752 2005-08-24  Bruno Haible  <bruno@clisp.org>
65753
65754         * gnulib-tool: Add support for the --aux-dir option to
65755         --create-testdir, --create-megatestdir, --test, --megatest.
65756         (func_create_testdir, func_create_megatestdir): Optionally emit a
65757         AC_CONFIG_AUX_DIR directive.
65758         (create-testdir, create-megatestdir, test, megatest): Provide a
65759         default value for $auxdir.
65760
65761 2005-08-24  Bruno Haible  <bruno@clisp.org>
65762
65763         * gnulib-tool (import): Use compound statement instead of subshell
65764         where possible.
65765
65766 2005-08-24  Bruno Haible  <bruno@clisp.org>
65767
65768         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65769
65770 2005-08-24  Bruno Haible  <bruno@clisp.org>
65771
65772         * gnulib-tool (func_version): Update.
65773
65774 2005-08-24  Bruno Haible  <bruno@clisp.org>
65775
65776         * gnulib-tool (func_import, func_create_testdir,
65777         func_create_megatestdir): Quote all autoconf macro arguments.
65778
65779 2005-08-24  Bruno Haible  <bruno@clisp.org>
65780
65781         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65782         option --force, because --force causes the aclocal.m4 of each
65783         subdirectory to be newer than the corresponding config.h.in.
65784
65785 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65786
65787         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65788         All contents moved to gl_REGEX.
65789         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65790         assume that it does.
65791
65792 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65793
65794         * lib/regex.h (REG_NOSYS)
65795         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65796         Define, since POSIX requires it as of 2001.
65797         (_REG_ENOSYS)
65798         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65799         New private symbol, used to keep the enum signed in all cases.
65800         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65801         Youngman in
65802         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65803
65804         * lib/regex_internal.c (re_string_skip_chars, register_state):
65805         (calc_state_hash):
65806         Remove forward decls; no longer needed now that we use prototypes.
65807         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65808         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65809         (clean_state_log_if_needed): Likewise.
65810
65811 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * config/srclist.txt: Add glibc bugs 1231-1233.
65814
65815 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         Fix problems reported by Sam Steingold in
65818         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65819         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65820         assumed that reg_errcode_t is a signed type, which is not
65821         necessarily true if _XOPEN_SOURCE is not defined.
65822         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65823         since some compilers warn about it otherwise.
65824
65825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65828         (init_word_char, create_initial_state, duplicate_node_closure):
65829         (fetch_token, peek_token_bracket, build_range_exp):
65830         (build_collating_symbol): Remove forward decls; no longer needed
65831         now that we use prototypes.
65832
65833         * lib/regcomp.c:
65834         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65835         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65836         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65837         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65838         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65839         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65840         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65841         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65842         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65843         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65844         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65845         (build_charclass, build_charclass_op, fetch_number, create_tree):
65846         (create_token_tree, mark_opt_subexp, duplicate_tree):
65847         Use prototypes rather than old-style definitions.
65848
65849         * lib/regex_internal.c:
65850         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65851         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65852         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65853         (re_string_reconstruct, re_string_peek_byte_case):
65854         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65855         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65856         (re_node_set_init_copy, re_node_set_add_intersect):
65857         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65858         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65859         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65860         (re_acquire_state, re_acquire_state_context, register_state):
65861         (create_ci_newstate, create_cd_newstate, free_state):
65862         Likewise.
65863         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65864         re_search_2):
65865         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65866         (re_search_internal, prune_impossible_nodes):
65867         (acquire_init_state_context, check_matching, static):
65868         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65869         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65870         (update_regs, sift_states_backward, build_sifted_states):
65871         (clean_state_log_if_needed, merge_state_array):
65872         (update_cur_sifted_state, add_epsilon_src_nodes):
65873         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65874         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65875         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65876         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65877         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65878         (check_arrival, check_arrival_add_next_nodes):
65879         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65880         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65881         (check_node_accept_bytes, check_node_accept, extend_buffers):
65882         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65883         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65884         (sift_ctx_init):
65885         Likewise.
65886
65887         * lib/regex_internal.h:
65888         (re_string_allocate, re_string_construct, re_string_reconstruct):
65889         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65890         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65891         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65892         (re_string_context_at, re_string_peek_byte_case):
65893         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65894         is defined, since we now use prototypes always.
65895
65896         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65897         C89 or better.  All uses removed.
65898
65899 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65900
65901         * config/srclist.txt: Add glibc bugs 1220-1227.
65902
65903 2005-08-20  Jim Meyering  <jim@meyering.net>
65904
65905         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65906         of unused local, dfa.
65907
65908 2005-08-20  Bruno Haible  <bruno@clisp.org>
65909
65910         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65911
65912 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65913
65914         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65915         (re_node_set_insert_last, re_dfa_add_node):
65916         Rename local variables to avoid GCC shadowing warnings.
65917
65918 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65921         [defined lint]: Suppress bogus uninitialized-variable warnings.
65922
65923         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65924         and let the caller return REG_ESPACE if out of space.  This
65925         removes an uninitialied-variable warning with GCC 4.0.1, and also
65926         avoids taking the address of a local variable.  All callers
65927         changed.
65928
65929 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65932         $LIBCSRC/posix/regexec.c.
65933         Add glibc bug 1217 for regcomp.c.
65934
65935 2005-08-19  Jim Meyering  <jim@meyering.net>
65936
65937         * lib/regexec.c (proceed_next_node): Redo local variables to
65938         avoid GCC shadowing warnings.
65939
65940 2005-08-18  Bruno Haible  <bruno@clisp.org>
65941
65942         * lib/strstr.c (strstr): Fix return value in multibyte case.
65943         * lib/strcasestr.c (strcasestr): Likewise.
65944
65945 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65948
65949 2005-08-17  Jim Meyering  <jim@meyering.net>
65950
65951         Make the %s format (seconds since the epoch) work for a negative
65952         number and when used with a zero-padded field width, e.g. %015s.
65953
65954         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65955         label so that it precedes the code to set `digits'.  Otherwise,
65956         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65957         print `00-22'.  Now, it prints `-0022', as it should.
65958
65959 2005-08-17  Bruno Haible  <bruno@clisp.org>
65960
65961         * modules/strstr (Files): Add m4/mbrtowc.m4.
65962         (Depends-on): Add mbuiter.
65963
65964 2005-08-17  Bruno Haible  <bruno@clisp.org>
65965
65966         * modules/strcasestr: New file.
65967         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65968         strcasestr.
65969
65970 2005-08-17  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65973
65974 2005-08-17  Bruno Haible  <bruno@clisp.org>
65975
65976         * modules/mbuiter: New file.
65977         * MODULES.html.sh (Extended multibyte and wide character utilities):
65978         Add mbuiter.
65979
65980 2005-08-17  Bruno Haible  <bruno@clisp.org>
65981
65982         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65983         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65984
65985 2005-08-17  Bruno Haible  <bruno@clisp.org>
65986
65987         * m4/strcasestr.m4: New file.
65988
65989 2005-08-17  Bruno Haible  <bruno@clisp.org>
65990
65991         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65992         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65993
65994 2005-08-17  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/strcasestr.h: New file.
65997         * lib/strcasestr.c: New file.
65998
65999 2005-08-17  Bruno Haible  <bruno@clisp.org>
66000
66001         * lib/strcasecmp.c: Use mbuiter.h.
66002
66003 2005-08-17  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/mbuiter.h: New file.
66006
66007 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66010         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66011         and gl_GETOPT are both invoked via different paths (as happens
66012         with GNU tar CVS because it uses both argp and getopt), the former
66013         wins.
66014
66015 2005-08-16  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/tls: New file.
66018         * MODULES.html.sh (Multithreading): Add tls.
66019
66020 2005-08-16  Bruno Haible  <bruno@clisp.org>
66021
66022         * modules/strnlen1: New file.
66023         * MODULES.html.sh (String handling): Add strnlen1.
66024
66025 2005-08-16  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/strcase (Files): Add m4/mbrtowc.m4.
66028         (Depends-on): Add strnlen1, mbchar.
66029
66030 2005-08-16  Bruno Haible  <bruno@clisp.org>
66031
66032         * modules/mbiter: New file.
66033         * MODULES.html.sh (Extended multibyte and wide character utilities):
66034         Add mbiter.
66035
66036 2005-08-16  Bruno Haible  <bruno@clisp.org>
66037
66038         * modules/mbfile: New file.
66039         * MODULES.html.sh (Extended multibyte and wide character utilities):
66040         Add mbfile.
66041
66042 2005-08-16  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/mbchar: New file.
66045         * MODULES.html.sh (Extended multibyte and wide character utilities):
66046         New section.
66047
66048 2005-08-16  Bruno Haible  <bruno@clisp.org>
66049
66050         * m4/tls.m4: New file, from GNU gettext.
66051
66052 2005-08-16  Bruno Haible  <bruno@clisp.org>
66053
66054         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66055         always.
66056         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66057
66058 2005-08-16  Bruno Haible  <bruno@clisp.org>
66059
66060         * m4/mbiter.m4: New file.
66061
66062 2005-08-16  Bruno Haible  <bruno@clisp.org>
66063
66064         * m4/mbfile.m4: New file.
66065
66066 2005-08-16  Bruno Haible  <bruno@clisp.org>
66067
66068         * m4/mbchar.m4: New file.
66069
66070 2005-08-16  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/tls.h: New file, from GNU gettext.
66073         * lib/tls.c: New file, from GNU gettext.
66074
66075 2005-08-16  Bruno Haible  <bruno@clisp.org>
66076
66077         * lib/strnlen1.h: New file.
66078         * lib/strnlen1.c: New file.
66079
66080 2005-08-16  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66083         (mbi_init): Update.
66084         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66085         NUL byte, not after it.
66086
66087 2005-08-16  Bruno Haible  <bruno@clisp.org>
66088
66089         * lib/strcase.h (strcasecmp): Add note in comments.
66090         * lib/strncasecmp.c: Use code from strcasecmp.c.
66091         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66092         (strcasecmp): Work correctly in multibyte locales.
66093
66094 2005-08-16  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/mbiter.h: New file.
66097
66098 2005-08-16  Bruno Haible  <bruno@clisp.org>
66099
66100         * lib/mbfile.h: New file.
66101
66102 2005-08-16  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/mbchar.h: New file.
66105         * lib/mbchar.c: New file.
66106
66107 2005-08-16  Bruno Haible  <bruno@clisp.org>
66108
66109         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66110         the valid ones. Makes the comparison operations transitive:
66111         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66112         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66113
66114 2005-08-15  Simon Josefsson  <jas@extundo.com>
66115
66116         * modules/ssize_t (License): Change to 'unlimited'.
66117
66118         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66119
66120 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66123         Add comments for each pending glibc patch.
66124
66125 2005-08-15  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66128         __cplusplus is defined.
66129
66130 2005-08-14  Jim Meyering  <jim@meyering.net>
66131
66132         Sync from coreutils.
66133
66134         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66135         Use the hash-table-based cycle-detection code not just when
66136         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66137         Reported by James Youngman in
66138         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66139         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66140         FTS_TIGHT_CYCLE_CHECK.
66141         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66142         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66143         once again.
66144         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66145         * lib/fts.c (fd_safer): Remove decl.
66146         Include fcntl--.h rather than unistd-safer.h
66147         (fts_safe_changedir): Don't call fd_safer; no longer needed
66148         now that we include fcntl--.h.
66149
66150 2005-08-12  Simon Josefsson  <jas@extundo.com>
66151
66152         * modules/getndelim2: Use ssize_t module.
66153         * modules/getnline: Likewise.
66154         * modules/safe-read: Likewise.
66155         * modules/xreadlink: Likewise.
66156
66157         * modules/ssize_t: New file.
66158
66159 2005-08-12  Simon Josefsson  <jas@extundo.com>
66160
66161         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66162
66163 2005-08-12  Simon Josefsson  <jas@extundo.com>
66164
66165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66166         ssize_t.
66167
66168 2005-08-12  Simon Josefsson  <jas@extundo.com>
66169
66170         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66171         readline, getdelim and check_version.
66172         (Support for systems lacking ISO C 99: Sizes of integer types):
66173         Add size_max.
66174
66175 2005-08-12  Bruno Haible  <bruno@clisp.org>
66176
66177         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66178
66179 2005-08-11  Simon Josefsson  <jas@extundo.com>
66180
66181         * modules/readline: New file.
66182
66183         * modules/strnlen (Files): Add strnlen.h.
66184
66185 2005-08-11  Simon Josefsson  <jas@extundo.com>
66186
66187         * m4/readline.m4: New file.
66188
66189 2005-08-11  Simon Josefsson  <jas@extundo.com>
66190
66191         * lib/readline.h, readline.c: New file.
66192
66193 2005-08-11  Simon Josefsson  <jas@extundo.com>
66194
66195         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66196         gl_AVOID.
66197
66198 2005-08-11  Bruno Haible  <bruno@clisp.org>
66199
66200         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66201
66202 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66203
66204         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66205
66206 2005-08-10  Simon Josefsson  <jas@extundo.com>
66207
66208         * tests/test-iconvme.c: New file.
66209
66210 2005-08-10  Simon Josefsson  <jas@extundo.com>
66211
66212         * m4/strnlen.m4: New file.
66213
66214         * m4/strndup.m4: Don't check for strnlen declaration, done in
66215         strnlen.m4.
66216
66217 2005-08-10  Simon Josefsson  <jas@extundo.com>
66218
66219         * lib/strndup.c: Use strnlen.h.
66220
66221         * lib/strnlen.h: New file.
66222
66223 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66224
66225         * README: Typos.
66226
66227 2005-08-02  Simon Josefsson  <jas@extundo.com>
66228
66229         * modules/readline: New file.
66230
66231 2005-08-02  Simon Josefsson  <jas@extundo.com>
66232
66233         * modules/getdelim: New file.
66234
66235         * modules/getline: Rewrite, don't use getndelim2.
66236
66237 2005-08-02  Simon Josefsson  <jas@extundo.com>
66238
66239         * m4/getline.m4: Separate out getdelim stuff into separate module.
66240
66241         * m4/getdelim.m4: New file.
66242
66243 2005-08-02  Simon Josefsson  <jas@extundo.com>
66244
66245         * lib/getline.h, getline.c: Rewrite.
66246
66247         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66248
66249 2005-07-31  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/lock.h (gl_lock_initializer): New macro.
66252         (gl_lock_define_initialized): Use it.
66253         (gl_rwlock_initializer): New macro.
66254         (gl_rwlock_define_initialized): Use it.
66255         (gl_recursive_lock_initializer): New macro.
66256         (gl_recursive_lock_define_initialized): Use it.
66257
66258 2005-07-30  Karl Berry  <karl@gnu.org>
66259
66260         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66261         Report from Ben Pfaff, regarding getopt.
66262
66263 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66266         normal way.
66267         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66268         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66269         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66270         (gl_GETOPT): Use the new macros.  Most of the implementation
66271         is moved to the new macros.  This is for programs like Emacs
66272         that don't want all the functionality of gl_GETOPT.
66273
66274 2005-07-26  Bruno Haible  <bruno@clisp.org>
66275
66276         * m4/lock.m4: Update from GNU gettext.
66277
66278 2005-07-26  Bruno Haible  <bruno@clisp.org>
66279
66280         * lib/lock.h: Update from GNU gettext.
66281         * lib/lock.c: Update from GNU gettext.
66282
66283 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66286         obsolescent AC_TRY_RUN.  Include the default includes files, for
66287         'exit'.
66288
66289 2005-07-24  Bruno Haible  <bruno@clisp.org>
66290
66291         * modules/visibility: New file.
66292         * MODULES.html.sh (Misc): Add visibility.
66293
66294 2005-07-24  Bruno Haible  <bruno@clisp.org>
66295
66296         * m4/visibility.m4: New file.
66297
66298 2005-07-24  Bruno Haible  <bruno@clisp.org>
66299
66300         * doc/visibility.texi: New file.
66301
66302 2005-07-22  Bruno Haible  <bruno@clisp.org>
66303
66304         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66305         $(ALLOCA_H), redundant through BUILT_SOURCES.
66306         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66307         redundant through BUILT_SOURCES.
66308         * modules/byteswap (Makefile.am): Remove explicit dependency on
66309         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66310         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66311         $(FNMATCH_H), redundant through BUILT_SOURCES.
66312         * modules/getopt (Makefile.am): Remove explicit dependency on
66313         $(GETOPT_H), redundant through BUILT_SOURCES.
66314         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66315         redundant through BUILT_SOURCES.
66316         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66317         redundant through BUILT_SOURCES.
66318         * modules/stdbool (Makefile.am): Remove explicit dependency on
66319         $(STDBOOL_H), redundant through BUILT_SOURCES.
66320         * modules/stdint (Makefile.am): Remove explicit dependency on
66321         $(STDINT_H), redundant through BUILT_SOURCES.
66322         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66323         Remove explicit dependency on $(SYSEXITS_H).
66324         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66325
66326 2005-07-18  Simon Josefsson  <jas@extundo.com>
66327
66328         * lib/check-version.c (check_version): Accept identical versions too.
66329
66330 2005-07-18  Bruno Haible  <bruno@clisp.org>
66331
66332         * modules/lock: New file.
66333         * MODULES.html.sh (Multithreading): New section.
66334
66335 2005-07-18  Bruno Haible  <bruno@clisp.org>
66336
66337         * m4/lock.m4: New file, from GNU gettext.
66338
66339 2005-07-18  Bruno Haible  <bruno@clisp.org>
66340
66341         * lib/lock.h: New file, from GNU gettext.
66342         * lib/lock.c: New file, from GNU gettext.
66343
66344 2005-07-18  Bruno Haible  <bruno@clisp.org>
66345
66346         * lib/lock.h (gl_once_t): New type.
66347         (gl_once_define, gl_once): New macros.
66348         * lib/lock.c (fresh_once): New variable.
66349         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66350         functions.
66351
66352 2005-07-16  Simon Josefsson  <jas@extundo.com>
66353
66354         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66355         workaround, suggested by Bruno.
66356
66357 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * modules/xalloc (Depends-on): Add xalloc-die.
66360         * modules/xvasprintf (Depends-on): Add xalloc-die.
66361
66362 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66363
66364         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66365         with a minor change.
66366
66367 2005-07-15  Bruno Haible  <bruno@clisp.org>
66368
66369         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66370         When using lib/poll.c, define poll as rpl_poll.
66371
66372 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         * modules/argp (Depends-on): Remove unlocked-io.
66375
66376 2005-07-14  Derek Price  <derek@ximbiot.com>
66377
66378         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66379         for glob symlink bug.
66380
66381 2005-07-14  Bruno Haible  <bruno@clisp.org>
66382
66383         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66384         Instead, test for *_unlocked function declarations directly.
66385
66386 2005-07-11  Simon Josefsson  <jas@extundo.com>
66387
66388         * modules/size_max: New file.
66389
66390         * modules/xsize: Depend on size_max module for size_max.m4.
66391
66392 2005-07-11  Simon Josefsson  <jas@extundo.com>
66393
66394         * lib/size_max.h: New file.
66395
66396 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66399         copyright symbol and the year.
66400         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66401         (version_etc_va): Use parameterized copyright notice.
66402         Reword to conform to the current GNU coding standards.
66403
66404 2005-07-11  Karl Berry  <karl@gnu.org>
66405
66406         * doc/gnulib.texi (Quoting): new node.
66407         (Initial import): more info, from Patrice.
66408
66409 2005-07-11  Bruno Haible  <bruno@clisp.org>
66410
66411         * gnulib-tool (func_usage): Document option --avoid.
66412         (Command line options): Handle --avoid.
66413         (func_acceptable): New function.
66414         (func_modules_transitive_closure): Use it.
66415
66416 2005-07-11  Bruno Haible  <bruno@clisp.org>
66417
66418         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66419         Reported by Jim Meyering.
66420
66421 2005-07-10  Bruno Haible  <bruno@clisp.org>
66422
66423         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66424         Needed when size_t is smaller than 'unsigned int'.
66425         Reported by Paul Eggert.
66426
66427 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66428
66429         * modules/argp (Depends-on): Add unlocked-io
66430
66431 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66432
66433         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66434         block of defines.
66435
66436 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66439         fix now.
66440
66441 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66442         and Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66445         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66446
66447 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * modules/regex (Files): Add lib/regex_internal.c,
66450         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66451         (Depends-on): Add extensions.
66452         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66453
66454 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66457         pathconf.
66458         * m4/same.m4 (gl_SAME): Likewise.
66459         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66460
66461         * m4/regex.m4: Adjust to new libc regex implementation.
66462         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66463         all the .c and .h parts of (the new) regex.
66464         Quote the m4 stuff better.
66465         Check for RE_ICASE bug of old gnulib.
66466         Check for REG_STARTEND of recent libc.
66467         Rename local variables from jm_* to gl_*.
66468         Quote operand of "test -f".
66469         Say "recent enough" version of libc, not "version 2".
66470         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66471         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66472         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66473         Remove check for btowc, isascii.
66474         Require AM_LANGINFO_CODESET.
66475
66476 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         * lib/regex.c, regex.h: Sync from libc.
66479         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66480         * lib/regexec.c:
66481         New files, synced from libc, except that regex_internal.h
66482         currently has a small porting fix.
66483
66484 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66487         regex_internal.c, regexec.c.
66488         Add regex_internal.h too, but as a comment, since the libc version
66489         is currently broken in gnulib mode.
66490
66491 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66492
66493         Support programs like Emacs that use gnulib but not gettext.
66494         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66495         * modules/gettext-h: New file.
66496         * modules/gettext (Files): Remove lib/gettext.h.
66497         (Depends-on): Add gettext-h.
66498         (Makefile.am): Remove lib_SOURCES.
66499         * modules/argmatch, modules/c-stack, modules/closeout:
66500         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66501         * modules/execute, modules/file-type, modules/getaddrinfo:
66502         * modules/getopt, modules/human, modules/javacomp:
66503         * modules/javaexec, modules/mkdir-p, modules/obstack:
66504         * modules/openat, modules/pagealign_alloc, modules/pipe:
66505         * modules/quotearg, modules/regex, modules/rpmatch:
66506         * modules/unicodeio, modules/userspec, modules/version-etc:
66507         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66508         * modules/xsetenv:
66509         Depend on gettext-h, not gettext.
66510
66511 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * gnulib-tool (func_import): Add support for 'public domain' license.
66514         * modules/alloca, modules/atexit, modules/memmove:
66515         Now public domain, not GPL.
66516         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66517         * modules/realloc, modules/strerror, modules/strtod:
66518         Now LGPL, not GPL.
66519
66520 2005-07-05  Bruno Haible  <bruno@clisp.org>
66521
66522         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66523         autoconf CVS. Needed for mingw.
66524
66525 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66526
66527         Remove the dependency of the strftime module on the tzset module.
66528         * modules/strftime (Depends-on): Remove dependency on tzset.
66529
66530 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66531
66532         Remove the dependency of the strftime module on the tzset module.
66533         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66534         gl_FUNC_TZSET_CLOBBER.
66535
66536 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66537
66538         Remove the dependency of the strftime module on the tzset module.
66539         * lib/strftime.c (my_strftime)
66540         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66541         Copy the input structure, to work around some of the bug with
66542         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66543         Solaris releases, you should also use the tzset module, but we won't
66544         require it as a dependency any more since we don't want LGPLed code
66545         to depend on GPLed code.
66546
66547 2005-07-02  Jim Meyering  <jim@meyering.net>
66548
66549         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66550         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66551         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66552         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66553
66554 2005-07-02  Jim Meyering  <jim@meyering.net>
66555
66556         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66557
66558 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66559
66560         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66561         declares only 'struct timespec;' (!).
66562
66563 2005-07-01  Jim Meyering  <jim@meyering.net>
66564
66565         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66566         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66567         * lib/save-cwd.c, tempname.c:
66568         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66569         and don't include <sys/file.h>).
66570
66571 2005-06-29  Jim Meyering  <jim@meyering.net>
66572
66573         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66574         type name.  Use the variable name instead.
66575         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66576         Likewise.
66577
66578 2005-06-28  Simon Josefsson  <jas@extundo.com>
66579
66580         * modules/check-version (Files): Add check-version.m4.
66581
66582 2005-06-28  Simon Josefsson  <jas@extundo.com>
66583
66584         * m4/check-version.m4: New file, suggested by Jim Meyering
66585         <jim@meyering.net>.
66586
66587 2005-06-28  Simon Josefsson  <jas@extundo.com>
66588
66589         * lib/check-version.h, lib/check-version.c: New files.
66590
66591 2005-06-28  Simon Josefsson  <jas@extundo.com>
66592
66593         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66594         collision with global variable.  Better indentation.  Don't
66595         increment buffer pointer beyond buffer end.  Based on comments
66596         from Paul Eggert <eggert@cs.ucla.edu>.
66597
66598         * lib/base64.h: Indent.
66599
66600 2005-06-28  Simon Josefsson  <jas@extundo.com>
66601
66602         * doc/gnulib.texi (Library version handling): New section.
66603
66604 2005-06-28  Jim Meyering  <jim@meyering.net>
66605
66606         * check-module (find_included_lib_files): Hard-code another
66607         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66608         but modules/fts-lgpl (correctly) does not list those files.
66609
66610         * modules/canonicalize (Files): Add lib/pathmax.h.
66611
66612 2005-06-25  Simon Josefsson  <jas@extundo.com>
66613
66614         * modules/check-version: New file.
66615
66616 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66619         initializer of struct addrinfo, as an indication that we don't
66620         care how many members the structure has.
66621
66622 2005-06-24  Derek Price  <derek@ximbiot.com>
66623         and Bruno Haible  <bruno@clisp.org>
66624
66625         Remove stat module & update lstat.
66626         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66627         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66628         * m4/stat.m4: Remove this file.
66629
66630 2005-06-24  Derek Price  <derek@ximbiot.com>
66631         and Bruno Haible  <bruno@clisp.org>
66632
66633         Remove stat module & update lstat.
66634         * lib/stat.c: Remove this file...
66635         (slash_aware_lstat): ...moving this content and its support...
66636         * lib/lstat.c (rpl_lstat): ...into here.
66637         * lib/lstat.h: New file.
66638
66639 2005-06-24  Derek Price  <derek@ximbiot.com>
66640         and Bruno Haible  <bruno@clisp.org>
66641
66642         Remove stat module & update lstat.
66643         * config/srclist.txt (libc sources): Remove stat.
66644
66645 2005-06-24  Derek Price  <derek@ximbiot.com>
66646         and Bruno Haible  <bruno@clisp.org>
66647
66648         Remove stat module & update lstat.
66649         * MODULES.html.sh (stat): Remove.
66650         * MODULES.html: Regenerated.
66651         * modules/lstat (Description): Correct function name.
66652         (Files): Add "lstat.h".
66653         (Depends-on): Remove stat, add xalloc, stat-macros.
66654         * modules/stat: Remove this file.
66655         (Include): Add "lstat.h", remove <sys/stat.h>.
66656
66657 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66658
66659         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66660         (ranged_convert): Don't save conversion in a temporary struct.
66661         This causes a warning with GCC 4.0.0, and anyway in the typical
66662         case it's not worth the extra 100 bytes or so of code.
66663         (ranged_convert, __mktime_internal): When calling a function via a
66664         pointer P, use P () rather than (*P) (), as we now assume C89 or
66665         better.
66666
66667 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66670         "who -r" failed to give output.  Problem reported by Tim Waugh.
66671
66672         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66673         (xcalloc): Use it to avoid needless tests.
66674         Problem reported by Jim Meyering.
66675
66676 2005-06-20  Derek Price  <derek@ximbiot.com>
66677
66678         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66679         unnecessary for Autoconfs > 2.59c.
66680
66681 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66682
66683         * lib/argp.h (__option_is_short): Check upper limit of
66684         __key. Isprint() requires its argument to have the value
66685         of an unsigned char or EOF.
66686
66687 2005-06-16  Jim Meyering  <jim@meyering.net>
66688
66689         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66690         when either N or S is zero.
66691
66692 2005-06-16  Derek Price  <derek@ximbiot.com>
66693
66694         * m4/bison.m4: Declare YACC & YFLAGS precious.
66695
66696 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66699         multibyte string or pattern, fall back on unibyte matching.
66700         Problem reported by James Youngman.
66701
66702 2005-06-08  Bruno Haible  <bruno@clisp.org>
66703
66704         * modules/csharpcomp: New file.
66705         * MODULES.html.sh (C#): Add csharpcomp.
66706
66707 2005-06-08  Bruno Haible  <bruno@clisp.org>
66708
66709         * m4/csharpcomp.m4: New file, from GNU gettext.
66710
66711 2005-06-08  Bruno Haible  <bruno@clisp.org>
66712
66713         * lib/csharpcomp.h: New file, from GNU gettext.
66714         * lib/csharpcomp.c: New file, from GNU gettext.
66715         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66716
66717 2005-06-08  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66720         warning on mingw.
66721
66722 2005-06-07  Derek Price  <derek@ximbiot.com>
66723
66724         Sync from CVS.
66725         * lib/glob_.h: Indent nested #ifdef.
66726
66727 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         Sync from coreutils.
66730         Use "file name" when talking about file names, instead of "filename"
66731         or "path", as per the GNU coding standards.
66732         * lib/mkdir-p.c: Renamed from makepath.c.
66733         (make_dir_parents): Renamed from make_path.  All callers changed.
66734         * lib/mkdir-p.h: Likewise.  All includers changed.
66735         * lib/filenamecat.c: Renamed from path-concat.c.
66736         (file_name_concat): Renamed from path_concat.  All callers changed.
66737         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66738         * lib/filenamecat.h: Likewise.  All includers changed.
66739         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66740         in comments or local variable names.
66741         * lib/basename.c: Likewise.
66742         * lib/canonicalize.c, canonicalize.h: Likewise.
66743         * lib/dirname.c, dirname.h: Likewise.
66744         * lib/euidaccess.c: Likewise.
66745         * lib/exclude.c: Likewise
66746         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66747         * lib/fsusage.c, fsuage.h: Likewise.
66748         * lib/fts.c, fts_.h: Likewise.
66749         * lib/getcwd.c: Likewise.
66750         * lib/getloadavg.c: Likewise.
66751         * lib/mkstemp.c: Likewise.
66752         * lib/mountlist.c, mountlist.h: Likewise.
66753         * lib/openat.c, openat.h: Likewise.
66754         * lib/readlink-stub.c: Likewise.
66755         * lib/readutmp.c, readutmp.h: Likewise.
66756         * lib/rename.c: Likewise.
66757         * lib/rmdir.c: Likewise.
66758         * lib/same.c: Likewise.
66759         * lib/savedir.c: Likewise.
66760         * lib/stripslash.c: Likewise.
66761         * lib/tempname.c: Likewise.
66762         * lib/xreadlink.c: Likewise.
66763         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66764         All uses changed.
66765         * lib/exclude.h: Likewise.
66766
66767         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66768         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66769         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66770         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66771         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66772         files have been getting away with it for years (MORE/BSD 4.3
66773         is extinct now).
66774         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66775         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66776
66777         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66778         Define to 256, not 255, as per modern POSIX.
66779
66780 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         Sync from coreutils.
66783         Use "file name" when talking about file names, instead of "filename"
66784         or "path", as per the GNU coding standards.
66785         * MODULES.html.sh: mkdir-p renamed from makepath.
66786         filenamecat renamed from path-concat.
66787         * modules/filenamecat: Renamed from modules/path-concat.
66788         (Files): filenamecat.h and filenamecat.c renamed from
66789         path-concat.h and path-concat.c.
66790         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66791         (Include): filenamecat.h, not path-concat.h.
66792         * modules/mkdir-p: Renamed from modules/makepath.
66793         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66794         makepath.c.
66795         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66796         (Include): mkdir-p.h, not makepath.h.
66797
66798 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         Sync from coreutils.
66801         * m4/mkdir-p.m4: Renamed from makepath.m4.
66802         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66803         Rename files from makepath.c to mkdir-p.c, and from
66804         makepath.h to mkdir-p.h.
66805         * m4/filenamecat.m4: Renamed from path-concat.m4.
66806         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66807         Rename files from path-concat.c to filenamecat.c,
66808         and from path-concat.h to filenamecat.h.
66809         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66810         "file name" in local variables or comments.
66811         * m4/rename.m4: Likewise.
66812
66813 2005-06-01  Bruno Haible  <bruno@clisp.org>
66814
66815         * modules/csharpexec: New file.
66816         * MODULES.html.sh (C#): New section.
66817
66818 2005-06-01  Bruno Haible  <bruno@clisp.org>
66819
66820         * m4/csharp.m4: New file, from GNU gettext.
66821         * m4/csharpexec.m4: New file, from GNU gettext.
66822
66823 2005-06-01  Bruno Haible  <bruno@clisp.org>
66824
66825         * lib/csharpexec.h: New file, from GNU gettext.
66826         * lib/csharpexec.c: New file, from GNU gettext.
66827         * lib/csharpexec.sh.in: New file, from GNU gettext.
66828
66829 2005-05-31  Derek Price  <derek@ximbiot.com>
66830             Paul Eggert  <eggert@cs.ucla.edu>
66831
66832         Sync from cvs.
66833         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66834
66835 2005-05-31  Derek Price  <derek@ximbiot.com>
66836             Paul Eggert  <eggert@cs.ucla.edu>
66837
66838         Sync from cvs.
66839         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66840
66841 2005-05-29  Derek Price  <derek@ximbiot.com>
66842
66843         * config/srclist.txt (glob_.h, glob.c): Add these files.
66844
66845 2005-05-29  Derek Price  <derek@ximbiot.com>
66846
66847         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66848         * modules/glob: New file.
66849         * modules/getlogin_r: Add link to POSIX spec in description.
66850
66851 2005-05-29  Derek Price  <derek@ximbiot.com>
66852             Paul Eggert  <eggert@cs.ucla.edu>
66853
66854         * m4/glob.m4: New file.
66855
66856 2005-05-29  Derek Price  <derek@ximbiot.com>
66857             Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * lib/glob_.h, lib/glob.c: New files.
66860
66861 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66864         * modules/fts-lgpl (Depends-on): Remove gettext.
66865
66866 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66869         and don't require gt_INTTYPES_PRI.
66870
66871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66872
66873         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66874
66875         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66876         the configuration hassle isn't worth it.
66877         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66878         (LONGEST_MODIFIER, PRIuMAX): Remove.
66879
66880 2005-05-27  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66883
66884 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66887         _POSIX_PTHREAD_SEMANTICS for Solaris.
66888
66889 2005-05-25  Derek Price  <derek@ximbiot.com>
66890
66891         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66892
66893 2005-05-25  Derek Price  <derek@ximbiot.com>
66894             Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66897         * lib/getlogin_r.c, getlogin_r.h: New files.
66898
66899 2005-05-25  Bruno Haible  <bruno@clisp.org>
66900             Derek Price  <derek@ximbiot.com>
66901
66902         * lib/getlogin_r.h: Simplify API documentation.
66903
66904 2005-05-23  Derek Price  <derek@ximbiot.com>
66905
66906         * modules/minmax (Files): Add m4/minmax.m4.
66907         (configure.ac): Add gl_MINMAX.
66908
66909 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66912         so that unistd-safer.h (GPL'ed code) need not be included.
66913
66914 2005-05-22  Bruno Haible  <bruno@clisp.org>
66915
66916         * m4/minmax.m4: New file.
66917         Based on a patch by Derek Price <derek@ximbiot.com>.
66918
66919 2005-05-22  Bruno Haible  <bruno@clisp.org>
66920
66921         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66922         (INT64_MIN): Fix definition.
66923         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66924
66925         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66926         NEED_SIGNED_INT_TYPES.
66927
66928         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66929         HAVE_SYSTEM_INTTYPES.
66930
66931 2005-05-22  Bruno Haible  <bruno@clisp.org>
66932
66933         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66934         Also include <sys/param.h> if it defines MIN, MAX.
66935         Based on a patch by Derek Price <derek@ximbiot.com>.
66936
66937 2005-05-21  Jim Meyering  <jim@meyering.net>
66938
66939         * modules/fts (Files): Add m4/inttypes-pri.m4.
66940         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66941
66942 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         New fts module.
66945         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66946         (setup_dir, free_dir): New functions.
66947         (enter_dir, leave_dir): Define trivial
66948         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66949         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66950         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66951         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66952         Move to fts-cycle.c.
66953         (fts_open): Use setup_dir.
66954         (fts_close): Use free_dir.
66955         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66956         This adds a label and some gotos, but the alternatives were messier.
66957         Check for memory allocation failure when entering a dir.
66958         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66959         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66960         (FTS): New member fts_cycle, that is a union that contains the
66961         old active_dir_ht and cycle_state.  All uses changed to mention
66962         fts_cycle.ht and fts_cycle.state.
66963         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66964         fts.c, with the following changes:
66965         (setup_dir, free_dir): New functions.
66966         (enter_dir): Now returns bool.  Return true if successful, false
66967         if memory exhausted.  All callers changed.
66968         Do not bother partly cleaning up on
66969         memory allocation failure; that is free_dir's job.
66970         However, free ad if hash_insert fails, to avoid memory leak.
66971         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66972         fts->fts_options to see which union member to use.
66973
66974 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66977         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66978
66979 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66982
66983 2005-05-20  Jim Meyering  <jim@meyering.net>
66984
66985         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66986         Now a macro, to pacify GCC.
66987
66988 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66989
66990         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66991         of -1.
66992
66993 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66994
66995         * lib/chown.c (rpl_chown): Return -1 on failure.
66996
66997 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67000         Don't check for stddef.h.
67001         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67002         don't use its results.
67003         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67004         since we include them unconditionally.  Don't require
67005         AM_STDBOOL_H, since stdbool is a prerequisite.
67006         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67007         since we assume C89 or better.
67008         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67009         as we don't use their results.
67010         Don't check for fchdir, memmove, memset, strrchr, as we use
67011         them unconditionally.
67012         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67013         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67014
67015 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67016
67017         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67018         Include <stddef.h> unconditionally, since we assume C89 now.
67019         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67020         * lib/fts.c: Include fts_.h first, to check interface.
67021         Do not include intprops.h; no longer needed.
67022         Include cycle-check.h and hash.h, since fts_.h no longer does.
67023         Remove unnecessary casts of closedir to void.
67024         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67025         decide whether to decrement nlinks.
67026         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67027         (FTS): Use struct hash_table * instead of Hash_table, so that
67028         we no longer need to include hash.h here.
67029
67030 2005-05-18  Jim Meyering  <jim@meyering.net>
67031
67032         * modules/dirfd (License): Change to LGPL.  Most of the code
67033         is already in the public domain.
67034
67035 2005-05-18  Jim Meyering  <jim@meyering.net>
67036
67037         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67038         Reported by Yoann Vandoorselaere.
67039
67040 2005-05-17  Jim Meyering  <jim@meyering.net>
67041
67042         * m4/fts.m4: New file, from coreutils.
67043
67044 2005-05-17  Jim Meyering  <jim@meyering.net>
67045
67046         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67047
67048 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67049
67050         Sync from coreutils.
67051         * m4/unlinkdir.m4: New file.
67052
67053 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67054
67055         Sync from coreutils.
67056         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67057         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67058         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67059         White space changes only.
67060         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67061         special.
67062         * lib/yesno.c: Include getline.h, not ctype.h.
67063         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67064         Use getline to remove arbitrary restriction on response length.
67065
67066 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         * config/srclist-update: Spell out "Street" in FSF postal
67069         mail address; this is the style the FSF seems to prefer.
67070
67071         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67072         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67073         this updates FSF postal mail address.
67074
67075         Sync from coreutils.
67076         * modules/unlinkdir: New file.
67077         * modules/yesno (Depends-on): Add getline.
67078         * MODULES.html.sh (File system functions): Add unlinkdir.
67079
67080 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67083         lib/strsep.h:
67084         Change the initial comment to refer to GPL, not LGPL.
67085         gnulib-tool will change it to LGPL as needed.
67086
67087         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67088         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67089         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67090         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67091         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67092         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67093         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67094         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67095         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67096         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67097         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67098         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67099         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67100         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67101         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67102         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67103         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67104         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67105         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67106         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67107         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67108         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67109         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67110         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67111         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67112         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67113         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67114         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67115         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67116         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67117         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67118         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67119         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67120         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67121         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67122         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67123         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67124         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67125         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67126         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67127         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67128         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67129         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67130         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67131         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67132         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67133         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67134         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67135         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67136         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67137         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67138         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67139         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67140         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67141         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67142         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67143         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67144         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67145         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67146         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67147         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67148         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67149         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67150         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67151         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67152         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67153         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67154         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67155         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67156         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67157         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67158         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67159         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67160         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67161         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67162         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67163         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67164         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67165         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67166         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67167         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67168         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67169         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67170         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67171         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67172         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67173         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67174         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67175         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67176         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67177         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67178         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67179         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67180         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67181         lib/yesno.c, lib/yesno.h:
67182         Update FSF postal mail address.
67183
67184 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67185
67186         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67187         tests/test-memmem.c, tests/test-stpncpy.c:
67188         Update FSF postal mail address.
67189
67190 2005-05-13  Bruno Haible  <bruno@clisp.org>
67191
67192         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67193         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67194         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67195         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67196         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67197         Add support for 64-bit integers in the MSVC compiler.
67198
67199 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67200
67201         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67202
67203 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67204
67205         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67206
67207 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * doc/getdate.texi (General date syntax): Don't say that date
67210         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67211         Problem reported by Nic Ferrier.
67212
67213 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67214
67215         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67216         specified in ai_socktype. Fix invalid ai_protocol
67217         check. ai_protocol is usually set to 0 or depending on
67218         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67219         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67220         ai_socktype / ai_protocol in the returned addrinfo structure.
67221
67222 2005-05-10  Simon Josefsson  <jas@extundo.com>
67223
67224         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67225         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67226
67227 2005-05-10  Karl Berry  <karl@gnu.org>
67228
67229         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67230         (from http://www.gnu.org/licenses).
67231         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67232         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67233         fdl.texi suffices.
67234
67235 2005-05-10  Karl Berry  <karl@gnu.org>
67236
67237         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67238         (COPYING.DOC): remove.
67239
67240         * config/srclist-update: new FSF address.
67241
67242 2005-05-10  Derek Price  <derek@ximbiot.com>
67243
67244         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67245         possible.
67246
67247 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67248             Bruno Haible  <bruno@clisp.org>
67249
67250         * modules/inet_ntop: New file.
67251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67252         inet_ntop.
67253
67254 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67255             Bruno Haible  <bruno@clisp.org>
67256
67257         * m4/inet_ntop.m4: New file.
67258
67259 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67260             Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/inet_ntop.h: New file.
67263         * lib/inet_ntop.c: New file, from glibc with modifications.
67264
67265 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * modules/time_r (License): Change to LGPL.
67268         * modules/extensions (License): Change to LGPL.  Actually,
67269         the license is more permissive than that, but currently gnulib-tool
67270         doesn't know how to handle more-permissive licenses.
67271
67272         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67273         Problem reported by Dave Love.
67274
67275 2005-05-08  Jim Meyering  <jim@meyering.net>
67276
67277         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67278         blank.
67279
67280 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67281
67282         * modules/argmatch (Depends-on): Add stdbool.
67283         * modules/backupfile (Depends-on): Likewise.
67284         * modules/chdir-long (Depends-on): Likewise.
67285         * modules/closeout (Depends-on): Likewise.
67286         * modules/cycle-check (Depends-on): Likewise.
67287         * modules/dirname (Depends-on): Likewise.
67288         * modules/fnmatch (Depends-on): Likewise.
67289         * modules/fsusage (Depends-on): Likewise.
67290         * modules/fwriteerror (Depends-on): Likewise.
67291         * modules/getcwd (Depends-on): Likewise.
67292         * modules/getloadavg (Depends-on): Likewise.
67293         * modules/hard-locale (Depends-on): Likewise.
67294         * modules/makepath (Depends-on): Likewise.
67295         * modules/mountlist (Depends-on): Likewise.
67296         * modules/nanosleep (Depends-on): Likewise.
67297         * modules/posixtm (Depends-on): Likewise.
67298         * modules/quotearg (Depends-on): Likewise.
67299         * modules/readtokens (Depends-on): Likewise.
67300         * modules/readtokens0 (Depends-on): Likewise.
67301         * modules/readutmp (Depends-on): Likewise.
67302         * modules/save-cwd (Depends-on): Likewise.
67303         * modules/strftime (Depends-on): Likewise.
67304         * modules/userspec (Depends-on): Likewise.
67305         * modules/utimecmp (Depends-on): Likewise.
67306         * modules/xgetcwd (Depends-on): Likewise.
67307         * modules/xnanosleep (Depends-on): Likewise.
67308         * modules/xstrtod (Depends-on): Likewise.
67309         * modules/yesno (Depends-on): Likewise.
67310
67311 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67314         needless checks.
67315
67316 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67317
67318         Merge from coreutils.  Among other things,
67319         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67320         * lib/fd-safer.c: New file.
67321         * lib/fcntl-safer.h, open-safer.c: Remove.
67322         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67323         * lib/dup-safer.c: Include unistd-safer.h first.
67324         Don't include errno.h.
67325         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67326         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67327         * lib/file-type.c: Rely on file-type.h change.
67328         * lib/getloadavg.c: Include unistd-safer.h.
67329         (getloadavg): Use safer open.
67330         * lib/getusershell.c: Include "stdio-safer.h".
67331         (getusershell): Use safer fopen.
67332         * lib/long-options.c (long_options): Use NULL rather than 0.
67333         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67334         'free'.
67335         * lib/modechange.c: Likewise.
67336         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67337         (MODE_DONE): New constant.
67338         (struct mode_change): Remove 'next' member.
67339         (make_node_op_equals): New function; like the old one of the
67340         same name, except it allocates an array.
67341         (mode_compile, mode_create_from_ref): Use it.
67342         (mode_compile): Allocate result as an array, not a linked list.
67343         Parse octal string ourself, so that we catch mistakes like "+0".
67344         (mode_adjust): Arg is an array, not a linked list.
67345         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67346         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67347         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67348         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67349         Remove.  This is now stat-macros.h's job.
67350         (talloc): Remove.  All callers replaced by xalloc, so that
67351         our invokers don't have to worry about reporting memory failures.
67352         (make_node_op_equals): Remove.
67353         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67354         New constants.
67355         (struct mode_change): Moved here from modechange.h.
67356         (mode_append_entry): Remove.
67357         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67358         apps to have incorrect behavior.  Use simpler algorithm for head
67359         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67360         Detect more invalid usages rather than having somewhat-random behavior.
67361         Don't insert an "a=" action, as that leads to incorrect behavior.
67362         (mode_compile, mode_create_from_ref): Return NULL on error instead
67363         of an enum, since now there's only one way to have an error.  All
67364         callers changed.
67365         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67366         at the correct time.  Simplify calculation of "+u" and its ilk.
67367         Don't mishandle "+X".
67368         (mode_free): Remove "register" and localize decls.
67369         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67370         (struct mode_change): Move to modechange.c; callers don't
67371         need to see this stuff.
67372         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67373         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67374         (mode_change, mode_adjust): Reflect the new signatures noted above.
67375         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67376         that might redefine system include files.
67377         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67378         (my_usleep): Use NULL rather than (void *) 0.
67379         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67380         Use siginterrupt to specify that system calls should be interrupted.
67381         (rpl_nanosleep): Move initialization of suspended closer to call of
67382         my_usleep.
67383         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67384         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67385         (desirable_utmp_entry): New function.
67386         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67387         using x2nrealloc, to simplify logic.
67388         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67389         size calculation.  Do not assume utmp file is a regular file.
67390         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67391         (READ_UTMP_CHECK_PIDS): New constant.
67392         * lib/save-cwd.c: Include unistd-safer.h.
67393         (save_cwd): Use fd_safer.
67394         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67395         [!_LIBC] Include "stat-macros.h" instead.
67396         * lib/unistd-safer.h (fd_safer): New decl.
67397
67398 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * modules/getloadavg (Depends-on): Add unistd-safer.
67401         * modules/getusershell (Depends-on): Add stdio-safer.
67402         * modules/lstat (Depends-on): Remove xalloc.
67403         * modules/mkstemp (Depends-on): Add stat-macros.
67404         * modules/modechange (Depends-on): Remove xstrtol.
67405         Add stat-macros, xalloc.
67406         * modules/save-cwd (Depends-on): Add unistd-safer.
67407         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67408         * modules/unistd-safer (Files): Add lib/fd-safer.c
67409         (Makefile.am): Remove lib_SOURCES.
67410
67411         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67412         Remove fcntl-safer; unistd-safer supersedes it.
67413
67414 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67417         AC_HEADER_STAT.
67418         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67419         (gl_PREREQ_CHOWN): Remove.
67420         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67421         it.  Don't require AC_HEADER_STAT.
67422         (gl_PREREQ_LSTAT): Remove.
67423         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67424         Don't require AC_HEADER_STAT.
67425         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67426         (gl_PREREQ_RMDIR): Remove.
67427         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67428         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67429         the stat-macros module a prerequisite.
67430         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67431         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67432         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67433         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67434         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67435         variable names.
67436         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67437         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67438         variable prefixes.
67439         * m4/fcntl-safer.m4: Remove.
67440         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67441         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67442         Invoke gl_PREREQ_FD_SAFER.
67443         (gl_PREREQ_FD_SAFER): New macro.
67444         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67445         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67446         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67447         Remove duplicate call to AC_LIBOBJ(readutmp).
67448         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67449
67450         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67451         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67452
67453 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * MODULES.html.sh (Misc): Add byteswap.
67456
67457 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67458
67459         * modules/getcwd (Depends-on): Add extensions.
67460         * modules/openat (Depends-on): Likewise.
67461
67462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67463
67464         * modules/byteswap: New file.
67465
67466 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67467
67468         * m4/byteswap.m4: New file.
67469
67470 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67471
67472         * lib/byteswap_.h: New file.
67473
67474 2005-04-25  Karl Berry  <karl@gnu.org>
67475
67476         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67477
67478 2005-04-25  Albert Chin  <china@thewrittenword.com>
67479
67480         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67481         Toolkit C bug.
67482
67483 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67484
67485         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67486         (func_ln_if_changed): Remove forcibly for no error message
67487         in case file does not exist.
67488
67489 2005-04-19  Simon Josefsson  <jas@extundo.com>
67490
67491         * gnulib-tool (Options): Make --symlink mean --symbolic.
67492
67493 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67494
67495         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67496
67497 2005-04-16  Simon Josefsson  <jas@extundo.com>
67498
67499         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67500
67501 2005-04-15  Simon Josefsson  <jas@extundo.com>
67502
67503         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67504
67505 2005-04-15  Simon Josefsson  <jas@extundo.com>
67506
67507         * gnulib-tool: Rename --symlink to --symbolic.
67508
67509 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67510
67511         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67512         symbolic links to files instead of copying/moving.  Add --aux-dir,
67513         specifying directory relative --dir where auxiliary build tools
67514         are placed.
67515
67516 2005-04-14  Bruno Haible  <bruno@clisp.org>
67517
67518         * modules/allocsa (License): Change to LGPL.
67519         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67520
67521 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67524         that "UTC +1 second" continues to work.  Problem reported
67525         by Dmitry V. Levin.
67526         (relunit_snumber): New rule.
67527         (relunit): Use it.
67528
67529 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         * lib/getdate.y (universal_time_zone_table): New constant.
67532         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67533         universal_time_zone_table.
67534         (lookup_zone): Prefer universal_time_zone_table to
67535         local_time_zone_table, so that "GMT" time stamps are allowed in
67536         London during the summer.  Problem reported by Ian Abbott.
67537
67538 2005-04-12  Jim Meyering  <jim@meyering.net>
67539
67540         * lib/human.c (humblock): Set *options even when returning due to
67541         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67542         warning from gcc-4.
67543
67544 2005-04-09  Jim Meyering  <jim@meyering.net>
67545
67546         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67547         -Wuninitialized: initialize tm0.tm_year.
67548
67549 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67550
67551         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67552         count, since there's no maximum.  All uses changed.
67553         Add member dsts_seen.
67554         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67555         not being INT_MAX.
67556         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67557         Use pc_rels_seen to decide whther a date is absolute.
67558
67559         * lib/getdate.y (number): Don't overwrite year.
67560         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67561         check.
67562
67563 2005-04-02  Simon Josefsson  <jas@extundo.com>
67564
67565         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67566         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67567
67568 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67569
67570         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67571         where no absolute path name can be longer than PATH_MAX.
67572
67573 2005-03-27  Jim Meyering  <jim@meyering.net>
67574
67575         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67576
67577 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67578
67579         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67580         "one's complement" -> "ones' complement" in comment, as per Knuth.
67581         "value of type" -> "type or expression" in comment.
67582         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67583
67584 2005-03-26  Jim Meyering  <jim@meyering.net>
67585
67586         Comment nits.
67587         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67588         Correct typos: s/or/of/.
67589
67590 2005-03-26  Jim Meyering  <jim@meyering.net>
67591
67592         * modules/check-include-files: Move to ../ and rename to...
67593         * check-module: ...this.
67594
67595 2005-03-25  Jim Meyering  <jim@meyering.net>
67596
67597         * modules/xvasprintf (Files): Add xalloc.h.
67598
67599 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67600
67601         * modules/gettext (Files): config/config.rpath ->
67602         build-aux/config.rpath
67603         * modules/iconv (Files): Likewise.
67604         Problem reported by Oskar Liljeblad.
67605
67606 2005-03-23  Jim Meyering  <jim@meyering.net>
67607
67608         * modules/check-include-files: New script to check for
67609         missing dependencies, multiple includes, etc.
67610
67611         * modules/c-strtold (Depends-on): Add xalloc.
67612         * modules/c-strtod (Depends-on): Add xalloc.
67613         * modules/hash (Depends-on): Add xalloc.
67614         (Files): Remove lib/xalloc.h.
67615
67616         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67617         * modules/userspec (Files): Add lib/inttostr.h.
67618
67619 2005-03-23  Jim Meyering  <jim@meyering.net>
67620
67621         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67622
67623 2005-03-22  Jim Meyering  <jim@meyering.net>
67624
67625         * modules/stat-macros: New module.
67626         * modules/canonicalize, modules/euidaccess, modules/file-type,
67627         * modules/filemode, modules/lchown, modules/makepath,
67628         * modules/rmdir, modules/stat: Depend on new stat-macros module
67629         rather than listing lib/stat-macros.h manually.
67630         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67631
67632 2005-03-22  Jim Meyering  <jim@meyering.net>
67633
67634         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67635
67636 2005-03-22  Bruno Haible  <bruno@clisp.org>
67637
67638         * config/srclist.txt: Replace target directory 'config' with
67639         'build-aux'.
67640         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67641         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67642         ../build-aux/.
67643
67644 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * modules/chdir-long (Depends-on): Add mempcpy.
67647
67648         * modules/acl, modules/backupfile, modules/c-strtod,
67649         modules/c-strtold, modules/canon-host, modules/canonicalize,
67650         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67651         modules/exclude, modules/exitfail, modules/file-type,
67652         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67653         modules/getdate, modules/getline, modules/getpagesize,
67654         modules/getpass, modules/getugroups, modules/group-member,
67655         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67656         modules/inttostr, modules/long-options, modules/makepath,
67657         modules/md5, modules/memcasecmp, modules/memcoll,
67658         modules/modechange, modules/mountlist, modules/path-concat,
67659         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67660         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67661         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67662         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67663         modules/strftime, modules/strndup, modules/strverscmp,
67664         modules/timespec, modules/unlocked-io, modules/userspec,
67665         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67666         modules/yesno:
67667         Remove lib_SOURCES line from Makefile.am section, as this is now
67668         done automatically by the corresponding Autoconf macro.
67669
67670 2005-03-21  Jim Meyering  <jim@meyering.net>
67671
67672         Changes imported from coreutils.
67673
67674         * lib/cycle-check.c: Don't include xalloc.h.
67675
67676         * lib/path-concat.c: Don't include assert.h.
67677         (path_concat): Remove assertion that would have triggered
67678         for ABASE starting with more than one slash.
67679         Reported by Andreas Schwab.
67680
67681         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67682         properly when ABASE is an absolute file name.
67683         Correct the description of this function.
67684         Include <assert.h>.
67685         Add an assertion and a test driver.
67686         This fixes a bug introduced on 2004-07-02.
67687         Andreas Schwab reported the resulting failure of cp --parents:
67688         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67689
67690 2005-03-21  Jim Meyering  <jim@meyering.net>
67691
67692         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67693         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67694
67695 2005-03-21  Jim Meyering  <jim@meyering.net>
67696         and  Paul Eggert  <eggert@cs.ucla.edu>
67697
67698         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67699         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67700         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67701         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67702         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67703         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67704         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67705         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67706         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67707         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67708         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67709         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67710         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67711         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67712         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67713         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67714         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67715         for these modules.
67716
67717 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67720         (which shouldn't happen), generate nothing instead of returning 0
67721         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67722
67723 2005-03-16  Bruno Haible  <bruno@clisp.org>
67724
67725         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67726         HAVE_LONGLONG_64BIT.
67727
67728 2005-03-16  Bruno Haible  <bruno@clisp.org>
67729
67730         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67731         HAVE_LONGLONG_64BIT.
67732
67733 2005-03-16  Bruno Haible  <bruno@clisp.org>
67734
67735         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67736         HAVE_LONGLONG_64BIT.
67737
67738 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67741         reliably distinguish strftime failure from empty output on POSIX
67742         hosts.
67743
67744 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67747         (iconv_string): Don't guess a size-zero buffer, as that might cause
67748         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67749         result would be 'too large', where 'too large' is (heuristically)
67750         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67751         overflow concerns.  This will prevent some unwanted malloc failures
67752         when the inputs are very large.
67753
67754 2005-03-15  Karl Berry  <karl@gnu.org>
67755
67756         * config/srclist.txt (config.rpath): from gettext.
67757         * config/config.rpath: update.
67758
67759 2005-03-15  Bruno Haible  <bruno@clisp.org>
67760
67761         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67762         to 'negate'.
67763
67764         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67765         variable.
67766
67767         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67768         results.
67769
67770 2005-03-14  Simon Josefsson  <jas@extundo.com>
67771
67772         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67773         <fx@gnu.org>.
67774
67775 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67778         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67779         intprops.h.
67780         * lib/strtol.c: Likewise.
67781
67782 2005-03-14  Jim Meyering  <jim@meyering.net>
67783
67784         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67785         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67786         to be nonzero so that we (and caller) can detect the difference
67787         between a valid zero-length expansion and an error return, even
67788         when the underlying strftime fails before writing anything into
67789         that location.
67790
67791 2005-03-14  Bruno Haible  <bruno@clisp.org>
67792
67793         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67794         Update from GNU gettext 0.14.3.
67795
67796 2005-03-10  Jim Meyering  <jim@meyering.net>
67797
67798         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67799
67800 2005-03-10  Jim Meyering  <jim@meyering.net>
67801
67802         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67803         so that this module works on systems without fchdir.
67804
67805 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         Factor int-properties macros into a single file, except for
67808         glibc-related files.
67809         * lib/intprops.h: New file.
67810         * lib/getloadavg.c: Include it instead of limits.h.
67811         (INT_STRLEN_BOUND): Remove.
67812         * lib/human.c: Include intprops.h.
67813         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67814         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67815         302/1000.
67816         * lib/inttostr.h: Include intprops.h instead of limits.h.
67817         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67818         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67819         for consistency with intprops.h.
67820         (time_t_is_integer, twos_complement_arithmetic): Use them.
67821         * lib/sig2str.h: Include <signal.h>, intprops.h.
67822         (INT_STRLEN_BOUND): Remove.
67823         * lib/strftime.c (TYPE_SIGNED): Remove.
67824         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67825         * lib/strtol.c: Adjust comments to match intprops.h.
67826         * lib/userspec.c: Include intprops.h.
67827         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67828         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67829         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67830         instead of rolling our own expressions.
67831         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67832
67833         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67834         instead of int.
67835         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67836         the right thing even if adding 1900 would overflow.  Similarly
67837         for tm_mon + 1 and tm_yday + 1.
67838         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67839         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67840         (DO_SIGNED_NUMBER): New macro.
67841         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67842
67843 2005-03-07  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67846
67847 2005-03-07  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67850
67851 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67852
67853         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67854         (func_import): Only replace files via --import when they have actually
67855         changed.
67856
67857 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67858
67859         * m4/mmap-anon.m4: New file.
67860         * m4/pagealign_alloc.m4: New file.
67861
67862 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67863             Bruno Haible  <bruno@clisp.org>
67864
67865         * modules/pagealign_alloc: New file.
67866         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67867
67868 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67869             Bruno Haible  <bruno@clisp.org>
67870
67871         * lib/pagealign_alloc.h: New file.
67872         * lib/pagealign_alloc.c: New file.
67873
67874 2005-03-03  Bruno Haible  <bruno@clisp.org>
67875
67876         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67877         Use an all-permissive copyright notice, recommended by RMS.
67878
67879 2005-03-02  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67882         of AIX, the replacement has to be done only after <string.h> is
67883         included, therefore not in config.h. stpncpy.h does the replacement,
67884         and stpncpy.c uses it.
67885
67886 2005-03-02  Bruno Haible  <bruno@clisp.org>
67887
67888         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67889         stpncpy.c uses it.
67890
67891 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67894         The workaround isn't strictly needed for POSIX conformance, and
67895         it's too much of a pain to configure and maintain.  We'll ask
67896         people to fix their kernels instead.
67897         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67898         (NANOSLEEP_BUG_WORKAROUND): Remove.
67899         (xnanosleep): Remove the workaround.
67900
67901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67904         Reported by Derek Price.
67905         (Include): Add "timespec.h".
67906
67907         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67908
67909 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67912         to detect nanosleep bug.
67913
67914 2005-03-01  Bruno Haible  <bruno@clisp.org>
67915
67916         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67917
67918 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         * modules/gethrxtime: New file.
67921         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67922         (Depends-on): Add gethrxtime.
67923         (configure.ac): Add gl_XNANOSLEEP.
67924         (Makefile.am): Remove lib_SOURCES line.
67925
67926 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67929         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67930
67931 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67934         * lib/timespec.h (gettime): Return void, since it always
67935         succeeds now.  All uses changed.
67936         * lib/gettime.c (gettime): Likewise.
67937         [HAVE_NANOTIME]: Prefer nanotime.
67938         Assume gettimeofday succeeds, as POSIX requires.
67939         Assime time () succeeds, since other code already does.
67940         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67941         (timespec_subtract): Remove.
67942         (NANOSLEEP_BUG_WORKAROUND): New constant.
67943         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67944         things considerably.  Use it only on GNU/Linux hosts, since the
67945         workaround shouldn't be needed elsewhere.
67946
67947 2005-02-24  Bruno Haible  <bruno@clisp.org>
67948
67949         * modules/gettext (Files): Add m4/glibc2.m4.
67950
67951 2005-02-24  Bruno Haible  <bruno@clisp.org>
67952
67953         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67954         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67955         * m4/progtest.m4:
67956         Update from GNU gettext 0.14.2.
67957         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67958
67959 2005-02-24  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67962         * lib/config.charset: Update from GNU gettext 0.14.2.
67963
67964 2005-02-24  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/gettext.h: Update from GNU gettext 0.14.2.
67967
67968 2005-02-23  Simon Josefsson  <jas@extundo.com>
67969
67970         * m4/iconvme.m4: New file.
67971
67972 2005-02-23  Jim Meyering  <jim@meyering.net>
67973
67974         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67975         change.
67976         Thanks to Bruno Haible for catching it.
67977
67978 2005-02-22  Simon Josefsson  <jas@extundo.com>
67979
67980         * modules/iconvme: New file.
67981
67982         * MODULES.html.sh: Add iconvme.
67983
67984 2005-02-22  Simon Josefsson  <jas@extundo.com>
67985
67986         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67987
67988 2005-02-22  Simon Josefsson  <jas@extundo.com>
67989
67990         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67991
67992 2005-02-22  Jim Meyering  <jim@meyering.net>
67993
67994         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67995         s/ifndef/ifdef/.
67996
67997 2005-02-20  Neil Conway  <neilc@samurai.com>
67998
67999         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68000         returned by OSX/Darwin if the specified buffer is not large
68001         enough for the hostname.
68002
68003 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68004
68005         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68006         pass it to _help, otherwise the latter coredumps trying to
68007         dereference state.root_argp.
68008
68009 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * modules/chdir-long (Depends-on): Add memrchr.
68012         * modules/memrchr (Files): Add lib/memrchr.h.
68013         (Include): "memrchr.h".
68014
68015 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68018
68019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/memrchr.h: New file.
68022         * lib/chdir-long.c: Include it.
68023         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68024         Don't bother including stddef.h.
68025
68026 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68029         inclusion.
68030         Include <sys/types.h>, for dev_t.
68031         (ME_DUMMY, ME_REMOTE): Move from here....
68032         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68033         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68034         Dmitry V. Levin.
68035         Include mountlist.h first, to test the interface.
68036
68037 2005-01-29  Bruno Haible  <bruno@clisp.org>
68038
68039         * lib/progname.c (program_name): Initialize.
68040         Needed when linking statically on MacOS X.
68041
68042 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68043
68044         Sync from coreutils.
68045         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68046         (Depends-on): Add c-strtod.
68047         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68048
68049 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68050
68051         Sync from coreutils.
68052         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68053
68054         Remove files that are specific to coreutils.
68055         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68056
68057 2005-01-28  Bruno Haible  <bruno@clisp.org>
68058
68059         * modules/javacomp: New file.
68060         * MODULES.html.sh (Java): Add javacomp.
68061
68062 2005-01-28  Bruno Haible  <bruno@clisp.org>
68063
68064         * m4/javacomp.m4: New file, from GNU gettext.
68065
68066 2005-01-28  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/javacomp.sh.in: New file, from GNU gettext.
68069         * lib/javacomp.h: New file, from GNU gettext.
68070         * lib/javacomp.c: New file, from GNU gettext.
68071
68072 2005-01-26  Simon Josefsson  <jas@extundo.com>
68073
68074         * lib/gai_strerror.c: Use GPL in header.
68075
68076 2005-01-26  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/javaexec: New file.
68079         * MODULES.html.sh (Java): Add javaexec.
68080
68081 2005-01-26  Bruno Haible  <bruno@clisp.org>
68082
68083         * m4/javaexec.m4: New file, from GNU gettext.
68084
68085 2005-01-26  Bruno Haible  <bruno@clisp.org>
68086
68087         * lib/javaexec.sh.in: New file, from GNU gettext.
68088         * lib/javaexec.h: New file, from GNU gettext.
68089         * lib/javaexec.c: New file, from GNU gettext.
68090
68091 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68092
68093         * modules/lchown (Depends-on): Remove lchown.h
68094
68095 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68096
68097         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68098         must be defined if the header file was not found, in order
68099         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68100
68101 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68102
68103         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68104         initializers for struct pentry_state.
68105         (__argp_error): Check return value of __asprintf
68106         (__argp_failure): Translate error message
68107
68108         * lib/argp-parse.c: Removed braces around the expansion of N_()
68109
68110 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68113         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68114         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68115         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68116         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68117         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68118         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68119         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68120         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68121         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68122         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68123         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68124         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68125         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68126         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68127         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68128         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68129         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68130         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68131         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68132         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68133         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68134         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68135         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68136         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68137         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68138         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68139         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68140         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68141         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68142         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68143         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68144         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68145         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68146         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68147         Use an all-permissive copyright notice, recommended by RMS.
68148
68149 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         * modules/chdir-long (Depends-on): Remove mempcpy.
68152
68153 2005-01-21  Jim Meyering  <jim@meyering.net>
68154
68155         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68156         same value as for Solaris 9.
68157
68158         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68159         component length.  This included changing the parameter to be
68160         of type `char *' rather than `char const *'.
68161         * lib/chdir-long.h (chdir_long): Update prototype.
68162
68163         * lib/openat.c (fdopendir, fstatat): New functions.
68164         * lib/openat.h: Include headers required for use of DIR and struct
68165         stat.
68166         [AT_SYMLINK_NOFOLLOW]: Define.
68167         (fdopendir, fstatat): Add prototypes.
68168
68169 2005-01-21  Bruno Haible  <bruno@clisp.org>
68170
68171         * modules/classpath: New file.
68172         * MODULES.html.sh (Java): Add classpath.
68173
68174 2005-01-21  Bruno Haible  <bruno@clisp.org>
68175
68176         * lib/classpath.h: New file, from GNU gettext.
68177         * lib/classpath.c: New file, from GNU gettext.
68178
68179 2005-01-20  Simon Josefsson  <jas@extundo.com>
68180
68181         * modules/version-etc-fsf: New file.
68182
68183 2005-01-20  Simon Josefsson  <jas@extundo.com>
68184
68185         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68186         * lib/version-etc.c: Remove version_etc_copyright.
68187         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68188         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68189
68190 2005-01-20  Simon Josefsson  <jas@extundo.com>
68191
68192         * lib/base64.h (isbase64): Add.
68193
68194         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68195         using a unsigned prototype, don't inline.
68196         (base64_decode): Use it.
68197
68198 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68201         it.
68202
68203 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * lib/save-cwd.c (save_cwd): Remove code to support the case
68206         where fchdir is missing or flaky.
68207
68208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68211
68212 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68215         AC_LIBSOURCES now does this.
68216         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68217         with new ullong_max module.
68218
68219 2005-01-19  Bruno Haible  <bruno@clisp.org>
68220
68221         * modules/sh-quote: New file.
68222         * MODULES.html.sh (Executing programs): Add sh-quote.
68223
68224 2005-01-19  Bruno Haible  <bruno@clisp.org>
68225
68226         * lib/sh-quote.h: New file, from GNU gettext.
68227         * lib/sh-quote.c: New file, from GNU gettext.
68228
68229 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         Merge from coreutils.
68232         * m4/ullong_max.m4: New file.
68233         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68234         (gl_MACROS): Assume localeconv exists.
68235
68236 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         Merge changes from coreutils, as described below in several
68239         changelogs dated today.
68240
68241         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68242         (O_DIRECTORY): Remove; not needed here, since "." must be
68243         a directory.  All uses removed.
68244         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68245         universal on Suns, and we also need to test for IRIX.
68246         Revamp code to use 'if' rather than '#if'.
68247         Avoid unnecessary comparison of cwd->desc to 0.
68248
68249         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68250         for known valid error numbers rather than observed invalid ones.
68251
68252 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * modules/ullong_max: New file.
68255
68256         * modules/chdir-long, modules/openat: New files.
68257         * modules/save-cwd (Depends-on): Depend on chdir-long.
68258         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68259
68260 2005-01-18  Jim Meyering  <jim@meyering.net>
68261
68262         Merge from coreutils.
68263         * m4/chdir-long.m4, m4/openat.m4: New files.
68264         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68265         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68266         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68267         is sane and DOES follow symlinks.  Besides, testing 20 different
68268         systems found no broken chown implementations.
68269         Prompted by a change in rsync's copy of this macro.
68270         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68271
68272         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68273
68274         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68275         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68276         NULL-means-set-to-current-time semantics.
68277         Remove temporary file immediately, rather than waiting
68278         for configure's at-exit trap code to do it.
68279
68280 2005-01-18  Jim Meyering  <jim@meyering.net>
68281
68282         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68283
68284         * lib/utimens.c (futimens): Account for the fact that futimes
68285         can also fail with errno == ENOSYS or errno == ENOENT.
68286         Patch from Dmitry V. Levin.
68287
68288         Change the name of the robust chdir function from chdir to chdir_long.
68289         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68290         (restore_cwd): Use chdir_long, not chdir.
68291         * lib/chdir-long.c: Renamed from chdir.c.
68292         * lib/chdir-long.h: Renamed from chdir.h.
68293         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68294         Hurd.
68295
68296 2005-01-18  Bruno Haible  <bruno@clisp.org>
68297
68298         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68299         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68300         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68301         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68302         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68303         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68304         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68305         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68306         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68307         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68308         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68309         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68310         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68311         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68312         Use an all-permissive copyright notice, recommended by RMS.
68313
68314 2005-01-18  Bob Proulx  <bob@proulx.com>
68315
68316         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68317         simplify offsetof() macro construct to avoid compile failure with
68318         native HP-UX 11.0 ANSI C compiler.
68319
68320 2005-01-17  Bruno Haible  <bruno@clisp.org>
68321
68322         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68323         redundant because stpncpy.m4 takes care of it.
68324
68325 2005-01-17  Bruno Haible  <bruno@clisp.org>
68326
68327         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68328
68329 2005-01-17  Bruno Haible  <bruno@clisp.org>
68330
68331         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68332         used.
68333
68334 2005-01-17  Bruno Haible  <bruno@clisp.org>
68335
68336         * lib/fwriteerror.h (fwriteerror): Change specification to include
68337         fclose.
68338         * lib/fwriteerror.c: Include <stdbool.h>.
68339         (fwriteerror): At the end, close the file stream. Record whether
68340         stdout was already closed.
68341
68342 2005-01-17  Bruno Haible  <bruno@clisp.org>
68343
68344         * lib/execute.c (environ): Declare if needed.
68345         * lib/pipe.c (environ): Likewise.
68346         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68347
68348 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68349
68350         * modules/argp: Depend on vsnprintf
68351
68352 2005-01-10  Jim Meyering  <jim@meyering.net>
68353
68354         * modules/closeout (Depends-on): Add atexit.
68355
68356 2005-01-06  Bruno Haible  <bruno@clisp.org>
68357
68358         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68359
68360 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68363         definitions to be after all include files, to avoid collisions.
68364         Problem reported by Bob Proulx.
68365
68366 2005-01-04  Jim Meyering  <jim@meyering.net>
68367
68368         Changes imported from coreutils.
68369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68370         as the mkstemp template, use a temporary directory and an
68371         8.3-friendly template to avoid trouble on systems like DJGPP.
68372         Reported by Juan M. Guerrero via Stepan Kasal.
68373         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68374         close. Remove the temporary directory right away, rather than waiting
68375         for configure's at-exit trap code to do it.
68376         Suggestion from Stepan Kasal.
68377
68378 2005-01-01  Simon Josefsson  <jas@extundo.com>
68379
68380         * gnulib-tool: Print #include directives when --import'ing.
68381
68382 2004-12-28  Simon Josefsson  <jas@extundo.com>
68383
68384         * tests/test-base64.c: Include required header files.  Remove
68385         unused variables.
68386
68387 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * modules/error (Depends-on): Remove gettext.
68390
68391 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68392
68393         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68394         not needed.  This removes a dependency on the gettext module.
68395         [defined _LIBC]: Do not include <libintl.h>; not needed.
68396
68397 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68400         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68401
68402 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68405         HAVE_DECL_STRTOLD.
68406
68407 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * modules/getdate (Depends-on): Remove alloca-opt.
68410
68411 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68414
68415 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68416
68417         * lib/argp-parse.c: Include <stddef.h>.
68418         (alignof, alignto): New macros.
68419         (parser_init): Don't assume that void * is aligned sufficiently
68420         for struct option.
68421
68422         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68423         need to extend the stack.
68424         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68425         large.
68426
68427 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68428
68429         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68430
68431 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68434         (2004-10-24) change.  Apparently this was a false alarm.
68435
68436         * modules/getdate: Depend on alloca-opt, not alloca.
68437
68438 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68441         Remove now-obsolete comment about AIX.
68442         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68443         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68444         (YYMAXDEPTH): New macro.
68445
68446 2004-12-18  Simon Josefsson  <jas@extundo.com>
68447
68448         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68449
68450 2004-12-18  Bruno Haible  <bruno@clisp.org>
68451
68452         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68453
68454 2004-12-18  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/fatal-signal.c (fatal_signals): Make non-const.
68457         (init_fatal_signals): New function.
68458         (uninstall_handlers, install_handlers): Ignore signals that were set to
68459         SIG_IGN.
68460         (at_fatal_signal): Call init_fatal_signals.
68461         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68462         SIG_IGN.
68463         Reported by Paul Eggert.
68464
68465 2004-12-18  Bruno Haible  <bruno@clisp.org>
68466
68467         * doc/alloca.texi: New file.
68468         * doc/alloca-opt.texi: New file.
68469
68470 2004-12-17  Jim Meyering  <jim@meyering.net>
68471
68472         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68473         Otherwise, install-sh could exit with improper exit status when
68474         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68475
68476 2004-12-16  Simon Josefsson  <jas@extundo.com>
68477
68478         * tests/test-base64.c: Add license.
68479
68480 2004-12-15  Stepan Kasal  <address@hidden>
68481
68482         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68483
68484 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68485
68486         * modules/getcwd (Files): Add m4/d-ino.m4.
68487         Suggested by Mark D. Baushke.
68488
68489 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * lib/getdate.y (textint): New member "negative".
68492         (time_zone_hhmm): New function.
68493         Expect 14 shift-reduce conflicts, not 13.
68494         (o_colon_minutes): New rule.
68495         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68496         (yylex): Set the "negative" member of signed numbers.
68497
68498 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * doc/getdate.texi (Time of day items, Time zone items):
68501         Describe new formats +00:00, UTC+00:00.
68502
68503 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68506         spurious "-l"s.  Problem reported by Stepan Kasal.
68507
68508 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68511         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68512
68513 2004-12-04  Simon Josefsson  <jas@extundo.com>
68514
68515         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68516         Vandoorselaere <yoann@prelude-ids.org>.
68517
68518 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         Changes imported from coreutils.
68521         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68522         exist.
68523         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68524
68525 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         Changes imported from coreutils.
68528         * lib/hard-locale.c: Assume <locale.h> exists.
68529         Include "strdup.h".
68530         (GLIBC_VERSION): New macro.
68531         (hard_locale): Assume setlocale exists.
68532         Rewrite to avoid #ifdef.
68533         Use strdup rather than malloc + strcpy.
68534         * lib/human.c: Assume <locale.h> exists.
68535         (human_readable): Assume localeconv exists.
68536
68537 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * modules/hard-locale (Depends-on): Add strdup.
68540
68541 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68542
68543         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68544         convert T2, not T.  (Imported from libc.)
68545
68546 2004-11-30  Simon Josefsson  <jas@extundo.com>
68547
68548         * modules/restrict (License): Change to LGPL.
68549
68550 2004-11-30  Simon Josefsson  <jas@extundo.com>
68551
68552         * m4/restrict.m4: Add copyright and copying conditions.
68553
68554 2004-11-30  Simon Josefsson  <jas@extundo.com>
68555
68556         * m4/base64.m4: New file.
68557
68558 2004-11-30  Simon Josefsson  <jas@extundo.com>
68559
68560         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68561         base64.
68562
68563         * tests/test-base64.c: New file.
68564
68565         * modules/base64: New file.
68566
68567 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68568
68569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68570         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68571
68572         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68573
68574 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68577         (__getcwd.c): Don't restore errno; glibc doesn't.
68578         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68579         first, falling back to our code only if its results look suspicious.
68580         Ensure that the resulting buffer is only as large as necessary.
68581
68582         * lib/readutmp.c: Include readutmp.h first.
68583         Include <errno.h>, since readutmp.h no longer does that.
68584         * lib/readutmp.h: Don't include <errno.h>,
68585         <sys/param.h>, <time.h>; not needed to establish interface.
68586         (errno): Remove decl.
68587         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68588         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68589         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68590
68591 2004-11-28  Simon Josefsson  <jas@extundo.com>
68592
68593         * lib/base64.h, base64.c: New file.
68594
68595 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68598
68599 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68600
68601         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68602         (Depends-on): Remove pathmax, same.  Add mempcpy.
68603         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68604         (Makefile.am): Append getcwd.h to lib_SOURCES.
68605         (Include): Add getcwd.h.
68606         (Maintainer): Change from Jim Meyering to "all, glibc",
68607         since getdate now uses intended-for-glibc code.
68608         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68609         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68610
68611 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68614         HP's ANSI C compiler.
68615         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68616         Declaring int functions causes warnings on some modern systems and
68617         shouldn't be needed to compile on ancient ones.
68618         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68619         defined.
68620
68621         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68622         with the following changes.
68623         (__set_errno): Parenthesize properly.
68624         Include <stdbool.h>.
68625         (MIN, MAX, MATCHING_INO): New macros.
68626         (__getcwd): Define with prototype, not K&R form.
68627         Use heuristics to allocate default buffer on stack if possible.
68628         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68629         behavior, and to avoid the PATH_MAX limit when computing
68630         ../../../../...
68631         Use MATCHING_INO to compare inode number to file.
68632         Check for arithmetic overflow in size calculations.
68633         Fix bug in reallocation of dot array that caused getcwd to fail
68634         on directories nested deeper than 75.
68635         Be more careful about saving errno on error.
68636         Do not use realloc; use only free+malloc, as this is a bit
68637         more flexible and avoids a needless copy operation.
68638         Do not inspect st_dev and st_ino for symbolic links; POSIX
68639         doesn't specify the latter.
68640         Check for closedir errors.
68641         Avoid needless casts.
68642         Use "#ifdef weak_alias" around weak_alias, to be like other
68643         glibc code.
68644         The following changes to getcwd.c have effect only when used in
68645         gnulib; they have no effect inside glibc proper.
68646         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68647         as alloca isn't used.
68648         (alloca, __alloca): Likewise.
68649         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68650         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68651         unconditionally, as gnulib assumes C89 or better.
68652         Do not include <sys/param.h>.
68653         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68654         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68655         better.
68656         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68657         Include <dirent.h> in a way that is compatible with modern Autoconf.
68658         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68659         New macros, if not already defined.
68660         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68661         Use "_LIBC", not "defined _LIBC", for consistency.
68662         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68663         a mempcpy module.
68664         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68665         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68666         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68667         credit only to Jim Meyering and adjust the copyright dates.
68668         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68669         <stdlib.h>, <unistd.h>, "pathmax.h".
68670         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68671         (INITIAL_BUFFER_SIZE): Remove.
68672         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68673
68674 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68677         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68678         Use the _ONCE methods, for efficiency.
68679         Check for fcntl.h.  In test program, include <errno.h>
68680         and <fcntl.h> if available.  Remove old K&R cruft from
68681         test program.  Check for common errors in GNU/Linux,
68682         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68683         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68685         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68686         name accordingly.
68687         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68688         accommodate new getcwd.c.
68689         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68690         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68691         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68692         that's all we need now.
68693
68694 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68695
68696         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68697         argp-parse.c depends on getopt internals, that means we should
68698         always use our getopt, to be on the safe side.
68699         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68700         order not to spoil the result of an eventual previous invocation
68701         of gl_GETOPT_SUBSTITUTE.
68702
68703 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68704
68705         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68706         redefinition warnings. To avoid them, include the defines
68707         in `#if !defined __need_getopt ... #endif'. The only place
68708         where __getopt_argv_const is used is in definitions
68709         of getopt_long and getopt_long_only below, which are as well
68710         protected by `#ifndef __need_getopt'.
68711         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68712         __need_getopt after including <stdio.h> and <unistd.h> These
68713         headers might have defined it.
68714
68715 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68716
68717         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68718
68719 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68722         (futimens): New function, which uses futimes if available.
68723         (futimens, utimens): Support timespec==NULL, with same semantics
68724         as utime and utimens.
68725         * lib/utimens.h (futimens): New decl.
68726
68727 2004-11-23  Jim Meyering  <jim@meyering.net>
68728
68729         * lib/getopt_.h: Remove trailing blanks.
68730
68731 2004-11-23  Jim Meyering  <jim@meyering.net>
68732
68733         * lib/__fpending.c: Add comment.
68734
68735 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * modules/canonicalize (Depends-on): Add xreadlink.
68738         Problem reported by James Youngman.
68739
68740 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68743         New macros.
68744         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68745         optopt): Use them instead of invoking ## directly; otherwise, the
68746         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68747
68748 2004-11-19  Bruno Haible  <bruno@clisp.org>
68749
68750         * lib/strtok_r.c: Move comments from here...
68751         * lib/strtok_r.h: ... to here.
68752
68753 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68756         implementations that mishandle size_t overflow.
68757
68758 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68761         might fail.  Problem reported by Yoann Vandoorselaere.
68762         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68763         implementations that mishandle size_t overflow.
68764
68765 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * modules/canon-host (Depends-on): Add strdup.
68768
68769 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68772
68773 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         * lib/canon-host.c: Include "strdup.h".
68776         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68777         Use strdup instead of malloc/strcpy to duplicate strings.
68778
68779         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68780         (human_space_before_unit): New constant.
68781         * lib/human.c (human_readable): Support it.
68782
68783         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68784         (xgetcwd): Set errno correctly when failing.
68785         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68786         the failure is actually due to a PATH_MAX problem.
68787
68788         Further getopt changes to make it more likely that glibc will
68789         buy the changes back.
68790         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68791         (getopt): Use it, so to preserve glibc semantic
68792         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68793         when compiling for libc.
68794         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68795         (getopt_long, getopt_long_only): Use it.
68796
68797         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68798         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68799         (getopt): Argv is now char * const *, as per standard.
68800         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68801         not char *__getopt_argv_const *.
68802         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68803         _getopt_long_only_r): Likewise.
68804         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68805         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68806         _getopt_long_r, _getopt_long_only_r): Likewise.
68807         * lib/getopt_.h (__getopt_argv_const): Remove.
68808         (getopt): Argv is now char * const *, as per standard.
68809
68810         * lib/getdate.y (tORDINAL): New token.
68811         (day, relunit): Allow it for relative times.
68812         (relative_time_table): Use tORDINAL for ordinals.
68813
68814 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68817         Document that "second" isn't allowed as an ordinal number.
68818
68819 2004-11-16  Jim Meyering  <jim@meyering.net>
68820
68821         * modules/closeout (Depends-on): Add fpending.
68822
68823 2004-11-15  Jim Meyering  <jim@meyering.net>
68824
68825         * lib/closeout.c: Include "__fpending.h" once again.
68826         Include <stdbool.h>.
68827         (close_stdout): Don't fail just because stdout was closed initially,
68828         since some programs don't write to stdout in the normal course of
68829         operation (other than --version and --help), and we don't want this
68830         function to make e.g. `touch file >&-' fail.
68831         But do fail if it was closed and someone has tried to write to it.
68832         E.g., `printf foo >&-' must fail.
68833
68834 2004-11-13  Jim Meyering  <jim@meyering.net>
68835
68836         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68837
68838 2004-11-12  Simon Josefsson  <jas@extundo.com>
68839
68840         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68841         small doc fix is still pending.
68842
68843 2004-11-11  Simon Josefsson  <jas@extundo.com>
68844
68845         * modules/strtok_r: New file.
68846
68847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68848         strtok_r.
68849
68850 2004-11-11  Simon Josefsson  <jas@extundo.com>
68851
68852         * m4/strtok_r.m4: New file.
68853
68854         * m4/getopt.m4: Replace opterr.
68855
68856 2004-11-11  Simon Josefsson  <jas@extundo.com>
68857
68858         * lib/strtok_r.h, strtok_r.c: New file.
68859
68860 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68861
68862         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68863         of replacing opterr, getopt, etc.  This should handle the
68864         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68865
68866 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68869         we can stop lying to compilers about the constness of argv when we
68870         are compiled outside glibc.
68871         (getopt, getopt_long, getopt_long_only): Use it.
68872         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68873         _getopt_internal, getopt): Likewise.
68874         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68875         _getopt_long_only_r): Likewise.
68876         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68877         _getopt_long_r, _getopt_long_only_r): Likewise.
68878
68879         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68880         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68881         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68882         the other external symbols.
68883         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68884         declaration, since the above renaming now works around collisions.
68885
68886 2004-11-11  Jim Meyering  <jim@meyering.net>
68887
68888         * lib/linebreak.c: Remove trailing blanks.
68889         * lib/alloca_.h: Likewise.
68890         * lib/acosl.c: Likewise.
68891         * lib/euidaccess.c: Likewise.
68892         * lib/allocsa.h: Likewise.
68893
68894 2004-11-10  Simon Josefsson  <jas@extundo.com>
68895
68896         * m4/getaddrinfo.m4: New file.
68897
68898 2004-11-10  Simon Josefsson  <jas@extundo.com>
68899
68900         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68901
68902 2004-11-10  Simon Josefsson  <jas@extundo.com>
68903
68904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68905         getaddrinfo.
68906
68907         * modules/getaddrinfo: New file.
68908
68909 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68912
68913 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * lib/mktime.c (SHR): New macro, which is a portable
68916         substitute for >> that should work even on Crays.
68917         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68918         Problem reported by Mark D. Baushke in
68919         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68920         * lib/getdate.y (SHR): Likewise.
68921         (tm_diff): Use it.
68922         * lib/strftime.c (SHR): Likewise.
68923         (tm_diff): Use it.
68924         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68925         quote_these_too, so that right shifts are well defined.  All uses
68926         changed.
68927
68928 2004-11-10  Jim Meyering  <jim@meyering.net>
68929
68930         Ensure that no close failure goes unreported.
68931         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68932         return early when it seems there's nothing to flush.
68933         Don't include __fpending.h.
68934
68935 2004-11-10  Jim Meyering  <jim@meyering.net>
68936
68937         * modules/closeout (Depends-on): Remove fpending.
68938
68939 2004-11-10  Jim Meyering  <jim@meyering.net>
68940
68941         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68942
68943 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68944
68945         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68946         gl_FUNC_STRFTIME.
68947         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68948         and AC_REQUIRE when possible, to avoid duplicate checks.
68949         Check for <wchar.h>.
68950
68951 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68954
68955 2004-11-09  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/sockpfaf.m4: New file.
68958
68959 2004-11-05  Bruno Haible  <bruno@clisp.org>
68960
68961         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68962         Reported by Mark D. Baushke <mdb@cvshome.org>.
68963
68964 2004-11-04  Bruno Haible  <bruno@clisp.org>
68965
68966         2004-09-11  Bruno Haible  <bruno@clisp.org>
68967                 * allocsa.valgrind: New file.
68968         2004-02-06  Bruno Haible  <bruno@clisp.org>
68969                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68970                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68971                 Reported by Christopher Seip <chris.seip@hp.com>.
68972
68973 2004-11-04  Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68976         (Makefile.am): Distribute it.
68977
68978 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68979
68980         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68981         with errno == ERANGE if the buffer is too small.
68982         Problem reported by Mark D. Baushke.
68983
68984 2004-11-03  Albert Chin  <china@thewrittenword.com>
68985             Paul Eggert  <eggert@cs.ucla.edu>
68986
68987         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68988         equivalent, substitute $ac_type for equivalent type rather than
68989         blindly using uint32_t *always* which won't work if uint32_t is not
68990         available.  Define _UINT32_T to work around typedef of uint32_t if
68991         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68992         2.5.1.
68993
68994 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * m4/jm-macros.m4: Sync from coreutils.
68997         (gl_MACROS): Check for mbrlen, for pathchk.
68998         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68999
69000 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69001
69002         * lib/xreadlink.c (MAXSIZE): New macro.
69003         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69004         size does not exceed MAXSIZE.  Avoid cast.
69005         As suggested by Mark D. Baushke in
69006         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69007         if readlink fails with buffer size just under MAXSIZE, try again
69008         with MAXSIZE.
69009
69010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69013
69014 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69015         and  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69018         (get_date): Overparenthesize to avoid GCC warning.
69019
69020 2004-11-02  Bruno Haible  <bruno@clisp.org>
69021
69022         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69023         returns void.
69024
69025 2004-11-02  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69028         function returns void.
69029
69030 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69033         fflush_unlocked, flockfile, funlockfile, funlockfile,
69034         fputs_unlocked, putc_unlocked.
69035
69036 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69037
69038         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69039         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69040         already declared.
69041
69042 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69043
69044         * modules/getdate (Files): Add doc/getdate.texi.
69045         (Depends-on): Add setenv, xalloc.
69046
69047 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69048
69049         * lib/getdate.y: Add support for TZ="foo" within a date string.
69050         Fix some bugs near time_t boundaries.  Reject dates with
69051         out-of-range components, e.g., "Sept 31".
69052         Include <stdlib.h>, "setenv.h", "xalloc.h".
69053         (ISDIGIT_LOCALE): Remove; unused.
69054         Note that the TZ and time functions used here are not reentrant.
69055         (mktime_ok, get_tz): New functions.
69056         (TZBUFSIZE): New constant.
69057         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69058         This requires that we sometimes generate our own TZ="XXX..." setting.
69059
69060 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * doc/getdate.texi: New file, from coreutils with modifications for
69063         the new TZ parsing.
69064
69065 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69066
69067         * lib/mktime.c (not_equal_tm): Remove redundant check.
69068
69069 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * modules/regex (lib_SOURCES): Add regex.c.
69072         Reported by James Youngman in
69073         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69074
69075 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * lib/getdate.y: Use Bison 1.875 features, and some minor
69078         code cleanups.  This change does not affect semantics.
69079         Don't include <stdlib.h>; no longer needed.
69080         Don't include unlocked-io.h; only the "#if TEST" code uses
69081         stdio, and performance isn't crucial there.
69082         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69083         Bison 1.875 features as described below.
69084         All uses of "PC." replaced by "pc->".
69085         (YYSTYPE): Add a forward declaration.
69086         (yylex, yyerror): Use full prototypes in forward decls.
69087         Use "%pure-parser" rather than obsolescent "%pure_parser".
69088         Use %parse-param and %lex-param instead of obsolescent
69089         YYPARSE_PARAM and YYLEX_PARAM.
69090         (meridian_table, month_and_day_table, time_units_table,
69091         relative_time_table, time_zone_table, military_table,
69092         lookup_zone, lookup_word, get_date):
69093         Use NULL instead of 0 where appropriate.
69094         (to_hour): Avoid abort (), to avoid a dependency on
69095         stdlib.h.
69096         (yyerror, yylex): Now accepts parser_control * arg.
69097         (main) [TEST]: Use '\0' rather than 0 for char.
69098
69099 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69100
69101         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69102
69103 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69106         It's now the caller's responsibility to handle the case where
69107         !HAVE_GETPAGESIZE && !defined getpagesize.
69108
69109         * lib/mktime.c (leapyear): Arg is long int, not int.
69110
69111 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69114
69115 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69118         missing.  Problem reported by James Youngman.
69119
69120 2004-10-16  Simon Josefsson  <jas@extundo.com>
69121
69122         * gnulib-tool: Fix comments.  Fix parse problem.
69123         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69124
69125 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69128         implementation of getopt_long.  Problem reported by Alexander Taler in:
69129         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69130
69131 2004-10-15  Bruno Haible  <bruno@clisp.org>
69132
69133         * gnulib-tool: Untabify. Initialize supplied_libname.
69134         (func_usage): More homogenous output.
69135         (func_modules_transitive_closure, func_modules_to_filelist,
69136         func_emit_lib_Makefile_am): New functions.
69137         (func_import): New function, extracted from big case statement. Use
69138         func_get_license, func_modules_transitive_closure,
69139         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69140         opt_lgpl. Don't use test -a, as it's not portable.
69141         (func_create_testdir): Use func_modules_transitive_closure,
69142         func_modules_to_filelist, func_emit_lib_Makefile_am.
69143
69144 2004-10-15  Bruno Haible  <bruno@clisp.org>
69145
69146         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69147
69148 2004-10-15  Bruno Haible  <bruno@clisp.org>
69149
69150         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69151         the portions belonging to each module.
69152         Suggested by Derek Robert Price <derek@ximbiot.com>.
69153
69154 2004-10-12  Simon Josefsson  <jas@extundo.com>
69155
69156         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69157         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69158         to real functions.
69159
69160 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69161
69162         * modules/vsnprintf: New file.
69163
69164 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69165
69166         * m4/vsnprintf.m4: New file.
69167
69168 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69169
69170         * lib/vsnprintf.h: New file.
69171         * lib/vsnprintf.c: New file.
69172
69173 2004-10-11  Bruno Haible  <bruno@clisp.org>
69174
69175         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69176         vsnprintf.
69177
69178 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69181
69182 2004-10-07  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69185         fits into the provided buffer.
69186
69187 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * lib/diacrit.c, diacrit.h: Add GPL notice.
69190
69191         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69192         notice.
69193         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69194         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69195         This avoids a potential constant-folding bug.
69196
69197 2004-10-05  Bruno Haible  <bruno@clisp.org>
69198
69199         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69200         for the declaration of strsep.
69201
69202 2004-10-05  Bruno Haible  <bruno@clisp.org>
69203
69204         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69205
69206 2004-10-04  Simon Josefsson  <jas@extundo.com>
69207
69208         * modules/memmem: New file.
69209         * tests/test-memmem.c: New file.
69210         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69211
69212 2004-10-04  Simon Josefsson  <jas@extundo.com>
69213
69214         * m4/memmem.m4: New file.
69215
69216 2004-10-04  Simon Josefsson  <jas@extundo.com>
69217
69218         * lib/memmem.h: New file.
69219         * lib/memmem.c: New file, taken from glibc.
69220
69221 2004-10-04  Simon Josefsson  <jas@extundo.com>
69222
69223         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69224         '#ifdef USE_UNLOCKED_IO'.
69225
69226 2004-10-04  Simon Josefsson  <jas@extundo.com>
69227
69228         * config/srclist.txt: Add memmem from glibc.
69229
69230 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69233
69234         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69235         modules/exclude, modules/getdate, modules/getline,
69236         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69237         modules/getusershell, modules/linebuffer, modules/md5,
69238         modules/mountlist, modules/posixtm, modules/readtokens,
69239         modules/readutmp, modules/regex, modules/sha1,
69240         modules/version-etc, modules/yesno:
69241         Remove dependency on unlocked-io.
69242
69243 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69246
69247         * m4/unlocked-io.m4: Add copyright notice.
69248         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69249
69250 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69253         * lib/xmalloc.c (xmemdup): Likewise.
69254         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69255         XFREE): Remove these long-obsolescent macros.
69256         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69257         * lib/xstrdup.c: Remove.
69258
69259         * lib/regex.c (re_comp): Cast gettext return value to char *,
69260         Problem reported by Martin Neitzel via Mark D. Baushke.
69261
69262 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69263
69264         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69265         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69266         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69267         regex.c, sha1.c, version-etc.c, yesno.c:
69268         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69269         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69270         the includer's responsibility.
69271
69272         Sync from coreutils.
69273
69274         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69275         points to the start of a string, as the C Standard says the
69276         resulting behavior is undefined.
69277
69278         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69279         simple -> simple_backups, numbered_existing ->
69280         numbered_existing_backups, numbered -> numbered_backups
69281         to avoid shadowing problems.  All uses changed.
69282         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69283         * lib/backupfile.c (check_extension, numbered_backup):
69284         Rename locals to avoid shadowing 'basename'.
69285         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69286         once.
69287
69288         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69289         * lib/.cvsignore: Add getopt.h.
69290
69291 2004-10-04  Bruno Haible  <bruno@clisp.org>
69292
69293         * modules/README: New file.
69294         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69295         not a module.
69296
69297 2004-10-02  Jim Meyering  <jim@meyering.net>
69298
69299         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69300
69301 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69302
69303         * modules/strsep: New file.
69304
69305 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69306
69307         * m4/strsep.m4: New file.
69308
69309 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69310
69311         * lib/strsep.h: New file.
69312         * lib/strsep.c: New file.
69313
69314 2004-10-01  Simon Josefsson  <jas@extundo.com>
69315
69316         * lib/snprintf.c (snprintf): Handle size==0.
69317
69318 2004-10-01  Simon Josefsson  <jas@extundo.com>
69319             Bruno Haible  <bruno@clisp.org>
69320
69321         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69322         (snprintf): Declare 'args'.
69323
69324 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * lib/snprintf.c: Remove comments as to why each header is needed.
69327
69328 2004-10-01  Bruno Haible  <bruno@clisp.org>
69329
69330         * MODULES.html.sh: Add strsep.
69331
69332 2004-09-30  Simon Josefsson  <jas@extundo.com>
69333
69334         * modules/snprintf: New file.
69335
69336 2004-09-30  Simon Josefsson  <jas@extundo.com>
69337
69338         * m4/snprintf.m4: New file.
69339
69340 2004-09-30  Simon Josefsson  <jas@extundo.com>
69341
69342         * lib/snprintf.h, lib/snprintf.c: New files.
69343
69344 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69345
69346         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69347         (hol_entry_help): Never translate an empty string.
69348         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69349         * lib/argp.h (OPTION_NO_TRANS): New option.
69350
69351 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * modules/argp (Maintainer): Replace Simon Josefsson
69354         by Sergey Poznyakoff.
69355
69356 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69359         changes merged back into glibc.
69360
69361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69362
69363         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69364
69365 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69366
69367         * lib/xvasprintf.c: Include xalloc.h.
69368         (xvasprintf): Use xalloc_die, not xmalloc_die.
69369
69370 2004-09-29  Bruno Haible  <bruno@clisp.org>
69371
69372         * modules/alloca-opt: New file, derived from modules/alloca.
69373         * modules/allocsa: Depend on alloca-opt instead of alloca.
69374         * modules/setenv: Likewise.
69375         * modules/vasnprintf: Likewise.
69376         * MODULES.html.sh: Add alloca-opt.
69377
69378 2004-09-28  Simon Josefsson  <jas@extundo.com>
69379
69380         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69381         LGPL, and to replace license template from GPL to LGPL.
69382
69383 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * modules/dummy: Change license to LGPL.
69386
69387 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69390
69391 2004-09-24  Simon Josefsson  <jas@extundo.com>
69392
69393         * modules/minmax (License): Change from GPL to LGPL.
69394
69395 2004-09-23  Simon Josefsson  <jas@extundo.com>
69396
69397         * gnulib-tool (--import): Typo.
69398
69399 2004-09-23  Simon Josefsson  <jas@extundo.com>
69400
69401         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69402
69403 2004-09-22  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/*: Add 'License' field.
69406         * gnulib-tool: Accept --extract-license option.
69407         (func_get_license): New function.
69408
69409 2004-09-21  Bruno Haible  <bruno@clisp.org>
69410
69411         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69412         Reported by Simon Josefsson.
69413
69414 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69415
69416         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69417         gl_AC_TYPE_LONG_LONG.
69418
69419 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69422
69423 2004-09-18  Simon Josefsson  <jas@extundo.com>
69424         and  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69427         calls with autoreconf.  Define GL_LIB.
69428
69429 2004-09-14  Karl Berry  <karl@gnu.org>
69430
69431         * config/srclist.txt: unsync setenv.c, sigh.
69432
69433 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69436         Problem reported by Bruno Haible in:
69437         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69438
69439 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * config/srclist.txt: Comment out argp-pvh.c.
69442
69443 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69446         in case some system header has #define'd it.  Problem reported by
69447         Soeren D. Schulze in
69448         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69449
69450 2004-09-09  Karl Berry  <karl@gnu.org>
69451
69452         * regex.[ch]: delete from the root.  These were supposed to be
69453                 synced with emacs cvs, but this has not happened for about
69454                 a year, and anyway nothing else uses emacs regex.[ch].
69455                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69456                 lib/regex[.ch] is untouched.
69457
69458 2004-09-09  Bruno Haible  <bruno@clisp.org>
69459
69460         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69461
69462 2004-09-09  Bruno Haible  <bruno@clisp.org>
69463
69464         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69465         modifications.
69466         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69467
69468 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69469
69470         * modules/xvasprintf: New file.
69471         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69472
69473 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69474
69475         * lib/xvasprintf.h: New file.
69476         * lib/xvasprintf.c: New file.
69477         * lib/xasprintf.c: New file.
69478
69479 2004-09-08  Bruno Haible  <bruno@clisp.org>
69480
69481         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69482
69483 2004-09-08  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69486         length is > INT_MAX.
69487         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69488         more.
69489
69490 2004-09-08  Bruno Haible  <bruno@clisp.org>
69491
69492         * lib/stdint_.h: New file, taken from GNU clisp.
69493
69494 2004-09-08  Bruno Haible  <bruno@clisp.org>
69495             Oskar Liljeblad  <oskar@osk.mine.nu>
69496
69497         * modules/stdint: New file.
69498         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69499
69500 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         Import from coreutils.
69503         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69504         strings on unbounded length.  alloca's performance benefits aren't
69505         that important here.
69506         (V_STRDUP): Remove.
69507         (parse_with_separator): New function, with most of the internals
69508         of the old parse_user_spec.  Allow user to omit both user and group,
69509         for compatibility with FreeBSD.
69510         Clone only the user name, not the entire spec.
69511         Do not set *uid, *gid unless entirely successful.
69512         Avoid memory leak in some failing cases.
69513         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69514         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69515         (parse_user_spec): Rewrite to use parse_with_separator.
69516
69517 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         * modules/userspec: Don't depend on alloca.
69520
69521 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69524
69525 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69528         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69529         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69530
69531 2004-08-16  Simon Josefsson  <jas@extundo.com>
69532
69533         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69534         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69535         Add --dry-run for --import.
69536         Let user provided command line parameters override configure.ac
69537         settings.
69538
69539 2004-08-12  Simon Josefsson  <jas@extundo.com>
69540
69541         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69542         as discussed with Paul Eggert in threads rooted at
69543         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69544         and
69545         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69546         Before, the test was empty, and relied on ELIDE_CODE in source
69547         code.)
69548         (gl_PREREQ_GETOPT): New macro.
69549         (gl_GETOPT): Use them.
69550
69551 2004-08-12  Simon Josefsson  <jas@extundo.com>
69552
69553         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69554         * lib/getopt_.h: Renamed from getopt.h.
69555
69556 2004-08-12  Simon Josefsson  <jas@extundo.com>
69557
69558         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69559         Change default library name from libfoo to libgnu.
69560         Now, if you have a configure.ac that says:
69561                 gl_SOURCE_BASE(gl)
69562                 gl_M4_BASE(gl/m4)
69563                 gl_MODULES(error getopt etcetera)
69564                 gl_INIT
69565         you can import all you need by running:
69566                 ../gnulib/gnulib-tool --import
69567
69568         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69569         (Makefile.am): Rewrite, use logic from argz.
69570         (Include): Use <getopt.h> instead of "getopt.h".
69571
69572 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * modules/argp (Files): Add m4/unlocked-io.m4.
69575         (Depends-on): Add extensions.
69576
69577 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69580         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69581         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69582         Check for program_invocation_name, program_invocation_short_name,
69583         flockfile, funlockfile, features.h, _getopt_long_only_r.
69584
69585 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69588         its complicated substitute.
69589         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69590         and program_invocation_name.
69591         (__argp_basename) [!_LIBC]: Remove; the only use was
69592         replaced by its body.
69593         (__argp_short_program_name): Change condition from
69594         !defined __argp_short_program_name to
69595         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69596         to match argp-namefrob.h.
69597         (__argp_failure): Don't assume strerror_r returns char *.
69598         * lib/argp-parse.c (N_): Define unconditionally.
69599         (argp_default_options): Fill out initializers with 0 to avoid
69600         gcc warnings.
69601
69602 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69603
69604         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69605         getopt1.c.
69606
69607 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         Merge from coreutils.
69610
69611         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69612
69613         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69614         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69615
69616 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         Merge from coreutils.
69619
69620         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69621         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69622         for Reliant Unix 5.43.
69623
69624         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69625         (union fooround): Use uintmax_t, not long int.
69626         The rest is a merge from libc:
69627         [defined _LIBC]: Include <shlib-compat.h>.
69628         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69629
69630         * lib/settime.c (settime): Recode to avoid warning with
69631         Sun Forte C 6U2.
69632
69633         * lib/strverscmp.c: Convert to UTF-8.
69634
69635 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69638         m4/uintmax_t.m4.
69639
69640 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * modules/xalloc-die: New file.
69643         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69644
69645         * modules/md5 (Files): Add m4/uint32_t.m4.
69646         * modules/sha1: Renamed from modules/sha.
69647         (Files):
69648         Rename lib/sha.h to lib/sha1.h.
69649         Rename lib/sha.c to lib/sha1.c.
69650         Rename m4/sha.m4 to m4/sha1.m4.
69651         (lib_SOURCES): Likewise.
69652         (configure.ac): Rename gl_SHA to gl_SHA1.
69653         (Include): sha.h -> sha1.h.
69654
69655 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69658         * m4/sha1.m4: Renamed from sha.m4.
69659         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69660
69661 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         * lib/obstack.h (obstack_empty_p):
69664         Don't assume that chunk->contents is suitably aligned.
69665         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69666         Likewise. Problem reported by Benno in
69667         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69668
69669         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69670         readable.  This could be improved further but it'd take some work.
69671
69672 2004-08-08  Simon Josefsson  <jas@extundo.com>
69673
69674         * modules/xgethostname (Depends-on): Remove exit and error (not
69675         used).
69676
69677         * modules/getpass-gnu: Add getpass.h.
69678         (Depends-on): Add stdbool.
69679         * modules/getpass: Add getpass.h.
69680
69681 2004-08-08  Simon Josefsson  <jas@extundo.com>
69682
69683         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69684         Check getpass declaration.
69685
69686 2004-08-08  Simon Josefsson  <jas@extundo.com>
69687
69688         * lib/xgethostname.c: Don't include error.h (not used).
69689
69690         * lib/getpass.h: Add.
69691         * lib/getpass.c: Include getpass.h first.
69692
69693 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * lib/xalloc-die.c: New file.
69696         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69697         All uses removed.
69698         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69699         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69700         xalloc-die.c.
69701         (_, N_, xalloc_die): Move to xalloc-die.c.
69702         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69703         so that we needn't mess with xalloc_msg_memory_exhausted.
69704
69705         * lib/sha1.h: Renamed from sha.h.
69706         (SHA1_H): Renamed from _SHA_H.
69707         (sha1_ctx): Renamed from sha_ctx.
69708         (sha1_init_ctx): Renamed from sha_init_ctx.
69709         (sha1_process_block): Renamed from sha_process_block.
69710         (sha1_process_bytes): Renamed from sha_process_bytes.
69711         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69712         (sha1_read_ctx): Renamed from sha_read_ctx.
69713         (sha1_stream): Renamed from sha_stream.
69714         (sha1_buffer): Renamed from sha_buffer.
69715         * lib/sha1.c: Likewise; renamed from sha.c.
69716         Do not include <sys/types.h>.
69717         Include <stddef.h> rather than <stdlib.h>.
69718
69719 2004-08-08  Bruno Haible  <bruno@clisp.org>
69720
69721         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69722         FILESYSTEM_PREFIX_LEN.
69723         * lib/progreloc.c: Likewise.
69724         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69725
69726 2004-08-06  Simon Josefsson  <jas@extundo.com>
69727
69728         * modules/progname (Depends-on): Don't depend on stdbool.
69729
69730 2004-08-06  Simon Josefsson  <jas@extundo.com>
69731
69732         * modules/getsubopt: New file.
69733         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69734         getsubopt.
69735
69736 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         More merge from coreutils.
69739
69740         * m4/utimens.m4, m4/utimecmp.m4: New files.
69741         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69742         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69743         prereq.m4, sha.m4: Import changes from coreutils.
69744
69745 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         More merge from coreutils.
69748         * modules/raise, modules/readtokens0, modules/utimens:
69749         * modules/utimecmp, module/xnanosleep: New files.
69750         * modules/strftime: Add lib/strftime.h.
69751         Change include from <time.h> to "strftime.h".
69752         * modules/yesno: Add lib/yesno.h.
69753         * modules/backupfile: Remove lib/addext.c.
69754         * modules/euidaccess: Add stat-macros.h.
69755         * modules/canonicalize, modules/euidaccess,
69756         modules/filemode, modules/lchown, modules/makepath,
69757         modules/rmdir, modules/stat: Likewise.
69758
69759 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         Merge from tar.
69762         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69763         SIZE_MAX is a valid preprocessor constant.
69764         (__argp_basename): Change from "#ifndef _LIBC"
69765         to "#ifndef __argp_short_program_name", so that
69766         we don't compile these functions for tar.
69767
69768         More merges from coreutils.
69769         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69770         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69771         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69772         * lib/addext.c: Remove; no longer needed.
69773         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69774         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69775         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69776         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69777         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69778         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69779         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69780         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69781         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69782         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69783         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69784         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69785         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69786         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69787         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69788         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69789         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69790         Import changes from coreutils.
69791
69792 2004-08-05  Simon Josefsson  <jas@extundo.com>
69793
69794         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69795
69796 2004-08-05  Simon Josefsson  <jas@extundo.com>
69797
69798         * m4/getsubopt.m4: New file.
69799
69800 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         Merge from coreutils.
69803
69804         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69805         * m4/getcwd-path-max.m4: New files.
69806
69807         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69808         FILESYSTEM_PREFIX_LEN ->
69809         FILE_SYSTEM_PREFIX_LEN.
69810         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69811         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69812         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69813         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69814
69815         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69816         prerequisite modules now handle the DOS stuff.
69817         Don't check for unistd.h.
69818
69819 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69820
69821         Merge from coreutils.
69822
69823         * lib/.gdb-history: Remove; this doesn't belong here.
69824
69825         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69826         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69827         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69828         * lib/getcwd.c: New files.
69829
69830         * lib/dirname.h: Include <stdbool.h>.
69831         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69832         for consistency with POSIX terminology.  All uses changed.
69833         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69834         (strip_trailing_slashes): Use bool for booleans.
69835         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69836
69837         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69838         sometimes returns a positive errno value even when it succeeds.
69839         (print_errno_message) [!LIBC]: Fall back on strerror if
69840         __strerror_r fails.
69841
69842         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69843         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69844         (longest_relative_suffix): New function.
69845         (path_concat): Use it.  Assume first argument is not NULL.
69846         Port to DOS.  Omit redundant separators.
69847         Report an error instead of returning NULL.
69848         Use mempcpy instead of memcpy.
69849         (xpath_concat): Remove: not declared or used.
69850
69851         * lib/same.h: Include <stdbool.h>
69852         (same_name): Return bool, not int.
69853         * lib/same.c (same_name): Likewise.
69854         (errno): Don't declare; we assume C89 or better now.
69855
69856         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69857         if not already defined.
69858
69859         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69860         * lib/dup-safer.c (errno): Likewise.
69861
69862 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         Merge from coreutils.
69865         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69866         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69867         * modules/path-concat: Don't depend on strdup.
69868
69869 2004-08-03  Simon Josefsson  <jas@extundo.com>
69870
69871         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69872         * lib/progname.h: Don't include stdbool.h.
69873
69874 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69877         * MODULES.html.sh (func_all_modules): Remove fatal.
69878
69879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69882
69883 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69886         working.
69887
69888 2004-08-02  Simon Josefsson  <jas@extundo.com>
69889
69890         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69891         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69892         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69893
69894 2004-08-01  Simon Josefsson  <jas@extundo.com>
69895
69896         * lib/xgetdomainname.c: Include stdlib.h, for free().
69897
69898 2004-07-19  Bruno Haible  <bruno@clisp.org>
69899
69900         * MODULES.html.sh (func_all_modules): Add dummy.
69901
69902 2004-07-16  Simon Josefsson  <jas@extundo.com>
69903
69904         * modules/dummy: New file.
69905
69906 2004-07-16  Simon Josefsson  <jas@extundo.com>
69907
69908         * lib/dummy.c: New file.
69909
69910 2004-07-16  Bruno Haible  <bruno@clisp.org>
69911
69912         * lib/backupfile.h: Add extern "C" for C++.
69913         * lib/closeout.h: Likewise.
69914         * lib/copy-file.h: Likewise.
69915         * lib/findprog.h: Likewise.
69916         * lib/full-write.h: Likewise.
69917         * lib/pathname.h: Likewise.
69918         * lib/progname.h: Likewise.
69919         * lib/stpcpy.h: Likewise.
69920         * lib/stpncpy.h: Likewise.
69921         * lib/strcase.h: Likewise.
69922         * lib/strstr.h: Likewise.
69923         * lib/xalloc.h: Likewise.
69924
69925         * lib/mbswidth.h: Add extern "C" for C++.
69926         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69927
69928 2004-07-13  Robert Millan  <robertmh@gnu.org>
69929
69930         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69931
69932 2004-07-09  Simon Josefsson  <jas@extundo.com>
69933
69934         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69935         failed without this.)
69936
69937 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * modules/chown (Files): Add lib/fchown-stub.c, since
69940         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69941
69942 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * lib/fchown-stub.c: New file.
69945
69946 2004-06-24  Jim Meyering  <jim@meyering.net>
69947
69948         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69949
69950 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69951
69952         * modules/argz: Omit "#include".
69953
69954         * MODULES.html.sh (func_all_modules): Add calloc, to match
69955         2004-06-01 addition of calloc module.
69956
69957 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * m4/argz.m4: New file, which is autoupdated from libtool.
69960
69961 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69962
69963         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69964         libtool.
69965
69966 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         * config/srclist-update: Don't insist on "USA." before the
69969         close-comment, as libtool omits the period and puts the */ on a
69970         separate line.
69971         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69972         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69973
69974 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69975
69976         * modules/argz: New file.
69977         * MODULES.html.sh (func_all_modules): Add argz.
69978
69979 2004-06-12  Jim Meyering  <jim@meyering.net>
69980         and  Paul Eggert  <eggert@cs.ucla.edu>
69981
69982         * modules/hash (Files): Add lib/xalloc.h.
69983         * modules/pipe (Depends-on): Add wait-process.
69984         * modules/stat (Depends-on): Add xalloc.
69985         * modules/userspec (Files): Add lib/userspec.h.
69986         * modules/xstrto
69987
69988         Upgrade from gettext-0.13.
69989         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69990         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69991         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69992
69993 2004-06-10  Jim Meyering  <jim@meyering.net>
69994
69995         * lib/calloc.c: New file.
69996
69997 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * lib/getdate.y (yylex): Allow space between sign and number.
70000         Problem reported by Dan Jacobson.
70001
70002 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         Merge from coreutils CVS.
70005
70006         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70007         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70008         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70009         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70010         xstrtol.m4: Fix copyright date and/or serial number.
70011
70012         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70013         See if we need an fchown replacement.
70014         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70015         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70016         and use the replacement function if we detect either defect.
70017
70018         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70019         gl_UTIMECMP.
70020
70021 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70022         and  Jim Meyering  <jim@meyering.net>
70023
70024         Merge from coreutils CVS.
70025
70026         * lib/stat-macros.h: New file, with contents from file-type.h
70027         and coreutils' system.h.
70028         * lib/file-type.c: Include "stat-macros.h".
70029         * lib/file-type.h (file_type): Move all macro definitions to new file,
70030         stat-macros.h.
70031
70032         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70033         Wrap old code with this conditional.
70034         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70035         function that does not dereference symlinks.
70036         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70037
70038         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70039         dependency problems.
70040         (xreadlink): Accept new arg SIZE, for efficiency.
70041         All decls and uses changed.
70042         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70043
70044         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70045         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70046
70047         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70048         sysexits.h.
70049
70050 2004-06-01  Jim Meyering  <jim@meyering.net>
70051
70052         * m4/calloc.m4: New file.
70053
70054 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70057         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70058         Also, fix a typo in a diagnostic.
70059
70060 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70063         or AC_FUNC_REALLOC.
70064
70065 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70068         macros to be defined.
70069         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70070         the allocator returns NULL because the requested size is zero.
70071
70072 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70075         var.  Add comment explaining why libc still defines it.  This
70076         merges the following patch from glibc:
70077         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70078
70079 2004-05-20  Andreas Schwab  <schwab@suse.de>
70080
70081         * m4/free.m4: Replace free if it not known to work, not the other
70082         way round.
70083
70084 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70085
70086         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70087         present in glibc since revision 1.1 of this file.
70088         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70089         obstack_alignment_mask, obstack_alloc, obstack_base,
70090         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70091         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70092         obstack_grow0, obstack_init, obstack_int_grow,
70093         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70094         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70095         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70096         nonexistent functions.
70097
70098 2004-05-18  Karl Berry  <karl@gnu.org>
70099
70100         * config/srclist.txt: break link for vasnprintf.c.
70101
70102 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         Port obstack to the AS/400, where pointers are 16 bytes wide and
70105         you cannot cast an integer to a valid pointer.  This patch is
70106         currently waiting to be integrated into glibc; see
70107         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70108
70109         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70110         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70111         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70112         (struct obstack): temp member is now a union of a pointer and
70113         an integer, instead of an integer.  All integer uses changed.
70114         This does not affect the physical layout of struct obstack,
70115         except on hosts (like the AS/400) where the size or alignment of
70116         void * is greater than that of ptrdiff_t.
70117         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70118         __STDC__)]: Store temporary in pointer member of union, not
70119         integer member.
70120         * lib/obstack.c: Include <stddef.h>, for offsetof.
70121         (struct fooalign): Remove; it doesn't need a name.
70122         (union fooround): Change double to long double, and add void *.
70123         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70124         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70125         not a macro.  Hence the values are always int; so remove all
70126         casts-to-int in uses.
70127
70128 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70131         we can get this patch merged into glibc.
70132
70133 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70134             Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * m4/argp: Depend on alloca.
70137
70138 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70139             Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70142         freecoding.
70143
70144 2004-05-17  Bruno Haible  <bruno@clisp.org>
70145
70146         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70147         precision that consists of a '.' followed by an empty digit string.
70148         Patch by Tor Lillqvist <tml@iki.fi>.
70149
70150 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70153         for backward compatibility with older code.  We need our own
70154         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70155         it under some other name, and our alloca.h will define it.
70156
70157 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70158             Derek Price  <derek@ximbiot.com>
70159
70160         * lib/alloca.c: Include <alloca.h>, to get our interface.
70161         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70162         include <alloca.h> first.  Use C89 prototype for alloca; this
70163         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70164         Use #elif for simplicity, since we can assume C89 now.
70165         Don't try to source the system alloca.h since it will not be found
70166         and to prevent recursively including its replacement.
70167         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70168         * lib/regex.c: Likewise.
70169
70170 2004-05-16  Derek Price  <derek@ximbiot.com>
70171             Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         getline cleanup.  This changes the getndelim2 API: both order of
70174         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70175         no delimiter).
70176
70177         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70178         interface does that.
70179         (getline): Always use getdelim, so that we don't have two
70180         copies of this code.
70181         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70182         if available.
70183         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70184         (GETNDELIM2_MAXIMUM): New macro.
70185         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70186         instead of the old practice of delim2==0.  All callers changed.
70187         Return -1 on overflow, instead of returning junk.
70188         Do not set *linesize unless allocation succeeds.
70189         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70190         that we include sys/types.h.
70191         * lib/getnline.h: Likewise.
70192         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70193         (getndelim2): Reorder arguments.
70194         * lib/getnline.c (getnline, getndelim):
70195         Don't discard the NMAX argument.
70196         (getnline): Invoke getndelim, to avoid code duplication.
70197         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70198         of (size_t) -1 by callers of the getnline family.
70199
70200 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70203         Check for gettimeofday.
70204         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70205         Check for settimeofday, stime.
70206
70207 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * lib/nanosleep.c (suspended): Change its type from int to
70210         sig_atomic_t volatile.
70211         (first_call): Make it private to rpl_nanosleep, and have it
70212         be zero initially as that's a bit faster.
70213         (my_usleep): Round up fractional times instead of truncating them,
70214         as this is the usual meaning for 'sleep'.
70215
70216         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70217         doesn't work.
70218         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70219         (ENOSYS): Define if not defined.
70220         (settime): Fall back on stime if it exists and settimeofday fails.
70221         But don't bother with fallbacks if a method fails with errno == EPERM.
70222
70223 2004-05-11  Jim Meyering  <jim@meyering.net>
70224
70225         Prior to this change, the save_cwd caller required read access to the
70226         current directory on most systems (ones with the fchdir function).
70227
70228         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70229         fails, try write-only, and finally, resort to using xgetcwd.
70230
70231 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * lib/obstack.c, obstack.h: Import changes from libc.
70234
70235 2004-04-28  Bruno Haible  <bruno@clisp.org>
70236
70237         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70238         also implicitly appends .exe to executables.
70239         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70240         accepts Windows pathnames.
70241         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70242         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70243         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70244         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70245         Reported by Derek Robert Price <derek@ximbiot.com>.
70246
70247 2004-04-21  Karl Berry  <karl@gnu.org>
70248
70249         * config/srclist.txt (localcharset.c): break sync.
70250
70251 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70252
70253         * m4/host-os.m4: Add a copyright notice.
70254
70255 2004-04-20  Jim Meyering  <jim@meyering.net>
70256
70257         Change UTILS_ to gl_ in AC_DEFINE'd names.
70258         Change utils_- and jm_-prefixed variables, too.
70259         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70260         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70261         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70262
70263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70264         Don't emit trailing blanks.
70265         Also rename jm_-prefixed variables to have gl_ prefix.
70266
70267         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70268         Also rename jm_-prefixed variables to have gl_ prefix.
70269
70270         * m4/jm-macros.m4: Reflect the renamings.
70271         * m4/prereq.m4: Likewise.
70272
70273 2004-04-20  Jim Meyering  <jim@meyering.net>
70274
70275         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70276         memory.
70277
70278 2004-04-20  Jim Meyering  <jim@meyering.net>
70279             Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70282         memory when realloc fails.
70283
70284 2004-04-19  Jim Meyering  <jim@meyering.net>
70285
70286         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70287         now that readutmp.c may call `free (0)'.
70288
70289 2004-04-19  Bruno Haible  <bruno@clisp.org>
70290
70291         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70292         * m4/inttypes_h.m4: Likewise.
70293         * m4/stdint_h.m4: Likewise.
70294         * m4/intmax_t.m4: Likewise.
70295         * m4/uintmax_t.m4: Likewise.
70296
70297 2004-04-18  Jim Meyering  <jim@meyering.net>
70298
70299         * m4/prereq.m4: Don't forbid jm_ prefix.
70300
70301         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70302         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70303         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70304         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70305         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70306         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70307         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70308         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70309         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70310         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70311         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70312         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70313         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70314         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70315         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70316         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70317         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70318         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70319         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70320
70321 2004-04-18  Jim Meyering  <jim@meyering.net>
70322
70323         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70324         failure, don't leak memory and do call END_UTMP_ENT.
70325
70326 2004-04-16  Jim Meyering  <jim@meyering.net>
70327
70328         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70329         coreutils' stat program.
70330         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70331
70332 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70333
70334         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70335         C89.
70336         (CHAR_BIT): Remove, since we assume C89.
70337         Include <stdint.h> if available, as per current Autoconf CVS advice.
70338
70339 2004-03-31  Jim Meyering  <jim@meyering.net>
70340
70341         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70342         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70343         * m4/xalloc.m4: Likewise.
70344
70345 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70346
70347         Merge from coreutils.
70348
70349         * m4/inttostr.m4: New file.
70350         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70351         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70352         Require gl_CLOCK_TIME.
70353         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70354
70355 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70356
70357         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70358         not bool, to be more consistent with Unix conventions.
70359         Suggested by Bruno Haible.
70360
70361         Merge from coreutils.
70362
70363         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70364         * lib/umaxtostr.c: New files.
70365
70366         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70367         the usual <time.h> dance.
70368         (get_date): Change signature to support fractional time stamps.
70369         All callers changed.
70370         * lib/getdate.y: Include "getdate.h" first, as we can now
70371         assume C89 and don't need to worry about 'const'.
70372         Similarly, include "unlocked-io.h" near start, not in middle.
70373         Include <limits.h>.
70374         (textint.value): Use long int rather than int.
70375         (textint.digits): Use size_t rather than int.
70376         (BILLION, LOG10_BILLION): New constants.
70377         (parser_control): New member rel_ns.  Members day_ordinal,
70378         time_zone, month, day, hour, minutes, rel_year, rel_month,
70379         rel_day, rel_hour, rel_minutes, rel_seconds
70380         are now long int, not int.  Member seconds is now struct timespec,
70381         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70382         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70383         not int.
70384         (%union.intval): Now long int, not int.
70385         New member timespec.
70386         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70387         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70388         (spec): Now is a timespec or an item list.
70389         (timespec, items): New nonterminals.
70390         (time, rel, relunit, number, get_date):
70391         Add support for fractional seconds.
70392         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70393         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70394         (to_hour): First arg is now long int, not int.
70395         (to_year): Returns long int, not int.
70396         Don't treat year -70 like 70.
70397         (tm_diff): Returns long int, not int.
70398         (lookup_word): Use bool instead of int when appropriate.
70399         (yylex): Use size_t for count, not int.
70400         Detect overflow when parsing large integer constants.
70401         Add support for fractions.
70402         (get_date): Make pointers 'const' if possible.
70403         Use more-portable code to detect integer overflow.
70404         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70405         Don't use ctime; it's not reliable if the year has >4 digits.
70406
70407         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70408         This is for compatibility with BSD.
70409
70410         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70411         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70412         From coreutils' system.h.
70413
70414         * lib/userspec.c: Don't include "posixver.h".
70415         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70416         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70417         compatible extension.  Simplify code by removing a boolean int
70418         that was always nonzero if a string was nonnull.
70419
70420 2004-03-30  Jim Meyering  <jim@meyering.net>
70421
70422         Merge from coreutils.
70423
70424         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70425         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70426         on some systems one must include <grp.h> before it.
70427         Reported by Christian Krackowizer.
70428
70429 2004-03-30  Jim Meyering  <jim@meyering.net>
70430
70431         Merge from coreutils.
70432
70433         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70434
70435         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70436         an empty input stream.
70437
70438         * lib/readtokens.c: Include <stdbool.h>.
70439         (readtoken): Use `size_t' rather than int/long.
70440         All callers adjusted.
70441         Use `bool' rather than `int' where appropriate.
70442         Use memset rather than an explicit loop.
70443         Use x2nrealloc rather than xrealloc.
70444         Allow the use of `\0' as a delimiter.
70445         (readtokens): Likewise.
70446         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70447
70448 2004-03-30  Jim Meyering  <jim@meyering.net>
70449
70450         * m4/realloc.m4: Remove file, since now it does no more than
70451         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70452         the `configure.ac' section of module/realloc.
70453         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70454
70455 2004-03-30  Bruno Haible  <bruno@clisp.org>
70456
70457         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70458         nonnull.
70459
70460 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70461
70462         Merge changes to getloadavg.c from coreutils and Emacs.
70463
70464         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70465         Define to an expression, not to the empty string.
70466         Include cloexec.h and xalloc.h.
70467         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70468         Use set_cloexec_flag rather than rolling our own.
70469         * lib/cloexec.c, lib/cloexec.h: New files.
70470
70471 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70472
70473         * m4/cloexec.m4: New file.
70474
70475 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70476
70477         * lib/getopt.h: Sync with libc CVS.
70478
70479 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70480             Bruno Haible  <bruno@clisp.org>
70481
70482         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70483         mbswidth.
70484
70485 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70486             Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/mbswidth.h: Include <wchar.h> only if
70489         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70490         <wchar.h>.
70491         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70492
70493 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70494
70495         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70496         Sync with libc CVS.
70497         * lib/getopt_int.h: New file, also synced from libc.
70498
70499 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70500
70501         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70502         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70503         Bring back getopt.c, getopt.h, getopt1.c.
70504
70505 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70506
70507         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70508         All uses changed.  Check for sa_sigaction member; this fixes
70509         a bug first reported by Jason Andrade in
70510         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70511
70512 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70513
70514         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70515         '#if' expressions.  Unlike the code it replaces, it does not
70516         depend on (defined _SC_PAGESIZE).  However, it does depend on
70517         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70518         first reported by Jason Andrade in
70519         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70520
70521 2004-02-25  Simon Josefsson  <jas@extundo.com>
70522
70523         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70524
70525 2004-02-25  Simon Josefsson  <jas@extundo.com>
70526
70527         * lib/strdup.h: New file.
70528         * lib/strdup.c: Include it.
70529         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70530         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70531
70532 2004-02-23  Karl Berry  <karl@gnu.org>
70533
70534         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70535         (from fencepost.gnu.org:/gd/gnuorg).
70536
70537 2004-02-23  Karl Berry  <karl@gnu.org>
70538
70539         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70540         * config/srclist.txt: add maintain/standards documents.
70541
70542 2004-02-18  Bruno Haible  <bruno@clisp.org>
70543
70544         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70545         Reported by Derek Robert Price <derek@ximbiot.com>.
70546
70547 2004-02-16  Karl Berry  <karl@gnu.org>
70548
70549         * config/mkinstalldirs, install-sh: update from automake.
70550
70551 2004-02-06  Karl Berry  <karl@gnu.org>
70552
70553         * m4/po.m4: update from gettext 0.14.1.
70554
70555 2004-02-06  Karl Berry  <karl@gnu.org>
70556
70557         * lib/config.charset: update from gettext 0.14.1.
70558
70559 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70560
70561         Add comments and code, prompted by suggestions from Bruno Haible
70562         for sh-quote.
70563         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70564         describing the enum quoting_style values.
70565         * lib/quotearg.c (quotearg_alloc): New function.
70566         (quotearg_buffer_restyled): Treat lone { and } as special.
70567         Treat = as special.  Work around bug with older shells
70568         that "see" a '\' that is really the 2nd byte of a multibyte char.
70569         Quote empty string with shell_quoting_style.
70570
70571 2004-02-03  Bruno Haible  <bruno@clisp.org>
70572
70573         * m4/pipe.m4: New file, from GNU gettext.
70574
70575 2004-02-03  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/pipe.h: New file, from GNU gettext.
70578         * lib/pipe.c: New file, from GNU gettext.
70579
70580 2004-01-27  Bruno Haible  <bruno@clisp.org>
70581
70582         * m4/execute.m4: New file, from GNU gettext.
70583
70584 2004-01-27  Bruno Haible  <bruno@clisp.org>
70585
70586         * lib/execute.h: New file, from GNU gettext.
70587         * lib/execute.c: New file, from GNU gettext.
70588         * lib/w32spawn.h: New file, from GNU gettext.
70589
70590 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70591
70592         Merge from diffutils.
70593
70594         * lib/file-type.c (file_type): Add typed memory objects.
70595         * lib/file-type.h (S_TYPEISTMO): New macro.
70596
70597         * lib/c-stack.h (c_stack_action): Remove argv argument.
70598         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70599         (die): Don't calculate message unless segv_action returns.
70600         (get_stack_location, min_address_from_argv, max_address_from_argv,
70601         volatile stack_base, volatile_stack_size): Remove.
70602         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70603         that every segmentation violation is a stack overflow.  (Ouch!)
70604         See Debian bug 136249 (still outstanding) for more info about why
70605         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70606
70607 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70608
70609         Exit-status fix from coreutils.
70610
70611         Use exit_failure consistently in place of EXIT_FAILURE,
70612         so that program exit statuses are consistent on failure.
70613
70614         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70615         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70616         * lib/argmatch.h: Comment fix to match the above.
70617         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70618         Now a macro referring to exit_failure, instead of a separate
70619         variable.  Include "exitfail.h" to get it.
70620         * lib/xstrtol.h: Include "exitfail.h".
70621         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70622
70623         * lib/long-options.c (parse_long_options): Use prototype
70624         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70625         for clarity.
70626
70627 2004-01-21  Jim Meyering  <jim@meyering.net>
70628
70629         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70630         so as not to conflict with a different-sized __mktime_internal
70631         function in GNU libc.
70632         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70633         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70634
70635 2004-01-20  Karl Berry  <karl@gnu.org>
70636
70637         * config/config.guess: update from config.
70638
70639         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70640
70641 2004-01-20  Bruno Haible  <bruno@clisp.org>
70642
70643         Safer stack allocation.
70644         * lib/setenv.c: Include allocsa.h.
70645         (alloca): Remove fallback definition.
70646         (freea): Remove macro.
70647         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70648         instead of freea.
70649
70650 2004-01-20  Bruno Haible  <bruno@clisp.org>
70651
70652         * m4/eealloc.m4: New file, from GNU gettext.
70653
70654 2004-01-20  Bruno Haible  <bruno@clisp.org>
70655
70656         * m4/allocsa.m4: New file, from GNU gettext.
70657
70658 2004-01-20  Bruno Haible  <bruno@clisp.org>
70659
70660         * lib/xallocsa.h: New file, from GNU gettext.
70661         * lib/xallocsa.c: New file, from GNU gettext.
70662
70663 2004-01-20  Bruno Haible  <bruno@clisp.org>
70664
70665         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70666
70667 2004-01-20  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70670         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70671         specially.
70672
70673 2004-01-20  Bruno Haible  <bruno@clisp.org>
70674
70675         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70676         patch.
70677
70678 2004-01-20  Bruno Haible  <bruno@clisp.org>
70679
70680         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70681
70682 2004-01-20  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/eealloc.h: New file.
70685
70686 2004-01-20  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/binary-io.h: Avoid warnings on Cygwin.
70689
70690 2004-01-20  Bruno Haible  <bruno@clisp.org>
70691
70692         * lib/allocsa.h: New file, from GNU gettext.
70693         * lib/allocsa.c: New file, from GNU gettext.
70694
70695 2004-01-18  Karl Berry  <karl@gnu.org>
70696
70697         * doc/gpl.texi, doc/lgpl.texi: new files.
70698
70699 2004-01-18  Karl Berry  <karl@gnu.org>
70700
70701         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70702         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70703
70704 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70705
70706         Merge from coreutils.
70707
70708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70709         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70710         (gl_DEFAULT_POSIX2_VERSION): Move
70711         the documentation from 'configure' into 'config.hin',
70712         so that 'configure --help' isn't burdened by it and
70713         we don't have to worry about its formatting there.
70714         Reword the documentation so that it's more succinct
70715         and can be run together into a single paragraph.
70716         * m4/same.m4 (gl_SAME): Check for pathconf.
70717
70718 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70719
70720         Merge from coreutils.
70721
70722         * lib/posixver.c: Include posixver.h.
70723
70724         * lib/same.c: Include <stdbool.h>, <limits.h>.
70725         (_POSIX_NAME_MAX): Define if not defined.
70726         (MIN): New macro.
70727         (same_name): If file names are silently truncated, report
70728         that the file names are the same if they are the same after
70729         the silent truncation.
70730
70731         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70732         conversion function.
70733         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70734         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70735         longer needed.
70736
70737 2004-01-15  Jim Meyering  <jim@meyering.net>
70738
70739         Merge from coreutils.
70740
70741         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70742         if no library is required.
70743         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70744         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70745         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70746         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70747         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70748         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70749         value, $ac_cv_search_crypt, if it's "none required".
70750         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70751         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70752         not gl_FUNC_GETLOADAVG.
70753         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70754         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70755
70756 2004-01-15  Jim Meyering  <jim@meyering.net>
70757
70758         Merge from coreutils.
70759
70760         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70761         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70762         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70763
70764         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70765         optional configure-time default.
70766
70767         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70768
70769         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70770
70771 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70772
70773         Merge from coreutils.
70774
70775         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70776         value, $ac_cv_search_nanosleep, if it's "none required".
70777
70778 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70779
70780         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70781         with like-named macro in fnmatch.c.
70782         (EXT): Use an internal constant instead.
70783
70784         Merge fnmatch patches from glibc.
70785         * lib/fnmatch.c (mbsinit): Remove define.
70786         Add libc_hidden_ver (__fnmatch, fnmatch).
70787         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70788         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70789
70790 2004-01-14  Karl Berry  <karl@gnu.org>
70791
70792         * config/install-sh: update from automake.
70793
70794 2004-01-13  Karl Berry  <karl@gnu.org>
70795
70796         * config/install-sh: update from automake.
70797
70798 2004-01-09  Karl Berry  <karl@gnu.org>
70799
70800         * config/install-sh: update from automake.
70801
70802 2004-01-05  Karl Berry  <karl@gnu.org>
70803
70804         * config/config.{sub,guess}: update from config.
70805
70806 2003-12-31  Karl Berry  <karl@gnu.org>
70807
70808         * config/depcomp: update from automake.
70809
70810 2003-12-14  Karl Berry  <karl@gnu.org>
70811
70812         * lib/config.charset: update from gettext-runtime.
70813
70814 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70815
70816         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70817         Bug reported by Alfred M. Szmidt.
70818
70819 2003-12-03  Bruno Haible  <bruno@clisp.org>
70820
70821         * m4/gettext.m4: Upgrade from gettext-0.13.
70822         * m4/po.m4: Upgrade from gettext-0.13.
70823         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70824         * m4/intmax.m4: New file, from gettext-0.13.
70825         * m4/printf-posix.m4: New file, from gettext-0.13.
70826
70827 2003-11-29  Karl Berry  <karl@gnu.org>
70828
70829         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70830
70831 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70832             Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/printf-parse.h: Don't include sys/types.h.
70835         (ARG_NONE): New macro.
70836         (char_directive): Change type of *arg_index fields to size_t.
70837         * lib/printf-parse.c: Don't include sys/types.h.
70838         (SSIZE_MAX): Remove macro.
70839         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70840         Remove unnecessary overflow check.
70841         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70842         fields.
70843
70844 2003-11-25  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70847
70848 2003-11-25  Bruno Haible  <bruno@clisp.org>
70849
70850         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70851         gt_TYPE_SSIZE_T.
70852
70853 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70854
70855         * modules/alloca: Remove dependency on xalloc.
70856
70857 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70858
70859         * lib/alloca.c: Remove dependency on xalloc module.
70860         (xalloc_die): Remove.
70861         (memory_full) [!defined emacs]: New macro.
70862         [!defined emacs]: Don't include xalloc.h.
70863         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70864         address arithmetic overflows.  Change datatypes a bit to avoid
70865         unnecessary casts.
70866
70867 2003-11-22  Jim Meyering  <jim@meyering.net>
70868
70869         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70870         s/size/size_t/.
70871
70872 2003-11-21  Karl Berry  <karl@gnu.org>
70873
70874         * config/config.{sub,guess}: update from config.
70875
70876 2003-11-18  Karl Berry  <karl@gnu.org>
70877
70878         * config/config.{sub,guess}: update from config.
70879
70880         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70881
70882 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70883
70884         * README: Mention that S+T cannot overflow if S is the size of
70885         an existing object and T is sufficiently small.
70886
70887 2003-11-17  Jim Meyering  <jim@meyering.net>
70888
70889         On systems without utime and without a utimes function capable of
70890         dealing with a NULL struct utimbuf* argument, this utime replacement
70891         could -- in unusual circumstances -- leak a file descriptor.
70892         * lib/utime.c: Include <unistd.h> and <errno.h>.
70893         (utime_null): Be sure to close `fd' and to preserve errno.
70894         Reported by Geoff Collyer via Arnold Robbins.
70895
70896 2003-11-17  Bruno Haible  <bruno@clisp.org>
70897
70898         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70899         (Depends-on): Add xsize.
70900
70901 2003-11-17  Bruno Haible  <bruno@clisp.org>
70902
70903         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70904
70905 2003-11-17  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/vasnprintf.c (alloca): Remove fallback definition.
70908         (freea): Remove definition.
70909         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70910         Reported by Paul Eggert.
70911
70912 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70913             Bruno Haible  <bruno@clisp.org>
70914
70915         Protect against address arithmetic overflow.
70916         * lib/printf-args.h: Include stddef.h.
70917         (arguments): Change type of field 'count' to size_t.
70918         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70919         'unsigned int' where appropriate.
70920         * lib/printf-parse.h: Include sys/types.h.
70921         (char_directive): Change type of *arg_index fields to ssize_t.
70922         (char_directives): Change type of fields 'count', max_*_length to
70923         size_t.
70924         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70925         (SSIZE_MAX): Define fallback value.
70926         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70927         instead of 'int' where appropriate. Check a_allocated, d_allocated
70928         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70929         * lib/vasnprintf.c: Include xsize.h.
70930         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70931         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70932         overflow. Avoid wraparound when converting a width or precision from
70933         decimal to binary.
70934
70935 2003-11-16  Bruno Haible  <bruno@clisp.org>
70936
70937         Update from GNU gettext.
70938         * lib/printf-parse.c: Generalize to it can be compiled for wide
70939         strings.
70940         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70941         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70942         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70943         SNPRINTF): New macros.
70944         Don't include <alloca.h> if the file is used inside libintl.
70945         (local_wcslen): New function, for Solaris 2.5.1.
70946         (VASNPRINTF): Use it instead of wcslen.
70947
70948 2003-11-16  Bruno Haible  <bruno@clisp.org>
70949
70950         * lib/xsize.h (xmax): New function.
70951         (xsum, xsum3, xsum4): Declare as "pure" functions.
70952
70953 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70954
70955         * modules/xalloc (Files): Undo latest change, since xalloc.h
70956         no longer needs SIZE_MAX or PTRDIFF_MAX.
70957
70958 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70959
70960         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70961         gl_PTRDIFF_MAX.
70962
70963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70964
70965         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70966         "return", to pacify some unknown compiler.  Problem reported
70967         by Joerg Schilling.
70968
70969 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70970
70971         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70972         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70973         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70974         heuristic is just as accurate as far as we know, and it removes a
70975         dependency on size_max.m4 and ptrdiff_max.m4.
70976
70977 2003-11-11  Bruno Haible  <bruno@clisp.org>
70978
70979         * modules/xsize (Files): Add m4/size_max.m4.
70980         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70981
70982 2003-11-11  Bruno Haible  <bruno@clisp.org>
70983
70984         * m4/size_max.m4: New file.
70985         * m4/ptrdiff_max.m4: New file.
70986         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70987         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70988         (gl_XALLOC): Invoke it.
70989
70990 2003-11-11  Bruno Haible  <bruno@clisp.org>
70991
70992         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70993         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70994         defined.
70995
70996 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70997
70998         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70999         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71000         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71001         From Bruno Haible.
71002         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71003         not (size_t) -1, since it's defined here.
71004
71005 2003-11-09  Karl Berry  <karl@gnu.org>
71006
71007         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71008
71009 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71010
71011         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71012         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71013         Reject sizes of exactly SIZE_MAX bytes.
71014         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71015         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71016
71017 2003-11-05  Bruno Haible  <bruno@clisp.org>
71018
71019         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71020         SIZE_MAX defined in <limits.h> on Solaris.
71021
71022 2003-11-04  Jim Meyering  <jim@meyering.net>
71023
71024         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71025         variable names, rather than @VAR@.
71026         * modules/poll: Likewise.
71027
71028 2003-11-04  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/xsize: New file.
71031         * modules/linebreak: Depend on xsize.
71032         * MODULES.html.sh (func_all_modules): Add xsize.
71033
71034 2003-11-04  Bruno Haible  <bruno@clisp.org>
71035
71036         * m4/xsize.m4: New file.
71037
71038 2003-11-04  Bruno Haible  <bruno@clisp.org>
71039
71040         * lib/xsize.h: New file.
71041         * lib/linebreak.c: Include xsize.h.
71042         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71043         argument for overflow.
71044         Suggested by Paul Eggert.
71045
71046 2003-11-03  Karl Berry  <karl@gnu.org>
71047
71048         * config/config.{guess,sub}: update from config.
71049
71050 2003-11-03  Jim Meyering  <jim@meyering.net>
71051
71052         * modules/userspec (lib_SOURCES): Add userspec.h.
71053         (Include): Add "userspec.h".
71054         Improve description.
71055
71056 2003-11-03  Jim Meyering  <jim@meyering.net>
71057
71058         * lib/userspec.c: Include "userspec.h".
71059         * lib/userspec.h: New file.
71060
71061 2003-11-03  Bruno Haible  <bruno@clisp.org>
71062
71063         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71064
71065 2003-11-03  Bruno Haible  <bruno@clisp.org>
71066
71067         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71068         available, to avoid (extremely rare) race condition.
71069         Suggested by Paul Eggert.
71070
71071 2003-11-02  Karl Berry  <karl@gnu.org>
71072
71073         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71074
71075 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71076
71077         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71078         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71079         (read_filesystem_list): Set and use me_type_malloced.
71080         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71081         whatever the type happens to be), for brevity and consistency.
71082         Check for size calculation overflow on Alphas running OSF/1.
71083
71084 2003-10-31  Jim Meyering  <jim@meyering.net>
71085
71086         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71087
71088         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71089
71090 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71091             Bruno Haible  <bruno@clisp.org>
71092
71093         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71094         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71095
71096 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71097
71098         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71099         netbsd*-gnu*.  Suggested by Robert Millan.
71100
71101 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71102
71103         * modules/group-member: Depend on stdbool.
71104
71105 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71106
71107         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71108
71109 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71110
71111         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71112         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71113         after the 'gnu' in these cases.  This fixes some bugs in the
71114         previous change, and is based on suggestions by Robert Millan.
71115
71116 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71117
71118         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71119         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71120         no longer needed.
71121         * lib/quotearg.c (quotearg_n_options): Use it.
71122         * lib/group-member.c: Include <stdbool.h>.
71123         (free_group_info): Arg is now const *; don't free arg.
71124         (get_group_info): Now returns bool and accepts struct group_info *,
71125         rather than returning a malloc'ed struct group_info *.
71126         All uses changed.  Check for overflow in internal size calculation.
71127
71128         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71129         rather than xmalloc/xrealloc.
71130         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71131         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71132         conformance bug: the old code used a pointer after freeing the
71133         storage that it addressed.
71134         * lib/hash.c (hash_initialize): Simplify the code by using
71135         xalloc_oversized rather than doing it by hand.
71136         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71137         the buffer preserved.  Use free and xmalloc instead.
71138         * lib/quotearg.c (quotearg_n_options): Likewise.
71139         Use a simpler test for size overflow.  Don't use xalloc_oversized
71140         because unsigned int might be wider than size_t (!); this suggests
71141         that we should switch from unsigned int to size_t for slot numbers.
71142
71143 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71144
71145         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71146         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71147         NetBSD kernels.  Requested by Richard Stallman.
71148
71149 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71150
71151         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71152         to allocate the returned structure.  Do not allocate a subarray,
71153         as x2nrealloc will do that.
71154         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71155         instead of xnrealloc.
71156         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71157
71158 2003-10-27  Bruno Haible  <bruno@clisp.org>
71159
71160         * lib/stdbool_.h: Better support for BeOS.
71161
71162 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71163
71164         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71165         now uses inline.
71166
71167 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71168
71169         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71170         callers that want to do their own size-overflow checking.  Include
71171         <stdbool.h>, since xalloc_oversized returns bool.
71172         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71173         to use xalloc_oversized.
71174
71175         Add two functions x2realloc, x2nrealloc, for programs that grow
71176         arrays dynamically by doubling their sizes.
71177         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71178         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71179         New functions.
71180
71181         Port to C99 semantics for 'inline' of external functions.
71182         Bug reported by Bruno Haible.
71183         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71184         with the old contents of xnmalloc.
71185         (xnmalloc, xmalloc): Use it.
71186         (xnrealloc_inline): New static inline function,
71187         with the old contents of xnrealloc.
71188         (xnrealloc, xrealloc): Use it.
71189
71190         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71191         that.
71192
71193 2003-10-26  Karl Berry  <karl@gnu.org>
71194
71195         * config/srclist.txt (COPYING.DOC): no longer available from
71196         /gd/gnuorg; don't know where the ultimate source is.
71197
71198 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71199
71200         Fix several address-calculation bugs in the hash modules,
71201         plus some minor code cleanup.
71202
71203         * lib/hash.h: Include <stdbool.h>, for bool.
71204         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71205         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71206         hash_get_n_entries, hash_get_max_bucket_length,
71207         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71208         hash_rehash): Use size_t rather than unsigned.
71209         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71210         hash_get_n_buckets_used, hash_get_n_entries,
71211         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71212         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71213         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71214         Likewise.
71215         (SIZE_MAX): Define if not defined.
71216         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71217         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71218         hash_print):
71219         Use const * when possible.
71220         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71221         (check_tuning): Fix bug: if tuning parameters were very close to
71222         0 or 1, rounding errors could have caused subscript violations.
71223         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71224         (hash_initialize): Add 'fail:' label
71225         to free table and return NULL, and use it to simplify code.
71226         Use calloc rather than clearing the storage ourself.
71227         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71228         buffer size calculations.
71229         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71230         Include <stddef.h>, for size_t.
71231         * lib/hash-pjw.c (hash_pjw): Likewise.
71232         Switch to method described by Bruno Haible.
71233         Include <limits.h>, for CHAR_BIT.
71234         (SIZE_BITS): New macro.
71235
71236 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71237
71238         * m4/getline.m4 (AM_FUNC_GETLINE):
71239         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71240         hosts.  Problem reported by Derek Robert Price in
71241         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71242         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71243         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71244
71245 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71246
71247         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71248         ceiling the allocation at NMAX bytes rather than silently
71249         discarding input bytes before NMAX is reached.  This makes
71250         a difference only if NMAX exceeds SIZE_MAX / 2.
71251
71252         * lib/obstack.c: Merge from glibc.
71253         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71254         Add libc_hidden_def (_obstack_newchunk).
71255         (_obstack_free) [! defined _LIBC]: Remove.
71256         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71257         a clone of the function body.
71258         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71259         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71260
71261         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71262         glibc.
71263         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71264         arg to memcpy.
71265
71266         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71267         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71268         Don't use lvalue casts, as GCC plans to remove support for them
71269         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71270         was also present in the non-GCC version, indicating that this
71271         code had always been buggy and had never been widely used.
71272         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71273         Use the fast variant of each macro, rather than copying the
71274         definiens of the fast variant; that way, we'll be more likely to
71275         catch future bugs in the fast variants.
71276
71277 2003-10-20  Bruno Haible  <bruno@clisp.org>
71278
71279         * modules/wait-process: New file.
71280         * MODULES.html.sh (func_all_modules): Add wait-process.
71281
71282 2003-10-20  Bruno Haible  <bruno@clisp.org>
71283
71284         * m4/wait-process.m4: New file.
71285
71286 2003-10-20  Bruno Haible  <bruno@clisp.org>
71287
71288         * lib/wait-process.h: New file, from GNU gettext.
71289         * lib/wait-process.c: New file, from GNU gettext.
71290
71291 2003-10-19  Jim Meyering  <jim@meyering.net>
71292
71293         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71294         HPUX 10.20.
71295
71296 2003-10-18  Karl Berry  <karl@gnu.org>
71297
71298         * config/config.guess: update from config.
71299
71300 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71301
71302         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71303         (getgroups): First arg is int, not size_t.
71304         Don't let 'free' mangle errno.
71305
71306 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71307
71308         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71309
71310 2003-10-16  Karl Berry  <karl@gnu.org>
71311
71312         * config/config.{guess,sub}: update from config.
71313
71314 2003-10-16  Jim Meyering  <jim@meyering.net>
71315
71316         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71317         memcpy.
71318
71319 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71320
71321         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71322         (SIZE_MAX): Remove.
71323         (new_exclude, add_exclude_file): Initial size no longer needs to
71324         be a power of 2.
71325         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71326         our own address arithmetic overflow checking.
71327
71328         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71329         (fnmatch): Do not alloca more than 2000 wide characters;
71330         instead, use malloc for large buffers.
71331         Check for address arithmetic overflow, and return -1
71332         with errno set to ENOMEM in that case.
71333         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71334         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71335         instead, return -1.  Check for address arithmetic overflow.
71336
71337 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71338
71339         Handle invalid suffixes and overflow independently, so that
71340         callers can treat them independently as needed.  Fix some bugs in
71341         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71342         suffix for a human-readable blocksize.  The major caller-visible
71343         change is the addition of a new
71344         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71345         that both overflow and suffix chars were found.
71346
71347         * lib/human.c (humblock): Don't check separately for invalid suffix
71348         char; that is xstrtoumax's job (now that its bug is fixed).
71349         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71350         INTMAX_MAX]: New macros.
71351         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71352         TYPE_MAXIMUM): New macros.
71353         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71354         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71355         if overflow occurs, as it's what __strtol does and it's more useful
71356         in practice.
71357         (__xstrtol): If __strtol reports some error other than ERANGE,
71358         reflect it to the caller as LONGINT_INVALID.  If it reports
71359         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71360         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71361         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71362         value.
71363         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71364         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71365         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71366         [defined UINTMAX_MAX]: New macros.
71367
71368 2003-10-14  Bruno Haible  <bruno@clisp.org>
71369
71370         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71371
71372 2003-10-14  Bruno Haible  <bruno@clisp.org>
71373
71374         * m4/sig_atomic_t: New file, from GNU gettext.
71375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71376
71377 2003-10-14  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71380         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71381         Also use volatile where needed.
71382
71383 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71384
71385         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71386         Change maintainer from Bruno Haible to 'all'.
71387
71388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71389
71390         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71391
71392 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71393
71394         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71395         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71396         and define in terms of the other primitives.
71397         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71398         (SIZE_MAX): Define if not already defined.
71399         (array_size_overflow): New function.
71400         (xalloc_die): Abort instead of exiting if 'error' returns.
71401         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71402         (xmalloc, xrealloc): Use them.
71403         (xcalloc): Check for address arithmetic overflow.
71404         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71405         a bit faster than strcpy.
71406
71407 2003-10-10  Simon Josefsson  <jas@extundo.com>
71408
71409         * modules/argp (Depends-on): Add restrict and strcase.
71410
71411 2003-10-10  Simon Josefsson  <jas@extundo.com>
71412
71413         * m4/argp.m4: Add AC_C_INLINE.
71414
71415 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71416
71417         Merge getpass from libc, plus a few fixes.
71418
71419         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71420         Include <stdbool.h>.
71421         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71422         __fsetlocking to empty.
71423         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71424         do include <bits/libc-lock.h>.
71425         Do not include <fcntl.h>; not needed.
71426         [_LIBC]: Include <wchar.h>.
71427         (NOTCANCEL_MODE): New macro.
71428         (flockfile, funlockfile) [_LIBC]: New macros.
71429         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71430         [!_LIBC]: New macros.
71431         (call_fclose): New function.
71432         (getpass): Use it.  Save tty stream separately; this simplifies the
71433         code and makes it more reliable if stdin happens to equal stdout.
71434         Invoke __fsetlocking on tty.
71435         Handle thread cancellation if needed.
71436         Namespace cleanup (use __tcgetattr, __getline).
71437         Use bool for Booleans.
71438         [USE_IN_LIBIO]: Handle wide streams.
71439         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71440         stream might go where.
71441
71442         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71443         doesn't have to include <stdio.h> before us.
71444         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71445         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71446         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71447         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71448         if not declared, so that we can use getpass.c code from libc without
71449         rewriting it.
71450         (flockfile, ftrylockfile, funlockfile): New macros.
71451
71452 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71453
71454         * modules/getpass: Depend on stdbool.
71455
71456 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71457
71458         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71459
71460 2003-10-07  Karl Berry  <karl@gnu.org>
71461
71462         * config/config.{guess,sub}: update from config.
71463
71464 2003-10-06  Jim Meyering  <jim@meyering.net>
71465             Bruno Haible  <bruno@clisp.org>
71466
71467         This lets translators provide better translations for the
71468         "Written by ..." part of --version output.
71469         * lib/version-etc.h: Include stdarg.h.
71470         (version_etc_copyright): Declare as readonly.
71471         (version_etc): Make this function variadic with a NULL-terminated list
71472         of author name strings.
71473         (version_etc_va): New declaration.
71474         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71475         (version_etc_copyright): Declare as readonly.
71476         (version_etc_va): New function. Provide a different translatable string
71477         for each possible number of authors < 10. Abbreviate when there are 10
71478         authors or more.
71479         (version_etc): Make this function variadic. Call version_etc_va.
71480         Suggestion from Gary V. Vaughan.
71481
71482         * lib/long-options.h (parse_long_options): Change prototype: the
71483         authors string is moved to the end and becomes variadic.
71484         * lib/long-options.c: Include stdarg.h.
71485         (parse_long_options): Make this function variadic, too.
71486         Call version_etc_va, not version_etc.
71487
71488 2003-10-06  Bruno Haible  <bruno@clisp.org>
71489
71490         * modules/version-etc-2: Remove file.
71491         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71492
71493 2003-10-06  Bruno Haible  <bruno@clisp.org>
71494
71495         * modules/fatal-signal: New file.
71496         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71497
71498 2003-10-06  Bruno Haible  <bruno@clisp.org>
71499
71500         * m4/fatal-signal.m4: New file.
71501         * m4/signalblocking.m4: New file, from GNU gettext.
71502
71503 2003-10-06  Bruno Haible  <bruno@clisp.org>
71504
71505         * lib/version-etc-2.h: Remove file.
71506         * lib/version-etc-2.c: Remove file.
71507
71508 2003-10-06  Bruno Haible  <bruno@clisp.org>
71509
71510         * lib/fatal-signal.h: New file, from GNU gettext.
71511         * lib/fatal-signal.c: New file, from GNU gettext.
71512
71513 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71514
71515         * README: Rework advice for preventing empty .o files.
71516         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71517         not <sys/types.h>.
71518
71519 2003-10-04  Karl Berry  <karl@gnu.org>
71520
71521         * lib/argp*: update from libc.
71522
71523 2003-10-04  Karl Berry  <karl@gnu.org>
71524
71525         * config/config.{guess,sub}: update from config.
71526
71527 2003-10-02  Bruno Haible  <bruno@clisp.org>
71528
71529         * modules/lchown (Include): Add lchown.h.
71530         * modules/time_r (Include): Use "..." syntax.
71531         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71532
71533 2003-10-01  Simon Josefsson  <jas@extundo.com>
71534
71535         * MODULES.html.sh (func_all_modules): Move gethostname from section
71536         'based on' to section 'lacking' POSIX:2001.
71537
71538 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71539
71540         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71541         to output mode on the same stream.
71542
71543 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71544
71545         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71546         Fix arg typo in previous patch.
71547
71548 2003-09-28  Jim Meyering  <jim@meyering.net>
71549
71550         * lib/error.c: Correct cpp indentation.
71551
71552 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71553
71554         * modules/free: New file.
71555
71556 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71557
71558         * m4/free.m4: New file.
71559
71560 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71561
71562         * lib/minmax.h (MIN, MAX)
71563         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71564         Omit the special code that used __typeof__, since we worry that
71565         it could be more trouble than it's worth.  See:
71566         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71567         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71568
71569         * lib/free.c: New file.
71570
71571 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71572
71573         Trivial fixes to Makefile.am parts of module listings.
71574         * modules/strstr: Append strstr.h to lib_SOURCES.
71575         * modules/strcase: Likewise, for strcase.h.
71576
71577 2003-09-27  Karl Berry  <karl@gnu.org>
71578
71579         * config/mkinstalldirs: update from automake.
71580
71581 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71582
71583         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71584         (error_tail): Do not loop, reallocating temporary buffer, since
71585         the output cannot contain more wide characters than the input
71586         contains bytes, the size must be big enough already.  This avoids
71587         one potential size overflow calculation.  Check for size overflow
71588         when calculating temporary buffer size.  Free temporary buffer
71589         when done, if it was allocated with malloc; this plugs a memory
71590         leak.  Remove casts from void * to pointers, that are no longer
71591         needed now that we're assuming C89 or better.
71592
71593         Merge error changes from glibc.
71594
71595         * lib/error.c, error.h: Update copyright notice header to match glibc.
71596         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71597         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71598         Disable cancellation while printing error.
71599         * lib/error.h: Prepend __ to parameter names.
71600
71601 2003-09-26  Jim Meyering  <jim@meyering.net>
71602
71603         * lib/error.c (error_tail): Move some declarations
71604         into inner scope where the local variables are used.
71605
71606 2003-09-26  Bruno Haible  <bruno@clisp.org>
71607
71608         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71609         stpncpy().
71610         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71611
71612 2003-09-26  Bruno Haible  <bruno@clisp.org>
71613
71614         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71615         (stpncpy): Define as alias for gnu_stpncpy.
71616         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71617
71618 2003-09-25  Simon Josefsson  <jas@extundo.com>
71619
71620         * lib/xgetdomainname.h: New file.
71621         * lib/xgetdomainname.c: New file.
71622
71623 2003-09-25  Simon Josefsson  <jas@extundo.com>
71624             Bruno Haible  <bruno@clisp.org>
71625
71626         * modules/getdomainname: New file.
71627         * modules/xgetdomainname: New file.
71628         * MODULES.html.sh (func_all_modules): Add getdomainname,
71629         xgetdomainname.
71630
71631 2003-09-25  Simon Josefsson  <jas@extundo.com>
71632             Bruno Haible  <bruno@clisp.org>
71633
71634         * m4/getdomainname.m4: New file.
71635
71636 2003-09-25  Simon Josefsson  <jas@extundo.com>
71637             Bruno Haible  <bruno@clisp.org>
71638
71639         * lib/getdomainname.h: New file.
71640         * lib/getdomainname.c: New file.
71641
71642 2003-09-25  Karl Berry  <karl@gnu.org>
71643
71644         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71645
71646 2003-09-25  Karl Berry  <karl@gnu.org>
71647
71648         * config/install-sh: update from automake.
71649
71650 2003-09-25  Bruno Haible  <bruno@clisp.org>
71651
71652         * modules/version-etc-2: New file, from modules/version-etc with
71653         modifications.
71654         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71655
71656 2003-09-25  Bruno Haible  <bruno@clisp.org>
71657
71658         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71659         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71660
71661 2003-09-24  Simon Josefsson  <jas@extundo.com>
71662
71663         * modules/xgethostname: Add xgethostname.h.
71664
71665 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71666
71667         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71668         the buffer associated with the argument.  Bug reported by
71669         Simon Josefsson.
71670
71671 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71672
71673         * README: Document assumptions that 'int' is at least 32 bits
71674         wide, that integer arithmetic is 2's complement without overflow,
71675         that there are no holes in integer values, that adding sizes of
71676         two nonoverlapping objects can't overflow, and that all-bits-zero
71677         yields scalar zero.  Fix spelling and capitalization typos.
71678
71679 2003-09-19  Karl Berry  <karl@gnu.org>
71680
71681         * lib/argp.h: update from libc.
71682
71683 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71684
71685         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71686         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71687         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71688
71689 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71690
71691         * gnulib-tool: Use "test -h", not "test -L", for portability
71692         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71693         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71694         (sed_extract_prog): Issue s commands one-by-one, rather than
71695         using \| in one s command.
71696
71697 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71698
71699         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71700         input error, instead of returning NULL the next time we are called
71701         (and therefore losing track of errno).
71702
71703 2003-09-16  Bruno Haible  <bruno@clisp.org>
71704
71705         * gnulib-tool (func_create_testdir): Warn about duplicated
71706         dependencies.
71707
71708 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71709
71710         * modules/argmatch, modules/fatal, modules/obstack,
71711         modules/xalloc, modules/xgethostname: Sort dependencies by
71712         importance, not alphabetically.
71713
71714 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71715
71716         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71717         fails, so that the caller gets the proper errno.
71718
71719         * lib/readutmp.c (read_utmp): Likewise.
71720         Check for fstat error.  Close stream and free storage
71721         when failing.
71722
71723 2003-09-14  Karl Berry  <karl@gnu.org>
71724
71725         * config/srclist.txt (strdup.c): disable for c89 changes.
71726
71727 2003-09-14  Jim Meyering  <jim@meyering.net>
71728
71729         * lib/getloadavg.c: Correct cpp indentation.
71730         * lib/strdup.c: Likewise.
71731         * lib/vasnprintf.c: Likewise.
71732
71733 2003-09-14  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/fwriteerror: New file.
71736         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71737
71738 2003-09-14  Bruno Haible  <bruno@clisp.org>
71739
71740         * lib/fwriteerror.h: New file.
71741         * lib/fwriteerror.c: New file.
71742
71743 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71744
71745         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71746         modules/xgethostname, modules/xalloc: Depend on exit.
71747
71748 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71749
71750         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71751
71752         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71753         and AC_MINIX, too, so that their extensions are available.
71754
71755         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71756         This macro has been superseded by gl_BACKUPFILE.
71757
71758         More patches to assume C89 or better.
71759
71760         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71761
71762         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71763         unconditionally.
71764         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71765         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71766         Include <string.h>, <stdlib.h> unconditionally.
71767         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71768         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71769         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71770         headers or for string.h.
71771         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71772         or strtoul.
71773
71774         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71775         headers.
71776         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71777         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71778         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71779         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71780         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71782         memcpy, memset.
71783         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71784         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71785         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71786         strtol.
71787         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71788         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71789         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71790         strtoul.
71791
71792 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71793
71794         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71795         * lib/obstack.c [!defined _LIBC]: Likewise.
71796         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71797         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71798         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71799
71800         More changes to assume C89 or better.
71801
71802         * lib/error.c (error_tail): Assume vprintf.
71803
71804         * lib/argmatch.c (getenv): Remove decl.
71805         * lib/progreloc.c (get_full_program_name): Define via prototype.
71806         * lib/setenv.c (clearenv): Likewise.
71807         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71808         needed.
71809         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71810         (malloc, memcpy): Remove decls.
71811         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71812         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71813         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71814         (memcpy): Remove macro.
71815         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71816         (__P): Remove.  All uses removed.
71817         (PTR): Remove.  All uses changed to void *.
71818         (CHAR_BIT, NULL): Remove.
71819         (spaces, zeros, memset_space, memset_zero)
71820         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71821         Remove.
71822         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71823         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71824         Define with prototype.
71825         Remove now-unnecessary prototype decl.
71826         (extra_args_spec): Assume ANSI C.  All uses changed.
71827         (extra_args_spec_iso): Remove.
71828         (my_strftime, emacs_strftimeu): Define via prototype.
71829         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71830         unconditionally.
71831         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71832         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71833         (strtoul, strtol): Remove decls.
71834         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71835         LONG_MAX): Remove.
71836         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71837         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71838         (LOCALE_PARAM_PROTO): New macro.
71839         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71840         (INTERNAL (strtol), strtol): Define with a prototype.
71841         (PARAMS): Remove.  All uses removed.
71842         * lib/tempname.c: Include <string.h> unconditionally.
71843         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71844         * lib/xgethostname.c (main): Define with a prototype.
71845         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71846         Include <stdlib.h> unconditionally.
71847         (calloc, malloc, realloc, free): Remove decls.
71848         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71849         Include <stdlib.h> unconditionally.  Sort include file names.
71850         (strtod): Remove.
71851         (xstrtod): Define with a prototype.
71852         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71853         (strtol, strtoul): Remove decls.
71854
71855 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71856
71857         More patches to assume C89 or better.
71858         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71859         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71860         string.h, memchr, STDC_HEADERS.
71861
71862 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71863
71864         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71865         Include <stdlib.h>, <string.h> unconditionally.
71866         Remove now-unnecessary cast to char *.
71867         * lib/strnlen.c: Include <string.h> unconditionally.
71868         * lib/yesno.c (yesno): Define with a prototype.
71869
71870 2003-09-11  Bruno Haible  <bruno@clisp.org>
71871
71872         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71873
71874 2003-09-10  Jim Meyering  <jim@meyering.net>
71875
71876         * lib/error.c: Correct indentation of cpp directives.
71877
71878 2003-09-10  Bruno Haible  <bruno@clisp.org>
71879
71880         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71881         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71882         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71883         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71884         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71885         <stdlib.h> and <string.h> checks.
71886         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71887         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71888
71889 2003-09-10  Bruno Haible  <bruno@clisp.org>
71890
71891         * lib/strcspn.c: Include <string.h> unconditionally.
71892         * lib/strpbrk.c: Include <string.h> unconditionally.
71893         * lib/strstr.c: Include <string.h> unconditionally.
71894         * lib/unicodeio.c: Include <string.h> unconditionally.
71895         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71896         * lib/unsetenv.c: Likewise.
71897         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71898         * lib/yesno.c: Include <stdlib.h> unconditionally.
71899         (rpmatch): Add prototype.
71900
71901 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71902
71903         More patches to assume C89 or better.
71904         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71905         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71906         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71907         or for string.h.
71908         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71909         stdlib.h.
71910         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71911         C headers.
71912         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71913         string.h.
71914         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71915         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71916         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71917         or for string.h.
71918         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71919         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71920         C headers.
71921         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71922         memcpy.
71923         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71924         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71925         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71926         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71927         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71928         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71929         string.h, free.
71930         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71931         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71932         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71933         C headers, or for string.h.
71934         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71935         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71936         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71937         headers, memory.h, stdlib.h, string.h, strings.h.
71938         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71939         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71940         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71941         strchr.
71942         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71943         headers, memory.h, string.h.
71944         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71945         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71946         free.
71947         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71948         headers.
71949         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71950         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71951         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71952         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71953         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71954
71955 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71956
71957         More K&R removal.
71958
71959         * lib/acosl.c (main): Use a prototype.
71960         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71961         tanl.c: Likewise.
71962
71963         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71964
71965         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71966         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71967         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71968         with a prototype.
71969         * lib/getopt.c (const): Remove macro.
71970         Include <string.h> unconditionally.
71971         (my_index): Remove; all uses changed to strchr.
71972         (strlen): Remove decl.
71973         (exchange): Remove forward decl; no longer needed.
71974         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71975         Define with prototype.
71976         * lib/getopt1.c (const): Remove macro.
71977         (getopt_long, getopt_long_only, main): Define with prototype.
71978
71979         * lib/getugroups.c: Include <string.h> unconditionally.
71980
71981         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71982         (getusershell, setusershell, endusershell, readname, main):
71983         Define with prototypes.
71984
71985         * lib/group-member.c: Include group-member.h first.
71986         Include <stdlib.h> unconditionally.
71987
71988         * lib/hard-locale.c: Include hard-locale.h first.
71989         Include <stdlib.h>, <string.h> unconditionally.
71990
71991         * lib/hash.c (free, malloc): Remove decls.
71992         Include <stdlib.h> unconditionally.
71993
71994         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71995         (getenv): Do not declare.
71996
71997         * lib/idcache.c: Include <string.h> unconditionally.
71998
71999         * lib/long-options.c: Include long-options.h first, to test interface.
72000         Include <stdlib.h> unconditionally.
72001
72002         * lib/makepath.c: Include makepath.h first, to test interface.
72003         Include <stdlib.h> and <string.h> unconditionally.
72004
72005         * lib/linebuffer.c: Include <stdlib.h>.
72006         (free): Remove decl.
72007
72008         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72009         stddef.h. rpl_malloc returns void *, not char *.
72010         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72011         prototype.
72012
72013         * lib/md5.h: Include <limits.h> unconditionally.
72014         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72015         (__P): Remove; all uses removed.
72016         * lib/md5.c: Include "md5.h" first.
72017         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72018         md5_buffer, md5_process_bytes, md5_process_block):
72019         Define with prototypes.
72020         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72021         * lib/sha.c: Include "sha.h" first.
72022         Include <stdlib.h>, <string.h> unconditionally.
72023
72024         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72025         * lib/memcmp.c (__ptr_t): Likewise.
72026         * lib/memrchr.c (__ptr_t): Likewise.
72027         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72028         Include <string.h> unconditionally.
72029         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72030         * lib/memchr.c: Include <stdlib.h> unconditionally.
72031         * lib/memchr.c (LONG_MAX): Remove.
72032         * lib/memrchr.c (LONG_MAX): Likewise.
72033         * lib/memchr.c (__memchr): Define via a prototype.
72034         * lib/memrchr.c (__memrchr): Likewise.
72035         * lib/memcmp.c (__P): Remove, and remove all uses.
72036         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72037         Remove forward decls; no longer needed.
72038         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72039         Use types required by C89 in prototype.
72040
72041         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72042         * lib/savedir.c: Likewise.
72043         * lib/mkdir.c (free): Remove decl.
72044         * lib/rmdir.c (rmdir): Define with a prototype.
72045         * lib/savedir.c: Include savedir.h first, to test interface.
72046
72047         * lib/mktime.c (STDC_HEADERS): Remove.
72048         Include <stdlib.h>, <string.h> unconditionally.
72049
72050         * lib/modechange.c: Include <stdlib.h> unconditionally.
72051         (malloc): Remove decl.
72052
72053         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72054         (free): Remove decl.
72055
72056         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72057         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72058         (This type really should be intptr_t, but that's a C99ism.)
72059         (_obstack_memcpy): Remove: all uses changed to memcpy.
72060         Include <string.h> unconditionally.
72061         (struct obstack): Assume __STDC__ for types of members
72062         chunkfun, freefun, extra_arg.
72063         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72064         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72065         obstack_begin, obstack_specify_allocation,
72066         obstack_specify_allocation_with_arg, obstack_chunkfun,
72067         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72068         Remove unprototyped decls and the macros that use them.
72069         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72070         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72071         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72072         (defined __STDC__ && __STDC__)]:
72073         Remove nonprototyped code.
72074         Include <stdlib.h> unconditionally.
72075         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72076         _obstack_allocated_p, _obstack_free, obstack_free,
72077         _obstack_memory_used, print_and_abort):
72078         Define using prototypes.
72079         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72080         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72081         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72082         obstack_next_free, obstack_object_size, obstack_room) [0]:
72083         Remove unused, unprototyped code.
72084
72085         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72086
72087         * lib/physmem.c (physmem_total, physmem_available, main): Define
72088         with prototypes.
72089
72090         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72091         (main): Define with a prototype.
72092
72093         * lib/posixver.c (getenv): Remove decl.
72094
72095         * lib/putenv.c (malloc): Returns void *, not char *.
72096         Include <string.h> unconditionally.
72097         (strchr, memcpy, NULL): Do not define.
72098
72099         * lib/readtokens.c: Include readtokens.h first, to test interface.
72100         Include <stdlib.h>, <string.h> unconditionally.
72101         (init_tokenbuffer): Define with a prototype.
72102
72103         * lib/regex.c (PARAMS): Remove.  All uses removed.
72104         All uses of _RE_ARGS removed, too.
72105         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72106         unconditionally.
72107         (bzero): Assume memset exists.
72108         (memcmp, memcpy, NULL): Remove.
72109         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72110         char, or assignments to local vars of type signed char.
72111         (init_syntax_once, PREFIX(extract_number_and_incr),
72112         PREFIX(print_partial_compiled_pattern),
72113         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72114         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72115         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72116         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72117         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72118         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72119         wcs_compile_range, byte_compile_range, truncate_wchar,
72120         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72121         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72122         count_mbs_length, wcs_re_match_2_internal,
72123         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72124         PREFIX(alt_match_null_string_p),
72125         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72126         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72127         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72128         now-unnecessary declaration, if any.
72129         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72130         regcomp, regexec):
72131         Remove now-unnecessary casts among pointer types.
72132         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72133
72134         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72135         (free): Remove decl.
72136
72137         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72138
72139         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72140         (free): Remove decl.
72141
72142         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72143         * lib/xgetcwd.c: Likewise.
72144
72145         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72146         (free): Remove decl.
72147
72148         * lib/strchrnul.c (strchrnul): Define with a prototype.
72149         Fix bug: c_in was not converted to char before searching.
72150
72151         The following changes are not K&R related:
72152
72153         * lib/group-member.h: Include <sys/types.h>, so that this file is
72154         self-contained.
72155         * lib/makepath.h: Likewise.
72156
72157         * lib/getusershell.c (readname, default_index, line_size, readname):
72158         Use size_t, not int, for sizes.
72159         (readname): If the size overflows, report an error instead of
72160         looping forever.
72161
72162 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72163
72164         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72165         libc.
72166
72167 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72168
72169         * README: New section: portability guidelines.
72170
72171 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72172
72173         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72174         C89 spec.
72175
72176 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72177
72178         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72179
72180 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72181
72182         Assume C89 or better; remove K&R cruft.
72183         A few of these changes were first proposed by Derek Robert Price
72184         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72185
72186         * lib/addext.c: Include <string.h> unconditionally.
72187         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72188         Don't declare getenv or malloc.
72189
72190         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72191         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72192         (NULL): Remove.
72193         (find_stack_direction, alloca): Use prototypes.
72194
72195         * lib/atexit.c (atexit): Define using a prototype.
72196
72197         * lib/basename.c, dirname.c, stripslash.c:
72198         Include <string.h> unconditionally.
72199
72200         * lib/bcopy.c: Include <stddef.h>.
72201         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72202
72203         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72204
72205         * lib/error.h (error, error_at_line, error_print_progname)
72206         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72207         * lib/error.c: Include error.h first, to check interface.
72208         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72209         (VA_START): Remove; all uses changeed to va_start.
72210         (exit, strerror): Remove decls.
72211         (error_print_progname): Prototype uncondionally.
72212         Don't include <errno.h>; no longer needed.
72213         (private_strerror): Remove.
72214         (error_tail): Always define.
72215         (error, error_at_line): Assume C89 or better; always use prototypes.
72216         * lib/fatal.c: Include "fatal.h" first, to test interface.
72217         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72218         (VA_START): Remove; all uses changed to va_start.
72219         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72220         this case.
72221         (exit): Remove decl.
72222         (fatal): Prototype unconditionally.  Assume va_start works.
72223         Abort at end, to pacify gcc.
72224
72225         * lib/euidaccess.c (main): Define with a prototype.
72226
72227         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72228
72229         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72230
72231         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72232         prototypes.
72233         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72234         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72235         (getenv): Remove decl.
72236         (fnmatch): Define using a prototype.
72237         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72238         (FCT): Define using a prototype.
72239
72240         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72241
72242         * lib/gethostname.c: Include <stddef.h>.
72243         (gethostname): Define with prototype.  Length is size_t, not int.
72244
72245 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72246
72247         Assume C89 or better; remove K&R cruft.
72248         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72249         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72250         string.h, getenv, malloc.
72251         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72252         headers.
72253         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72254         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72255         do not check for strerror.
72256         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72257         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72258         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72259         do not check for doprnt or vprintf.
72260         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72261         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72262
72263 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72264
72265         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72266         getversion.c should have been removed then, but was accidentally
72267         preserved.
72268
72269         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72270         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72271
72272 2003-09-08  Karl Berry  <karl@gnu.org>
72273
72274         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72275                 config, forget about prep.
72276
72277         * config/depcomp, missing: update from automake.
72278
72279 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72280
72281         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72282         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72283
72284 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72285
72286         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72287         copy_tm_result.  Bug reported by Simon Josefsson in
72288         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72289
72290 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72291
72292         * m4/time_r.m4: New file.
72293         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72294         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72295         is. Check for timegm declaration.
72296         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72297         Do not check for gmtime_r.
72298         Replace mktime if __mktime_internal does not exist and if mktime
72299         hasn't been replaced already.
72300
72301 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72302
72303         * lib/time_r.c, lib/time_r.h: New files.
72304
72305         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72306         __localtime_r.
72307         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72308         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72309
72310         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72311         __gmtime_r.
72312         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72313         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72314         Include <time_r.h>.
72315
72316         * lib/timegm.c: Switch to glibc implementation, with the following
72317         changes:
72318         [defined HAVE_CONFIG_H]: Include <config.h>.
72319         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72320         (__mktime_internal) [!defined _LIBC]: New decl.
72321         (__gmtime_r) [!defined _LIBC]: New macro and function.
72322         (timegm): Use a prototype, since gnulib assumes C89.
72323         Do not bother declaring tmp to be const, as it's not really usefu.
72324         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72325         (timegm): Declare only if HAVE_DECL_TIMEGM.
72326
72327 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72328
72329         * MODULES.html.sh (func_all_modules): Add time_r.
72330         * modules/time_r: New file.
72331         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72332         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72333
72334 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72335
72336         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72337         Bug reported by Lute Kamstra in
72338         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72339
72340         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72341         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72342         course with correspondingly smaller numbers for tomorrow and
72343         yesterday.  From Tadayoshi Funaba.  Originally installed into
72344         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72345         coreutils merge?).
72346
72347 2003-08-31  Simon Josefsson  <jas@extundo.com>
72348
72349         * modules/timegm: New file.
72350         * MODULES.html.sh (func_all_modules): Add timegm.
72351
72352 2003-08-31  Simon Josefsson  <jas@extundo.com>
72353
72354         * m4/timegm.m4: New file.
72355
72356 2003-08-31  Simon Josefsson  <jas@extundo.com>
72357
72358         * lib/timegm.h: New file.
72359         * lib/timegm.c: New file.  Based on
72360         wget-1.8.2/src/http.c:mktime_from_utc.
72361
72362 2003-08-31  Karl Berry  <karl@gnu.org>
72363
72364         * lib/argp.h: update from libc.
72365
72366 2003-08-28  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72369         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72370         followed by '#define fnmatch fnmatch_posix' gives an error.
72371
72372 2003-08-28  Bruno Haible  <bruno@clisp.org>
72373
72374         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72375         warning on QNX, which defines O_BINARY to 000000.
72376
72377 2003-08-27  Jim Meyering  <jim@meyering.net>
72378
72379         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72380         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72381         would fail after 32.  Reported by Danny Levinson.  Details here:
72382         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72383
72384 2003-08-24  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72387         MSVC7 <stdio.h> is included later.
72388
72389 2003-08-22  Simon Josefsson  <jas@extundo.com>
72390
72391         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72392
72393 2003-08-20  Karl Berry  <karl@gnu.org>
72394
72395         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72396
72397 2003-08-20  Bruno Haible  <bruno@clisp.org>
72398
72399         * modules/progname: New file.
72400         * MODULES.html.sh (func_all_modules): Add progname.
72401
72402 2003-08-20  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/progname.h: New file, from GNU gettext.
72405         * lib/progname.c: New file, from GNU gettext.
72406         * lib/progreloc.c: New file, from GNU gettext.
72407
72408 2003-08-19  Jim Meyering  <jim@meyering.net>
72409
72410         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72411         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72412
72413 2003-08-19  Bruno Haible  <bruno@clisp.org>
72414
72415         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72416         more.
72417
72418 2003-08-19  Bruno Haible  <bruno@clisp.org>
72419
72420         * lib/xstrdup.c: Assume <string.h> exists.
72421
72422 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72423
72424         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72425         in makefile rules.
72426
72427 2003-08-18  Jim Meyering  <jim@meyering.net>
72428
72429         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72430         * m4/lib-ld.m4: Likewise.
72431
72432 2003-08-18  Jim Meyering  <jim@meyering.net>
72433
72434         * lib/setenv.h: Indent nested cpp directive.
72435         * lib/vasnprintf.c: Remove trailing blanks.
72436
72437 2003-08-17  Simon Josefsson  <jas@extundo.com>
72438
72439         * modules/xstrndup: New file.
72440         * MODULES.html.sh (func_all_modules): Add xstrndup.
72441
72442 2003-08-17  Simon Josefsson  <jas@extundo.com>
72443
72444         * modules/argp: Fix autoconf macro name. Add more dependencies.
72445
72446 2003-08-17  Simon Josefsson  <jas@extundo.com>
72447
72448         * m4/xstrndup.m4: New file.
72449
72450 2003-08-17  Simon Josefsson  <jas@extundo.com>
72451
72452         * m4/argp.m4: New file.
72453
72454 2003-08-17  Simon Josefsson  <jas@extundo.com>
72455             Bruno Haible  <bruno@clisp.org>
72456
72457         * lib/xstrndup.h: New file.
72458         * lib/xstrndup.c: New file.
72459
72460 2003-08-17  Bruno Haible  <bruno@clisp.org>
72461
72462         * modules/strndup (Files, Include): Add lib/strndup.h.
72463
72464 2003-08-17  Bruno Haible  <bruno@clisp.org>
72465
72466         * modules/euidaccess (Files): Add lib/euidaccess.h.
72467
72468 2003-08-17  Bruno Haible  <bruno@clisp.org>
72469
72470         * lib/strndup.h: New file.
72471
72472 2003-08-17  Bruno Haible  <bruno@clisp.org>
72473
72474         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72475         like AC_GNU_SOURCE.
72476         * modules/extensions (configure.ac): Comment out the invocation of
72477         gl_USE_SYSTEM_EXTENSIONS.
72478
72479 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72480
72481         Merges from coreutils, etc.
72482         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72483         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72484         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72485         fixing a typo.
72486         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72487         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72488
72489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72490
72491         Document merge from coreutils.
72492         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72493         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72494         * modules/utime: Add m4/utimes-null.m4.
72495
72496 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72497
72498         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72499         space, undoing this 2003-08-12 change:
72500         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72501
72502 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72503
72504         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72505         strtoul.c from libc, undoing this 2003-08-12 change:
72506         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72507
72508 2003-08-16  Jim Meyering  <jim@meyering.net>
72509
72510         Merges from coreutils.
72511         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72512         prefix.  Adjust cache variables similarly.  Create 500 rather than
72513         just 300 files, to exercise bug on Darwin6.5, too.
72514         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72515         $missing_dir.
72516         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72517         AM_SYS_POSIX_TERMIOS.
72518         Reported by mkc@mathdogs.com.
72519         Also change use of $am_cv_sys_posix_termios
72520         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72521         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72522         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72523         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72524         in /proc/mounts until it finds one with matching device number.  This
72525         is unnecessary when the FILE argument *is* a mount point.  No stat call
72526         is necessary in that case.  So, disable the statvfs-testing code on
72527         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72528         as RedHat bug# 84846.
72529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72530         to 1MB, so as not to render systems with no stack size limit (e.g.,
72531         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72532         Include <unistd.h>.  On some systems,
72533         it is required for the definition of _SC_PAGESIZE.
72534
72535 2003-08-16  Jim Meyering  <jim@meyering.net>
72536
72537         Merge from coreutils.
72538         * lib/xstrtoimax.c: #else #if -> #elif.
72539         * lib/xstrtoumax.c: Likewise.
72540
72541 2003-08-16  Jim Meyering  <jim@meyering.net>
72542
72543         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72544         * m4/utimes.m4: Removed.
72545         * m4/utimes-null.m4: Renamed from utimes.m4.
72546
72547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72548         to 1MB, so as not to render systems with no stack size limit (e.g.,
72549         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72550         Include <unistd.h>.  On some systems,
72551         it is required for the definition of _SC_PAGESIZE.
72552
72553 2003-08-16  Jim Meyering  <jim@meyering.net>
72554         and Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         Merges from coreutils, etc.
72557
72558         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72559         using the latest version from cvs.  This avoids problems with #line
72560         directives using a vendor (Sun) compiler.
72561         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72562         Don't set GETGROUPS_LIB here; now it's
72563         done via getgroups.m4's wrapper function.
72564         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72565         rather than just in sh-util/configure.in, so that the
72566         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72567         same.
72568         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72569         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72570         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72571         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72572         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72573         Remove code that is now done by the newly-required macros.
72574         Append $(EXEEXT) to DF_PROG.
72575         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72576         Do not invoke or require the following here,
72577         since prereq.m4 or some gnulib .m4 now does this for us:
72578         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72579         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72580         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72581         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72582         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72583         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72584         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72585         AC_FUNC_OBSTACK.
72586         Do not replace the following functions, as this is now the job
72587         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72588         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72589         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72590         atexit getpass, strdup, getpagesize.
72591         Replace 'raise'.
72592         Do not check for the following functions, as this is now the job
72593         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72594         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72595         setregid.
72596         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72597         Check for sys/sysctl.h.
72598         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72599         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72600         of checking for ssize_t ourselves.
72601
72602         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72603         Require every macro that gnulib/modules/* suggests for us.
72604         (jm_PREREQ_ADDEXT): New macro.
72605         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72606         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72607
72608         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72609         (gl_PHYSMEM): Use it.
72610         Also check for `table' function.
72611         Check for new headers and functions.
72612         Add check for sys/sysmp.h.
72613         With suggestions from Kaveh Ghazi.
72614         Ignore headers that are present but cannot be compiled.  This
72615         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72616         C 5.4.
72617
72618 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72619
72620         Document merge from coreutils.
72621         * modules/userspec: Depend on posixver.
72622         * modules/strftime: Depend on tzset.
72623
72624 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72625
72626         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72627         rather than tab, after '#' in shell-script copyright notices.
72628         Suggested by Bruno Haible.
72629
72630 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72631
72632         * config/srclist-update: Use three spaces, rather than tab, after '#'
72633         in shell-script copyright notices.  Suggested by Bruno Haible.
72634         Remove unnecessary parenthesization in regular expression.
72635
72636 2003-08-15  Jim Meyering  <jim@meyering.net>
72637
72638         Merge from coreutils.
72639         * lib/xgethostname.c: Include <stdlib.h>.
72640         (xghostname): Don't exit for anything other than memory-related
72641         failure; just return NULL.
72642         * lib/userspec.c: Include "posixver.h".
72643         (parse_user_spec): Accept `.' as a separator only
72644         in pre-POSIX-200112 mode.
72645         * lib/strtoimax.c: Use #elif rather than #else #if.
72646         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72647         Remove function, now that we can rely on a working tzset function.
72648         [!_LIBC]: Ensure that the required autoconf test has been run.
72649         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72650         Use underlying_strftime for %r.
72651         * lib/sha.c: Merge in some clean-up and optimization changes from
72652         glibc.
72653         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72654         Ensure that it is a multiple of 64.
72655         Rearrange loop exit tests so as to avoid performing an
72656         additional fread after encountering an error or EOF.
72657         * lib/realloc.c: Update copyright date.
72658
72659 2003-08-15  Jim Meyering  <jim@meyering.net>
72660         and Paul Eggert  <eggert@twinsun.com>
72661
72662         Merge from coreutils.
72663         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72664         member but strut utmpx does not.  Needed for AIX 4.3.3.
72665         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72666
72667 2003-08-15  Jim Meyering  <jim@meyering.net>
72668         and Paul Eggert  <eggert@cs.ucla.edu>
72669
72670         Merges from coreutils, etc.
72671         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72672         Require gl_FUNC_TZSET_CLOBBER.
72673         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72674         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72675         members.
72676
72677 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72678
72679         Help the merge from coreutils.
72680         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72681         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72682         * m4/tzset.m4: Use it too.
72683
72684 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72685
72686         * modules/tzset: New file.
72687
72688 2003-08-14  Jim Meyering  <jim@meyering.net>
72689
72690         Merges from coreutils.
72691         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72692         variable names, rather than @FNMATCH_H@.
72693         * modules/alloca: Likewise for $(ALLOCA_H).
72694
72695         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72696         the three copies of the literal target, `fnmatch.h'.
72697         * modules/alloca (alloca.h): Likewise.
72698
72699 2003-08-14  Jim Meyering  <jim@meyering.net>
72700
72701         Merge from coreutils.
72702         * m4/tzset.m4: New file.
72703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72704         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72705         otherwise, AIX 5.1 systems would end up using the latter.
72706         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72707         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72708         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72709         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72710
72711 2003-08-14  Jim Meyering  <jim@meyering.net>
72712
72713         Merge from coreutils.
72714         * lib/obstack.h: Whitespace changes.
72715         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72716         and xcalloc return values.
72717         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72718         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72719         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72720         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72721         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72722         error from mntctl.
72723         Use mntctl's return value to drive the entry-processing loop, since
72724         we can't rely on the value of the vmt_length member in the last
72725         entry.  On some systems doing so could result in exhausting
72726         virtual memory.  Based in part on a patch from Mike Jetzer.
72727
72728 2003-08-14  Jim Meyering  <jim@meyering.net>
72729         and Paul Eggert  <eggert@twinsun.com>
72730
72731         Merges from coreutils, plus other fixes.
72732         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72733         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72734         for credits and details.  Thanks to Kaveh Ghazi for helping
72735         to keep these files in sync.
72736         (ARRAY_SIZE): Define it.
72737         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72738         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72739         (memcasecmp): Don't assume size_t fits in unsigned int.
72740         Remove casts and duplicate code.
72741         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72742         (memcpy): Remove definition.
72743         Merge in some clean-up and optimization changes from glibc.
72744         [BLOCKSIZE]: Move definition to top of file.
72745         Ensure that it is a multiple of 64.
72746         Rearrange loop exit tests so as to avoid performing an
72747         additional fread after encountering an error or EOF.
72748         * lib/md5.h (md5_uintptr): Define.
72749         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72750         return to the initial working directory.  Preserve errno
72751         for caller.
72752         * lib/idcache.c: Include "xalloc.h".
72753         (xmalloc, xrealloc): Remove decls.
72754         (getuser): Remove casts no longer required in C89.
72755         * lib/human.c: Include stdio.h, for sprintf.
72756         * lib/group-member.c: Include "xalloc.h".
72757         (xmalloc, xrealloc): Remove decls.
72758         (get_group_info): Remove casts no longer required in C89.
72759         * lib/getusershell.c (readname): Remove casts no longer required in
72760         C89.
72761         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72762         * lib/getline.c: Whitespace fix, from coreutils.
72763
72764 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72765
72766         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72767         Check for isascii.
72768
72769         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72770         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72771         Undo previous (whitespace-only) change.
72772
72773 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72774
72775         * lib/exclude.c: Include <ctype.h>
72776         (IN_CTYPE_DOMAIN): New macro.
72777         (is_space): New fn.
72778         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72779         and empty lines.
72780
72781         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72782         Undo previous (whitespace-only) change.
72783
72784 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72785
72786         * config/srclist-update: Change update back to the old behavior,
72787         leaving whitespace alone.  Use one 'sed' command rather than a
72788         pipeline.
72789         (fixlicense): Now a variable, not a function.
72790         (remove_trailing_blanks): Remove.
72791         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72792         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72793         Undo previous (whitespace-only) change.
72794
72795 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72796
72797         Merge from coreutils.
72798         * modules/euidaccess: Add lib_SOURCES, include for new
72799         file euidaccess.h
72800
72801 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72802
72803         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72804         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72805         Normalize leading white space and remove trailing white space.
72806
72807         Merge from coreutils
72808         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72809
72810         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72811         0.12.1.  These files are now being upgraded automatically by
72812         ../config/srclist-update.
72813
72814 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72815
72816         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72817         Normalize leading white space and remove trailing white space.
72818         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72819         notice, as per ../config/srclist-update.
72820
72821         Merge from coreutils.
72822         * lib/euidaccess.h: New file.
72823         * lib/euidaccess.c: Include it.
72824         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72825         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72826         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72827
72828 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72829
72830         * config/srclist-update: Add copyright notice.
72831         (remove_id_lines, remove_trailing_blanks): New constants.
72832         (fixfile): Use them to normalize spacing a bit in copied files.
72833         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72834         Normalize leading white space and remove trailing white space.
72835
72836         * config/texinfo.tex: Sync with texinfo.
72837
72838         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72839         strtoul.c from libc, to merge coreutils whitespace changes.
72840
72841         * config/srclist.txt: Get the following m4 files from gettext:
72842         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72843         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72844         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72845         wint_t.m4.
72846
72847 2003-08-12  Karl Berry  <karl@gnu.org>
72848
72849         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72850         been made.
72851
72852 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72853
72854         * modules/gnu-source, m4/gnu-source.m4:
72855         Remove; we're assuming Autoconf 2.54 or later now.
72856         Suggested by Bruno Haible.
72857         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72858
72859 2003-08-11  Bruno Haible  <bruno@clisp.org>
72860
72861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72862
72863 2003-08-11  Bruno Haible  <bruno@clisp.org>
72864
72865         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72866         (vasnprintf): Use it instead of wcslen.
72867
72868 2003-08-11  Bruno Haible  <bruno@clisp.org>
72869
72870         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72871         value to ensure that _Bool promotes to int. Use #define for _Bool when
72872         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72873
72874 2003-08-10  Karl Berry  <karl@gnu.org>
72875
72876         * lib/regex.h: update from libc (whitespace fix).
72877
72878 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72879
72880         Merge some files from coreutils.  These changes were
72881         originally made by Jim Meyering.
72882         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72883         many older Unixes require this.
72884         * lib/alloca.c (alloca): Remove cast to argument of free;
72885         no longer needed in C89.
72886         * lib/alloca_.h, regex.h: Fix white space to match
72887         what GNU indent does.
72888
72889 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72890
72891         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72892         apparently Emacs's Unicode mode got confused before my 2003-08-05
72893         checkin.
72894
72895 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72896
72897         * m4/extensions.m4: New file.
72898         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72899         Require gl_USE_SYSTEM_EXTENSIONS.
72900         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72901         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72902
72903 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72904
72905         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72906         * modules/extensions, modules/gnu-source: New files.
72907         * modules/timespec, modules/unlocked-io: Depend on extensions.
72908
72909 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72910
72911         * modules/restrict: New file.
72912         * MODULES.html.sh (func_all_modules): Add restrict.
72913         * modules/regex: Depend on restrict.
72914
72915 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72916
72917         * m4/restrict.m4: New file.
72918         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72919
72920 2003-08-07  Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72923         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72924
72925 2003-08-07  Bruno Haible  <bruno@clisp.org>
72926
72927         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72928         makes the module 'getndelim2' compatible with the module 'getline'.
72929
72930 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72931
72932         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72933         byte with "\201" to avoid glitches when editing that source file
72934         with multi-gnome-terminal.
72935
72936 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72937
72938         * lib/bumpalloc.h: Remove.
72939
72940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72941
72942         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72943         * modules/bumpalloc: Remove.
72944
72945 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72946
72947         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72948         GNU coding style.
72949
72950         Merge from coreutils.
72951         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72952         1. From glibc.
72953         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72954         from Karl Berry, implemented by Jim Meyering.
72955         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72956         from Dmitry V. Levin.
72957         Remove anachronistic cast of xrealloc.
72958         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72959         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72960         type. Otherwise, it wouldn't compile with at least /bin/cc on
72961         ymp-cray-unicos9.0.2.X.
72962         Combine two mostly-identical uses of alloca into one.
72963         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72964
72965 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72966
72967         [From Emacs.]
72968
72969         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72970         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72971         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72972         obsolete NLIST_NAME_UNION.
72973         [__GNU__]: Undef BSD and FSCALE.
72974         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72975
72976 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72977
72978         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72979         an enum type, so that it's guaranteed to promote to int.  See:
72980         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72981
72982 2003-08-03  Karl Berry  <karl@gnu.org>
72983
72984         * config/depcomp: update from automake.
72985
72986 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72987
72988         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72989         (strerror): Don't assume that a printable int fits in 14 bytes.
72990
72991 2003-07-31  Bruno Haible  <bruno@clisp.org>
72992
72993         * modules/getpass-gnu: New file.
72994         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72995
72996 2003-07-31  Bruno Haible  <bruno@clisp.org>
72997
72998         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72999
73000 2003-07-24  Karl Berry  <karl@gnu.org>
73001
73002         * config/missing: update from automake.
73003
73004 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73005             Bruno Haible  <bruno@clisp.org>
73006
73007         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73008         * lib/getline.c (getline, getdelim): Likewise.
73009         Remove _GNU_SOURCE define; now it's defined in config.h through
73010         m4/getline.m4.
73011
73012 2003-07-23  Karl Berry  <karl@gnu.org>
73013
73014         * config/config.sub: update from prep.
73015
73016 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73017
73018         * modules/xalloc (Depends-on): Add exitfail.
73019         * modules/xmemcoll: Likewise.
73020
73021 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73022
73023         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73024         over-parenthesization in macros.
73025
73026         Sync with coreutils.
73027
73028         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73029         required by C99.
73030
73031         Use `exit_failure' for xalloc and xmemcoll instead of their own
73032         private exit-failure variables.
73033         * lib/xalloc.h (xalloc_exit_failure): Remove.
73034         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73035         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73036         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73037         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73038         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73039
73040 2003-07-20  Jim Meyering  <jim@meyering.net>
73041
73042         * modules/closeout (Depends-on): Add exitfail.
73043         Suggestion from Bruno Haible.
73044
73045 2003-07-19  Karl Berry  <karl@gnu.org>
73046
73047         * config/config.sub: update from prep.
73048
73049 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73050
73051         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73052         Remove.
73053         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73054         to test that it can stand by itself.  Include "exitfail.h".
73055         Clients should set exit_failure instead.
73056         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73057
73058 2003-07-18  Bruno Haible  <bruno@clisp.org>
73059
73060         * modules/getndelim2: New file.
73061         * modules/getline: Share files with module getndelim2.
73062         * modules/getnline: Depend on getndelim2 instead of sharing files with
73063         it. Add getnline.c to lib_SOURCES.
73064         * MODULES.html.sh (func_all_modules): Add getndelim2.
73065
73066 2003-07-18  Bruno Haible  <bruno@clisp.org>
73067
73068         * m4/getndelim2.m4: New file.
73069         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73070         invoke gl_PREREQ_GETNDELIM2.
73071         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73072         gl_PREREQ_GETNDELIM2.
73073         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73074         gl_GETNDELIM2.
73075
73076 2003-07-18  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/getndelim2.h: New file.
73079         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73080         getndelim2.h.
73081         (getndelim2): Make non-static. Change return type to ssize_t.
73082         * lib/getline.h: Change argument names.
73083         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73084         * lib/getnline.c: Include getndelim2.h.
73085
73086 2003-07-18  Andreas Schwab  <schwab@suse.de>
73087
73088         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73089
73090 2003-07-17  Karl Berry  <karl@gnu.org>
73091
73092         * config/config.sub: update from prep.
73093
73094 2003-07-17  Bruno Haible  <bruno@clisp.org>
73095
73096         * modules/getnline: New file.
73097         * modules/getline: Add lib/getndelim2.c to source file list.
73098         * MODULES.html.sh (func_all_modules): Add getnline.
73099
73100 2003-07-17  Bruno Haible  <bruno@clisp.org>
73101
73102         * m4/getnline.m4: New file.
73103
73104 2003-07-17  Bruno Haible  <bruno@clisp.org>
73105
73106         * m4/Makefile.am.in: Remove file.
73107         * m4/Makefile.am: Remove file.
73108         * m4/Makefile.in: Remove file.
73109
73110 2003-07-17  Bruno Haible  <bruno@clisp.org>
73111
73112         * lib/getnline.h: New file.
73113         * lib/getnline.c: New file.
73114         * lib/getndelim2.c: New file, extracted from getline.c.
73115         (getndelim2): Renamed from getdelim2, with added nmax argument.
73116         * lib/getline.c: Include getndelim2.c.
73117         (getdelim2): Moved out to getndelim2.c.
73118         (getline, getdelim): Update.
73119
73120 2003-07-17  Bruno Haible  <bruno@clisp.org>
73121
73122         * lib/Makefile.am: Remove file.
73123         * lib/Makefile.in: Remove file.
73124
73125 2003-07-17  Bruno Haible  <bruno@clisp.org>
73126
73127         * configure.in: Remove file.
73128         * Makefile.in: Remove file.
73129
73130 2003-07-17  Bruno Haible  <bruno@clisp.org>
73131
73132         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73133
73134 2003-07-16  Karl Berry  <karl@gnu.org>
73135
73136         * config/srclist-update: was running fixlicense twice, which caused
73137                 texinfo.tex to be nullified for some reason.  Simplify,
73138                 $gplsrc is no longer needed as far as I can see?
73139
73140 2003-07-16  Jim Meyering  <jim@meyering.net>
73141
73142         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73143
73144 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73145
73146         * config/srclist.txt: Get the following files from gettext-runtime/intl
73147         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73148         ref-del.sin.  From Bruno Haible.
73149         * config/srclist-update (fixfile): Change grep pattern again, since the
73150         previous fix didn't work (there was another trailing $).  Use
73151         '[$]' to escape the $s.
73152
73153 2003-07-15  Karl Berry  <karl@gnu.org>
73154
73155         * lib/vasnprintf.c: update from gettext.
73156
73157 2003-07-15  Karl Berry  <karl@gnu.org>
73158
73159         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73160         gets expanded when surrounded by '$'.
73161
73162 2003-07-15  Jim Meyering  <jim@meyering.net>
73163
73164         * modules/save-cwd: Don't depend on error.  From Derek Price.
73165
73166 2003-07-15  Jim Meyering  <jim@meyering.net>
73167
73168         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73169
73170 2003-07-14  Simon Josefsson  <jas@extundo.com>
73171
73172         * modules/mempcpy: New file.
73173         * MODULES.html.sh (func_all_modules): Add mempcpy.
73174
73175 2003-07-14  Simon Josefsson  <jas@extundo.com>
73176
73177         * m4/mempcpy.m4: New file.
73178
73179 2003-07-14  Simon Josefsson  <jas@extundo.com>
73180
73181         * lib/mempcpy.h: New file.
73182         * lib/mempcpy.c: New file.
73183
73184 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73185
73186         * modules/getdate, modules/posixtm: Depend on mktime.
73187
73188 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73189
73190         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73191         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73192         unicodeio.c, unicodeio.h, unlocked-io.h:
73193         Switch from LGPL to GPL.
73194
73195 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73196
73197         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73198         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73199         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73200         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73201         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73202         updated automatically by ../config/srclist-update.  This changes
73203         their license from LPGL to GPL.
73204
73205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73206
73207         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73208         assumed to refer to the root of the most recent stable gettext version.
73209         * config/srclistvars.sh: Add defaults for eggert.
73210         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73211         Match "This program" as well as "The program".  This is needed
73212         for gettext.
73213
73214 2003-07-14  Jim Meyering  <jim@meyering.net>
73215
73216         Don't emit diagnostics.  Let callers do that.
73217         * lib/save-cwd.c: Don't include "error.h".
73218         (save_cwd): Don't call error.  Ensure that errno is valid
73219         when returning nonzero.
73220
73221         * lib/save-cwd.h (restore_cwd): Update prototype.
73222         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73223         Simplify.  Don't call error upon failure.  Let callers do that.
73224         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73225         when auditing is enabled.  But don't bother updating the #if.
73226
73227 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73228
73229         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73230         it breaks C++ compilation.
73231         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73232
73233 2003-07-10  Simon Josefsson  <jas@extundo.com>
73234
73235         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73236
73237 2003-07-10  Jim Meyering  <jim@meyering.net>
73238
73239         * m4/clock_time.m4: Remove trailing blank.
73240         * m4/intmax_t.m4: Likewise.
73241
73242 2003-07-10  Jim Meyering  <jim@meyering.net>
73243
73244         * lib/vasnprintf.c: Remove trailing blanks.
73245         Make cpp indentation consistent.
73246
73247 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73248
73249         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73250         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73251         Switch from LGPL to GPL.
73252
73253 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73254
73255         * config/srclist.txt: Sort sublists.  Add
73256         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73257         that differ from gnulib for one reason or another; we'd like this list
73258         to be smaller but for now let's document what we have.
73259
73260 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73261
73262         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73263         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73264         and sweeter "eval x=$x".
73265         * config/srclist.txt: Get lib/argp* from glibc.
73266
73267 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73268
73269         * lib/mktime.c: Fix some boundary cases and remove need for floating
73270         point.
73271
73272         Issue a compile-time diagnostic if time_t is floating point, or if
73273         two's complement arithmetic is not in effect, or if arithmetic
73274         right shift does not propagate the sign.  These assumptions were
73275         all in the original code but they weren't checked.
73276
73277         (TIME_T_MIDPOINT, verify): New macros.
73278         (__isleap): Remove; it has integer overflow problems.
73279         (leapyear): New function, without those problems.
73280         (ydhms_tm_diff): Remove; splitting into two parts.
73281         (ydhms_diff): New function, containing the arithmetic part of
73282         the old ydhms_tm_diff function.  Issue a compile-time
73283         diagnostic if we are not using C99 integer division.
73284         Avoid casts when possible.
73285         (guess_time_tm): New function, containing the checking part of
73286         the old ydhms_tm_diff function.  Return the new value, rather than
73287         the difference between it and the old.  Accept a new argument T
73288         so that *T specifies the old value.  Check for overflow in the result.
73289
73290         (__mktime_internal): Use a time_t offset, not a long int offset.
73291         This undoes the 2003-06-04 change, which is no longer needed now
73292         that we have better overflow checking.
73293         (localtime_offset): Likewise.
73294
73295         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73296         and long are 64-bit but int is only 32-bit.
73297         (ydhms_diff): Use long int to store year1 and yday1.
73298         Issue a compile-time diagnostic if long int is not wide enough.
73299
73300         (__mktime_internal): Use long int to store adjusted year and yday.
73301         Use plain C rather than preprocessor commands, if that doesn't
73302         affect efficiency.
73303         Check for overflow (and try to repair) after each probe
73304         rather than checking only at the very end.  This avoids some bugs
73305         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73306         does not equal GMT offset at maximum time).
73307         Use integer to check for overflow rather than floating point; this
73308         is more portable to non-IEEE hosts, and is a tad faster.
73309         When we detect that we are oscillating between two values,
73310         don't check whether tm_isdst has the requested value, since
73311         we already know the answer.  When tm_isdst has the wrong value,
73312         use a different heuristic to find the right one, based on the
73313         extreme values actually observed in practice in tz2003a,
73314         rather than the (overly optimistic) "previous 3 calendar quarters".
73315
73316         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73317         "T const" to accommodate glibc style.
73318         (check_result): Use less-confusing report format.  "long" -> "long int.
73319         (main): Likewise.
73320         Don't loop if the iteration overflows time_t.
73321         Allow a negative step in the iteration.
73322
73323 2003-07-06  Karl Berry  <karl@gnu.org>
73324
73325         * config/depcomp: update from automake.
73326         * config/config.sub: update from prep.
73327
73328 2003-07-03  Karl Berry  <karl@gnu.org>
73329
73330         * config/config.guess: update from prep.
73331
73332 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73333
73334         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73335         xreadlink.c now includes it unconditionally.
73336
73337 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73338
73339         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73340         having it depend on HAVE_SYS_TYPES_H.
73341
73342 2003-07-01  Bruno Haible  <bruno@clisp.org>
73343
73344         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73345         <sys/types.h> should be sufficient.
73346         Reported by Paul Eggert.
73347
73348 2003-06-26  Karl Berry  <karl@gnu.org>
73349
73350         * config/depcomp: update from automake.
73351
73352 2003-06-26  Bruno Haible  <bruno@clisp.org>
73353
73354         * modules/human: Depend on module stdbool.
73355
73356 2003-06-25  Bruno Haible  <bruno@clisp.org>
73357
73358         * modules/readlink: New file.
73359         * modules/xreadlink: Depend on it.
73360         * MODULES.html.sh (func_all_modules): Add readlink.
73361
73362 2003-06-25  Bruno Haible  <bruno@clisp.org>
73363
73364         * m4/readlink.m4: New file.
73365
73366 2003-06-25  Bruno Haible  <bruno@clisp.org>
73367
73368         * lib/readlink.c: New file.
73369
73370 2003-06-22  Karl Berry  <karl@gnu.org>
73371
73372         * config/srclist.txt: update mkinstalldirs from automake.
73373         * config/mkinstalldirs: update.
73374
73375 2003-06-22  Bruno Haible  <bruno@clisp.org>
73376
73377         Portability to mingw32.
73378         * m4/ssize_t.m4: New file, from GNU gettext.
73379         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73380         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73381
73382 2003-06-22  Bruno Haible  <bruno@clisp.org>
73383
73384         * modules/safe-read: Add m4/ssize_t.m4.
73385         * modules/xreadlink: Add m4/ssize_t.m4.
73386
73387 2003-06-20  Bruno Haible  <bruno@clisp.org>
73388
73389         Assume C89, so PARAMS isn't needed.
73390         * lib/unicodeio.h (PARAMS): Remove.
73391         * lib/unicodeio.c: Don't use PARAMS.
73392
73393 2003-06-18  Karl Berry  <karl@gnu.org>
73394
73395         * config/config.{guess,sub}: update from prep.
73396
73397 2003-06-18  Jim Meyering  <jim@meyering.net>
73398
73399         Merge changes from coreutils.
73400         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73401         Remove explicit declarations of xmalloc and realloc.
73402         Include xalloc.h.
73403         (read_utmp): Remove anachronistic cast of xmalloc.
73404
73405 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73406
73407         Assume C89, so PARAMS isn't needed.
73408         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73409         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73410         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73411         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73412         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73413         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73414         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73415         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73416         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73417         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73418         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73419         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73420         no longer needed. Anyway, config.h should always be included before any
73421         other file.
73422
73423 2003-06-11  Simon Josefsson  <jas@extundo.com>
73424
73425         * modules/sysexits: New file.
73426         * MODULES.html.sh (func_all_modules): Add sysexits.
73427
73428 2003-06-11  Simon Josefsson  <jas@extundo.com>
73429
73430         * lib/sysexit_.h: New file.
73431
73432 2003-06-11  Derek Price  <derek@ximbiot.com>
73433
73434         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73435         necessary.
73436
73437 2003-06-11  Bruno Haible  <bruno@clisp.org>
73438
73439         * m4/sysexits.m4: New file.
73440
73441 2003-06-10  Simon Josefsson  <jas@extundo.com>
73442
73443         * lib/argp.h: New file, from glibc.
73444         * lib/argp-ba.c: New file, from glibc.
73445         * lib/argp-eexst.c: New file, from glibc.
73446         * lib/argp-fmtstream.c: New file, from glibc.
73447         * lib/argp-fmtstream.h: New file, from glibc.
73448         * lib/argp-fs-xinl.c: New file, from glibc.
73449         * lib/argp-help.c: New file, from glibc.
73450         * lib/argp-namefrob.h: New file, from glibc.
73451         * lib/argp-parse.c: New file, from glibc.
73452         * lib/argp-pv.c: New file, from glibc.
73453         * lib/argp-pvh.c: New file, from glibc.
73454         * lib/argp-xinl.c: New file, from glibc.
73455
73456 2003-06-10  Simon Josefsson  <jas@extundo.com>
73457
73458         * modules/strchrnul: New file.
73459
73460 2003-06-10  Simon Josefsson  <jas@extundo.com>
73461
73462         * modules/argp: New file.
73463
73464 2003-06-10  Simon Josefsson  <jas@extundo.com>
73465
73466         * m4/strchrnul.m4: New file.
73467
73468 2003-06-10  Simon Josefsson  <jas@extundo.com>
73469
73470         * lib/strchrnul.h: New file.
73471         * lib/strchrnul.c: New file.
73472
73473 2003-06-10  Bruno Haible  <bruno@clisp.org>
73474
73475         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73476
73477 2003-06-07  Karl Berry  <karl@gnu.org>
73478
73479         * config/config.{guess,sub}: update from prep.
73480
73481 2003-06-07  Jim Meyering  <jim@meyering.net>
73482
73483         * modules/strtod: Use $(...) notation, not @...@ for
73484         AC_REPLACE'd variables.
73485         * modules/localcharset: Likewise.
73486
73487 2003-06-07  Jim Meyering  <jim@meyering.net>
73488
73489         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73490         in place of my name in the copyright comment.
73491         Remove definition and uses of __P.
73492
73493         From coreutils.
73494         * lib/stat.c: Don't declare xmalloc explicitly.
73495         Instead, include "xalloc.h".
73496         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73497         xrealloc, and xcalloc return values.
73498         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73499         Improve comment.
73500         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73501
73502 2003-06-07  Bruno Haible  <bruno@clisp.org>
73503
73504         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73505         avoid AC_CONFIG_LINKS.
73506         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73507         fnmatch.h, to avoid AC_CONFIG_LINKS.
73508         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73509
73510 2003-06-07  Bruno Haible  <bruno@clisp.org>
73511
73512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73513         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73514         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73515         directory.
73516         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73517         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73518         directory.
73519
73520 2003-06-06  Jim Meyering  <jim@meyering.net>
73521
73522         Merge from coreutils.
73523         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73524         Consolidate declarations and initializations of *_base* locals.
73525
73526         Merge from coreutils.
73527         This avoids a core dump on systems without GNU putenv,
73528         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73529         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73530         (unsetenv): New static function, from GNU libc.
73531         (rpl_putenv): Use it.
73532
73533         * lib/modechange.c: Remove trailing blanks.
73534
73535         Merge from coreutils.
73536         * lib/fsusage.c: Remove declaration of statfs.
73537         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73538
73539         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73540
73541 2003-06-06  Jim Meyering  <jim@meyering.net>
73542
73543         * lib/stdbool_.h: Renamed from stdbool.h.in.
73544
73545 2003-06-06  Jim Meyering  <jim@meyering.net>
73546             Bruno Haible  <bruno@clisp.org>
73547
73548         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73549         Adjust Makefile.am snippet not to redirect directly to target.
73550         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73551
73552 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73553
73554         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73555         mismatch, look in future quarters as well as past.  This fixes a
73556         bug when processing fall-backwards gaps immediately after a long
73557         period of daylight-saving time.
73558
73559         * lib/mktime.c: Assume freestanding C89 or better.
73560         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73561         (__P): Remove; not used.
73562         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73563         (mktime, not_equal_tm, print_tm, check_result,
73564         main): Use prototypes.  Use const * where appropriate.
73565         (main): Fix typo in testing code that uncovered by above changes.
73566         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73567
73568 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73569
73570         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73571         locale.h, localeconv.  This merges changes from coreutils.
73572
73573         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73574         It can be removed after the next Autoconf is released.
73575         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73576         needed.
73577
73578 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73579
73580         * lib/mktime.c: Fix Debian bug 177940
73581         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73582         (localtime_offset): Now long int, not time_t, because we want it
73583         to be guaranteed to be signed.  All uses changed.
73584         (__mktime_internal): If overflow would occur when adding offset,
73585         don't add it.
73586
73587         Merge 'human' changes from coreutils.  Rewrite to support
73588         locale-specific notations like thousands separators.
73589         * lib/human.c: Simplify authorship notice.
73590         Include human.h immediately after config.h.
73591         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73592         <limits.h>: Do not include, since human.h does.
73593         (SIZE_MAX, UINTMAX_MAX): New macros.
73594         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73595         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73596         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73597         (power_letter): Renamed from suffixes.
73598         (generate_suffix_backwards): Remove.
73599         (adjust_value): Now takes int style (because of human.h changes)
73600         and long double value (for greater precision on some platforms).
73601         (group_number): New function.
73602         (human_readable): Use it.  Use integer options, not enum.
73603         Put the options before the sizes in the arg list.
73604         Support all the new options.
73605         The old human_readable function has been removed;
73606         use inttostr.h instead.
73607         (human_readable, default_block_size, humblock):
73608         Use uintmax_t, not int, for block sizes.
73609         (human_readable_inexact, block_size_types): Remove.
73610         (block_size_opts): New constant.
73611         (human_options): Renamed from human_block_size, with new signature
73612         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73613         * lib/human.h: Add copyright and authorship notice.
73614         Include <limits.h> and <stdbool.h> unconditionally.
73615         (PARAMS): Remove.  All uses removed.
73616         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73617         (enum human_inexact_style): Remove tag; now a nameless enum.
73618         (human_floor, human_ceiling, human_round_to_even): Now have
73619         values 2, 0, 1 rather than -1, 1, 0.
73620         (human_group_digits, human_suppress_point_zero, human_autoscale,
73621         human_base_1024, human_SI, human_B): New constants.
73622         (human_readable_inexact, human_block_size): Remove.
73623         (human_readable): Size args are now uintmax_t, not int.
73624         (human_options): New decl.
73625
73626         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73627         unnecessary now that we assume C89 or better.  This change
73628         imported from coreutils.
73629
73630         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73631         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73632         in the 2003-05-30 sync from glibc.
73633
73634         .h files should stand alone, but we shouldn't include <sys/types.h>
73635         if we can get away with just <stddef.h>.
73636
73637         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73638         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73639         rather than <sys/types.h>, as we merely need size_t.
73640         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73641         to get size_t.
73642         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73643         Include <stdio.h>, to get FILE.
73644         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73645         memcasecmp.h has included <stddef.h> and all we need is size_t.
73646         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73647         our interface, instead of including <sys/types.h>
73648
73649 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73650
73651         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73652         now, as glibc mktime is buggy on non-glibc systems.
73653
73654 2003-06-03  Karl Berry  <karl@gnu.org>
73655
73656         * config/config.sub: update from prep.
73657
73658 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73659
73660         [from coreutils]
73661         Fix some minor time-related bugs with POSIX time arguments.
73662         Some valid time stamps were being rejected (notably -1, and
73663         time stamps before 1900 on 64-bit hosts).  And some invalid
73664         time stamps were being accepted, e.g. September 31.
73665
73666         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73667         that we can return (time_t) -1 successfully.
73668         * lib/posixtm.c: Likewise.
73669         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73670         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73671         (t): Remove static var.
73672         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73673         of static var.  All uses changed.
73674         (year): Do not reject years before 1900; they can occur with
73675         64-bit time_t.
73676         (posix_time_parse): Do not check for out-of-range components;
73677         that is now the caller's responsibility, since our checks were
73678         only approximations.
73679         (posixtime): Use mktime to check for out-of-range components,
73680         since it knows them exactly.
73681         If mktime returns (time_t) -1, check whether an error actually occurred
73682         by invoking localtime on -1.
73683         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73684         posixtime failures better.
73685         Improve the test data (in comments only).
73686
73687 2003-06-02  Karl Berry  <karl@gnu.org>
73688
73689         * config/mkinstalldirs (version): new variable.
73690         (--version): new option.
73691         (usage): improve message.
73692
73693 2003-05-30  Karl Berry  <karl@gnu.org>
73694
73695         * lib/mktime.c: update from libc.
73696
73697 2003-05-30  Bruno Haible  <bruno@clisp.org>
73698
73699         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73700         * config/config.rpath: Upgrade to gettext-0.12.1.
73701
73702 2003-05-30  Bruno Haible  <bruno@clisp.org>
73703
73704         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73705         * m4/nls.m4: New file, from gettext-0.12.1.
73706         * m4/po.m4: New file, from gettext-0.12.1.
73707         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73708
73709 2003-05-30  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73712         * lib/localcharset.h: Likewise.
73713         * lib/localcharset.c: Likewise.
73714
73715 2003-05-29  Karl Berry  <karl@gnu.org>
73716
73717         * config/config.rpath: update from gettext.
73718
73719 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73720
73721         Assume the headers required for C89 freestanding compilers.
73722         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73723         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73724         * m4/human.m4 (gl_HUMAN): Likewise.
73725         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73726         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73727         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73728         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73730         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73731
73732 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73733
73734         Assume the headers required for C89 freestanding compilers.
73735         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73736         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73737         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73738         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73739         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73740         define, since <limits.h> is guaranteed to do that.
73741         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73742         * lib/exclude.c: Include <stdbool.h> unconditionally.
73743         * lib/tempname.c: Include <stddef.h> unconditionally.
73744         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73745         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73746         <stddef.h> does that.
73747         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73748         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73749         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73750         needed.
73751         * lib/xstrtol.c: Likewise.
73752         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73753         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73754
73755         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73756         warnings on some platforms.
73757
73758         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73759         arbitrarily.
73760
73761 2003-05-26  Jim Meyering  <jim@meyering.net>
73762
73763         Merge in a change from coreutils:
73764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73765         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73766         that condition, rather than `-1' which is slightly misleading.
73767         Change the name of the cache variable to have the gl_ prefix.
73768         Prompted by a patch from Richard Dawe for DJGPP.
73769
73770 2003-05-24  Karl Berry  <karl@gnu.org>
73771
73772         * config/config.guess: update from prep.
73773
73774 2003-05-22  Karl Berry  <karl@gnu.org>
73775
73776         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73777
73778 2003-05-20  Karl Berry  <karl@gnu.org>
73779
73780         * config/config.guess: update from prep.
73781
73782 2003-05-18  Karl Berry  <karl@gnu.org>
73783
73784         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73785         might actually be set by the user.
73786
73787         * config/depcomp, install-sh, mdate-sh: update from automake.
73788
73789 2003-05-17  Bruno Haible  <bruno@clisp.org>
73790
73791         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73792         invalid expansion for AC_EGREP_CPP.
73793         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73794         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73795         Suggested by Akim Demaille <akim@epita.fr> in
73796         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73797
73798 2003-05-12  Jim Meyering  <jim@meyering.net>
73799
73800         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73801         the space-padded-by-default conversion specifiers, %e, %k, %l.
73802
73803 2003-05-12  Bruno Haible  <bruno@clisp.org>
73804
73805         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73806         the string is longer than 4 KB.
73807
73808 2003-05-11  Karl Berry  <karl@gnu.org>
73809
73810         * config/config.{guess,sub}: update from prep.
73811
73812 2003-05-09  Bruno Haible  <bruno@clisp.org>
73813
73814         * modules/error: Add m4/strerror_r.m4 to file list.
73815
73816 2003-05-03  Bruno Haible  <bruno@clisp.org>
73817
73818         Upgrade to Unicode-4.0.
73819         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73820         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73821         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73822         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73823         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73824         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73825         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73826         Change width of U+E0100..U+E01EF from 1 to 0.
73827
73828 2003-04-25  Jim Meyering  <jim@meyering.net>
73829
73830         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73831         of type size_t, not int.
73832
73833 2003-04-25  Bruno Haible  <bruno@clisp.org>
73834
73835         * lib/copy-file.c: Include <stddef.h>, for size_t.
73836
73837 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73838
73839         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73840         code which expansion is under static control.  Patch imported from
73841         Akim Demaille's patch to Bison; see
73842         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73843
73844 2003-04-14  Bruno Haible  <bruno@clisp.org>
73845
73846         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73847
73848 2003-04-11  Jim Meyering  <jim@meyering.net>
73849
73850         Merge changes from Coreutils.
73851
73852         2003-03-22  Jim Meyering  <jim@meyering.net>
73853
73854         * lib/strftime.c (widen): Cast alloca return value to proper type.
73855
73856         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73857
73858         From GNU libc.
73859         * lib/strftime.c (my_strftime): Handle very large width
73860         specifications for numeric values correctly.  Improve checks for
73861         overflow.
73862
73863         2003-01-19  Jim Meyering  <jim@meyering.net>
73864
73865         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73866         definitions.
73867         (nl_get_alt_digit) [! defined my_strftime]: Define.
73868         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73869         _nl_get_alt_digit and _nl_get_walt_digit.
73870
73871         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73872         libc. These changes have no effect outside of _LIBC.
73873
73874 2003-04-10  Bruno Haible  <bruno@clisp.org>
73875
73876         * modules/findprog: New file.
73877         * MODULES.html.sh (func_all_modules): Add it.
73878
73879 2003-04-10  Bruno Haible  <bruno@clisp.org>
73880
73881         * m4/findprog.m4: New file.
73882         * m4/eaccess.m4: New file.
73883
73884 2003-04-10  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/findprog.h: New file, from GNU gettext.
73887         * lib/findprog.c: New file, from GNU gettext.
73888
73889 2003-04-05  Jim Meyering  <jim@meyering.net>
73890
73891         Merge changes from Coreutils.
73892
73893         * lib/exclude.h (PARAMS): Remove definition and uses.
73894         * lib/exclude.c: Remove uses of `PARAMS'.
73895
73896         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73897         Add test-cases for DOS filenames. Declare program_name.
73898         (main): Set up program_name.  Patch by Rich Dawe.
73899
73900         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73901         error from mntctl.
73902         Use mntctl's return value to drive the entry-processing loop, since
73903         we can't rely on the value of the vmt_length member in the last
73904         entry.  On some systems doing so could result in exhausting
73905         virtual memory.  Based in part on a patch from Mike Jetzer.
73906
73907 2003-04-04  Bruno Haible  <bruno@clisp.org>
73908
73909         * modules/linebreak: New file.
73910         * MODULES.html.sh (func_all_modules): Add it.
73911
73912 2003-04-04  Bruno Haible  <bruno@clisp.org>
73913
73914         * m4/linebreak.m4: New file.
73915
73916 2003-04-04  Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/linebreak.h: New file, from GNU gettext.
73919         * lib/linebreak.c: New file, from GNU gettext with slight
73920         modifications.
73921         * lib/lbrkprop.h: New file, from GNU gettext.
73922
73923 2003-04-03  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/utf8-ucs4: New file.
73926         * modules/utf16-ucs4: New file.
73927         * modules/ucs4-utf8: New file.
73928         * modules/ucs4-utf16: New file.
73929         * MODULES.html.sh (func_all_modules): Add them.
73930
73931 2003-04-03  Bruno Haible  <bruno@clisp.org>
73932
73933         * m4/utf-ucs4.m4: New file.
73934         * m4/ucs4-utf.m4: New file.
73935
73936 2003-04-03  Bruno Haible  <bruno@clisp.org>
73937
73938         * lib/utf8-ucs4.h: New file, from GNU gettext.
73939         * lib/utf16-ucs4.h: New file, from GNU gettext.
73940         * lib/ucs4-utf8.h: New file, from GNU gettext.
73941         * lib/ucs4-utf16.h: New file, from GNU gettext.
73942
73943 2003-04-02  Bruno Haible  <bruno@clisp.org>
73944
73945         * modules/binary-io: New file.
73946         * MODULES.html.sh (func_all_modules): Add it.
73947
73948 2003-04-02  Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/binary-io.h: New file, from GNU gettext.
73951
73952 2003-04-01  Bruno Haible  <bruno@clisp.org>
73953
73954         * modules/pathname: New file.
73955         * MODULES.html.sh (func_all_modules): Add it.
73956
73957 2003-04-01  Bruno Haible  <bruno@clisp.org>
73958
73959         * lib/pathname.h: New file, from GNU gettext.
73960         * lib/concatpath.c: New file, from GNU gettext.
73961
73962 2003-03-30  Bruno Haible  <bruno@clisp.org>
73963
73964         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73965
73966 2003-03-30  Bruno Haible  <bruno@clisp.org>
73967
73968         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73969         function chown() doesn't exist.
73970
73971 2003-03-28  Bruno Haible  <bruno@clisp.org>
73972
73973         * modules/copy-file: New file.
73974         * MODULES.html.sh (func_all_modules): Add it.
73975
73976 2003-03-28  Bruno Haible  <bruno@clisp.org>
73977
73978         * m4/copy-file.m4: New file.
73979
73980 2003-03-28  Bruno Haible  <bruno@clisp.org>
73981
73982         * lib/copy-file.h: New file, from GNU gettext.
73983         * lib/copy-file.c: New file, from GNU gettext.
73984
73985 2003-03-18  Jim Meyering  <jim@meyering.net>
73986
73987         * lib/quote.c (quote_n): Fix typo in comment.
73988
73989 2003-03-18  Bruno Haible  <bruno@clisp.org>
73990
73991         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73992         checking.
73993         * m4/onceonly_2_57.m4: Likewise.
73994
73995 2003-03-17  Bruno Haible  <bruno@clisp.org>
73996
73997         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73998         (m4_quote): Remove macro.
73999         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74000
74001 2003-03-14  Jim Meyering  <jim@meyering.net>
74002
74003         Merge changes from Coreutils.
74004         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74005         to be const, in order to avoid warnings.
74006         (obstack_room): Likewise.
74007         (obstack_empty_p): Likewise.
74008
74009 2003-03-14  Bruno Haible  <bruno@clisp.org>
74010
74011         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74012         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74013
74014 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74015
74016         Merge changes from Bison.
74017         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74018         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74019         when compiling Bison 1.875's `bitset bset = obstack_alloc
74020         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74021         * lib/hash.c: Include <stdbool.h> unconditionally.
74022
74023 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74024
74025         * m4/onceonly.m4 (m4_quote): New macro.
74026         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74027         Quote AC_FOREACH variable-expansions properly.
74028
74029 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74030
74031         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74032
74033 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74034
74035         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74036         Reported by Bruce Becker; see:
74037         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74038
74039 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74040             Bruno Haible  <bruno@clisp.org>
74041
74042         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74043         Reported by John Hughes, see
74044         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74045
74046 2003-02-20  Bruno Haible  <bruno@clisp.org>
74047
74048         * MODULES.html.sh (func_all_modules): Add poll.
74049
74050 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74051
74052         * modules/poll: New file.
74053
74054 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74055
74056         * lib/poll_.h: New file.
74057         * lib/poll.c: New file.
74058
74059 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74060
74061         * m4/poll.m4: New file.
74062
74063 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74064
74065         * modules/mathl: New file.
74066
74067 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74068
74069         * lib/mathl.h: New file.
74070         * lib/acosl.c: New file.
74071         * lib/asinl.c: New file.
74072         * lib/atanl.c: New file.
74073         * lib/ceill.c: New file.
74074         * lib/cosl.c: New file.
74075         * lib/expl.c: New file.
74076         * lib/floorl.c: New file.
74077         * lib/frexpl.c: New file.
74078         * lib/ldexpl.c: New file.
74079         * lib/logl.c: New file.
74080         * lib/sincosl.c: New file.
74081         * lib/sinl.c: New file.
74082         * lib/sqrtl.c: New file.
74083         * lib/tanl.c: New file.
74084         * lib/trigl.c: New file.
74085         * lib/trigl.h: New file.
74086
74087 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74088
74089         * m4/mathl.m4: New file.
74090
74091 2003-02-18  Bruno Haible  <bruno@clisp.org>
74092
74093         * MODULES.html.sh (func_all_modules): Add mathl.
74094
74095 2003-02-17  Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/mkdtemp: New module.
74098         * MODULES.html.sh (func_all_modules): Add it.
74099
74100 2003-02-17  Bruno Haible  <bruno@clisp.org>
74101
74102         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74103
74104 2003-02-17  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/mkdtemp.h: New file, from GNU gettext.
74107         * lib/mkdtemp.c: New file, from GNU gettext.
74108
74109 2003-02-02  Jim Meyering  <jim@meyering.net>
74110
74111         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74112         e.g. glibc-2.2.93.
74113
74114 2003-01-31  Bruno Haible  <bruno@clisp.org>
74115
74116         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74117         'rpl_rename'.
74118         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74119         'rpl_strnlen'.
74120         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74121         'rpl_strtod'.
74122         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74123         'rpl_utime'.
74124
74125 2003-01-31  Bruno Haible  <bruno@clisp.org>
74126
74127         * lib/rename.c: #undef rename before defining rpl_rename.
74128         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74129
74130 2003-01-30  Bruno Haible  <bruno@clisp.org>
74131
74132         * modules/vasnprintf, modules/vasprintf: New modules.
74133         * MODULES.html.sh (func_all_modules): Add them.
74134
74135 2003-01-30  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/signed.m4: New file, from GNU gettext.
74138         * m4/longdouble.m4: New file, from GNU gettext.
74139         * m4/wchar_t.m4: New file, from GNU gettext.
74140         * m4/wint_t.m4: New file, from GNU gettext.
74141         * m4/vasnprintf.m4: New file.
74142         * m4/vasprintf.m4: New file.
74143
74144 2003-01-30  Bruno Haible  <bruno@clisp.org>
74145
74146         * lib/printf-args.h: New file, from GNU gettext.
74147         * lib/printf-args.c: New file, from GNU gettext.
74148         * lib/printf-parse.h: New file, from GNU gettext.
74149         * lib/printf-parse.c: New file, from GNU gettext.
74150         * lib/vasnprintf.h: New file, from GNU gettext.
74151         * lib/vasnprintf.c: New file, from GNU gettext.
74152         * lib/asnprintf.c: New file, from GNU gettext.
74153         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74154         * lib/vasprintf.c: New file, from GNU gettext.
74155         * lib/asprintf.c: New file, from GNU gettext.
74156
74157 2003-01-29  Bruno Haible  <bruno@clisp.org>
74158
74159         * modules/stpncpy: New module.
74160         * MODULES.html.sh (func_all_modules): Add it.
74161
74162 2003-01-29  Bruno Haible  <bruno@clisp.org>
74163
74164         * m4/stpncpy.m4: New file.
74165
74166 2003-01-29  Bruno Haible  <bruno@clisp.org>
74167
74168         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74169         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74170
74171 2003-01-28  Bruno Haible  <bruno@clisp.org>
74172
74173         * modules/c-ctype: New module.
74174         * MODULES.html.sh (func_all_modules): Add it.
74175
74176 2003-01-28  Bruno Haible  <bruno@clisp.org>
74177
74178         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74179         Paul Eggert.
74180         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74181         Paul Eggert.
74182
74183 2003-01-27  Bruno Haible  <bruno@clisp.org>
74184
74185         * modules/xsetenv: New module.
74186         * MODULES.html.sh (func_all_modules): Add it.
74187
74188 2003-01-27  Bruno Haible  <bruno@clisp.org>
74189
74190         * lib/xsetenv.h: New file, from GNU gettext.
74191         * lib/xsetenv.c: New file, from GNU gettext.
74192
74193 2003-01-23  Jim Meyering  <jim@meyering.net>
74194
74195         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74196         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74197
74198 2003-01-23  Bruno Haible  <bruno@clisp.org>
74199
74200         * modules/minmax: New module.
74201         * MODULES.html.sh (func_all_modules): Add it.
74202
74203 2003-01-23  Bruno Haible  <bruno@clisp.org>
74204
74205         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74206         Eggert.
74207
74208 2003-01-22  Bruno Haible  <bruno@clisp.org>
74209
74210         * modules/exit: New module.
74211         * MODULES.html.sh (func_all_modules): Add it.
74212
74213 2003-01-22  Bruno Haible  <bruno@clisp.org>
74214
74215         * lib/exit.h: New file, from GNU gettext.
74216
74217 2003-01-19  Bruno Haible  <bruno@clisp.org>
74218
74219         * gnulib-tool: Recognize option --extract-maintainer.
74220         (func_get_maintainer): New function.
74221         * modules/*: Add Maintainer entry.
74222
74223 2003-01-16  Jim Meyering  <jim@meyering.net>
74224
74225         * m4/regex.m4: The `regex' struct is both input and output.
74226         Initialize it before each use.  Patch by Tim Waugh.
74227
74228 2003-01-16  Bruno Haible  <bruno@clisp.org>
74229
74230         * MODULES.html.sh: Add a table of contents. Add the module name as
74231         leftmost column. Add hyperlinks.
74232
74233 2003-01-15  Bruno Haible  <bruno@clisp.org>
74234
74235         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74236
74237 2003-01-15  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74240         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74241         suffix.
74242
74243 2003-01-15  Bruno Haible  <bruno@clisp.org>
74244
74245         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74246
74247 2003-01-15  Bruno Haible  <bruno@clisp.org>
74248
74249         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74250         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74251
74252 2003-01-14  Jim Meyering  <jim@meyering.net>
74253
74254         * lib/same.c (same_name): Tweak a comment.
74255
74256 2003-01-14  Bruno Haible  <bruno@clisp.org>
74257
74258         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74259         when a string comparison is sufficient.
74260
74261 2003-01-14  Bruno Haible  <bruno@clisp.org>
74262
74263         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74264         'unsigned int'.
74265
74266 2003-01-14  Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/hash-pjw.c: Add comment about low quality of this function.
74269
74270 2003-01-13  Bruno Haible  <bruno@clisp.org>
74271
74272         * modules/stpcpy: Distribute lib/stpcpy.h.
74273         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74274
74275 2003-01-13  Bruno Haible  <bruno@clisp.org>
74276
74277         * modules/*: Add a description.
74278         * modules/strpbrk: Fix Makefile.am snippet.
74279         * modules/strtoimax: Fix dependencies.
74280         * modules/strtoumax: Likewise.
74281
74282 2003-01-13  Bruno Haible  <bruno@clisp.org>
74283
74284         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74285         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74286         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74287
74288 2003-01-13  Bruno Haible  <bruno@clisp.org>
74289
74290         * gnulib-tool (func_create_testdir): Store config/* files in the main
74291         directory.
74292         * config.rpath: Move to ...
74293         * config/config.rpath: ... here.
74294         * modules/gettext: Contains config/config.rpath, not config.rpath.
74295         * modules/iconv: Likewise.
74296
74297 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74298
74299         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74300         to avoid collisions with libcurses and libreadline.
74301
74302         * m4/getstr.m4: Remove.
74303         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74304
74305 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74306
74307         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74308         to avoid collisions with libcurses and libreadline.
74309
74310         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74311         * lib/getstr.h, getstr.c: Remove.
74312         * lib/getline.c: Include "getline.h", to check interface.
74313         Move body of old getstr.c here: this defines MIN_CHUNK and
74314         declares getdelim2, which is renamed from getstr.
74315         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74316
74317         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74318         All uses changed.
74319         * lib/linebuffer.h: Likewise.
74320         (readline): Remove backward-compatibility macro.
74321
74322 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74323
74324         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74325         to avoid collisions with libcurses and libreadline.
74326         * getstr: Remove.
74327         * MODULES.html.sh: Remove getstr.
74328         * modules/getline: Depend on unlocked-io, not getstr.
74329
74330 2003-01-12  Jim Meyering  <jim@meyering.net>
74331
74332         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74333
74334 2003-01-10  Bruno Haible  <bruno@clisp.org>
74335
74336         * modules/alloca: Change Makefile.am requirements. Simplify Include
74337         requirements. Add lib/alloca_.h to file list.
74338
74339 2003-01-10  Bruno Haible  <bruno@clisp.org>
74340
74341         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74342
74343 2003-01-10  Bruno Haible  <bruno@clisp.org>
74344
74345         * lib/alloca_.h: New file.
74346         * lib/getdate.y: Unconditionally include alloca.h.
74347         * lib/makepath.c: Likewise.
74348         * lib/setenv.c: Likewise.
74349         * lib/userspec.c: Likewise.
74350
74351 2003-01-09  Karl Berry  <karl@gnu.org>
74352
74353         * MODULES.html.sh: include `dirname $0` in PATH, to find
74354         gnulib-tool.
74355
74356 2003-01-09  Bruno Haible  <bruno@clisp.org>
74357
74358         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74359         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74360
74361 2003-01-09  Bruno Haible  <bruno@clisp.org>
74362
74363         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74364
74365 2003-01-09  Bruno Haible  <bruno@clisp.org>
74366
74367         * lib/stdbool.h.in: New file.
74368
74369 2003-01-09  Bruno Haible  <bruno@clisp.org>
74370
74371         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74372         * MODULES.html.sh: Likewise.
74373
74374 2003-01-08  Jim Meyering  <jim@meyering.net>
74375
74376         * lib/full-write.c: Undefine and define-away `const' after inclusion
74377         of errno.h, not before.  Suggestion from Bruno Haible.
74378
74379 2003-01-08  Bruno Haible  <bruno@clisp.org>
74380
74381         * modules/full-read: Depend on full-write.
74382
74383 2003-01-08  Bruno Haible  <bruno@clisp.org>
74384
74385         * lib/safe-read.c: Include specification header first, to ensure its
74386         selfcontainedness.
74387         * lib/full-write.c: Likewise.
74388
74389 2003-01-07  Jim Meyering  <jim@meyering.net>
74390
74391         * lib/full-write.c: Rework so that it may serve to define full_read,
74392         too.
74393         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74394
74395 2003-01-07  Bruno Haible  <bruno@clisp.org>
74396
74397         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74398         <inttypes.h>.
74399         * lib/xstrtol.h: Likewise.
74400         * lib/xstrtoimax.c: Likewise.
74401         * lib/xstrtoumax.c: Likewise.
74402         * lib/human.h: Likewise.
74403
74404         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74405         on systems that have <inttypes.h> but not <stdint.h>.
74406
74407 2003-01-07  Bruno Haible  <bruno@clisp.org>
74408
74409         * MODULES.html.sh: Add copyright notice.
74410         (missed_files): Omit CVS directory entries.
74411         (func_module): Make it work with sed-3.02.
74412         * MODULES.txt: Remove file.
74413
74414 2003-01-06  Jim Meyering  <jim@meyering.net>
74415
74416         * lib/version-etc.c: Update year in translatable copyright string.
74417
74418 2003-01-03  Karl Berry  <karl@gnu.org>
74419
74420         * config/config.{guess,sub}: update from prep.
74421
74422 2003-01-02  Karl Berry  <karl@gnu.org>
74423
74424         * doc/COPYING.DOC: belatedly updated to 1.2.
74425
74426 2003-01-01  Karl Berry  <karl@gnu.org>
74427
74428         * gnulib-tool (func_verify_module): report module name $module in
74429         error message, not $1.
74430         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74431         be created, only if it doesn't exist.
74432         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74433
74434 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74435
74436         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74437
74438 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74439
74440         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74441         memcmp if strcoll doesn't work.
74442
74443 2002-12-31  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74446         nonempty.
74447
74448 2002-12-31  Bruno Haible  <bruno@clisp.org>
74449
74450         * lib/memcoll.c (STRCOLL): New macro.
74451         (memcoll): Use it.
74452
74453 2002-12-31  Bruno Haible  <bruno@clisp.org>
74454
74455         * lib/localcharset.h: New file.
74456         * lib/localcharset.c: Include it.
74457         * lib/unicodeio.c: Likewise.
74458
74459 2002-12-31  Bruno Haible  <bruno@clisp.org>
74460
74461         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74462         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74463
74464 2002-12-31  Bruno Haible  <bruno@clisp.org>
74465
74466         * lib/getline.h: Include <stddef.h>, for size_t.
74467
74468         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74469         * lib/unicodeio.c: Don't include <stddef.h>.
74470
74471 2002-12-31  Bruno Haible  <bruno@clisp.org>
74472
74473         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74474         HAVE_TM_ZONE.
74475
74476 2002-12-24  Karl Berry  <karl@gnu.org>
74477
74478         * config/config.guess: update from prep.
74479
74480 2002-12-24  Bruno Haible  <bruno@clisp.org>
74481
74482         General infrasructure.
74483         * m4/README: Rewritten.
74484         * m4/onceonly.m4: New file.
74485         * m4/onceonly_2_57.m4: New file.
74486
74487         Module atexit.
74488         * m4/atexit.m4: New file.
74489
74490         Module strtod.
74491         * m4/strtod.m4: New file.
74492
74493         Module strtol.
74494         * m4/strtol.m4: New file.
74495
74496         Module strtoul.
74497         * m4/strtoul.m4: New file.
74498
74499         Module memchr.
74500         * m4/memchr.m4: New file.
74501
74502         Module memcmp.
74503         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74504         (jm_FUNC_MEMCMP): Invoke it.
74505
74506         Module memcpy.
74507         * m4/memcpy.m4: New file.
74508
74509         Module memmove.
74510         * m4/memmove.m4: New file.
74511
74512         Module memset.
74513         * m4/memset.m4: New file.
74514
74515         Module strcspn.
74516         * m4/strcspn.m4: New file.
74517
74518         Module strpbrk.
74519         * m4/strpbrk.m4: New file.
74520
74521         Module strstr.
74522         * m4/strstr.m4: New file.
74523
74524         Module strerror.
74525         * m4/strerror.m4: New file.
74526
74527         Module mktime.
74528         * m4/mktime.m4: Renamed from jm-mktime.m4.
74529         (gl_PREREQ_MKTIME): New macro.
74530         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74531
74532         Module malloc.
74533         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74534         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74535         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74536
74537         Module realloc.
74538         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74539         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74540         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74541
74542         Module strftime.
74543         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74544         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74545         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74546         gl_TM_GMTOFF.
74547         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74548
74549         Module xalloc.
74550         * m4/xalloc.m4: New file.
74551
74552         Module alloca.
74553         * m4/alloca.m4: New file.
74554
74555         Module putenv.
74556         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74557         (jm_FUNC_PUTENV): Invoke it.
74558
74559         Module setenv.
74560         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74561         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74562         when invoked twice.
74563         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74564         gt_FUNC_SETENV.
74565
74566         Module memrchr.
74567         * m4/memrchr.m4: New file.
74568
74569         Module stpcpy.
74570         * m4/stpcpy.m4: New file.
74571
74572         Module strcase.
74573         * m4/strcase.m4: New file.
74574
74575         Module strdup.
74576         * m4/strdup.m4: New file.
74577
74578         Module strnlen.
74579         * m4/strnlen.m4: New file.
74580
74581         Module strndup.
74582         * m4/strndup.m4: New file.
74583
74584         Module xstrtod.
74585         * m4/xstrtod.m4: New file.
74586
74587         Module xstrtol.
74588         * m4/xstrtol.m4: New file.
74589
74590         Module getdate.
74591         * m4/getdate.m4: New file.
74592
74593         Module unlocked-io.
74594         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74595         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74596         * m4/jm-glibc-io.m4n: Remove file.
74597
74598         Module long-options.
74599         * m4/long-options.m4: New file.
74600
74601         Module md5.
74602         * m4/md5.m4: New file.
74603
74604         Module sha.
74605         * m4/sha.m4: New file.
74606
74607         Module getstr.
74608         * m4/getstr.m4: New file.
74609
74610         Module getline.
74611         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74612         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74613         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74614         simply getline. Infoke gl_PREREQ_GETLINE.
74615
74616         Module obstack.
74617         * m4/obstack.m4: New file.
74618
74619         Module hash.
74620         * m4/hash.m4: New file.
74621
74622         Module readtokens.
74623         * m4/readtokens.m4: New file.
74624
74625         Module strverscmp.
74626         * m4/strverscmp.m4: New file.
74627
74628         Module stdbool.
74629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74630         OSF/1.
74631
74632         Module strtoll.
74633         * m4/strtoll.m4: New file.
74634
74635         Module strtoull.
74636         * m4/strtoull.m4: New file.
74637
74638         Module strtoimax.
74639         * m4/strtoimax.m4: New file.
74640
74641         Module strtoumax.
74642         * m4/strtoumax.m4: New file.
74643
74644         Module xstrtoimax.
74645         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74646         jm_AC_PREREQ_XSTRTOIMAX.
74647         Moved the strtol prerequisites to strtol.m4.
74648         Moved the strtoll prerequisites to strtoll.m4.
74649         Moved the strtoimax prerequisites to strtoimax.m4.
74650
74651         Module xstrtoumax.
74652         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74653         jm_AC_PREREQ_XSTRTOUMAX.
74654         Moved the strtoul prerequisites to strtoul.m4.
74655         Moved the strtoull prerequisites to strtoull.m4.
74656         Moved the strtoumax prerequisites to strtoumax.m4.
74657
74658         Module chown.
74659         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74660         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74661
74662         Module dup2.
74663         * m4/dup2.m4: New file.
74664
74665         Module ftruncate.
74666         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74667         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74668
74669         Module getgroups.
74670         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74671         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74672
74673         Module gettimeofday.
74674         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74675         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74676         gl_PREREQ_GETTIMEOFDAY.
74677
74678         Module mkdir.
74679         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74680         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74681
74682         Module mkstemp.
74683         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74684         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74685         jm_AC_TYPE_UINTMAX_T.
74686         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74687
74688         Module stat.
74689         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74690         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74691
74692         Module lstat.
74693         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74694         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74695
74696         Module timespec.
74697         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74698         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74699         * m4/st_mtim.m4: Indentation.
74700
74701         Module nanosleep.
74702         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74703         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74704         gl_PREREQ_NANOSLEEP.
74705
74706         Module regex.
74707         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74708         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74709         (gl_REGEX): New macro.
74710
74711         Module rename.
74712         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74713         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74714
74715         Module rmdir.
74716         * m4/rmdir.m4: New file.
74717
74718         Module utime.
74719         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74720         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74721         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74722
74723         Module dirname.
74724         * m4/dirname.m4: New file.
74725
74726         Module getopt.
74727         * m4/getopt.m4: New file.
74728
74729         Module unistd-safer.
74730         * m4/unistd-safer.m4: New file.
74731
74732         Module fnmatch.
74733         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74734         declaration.
74735         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74736         (gl_FUNC_FNMATCH_POSIX): New macro.
74737         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74738         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74739         simply fnmatch.
74740
74741         Module exclude.
74742         * m4/exclude.m4: New file.
74743
74744         Module human.
74745         * m4/human.m4: New file.
74746
74747         Module acl.
74748         * m4/acl.m4: Nop.
74749
74750         Module backupfile.
74751         * m4/backupfile.m4: New file.
74752         * m4/d-ino.m4: Indentation.
74753
74754         Module fsusage.
74755         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74756         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74757         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74758
74759         Module dirfd.
74760         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74761         requirements.
74762
74763         Module euidaccess.
74764         * m4/euidaccess.m4: New file.
74765
74766         Module file-type.
74767         * m4/file-type.m4: New file.
74768
74769         Module fileblocks.
74770         * m4/fileblocks.m4: New file.
74771
74772         Module filemode.
74773         * m4/filemode.m4: New file.
74774
74775         Module isdir.
74776         * m4/isdir.m4: New file.
74777
74778         Module lchown.
74779         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74780         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74781
74782         Module makepath.
74783         * m4/makepath.m4: New file.
74784
74785         Module modechange.
74786         * m4/modechange.m4: New file.
74787
74788         Module mountlist.
74789         * m4/mountlist.m4: New file.
74790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74791         Indentation.
74792
74793         Module path-concat.
74794         * m4/path-concat.m4: New file.
74795
74796         Module pathmax.
74797         * m4/pathmax.m4: New file.
74798
74799         Module same.
74800         * m4/same.m4: New file.
74801
74802         Module save-cwd.
74803         * m4/save-cwd.m4: New file.
74804
74805         Module savedir.
74806         * m4/savedir.m4: New file.
74807
74808         Module xgetcwd.
74809         * m4/xgetcwd.m4: New file.
74810         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74811
74812         Module xreadlink.
74813         * m4/xreadlink.m4: New file.
74814
74815         Module safe-read.
74816         * m4/safe-read.m4: New file.
74817
74818         Module safe-write.
74819         * m4/safe-write.m4: New file.
74820
74821         Module closeout.
74822         * m4/closeout.m4: New file.
74823
74824         Module stdio-safer.
74825         * m4/stdio-safer.m4: New file.
74826
74827         Module getpass.
74828         * m4/getpass.m4: New file.
74829
74830         Module getugroups.
74831         * m4/getugroups.m4: New file.
74832
74833         Module group-member.
74834         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74835         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74836
74837         Module idcache.
74838         * m4/idcache.m4: New file.
74839
74840         Module userspec.
74841         * m4/userspec.m4: New file.
74842
74843         Module gettime.
74844         * m4/clock_time.m4: New file.
74845         * m4/gettime.m4: New file.
74846
74847         Module settime.
74848         * m4/settime.m4: New file.
74849
74850         Module posixtm.
74851         * m4/posixtm.m4: New file.
74852
74853         Module gethostname.
74854         * m4/gethostname.m4: New file.
74855
74856         Module canon-host.
74857         * m4/canon-host.m4: New file.
74858
74859         Module gettext.
74860         * m4/codeset.m4: New file, from gettext-0.11.5.
74861         * m4/gettext.m4: New file, from gettext-0.11.5.
74862         * m4/glibc21.m4: New file, from gettext-0.11.5.
74863         * m4/iconv.m4: New file, from gettext-0.11.5.
74864         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74865         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74866         * m4/inttypes.m4: New file, from gettext-0.11.5.
74867         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74868         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74869         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74870         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74871         * m4/lib-link.m4: New file, from gettext-0.11.5.
74872         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74873         * m4/progtest.m4: New file, from gettext-0.11.5.
74874         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74875         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74876         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74877
74878         Module localcharset.
74879         * m4/localcharset.m4: New file.
74880
74881         Module hard-locale.
74882         * m4/hard-locale.m4: New file.
74883
74884         Module mbswidth.
74885         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74886         onceonly macros.
74887         * m4/mbrtowc.m4: Add comment.
74888
74889         Module memcasecmp.
74890         * m4/memcasecmp.m4: New file.
74891
74892         Module memcoll.
74893         * m4/memcoll.m4: New file.
74894
74895         Module unicodeio.
74896         * m4/unicodeio.m4: New file.
74897
74898         Module rpmatch.
74899         * m4/rpmatch.m4: New file.
74900
74901         Module yesno.
74902         * m4/yesno.m4: New file.
74903
74904         Module exitfail.
74905         * m4/exitfail.m4: New file.
74906
74907         Module c-stack.
74908         * m4/c-stack.m4 (gl_C_STACK): New macro.
74909         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74910
74911         Module error.
74912         * m4/error.m4 (gl_ERROR): New macro.
74913         (jm_PREREQ_ERROR): Use onceonly macros.
74914
74915         Module fatal.
74916         * m4/fatal.m4: New file.
74917
74918         Module getloadavg.
74919         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74920         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74921
74922         Module getpagesize.
74923         * m4/getpagesize.m4: New file.
74924
74925         Module getusershell.
74926         * m4/getusershell.m4: New file.
74927
74928         Module physmem.
74929         * m4/physmem.m4: New file.
74930
74931         Module posixver.
74932         * m4/posixver.m4: New file.
74933
74934         Module quotearg.
74935         * m4/quotearg.m4: New file.
74936
74937         Module quote.
74938         * m4/quote.m4: New file.
74939
74940         Module readutmp.
74941         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74942
74943         Module sig2str.
74944         * m4/sig2str.m4: New file.
74945
74946         Other.
74947         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74948         ulonglong.m4.
74949         * m4/intmax_t.m4: New file.
74950         * m4/d-type.m4: Indentation.
74951         * m4/jm-macros.m4: Update.
74952         * m4/prereq.m4 (jm_PREREQ): Update.
74953         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74954         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74955         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74956         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74957         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74958         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74959         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74960         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74961         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74962         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74963         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74964         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74965         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74966         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74967         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74968         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74969         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74970         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74971         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74972
74973 2002-12-24  Bruno Haible  <bruno@clisp.org>
74974
74975         * MODULES.txt: Update according to m4/ changes.
74976
74977         Module gettext.
74978         * config.rpath: New file, from gettext-0.11.5.
74979
74980         * modules/*: New module descriptions.
74981         * gnulib-tool: New file.
74982         * MODULES.html.sh: New file.
74983
74984 2002-12-21  Karl Berry  <karl@gnu.org>
74985
74986         * doc/fdl.texi: update to version 1.2.
74987
74988 2002-12-19  Karl Berry  <karl@gnu.org>
74989
74990         * config/config.guess: update from prep.
74991
74992 2002-12-18  Bruno Haible  <bruno@clisp.org>
74993
74994         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74995         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74996
74997 2002-12-17  Bruno Haible  <bruno@clisp.org>
74998
74999         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75000         stdlib.h, string.h.
75001
75002 2002-12-17  Bruno Haible  <bruno@clisp.org>
75003
75004         * lib/canon-host.c (strdup): Remove unused declaration.
75005
75006         * lib/fsusage.c: Include full_read.h.
75007         (get_fs_usage): Use full_read instead of safe_read.
75008
75009         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75010
75011 2002-12-12  Karl Berry  <karl@gnu.org>
75012
75013         * config/config.guess: update from prep.
75014
75015 2002-12-11  Bruno Haible  <bruno@clisp.org>
75016
75017         * m4/setenv.m4: New file, from gettext-0.11.5.
75018
75019 2002-12-11  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75022         not unsetenv().
75023         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75024         modifications:
75025
75026         2002-12-11  Bruno Haible  <bruno@clisp.org>
75027
75028                 * setenv.c (alloca): Fall back to malloc.
75029                 (freea): New macro.
75030                 (setenv): Use freea() to free memory allocated with alloca().
75031
75032         2002-11-13  Bruno Haible  <bruno@clisp.org>
75033
75034                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75035                 function declarations.
75036                 * unsetenv.c (unsetenv): Likewise.
75037
75038         2002-03-04  Bruno Haible  <bruno@clisp.org>
75039
75040                 Portability to AIX 4.3.3.
75041                 * unsetenv.c: New file, extracted from setenv.c.
75042                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75043
75044         2001-12-20  Bruno Haible  <bruno@clisp.org>
75045
75046                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75047                 use malloc instead. For SunOS 4.
75048
75049         2001-12-11  Bruno Haible  <bruno@clisp.org>
75050
75051                 * setenv.c: Declare alloca.
75052                 (compar_fn_t): New typedef.
75053                 (KNOWN_VALUE, STORE_VALUE): Use it.
75054
75055         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75056         setenv.h.
75057
75058 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75059
75060         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75061         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75062         Choose values that are less likely to collide with system fnmatch
75063         options.
75064         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75065         defined (e.g., a pure POSIX system).
75066         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75067         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75068
75069 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75070
75071         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75072         a pain in practice to deal with generated m4 files.  This change
75073         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75074
75075         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75076         and jm-glibc-io.m4, as they are no longer a special case.
75077         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75078         kludge and the auto-generation stuff.  Check only whether the
75079         functions are declared, not whether they exist, since older hosts
75080         that don't declare the functions can't use the optimization anyway.
75081
75082 2002-12-06  Jim Meyering  <jim@meyering.net>
75083
75084         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75085
75086         Merge in changes from libc's misc/error.c, in preparation
75087         for the merge of gnulib's changes back into libc.
75088
75089         * lib/error.c (_): Define only if not already defined.
75090         Move definition to follow all #include directives.
75091         Include unlocked-io.h only if !_LIBC.
75092         [_LIBC]: Include <libio/libioP.h>.
75093         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75094         (fflush): Tweak definition to use INTUSE.
75095         (putc): Define.
75096
75097 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75098
75099         * lib/alloca.c [defined emacs]: Include "lisp.h".
75100         (xalloc_die) [defined emacs]: New macro.
75101         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75102         [! defined emacs]: Include <xalloc.h>.
75103         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75104         (pointer): Typedef to POINTER_TYPE *.
75105         (malloc): Remove decl; we now always use xmalloc.
75106         (alloca): Use old-style definition, since Emacs needs this.
75107         Check for arithmetic overflow when computing combined size.
75108
75109 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75110
75111         Do not generate unlocked-io.h automatically, since it's easier to
75112         maintain it by hand.
75113
75114         * lib/unlocked-io.h: New file, from GNU diffutils,
75115         but with proper copyright notice and attribution.
75116         * lib/gen-uio: Remove.
75117         * lib/Makefile.am: Add copyright notice.
75118         (libfetish_a_SOURCES): Add unlocked-io.h.
75119         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75120         (DISTCLEANFILES, io_functions): Remove macros.
75121         (EXTRA_DIST): Remove gen_uio.
75122         (unlocked-io.h): Remove rule.
75123
75124 2002-12-04  Jim Meyering  <jim@meyering.net>
75125
75126         Reflect the fact that stat.c and lstat.c are no longer generated.
75127         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75128         (DISTCLEANFILES): Likewise.
75129         (EXTRA_DIST): Likewise.
75130         (all_local): Don't depend on stat.c or lstat.c.
75131         (stat.c, lstat.c): Remove rules.
75132         (EXTRA_DIST): Remove xstat.in.
75133
75134         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75135         * lib/stat.c: New file.  Contents mostly from xstat.in.
75136         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75137         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75138
75139         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75140         too.
75141         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75142
75143 2002-12-03  Jim Meyering  <jim@meyering.net>
75144
75145         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75146         but not semantics, to minimize the differences between these two files.
75147         (safe_read): Change comment to mention SAFE_READ_ERROR.
75148
75149         * lib/safe-read.c (IS_EINTR): Define.
75150         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75151
75152 2002-12-02  Jim Meyering  <jim@meyering.net>
75153
75154         * lib/safe-read.c (EINTR): Define.
75155         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75156         (INT_MAX): Provide fallback.
75157         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75158
75159         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75160
75161 2002-12-02  Bruno Haible  <bruno@clisp.org>
75162
75163         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75164         Define, taken from safe-read.c.
75165         (INT_MAX): Provide fallback.
75166         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75167         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75168
75169         * lib/safe-read.c (EINTR): Remove definition.
75170         (safe_read): Don't use EINTR if it is absent.
75171
75172 2002-12-01  Jim Meyering  <jim@meyering.net>
75173
75174         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75175         zero.
75176         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75177
75178 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75179
75180         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75181         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75182         with `if (! (value < limit)) abort ();', for readability.
75183
75184 2002-11-26  Karl Berry  <karl@gnu.org>
75185
75186         * lib/strdup.c: copy from libc again, with jim's ok.
75187         * lib/.cppi-disable: re-add strdup.c
75188
75189 2002-11-25  Karl Berry  <karl@gnu.org>
75190
75191         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75192         instead of "strtol.c".
75193
75194 2002-11-25  Karl Berry  <karl@gnu.org>
75195
75196         * config/install-sh: update from automake for variable quoting, $0 in
75197         error msgs, etc.
75198
75199         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75200         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75201         entry.
75202
75203 2002-11-25  Jim Meyering  <jim@meyering.net>
75204
75205         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75206
75207 2002-11-24  Karl Berry  <karl@gnu.org>
75208
75209         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75210         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75211
75212 2002-11-24  Jim Meyering  <jim@meyering.net>
75213
75214         Update from coreutils:
75215
75216         * lib/mktime.c: Merge in changes from libc.
75217
75218         Avoid a link-time failure on some Linux systems.
75219         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75220         (otherwise).
75221         (__mon_yday): Declare with the STATIC attribute.
75222         (__mktime_internal): Likewise.
75223         Based on a report from Greg Schafer.
75224
75225 2002-11-23  Jim Meyering  <jim@meyering.net>
75226
75227         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75228         Use `unsigned', not `int', as type of index.
75229
75230         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75231
75232         * lib/fsusage.c: Remove unneeded parentheses around operands of
75233         `defined'.
75234
75235 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75236
75237         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75238         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75239         so that we can be included first.
75240         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75241         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75242         No need to include stddef.h or sys/types.h any more.
75243         Surround local include files with "", not "<>".
75244         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75245         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75246         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75247         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75248         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75249         (ISPRINT): Remove; no longer needed now that we assume C89.
75250
75251         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75252         Preserve errno.
75253
75254         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75255         quotearg_char): Use SIZE_MAX rather than
75256         (size_t) -1 when we are talking about "infinity".
75257
75258         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75259
75260 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75261
75262         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75263         hint that one should use `if (! x) abort ();' rather than `assert
75264         (x);', and anyway it's one less thing to worry about configuring.
75265         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75266         hash_rehash, hash_insert): Use abort rather than assert.
75267
75268 2002-11-22  Bruno Haible  <bruno@clisp.org>
75269
75270         * lib/safe-read.h: Assume C89. Add comments.
75271         (safe_read): Change return type to size_t.
75272         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75273         byte counts > SSIZE_MAX correctly.
75274         * lib/safe-write.h: New file.
75275         * lib/safe-write.c: New file.
75276         * lib/full-read.h: New file.
75277         * lib/full-read.c: New file.
75278         * lib/full-write.h: Assume C89. Add comments.
75279         * lib/full-write.c: Include safe-write.h.
75280         (full_write): Rewritten to use safe_write.
75281         Suggested by Jim Meyering and Paul Eggert.
75282
75283 2002-11-21  Jim Meyering  <jim@meyering.net>
75284
75285         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75286
75287         Merge in changes from the coreutils.
75288
75289         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75290         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75291         <stdint.h>.
75292         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75293         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75294         int.  Work more efficiently if X is the same width as uintmax_t.
75295         Do not compare X to -1, to avoid bogus compiler warning.
75296         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75297         Don't assume that f_frsize and f_bsize are the same type.
75298
75299         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75300         warning on FreeBSD.
75301
75302         * lib/makepath.c (make_path): Restore umask *before* creating the final
75303         component.
75304         (make_path): Minor reformatting.
75305
75306         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75307         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75308         HAVE_MALLOC/HAVE_REALLOC.
75309
75310         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75311         dummy ones.  At least on GNU/Linux systems, `auto' means something
75312         else.
75313         From Michael Stone.
75314
75315 2002-11-21  Bruno Haible  <bruno@clisp.org>
75316
75317         Remove case insensitive option matching.
75318         * lib/argmatch.h (argcasematch): Remove declaration.
75319         (ARGCASEMATCH): Remove macro.
75320         (__xargmatch_internal): Remove case_sensitive argument.
75321         (XARGMATCH): Update.
75322         (XARGCASEMATCH): Remove macro.
75323         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75324         case_sensitive argument.
75325         (argcasematch): Remove function.
75326         (__xargmatch_internal): Remove case_sensitive argument.
75327         (main): Use XARGMATCH instead of XARGCASEMATCH.
75328
75329         * lib/xmalloc.c: Change compile-time error message. Add comment about
75330         required autoconf version.
75331
75332 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75333
75334         Merge argmatch cleanups from Bison.  Assume C89.
75335
75336         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75337         Include stdlib.h, for EXIT_FAILURE.
75338         Always include <string.h>, since we assume C89.
75339         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75340         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75341         Include <stddef.h> instead, since it's all we need for size_t.
75342         (PARAMS): Remove.  All uses removed.
75343         (ARRAY_CARDINALITY): Do not bother to #undef.
75344         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75345         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75346         Remove unnecessary parentheses.
75347         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75348         Insert necessary parentheses.
75349         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75350         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75351
75352 2002-11-19  Bruno Haible  <bruno@clisp.org>
75353
75354         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75355         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75356
75357         * lib/mbswidth.h (PARAMS): Remove macro.
75358         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75359         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75360
75361         * lib/gcd.h (PARAMS): Remove macro.
75362         (gcd): Use ANSI C function declarations.
75363         * lib/gcd.c (gcd): Likewise.
75364
75365 2002-11-15  Bruno Haible  <bruno@clisp.org>
75366
75367         * lib/strcspn.c: Include <stddef.h>.
75368         (strcspn): Use ANSI C function declaration. Change return type to
75369         size_t. Use NULL.
75370         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75371         (strpbrk): Use NULL.
75372         * lib/strpbrk.h (PARAMS): Remove macro.
75373         (strpbrk): Use ANSI C function declaration.
75374         * lib/strstr.c: Don't include <sys/types.h>.
75375         * lib/strstr.h (PARAMS): Remove macro.
75376         (strstr): Use ANSI C function declarations.
75377
75378 2002-11-14  Karl Berry  <karl@gnu.org>
75379
75380         * config/mkinstalldirs: `do' on separate line, instead of
75381         `for var; do'.
75382
75383 2002-11-06  Bruno Haible  <bruno@clisp.org>
75384
75385         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75386         * lib/gcd.c (gcd): Likewise.
75387
75388 2002-11-05  Bruno Haible  <bruno@clisp.org>
75389
75390         * lib/gcd.h: New file, from gettext-0.11.5.
75391         * lib/gcd.c: New file, from gettext-0.11.5.
75392
75393 2002-11-05  Bruno Haible  <bruno@clisp.org>
75394
75395         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75396         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75397         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75398         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75399
75400         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75401         <libintl.h>.
75402         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75403         <libintl.h>.
75404
75405         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75406         * lib/human.c: Include gettext.h instead of <libintl.h>.
75407         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75408         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75409         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75410         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75411         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75412         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75413         (textdomain): Remove definition.
75414         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75415
75416         * lib/long-options.c: Remove include of <libintl.h> and definition of
75417         _.
75418         * lib/same.c: Remove include of <libintl.h> and definition of _.
75419
75420 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75421
75422         * lib/config.charset: A few additions for Solaris.
75423
75424 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75425
75426         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75427         * lib/localcharset.c (locale_charset): Declare as extern "C".
75428
75429 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75430
75431         * lib/config.charset: msdos in uk_UA uses CP1125.
75432
75433 2002-11-04  Bruno Haible  <bruno@clisp.org>
75434
75435         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75436         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75437         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75438         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75439         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75440
75441 2002-11-04  Bruno Haible  <bruno@clisp.org>
75442
75443         * lib/localcharset.c (locale_charset): Don't return an empty string.
75444
75445 2002-11-04  Bruno Haible  <bruno@clisp.org>
75446
75447         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75448         aliases.
75449
75450 2002-11-04  Bruno Haible  <bruno@clisp.org>
75451
75452         * lib/config.charset: Update for newest glibc. Add canonical names
75453         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75454
75455 2002-11-04  Bruno Haible  <bruno@clisp.org>
75456
75457         * lib/config.charset: Add support for NetBSD.
75458
75459 2002-11-04  Bruno Haible  <bruno@clisp.org>
75460
75461         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75462
75463 2002-11-01  Bruno Haible  <bruno@clisp.org>
75464
75465         * configure.in: Add AC_CONFIG_AUX_DIR call.
75466         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75467         test/Makefile.
75468         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75469
75470 2002-09-28  Karl Berry  <karl@gnu.org>
75471
75472         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75473         installed automake until the next release, since changes have been
75474         made.
75475
75476 2002-09-25  Karl Berry  <karl@gnu.org>
75477
75478         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75479         * lib/getopt*: copy from libc/posix.
75480         * lib/gettext.h: copy from gettext.
75481         * lib/.cppi-disable: add strdup.c, gettext.h.
75482
75483 2002-09-25  Karl Berry  <karl@gnu.org>
75484
75485         * config/srclist.txt: enable gettext.h check.
75486         * config/config.{guess,sub}: update from prep.
75487         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75488                 from automake 1.6.3.
75489         See srclist*.
75490
75491 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75492
75493         * regex.c (PATFETCH): Remove the translating fetch.
75494         (PATFETCH_RAW): Rename to PATFETCH.
75495         (set_image_of_range): New fun.
75496         (SET_RANGE_TABLE_WORK_AREA): Use it.
75497         (regex_compile): Don't translate the pattern chars so eagerly.
75498         Only do it when inserting an `exactn' bytecode or when handling
75499         a char-range.
75500         (mutually_exclusive_p): Avoid empty statement.
75501
75502 2002-07-06  Jim Meyering  <meyering@lucent.com>
75503
75504         * m4/README: Don't mention Makefile.am.in.
75505         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75506
75507 2002-07-01  Jim Meyering  <meyering@lucent.com>
75508
75509         * lib/c-stack.c: Include sys/time.h.
75510         From Volker Borchert.
75511
75512 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75513
75514         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75515
75516 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75517
75518         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75519         New macro.  Use it uniformly instead of
75520         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75521         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75522         reported by Vin Shelton.
75523
75524 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75525
75526         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75527         Do not assume SA_SIGINFO behavior.
75528         Bug reported by Jim Meyering on NetBSD 1.5.2.
75529
75530 2002-06-22  Jim Meyering  <meyering@lucent.com>
75531
75532         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75533         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75534
75535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75536         now that configure.ac uses AC_GNU_SOURCE.
75537         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75538         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75539
75540         Update to latest tools.  Suggestions from Paul Eggert.
75541         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75542         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75543         * m4/fnmatch.m4: Likewise.
75544         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75545         to AC_HEADER_STDBOOL
75546
75547 2002-06-22  Jim Meyering  <meyering@lucent.com>
75548
75549         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75550         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75551
75552 2002-06-22  Jim Meyering  <meyering@lucent.com>
75553
75554         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75555
75556         * lib/exitfail.c, exitfail.h: Likewise.
75557         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75558
75559         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75560         of fnmatch.h.
75561         (EXTRA_DIST): Add fnmatch_loop.c.
75562         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75563
75564         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75565         * lib/fnmatch.c: Update from diffutils-2.8.2.
75566         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75567         * lib/fnmatch.h: Remove file.
75568
75569 2002-06-21  Jim Meyering  <meyering@lucent.com>
75570
75571         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75572         * m4/mbrtowc.m4: Likewise.
75573
75574         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75575         * m4/mbswidth.m4: Reflect name change:
75576         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75578
75579         * m4/lib-link.m4: Update from gettext-0.11.2.
75580         * m4/gettext.m4: Likewise.
75581
75582         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75583         From Alfred M. Szmidt.
75584
75585 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75586
75587         * lib/file-type.h: Report an error if neither S_ISREG nor
75588         S_IFREG is defined, instead of using a test specific to glibc
75589         2.2.  This should be safe, since POSIX requires S_ISREG and
75590         Unix Version 7 had S_IFREG.  We don't need to check for
75591         <sys/types.h> since we don't use any symbols that it defines.
75592
75593 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75594
75595         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75596         $@-t, so that each temporary file name is unique and valid in the first
75597         8 characters, for operation under DOS.
75598
75599 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75600
75601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75602
75603 2002-06-15  Jim Meyering  <meyering@lucent.com>
75604
75605         Work even with DJGPP 2.03, which lacks support for symlinks.
75606         From Richard Dawe.
75607         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75608         is defined.
75609         * lib/lchown.c (S_ISLNK): Likewise.
75610
75611 2002-06-15  Jim Meyering  <meyering@lucent.com>
75612
75613         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75614         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75615         have been included before this file.
75616
75617 2002-06-14  Jim Meyering  <meyering@lucent.com>
75618
75619         * lib/file-type.h: Use the version from diffutils-2.8.2.
75620         * lib/file-type.c: Likewise.
75621
75622 2002-06-07  Jim Meyering  <meyering@lucent.com>
75623
75624         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75625         They're needed at least for NetBSD 1.5.2.
75626         ($statxfs_includes): Include those same headers.
75627         ($statxfs_includes): Include sys/vfs.h if available.
75628         ($statxfs_includes): Likewise for sys/statvfs.h.
75629         Check for the following members in both structs statfs and statvfs:
75630         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75631
75632 2002-06-01  Jim Meyering  <meyering@lucent.com>
75633
75634         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75635         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75636
75637 2002-05-28  Jim Meyering  <meyering@lucent.com>
75638
75639         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75640         Reported by Volker Borchert.
75641
75642 2002-05-27  Jim Meyering  <meyering@lucent.com>
75643
75644         Fix a problem seen only on nonconforming systems whereby ls.c's
75645         use of localtime, and then of gettimeofday would cause trouble:
75646         the localtime call used to initialize rpl_gettimeofday's save
75647         mechanism would clobber ls's current local time information so
75648         that in any long listing the first file would always be listed
75649         with date 1970-01-01.  Analysis by Volker Borchert.
75650
75651         * lib/gettimeofday.c (localtime): Undefine.
75652         (rpl_localtime): New function.
75653
75654 2002-05-27  Jim Meyering  <meyering@lucent.com>
75655
75656         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75657         localtime.
75658
75659         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75660         use the replacement function; it wouldn't resolve at link time.
75661         Reported by Volker Borchert.
75662
75663 2002-05-22  Jim Meyering  <meyering@lucent.com>
75664
75665         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75666         file-type.h.
75667         * lib/file-type.h: New file.
75668         * lib/file-type.c (file_type): New file/function.  Extracted from
75669         diffutils.
75670
75671 2002-04-30  Jim Meyering  <meyering@lucent.com>
75672
75673         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75674
75675 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75676
75677         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75678
75679 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75680
75681         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75682         Do not check for alloca.h (no longer used) or stdbool.h (was never
75683         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75684
75685 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75686
75687         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75688
75689 2002-04-29  Jim Meyering  <meyering@lucent.com>
75690
75691         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75692         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75693         Use AC_FUNC_STRNLEN here instead.
75694
75695         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75696         With autoconf-2.53a, it's part of AC_PROG_CC.
75697
75698 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75699
75700         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75701         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75702
75703 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75704
75705         * lib/sig2str.h, lib/sig2str.c: New files.
75706         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75707
75708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75709
75710         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75711         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75712         of 127, since 64 is the largest conceivable number for ancient
75713         nonstandard hosts.
75714         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75715
75716 2002-04-28  Jim Meyering  <meyering@lucent.com>
75717
75718         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75719
75720 2002-04-24  Jim Meyering  <meyering@lucent.com>
75721
75722         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75723         (jm_PREREQ): Use it.
75724
75725         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75726         mach/mach.h fcntl.h.
75727         Check for this function: setlocale.
75728
75729 2002-04-24  Jim Meyering  <meyering@lucent.com>
75730
75731         * lib/gettext.h: New file, from Gettext.
75732         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75733         (libfetish_a_SOURCES): Add gettext.h.
75734
75735 2002-04-16  Jim Meyering  <meyering@lucent.com>
75736
75737         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75738         ut_pid, ut_id, ut_exit.
75739
75740 2002-04-16  Jim Meyering  <meyering@lucent.com>
75741
75742         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75743         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75744         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75745
75746 2002-04-12  Jim Meyering  <meyering@lucent.com>
75747
75748         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75749         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75750         existence of the getmntinfo function.  Needed for Darwin 5.3.
75751
75752         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75753         This is necessary at least on Darwin 5.3.
75754
75755         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75756         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75757         strnlen.o in the library, and that makes some versions of ranlib
75758         object.
75759
75760 2002-04-12  Jim Meyering  <meyering@lucent.com>
75761
75762         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75763
75764 2002-04-09  Jim Meyering  <meyering@lucent.com>
75765
75766         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75767         to be more precise.  Rather than saying we're checking whether the
75768         function `works', say what we're testing.
75769         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75770         Reported by Bruno Haible.
75771
75772 2002-03-10  Jim Meyering  <meyering@lucent.com>
75773
75774         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75775         Suggestion from Santiago Vila.
75776
75777 2002-03-08  Jim Meyering  <meyering@lucent.com>
75778
75779         * lib/rename.c: Mention that this wrapper is needed also on
75780         mips-dec-ultrix4.4 systems.
75781
75782 2002-03-02  Jim Meyering  <meyering@lucent.com>
75783
75784         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75785         not HAVE_CLOCK_SETTIME.
75786
75787 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75788
75789         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75790         Check for clock_settime.
75791
75792 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75793
75794         * lib/nanosleep.h: Rename to....
75795         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75796
75797         * lib/gettime.c: New file.
75798         * lib/settime.c: New file.
75799         * lib/stime.c: Remove.
75800
75801         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75802         timespec.h.  Remove nanosleep.h.
75803
75804 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75805
75806         * m4/acl.m4: New file.
75807         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75808         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75809
75810 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75811
75812         * lib/acl.c, lib/acl.h: New files.
75813         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75814
75815 2002-02-24  Jim Meyering  <meyering@lucent.com>
75816
75817         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75818         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75819         cause trouble.  Reported by Nelson Beebe.
75820
75821 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75822
75823         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75824         compilers that don't know that xalloc_die never returns.
75825
75826 2002-02-20  Jim Meyering  <meyering@lucent.com>
75827
75828         * lib/getdate.c: Regenerate using bison-1.33.
75829
75830 2002-02-17  Jim Meyering  <meyering@lucent.com>
75831
75832         * config/config.guess (main): Don't use `head -1'; it's no longer
75833         portable. Use `sed 1q' instead.
75834
75835 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75836
75837         * m4/codeset.m4: Upgrade to gettext-0.11.
75838         * m4/gettext.m4: Upgrade to gettext-0.11.
75839         * m4/glibc21.m4: Upgrade to gettext-0.11.
75840         * m4/iconv.m4: Upgrade to gettext-0.11.
75841         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75842         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75843         * m4/lib-ld.m4: New file, from gettext-0.11.
75844         * m4/lib-link.m4: New file, from gettext-0.11.
75845         * m4/lib-prefix.m4: New file, from gettext-0.11.
75846         * m4/progtest.m4: Upgrade to gettext-0.11.
75847
75848 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75849
75850         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75851         (jm_PREREQ): Use it.
75852
75853 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75854
75855         * lib/posixver.c, lib/posixver.h: New files.
75856         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75857
75858 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75859             Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75862         (fwrite_success_callback): New declaration.
75863         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75864         print_unicode_char. Call failure callback instead of error.
75865         (fwrite_success_callback): New function.
75866         (exit_failure_callback): New function.
75867         (fallback_failure_callback): New function.
75868         (print_unicode_char): Call unicode_to_mb.
75869
75870 2002-01-26  Jim Meyering  <meyering@lucent.com>
75871
75872         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75873         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75874
75875 2002-01-26  Jim Meyering  <meyering@lucent.com>
75876
75877         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75878
75879 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75880
75881         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75882
75883 2002-01-22  Jim Meyering  <meyering@lucent.com>
75884
75885         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75886         Otherwise, some versions of automake would omit the rule that makes
75887         Makefile from Makefile.in.
75888
75889 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75890
75891         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75892         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75893         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75894         (memcoll): Set errno to zero if there is no error.
75895
75896         * lib/quotearg.c (quotearg_buffer_restyled):
75897         Fix bug with quoting buffers containing NUL when backslashing escapes.
75898         This bug was exposed by the other changes in this patch.
75899         (quotearg_n_options): New arg ARGSIZE.
75900         All callers changed.
75901         (quoting_options_from_style): New function.
75902         (quotearg_n_style): Use it.
75903         (quotearg_n_style_mem): New function.
75904
75905         * lib/quotearg.h (quotearg_n_style_mem): New function.
75906
75907 2002-01-19  Jim Meyering  <meyering@lucent.com>
75908
75909         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75910         Remove useless quotes: DF_PROG="df".
75911         * m4/strnlen.m4: New file.
75912
75913 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75914
75915         * lib/backupfile.c (ISDIGIT): Comment fix.
75916         * lib/getdate.y (ISDIGIT): Likewise.
75917         * lib/posixtm.c (ISDIGIT, year): Likewise.
75918         * lib/strverscmp.c (ISDIGIT): Likewise.
75919         * lib/userspec.c (ISDIGIT): Likewise.
75920
75921 2002-01-16  Jim Meyering  <meyering@lucent.com>
75922
75923         * lib/getdate.y: Add three semicolons, each just before a closing
75924         brace. Bison (as of version 1.31) no longer papers over that mistake.
75925
75926 2002-01-05  Jim Meyering  <meyering@lucent.com>
75927
75928         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75929
75930 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75931
75932         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75933         not silently exit merely because the output buffer happens to
75934         have nothing pending.
75935
75936 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75937
75938         See the big note in ../ChangeLog.
75939         * lib/human.c (suffixes): Prefer K to k for 1024.
75940         (generate_suffix_backwards): New function.
75941         (human_readable_inexact): Use it.
75942         * lib/xstrtol.c (__xstrtol): If there is no number but there
75943         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75944         Accept 'K' as well as 'k'.
75945
75946 2001-12-15  Jim Meyering  <meyering@lucent.com>
75947
75948         * lib/regex.h (__restrict_arr): Update from libc.
75949
75950         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75951         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75952         (STREQ): Define.
75953
75954 2001-12-14  Jim Meyering  <meyering@lucent.com>
75955
75956         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75957         Suggestion from Bruno Haible.
75958
75959 2001-12-10  Jim Meyering  <meyering@lucent.com>
75960
75961         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75962         xrealloc, Instead, include "xalloc.h".
75963         (initbuffer): Don't cast xmalloc return value to char*.
75964         (readline): Reword comment.
75965         Don't cast xrealloc return value to char*
75966         Return NULL, not 0.
75967
75968 2001-12-09  Jim Meyering  <meyering@lucent.com>
75969
75970         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75971         about `signed and unsigned type in conditional expression'.
75972         * lib/posixtm.c (posix_time_parse): Likewise.
75973
75974         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75975
75976         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75977         to avoid a pedantic warning.
75978
75979         * lib/getstr.c: Don't include assert.h.
75980         (getstr): Remove warning-evoking assertions.
75981         Return -1 if offset parameter is out of bounds.
75982         Change the type of a local from int to size_t.
75983
75984         * lib/strftime.c (my_strftime_localtime_r): Include this function
75985         definition in the `#if ! HAVE_TM_GMTOFF' block.
75986
75987         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75988         Include xalloc.h instead.
75989
75990 2001-12-02  Jim Meyering  <meyering@lucent.com>
75991
75992         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75993         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75994         included.
75995
75996         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75997         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75998
75999 2001-11-30  Akim Demaille  <akim@epita.fr>
76000
76001         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76002         before being defined.
76003
76004 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76005
76006         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76007         First arg is int, not unsigned.
76008         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76009         (SIZE_MAX, UINT_MAX): New macros.
76010         (quotearg_n_options): Abort if N is negative.
76011         Avoid overflow check on hosts where size_t is 64 bits and int
76012         is 32 bits, as overflow is impossible there.
76013         Fix off-by-one typo that caused unnecessary reallocation.
76014
76015 2001-11-27  Jim Meyering  <meyering@lucent.com>
76016
76017         * lib/tempname.c: Merge with version from libc.
76018         * lib/regex.c: Likewise.
76019
76020         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76021         systems for which STDC_HEADERS is 0, it was not included, resulting in
76022         a warning about an integer-to-pointer conversion problem with getenv.
76023         Reported by Volker Borchert.
76024
76025 2001-11-26  Jim Meyering  <meyering@lucent.com>
76026
76027         * lib/gtod.h: Remove file.
76028         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76029         * lib/gettimeofday.c: Don't include gtod.h.
76030         (GTOD_init): Remove function.
76031         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76032         Suggestion from Volker Borchert.
76033
76034 2001-11-23  Jim Meyering  <meyering@lucent.com>
76035
76036         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76037         it.
76038         * lib/hash.c (struct hash_table): Define it here instead.
76039
76040 2001-11-22  Jim Meyering  <meyering@lucent.com>
76041
76042         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76043
76044 2001-11-20  Jim Meyering  <meyering@lucent.com>
76045
76046         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76047         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76048
76049 2001-11-19  Jim Meyering  <meyering@lucent.com>
76050
76051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76052         directory.  Use "conftestXXXXXX" as the template.
76053         Suggestion from Paul Eggert.
76054
76055         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76056         immediately, so the test doesn't mistakenly hit the max-open-files
76057         limit.
76058
76059 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76060
76061         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76062         (TEMPORARIES): New macro.
76063         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76064         removes an artificial limitation (e.g. HP-UX 10.20, where
76065         TMP_MAX is 17576).
76066
76067 2001-11-18  Jim Meyering  <meyering@lucent.com>
76068
76069         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76070
76071 2001-11-18  Jim Meyering  <meyering@lucent.com>
76072
76073         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76074         on SunOS 4.
76075
76076         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76077         files will be created before anything else.
76078
76079 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76080
76081         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76082         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76083
76084 2001-11-17  Jim Meyering  <meyering@lucent.com>
76085
76086         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76087         Prompted by a report from Bob Proulx.
76088
76089         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76090         Instead, require UTILS_FUNC_MKSTEMP.
76091
76092 2001-11-17  Jim Meyering  <meyering@lucent.com>
76093
76094         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76095         Now, that's done as part of AC_FUNC_STRTOD.
76096
76097 2001-11-17  Jim Meyering  <meyering@lucent.com>
76098
76099         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76100         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76101         rather than group writable.  Patch by Juan F. Codagnone.
76102
76103         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76104         xrealloc, Instead, include "xalloc.h".
76105
76106         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76107         Remove explicit declarations of xmalloc, xrealloc,
76108         and xstrdup.  Instead, include "xalloc.h".
76109
76110         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76111         unlocked-io.h.
76112         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76113         Likewise.
76114         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76115
76116         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76117         Reported by Padraig Brady.
76118
76119         * lib/mkstemp.c: #undef mkstemp.
76120         Include config.h.
76121         (rpl_mkstemp): Rename from mkstemp.
76122         Protoize.
76123
76124 2001-11-16  Jim Meyering  <meyering@lucent.com>
76125
76126         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76127         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76128         determine the amount of total physical memory, use pstat_getstatic.
76129         HPUX-11 doesn't define _SC_PHYS_PAGES.
76130         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76131         If sysconf couldn't be used to determine the amount of available
76132         physical memory, use both pstat_getstatic and pstat_getdynamic.
76133         Based on a patch from Bob Proulx.
76134
76135 2001-11-10  Jim Meyering  <meyering@lucent.com>
76136
76137         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76138         (jm_PREREQ): Use it.
76139
76140 2001-11-09  Jim Meyering  <meyering@lucent.com>
76141
76142         * m4/jm-macros.m4: Require autoconf-2.52f.
76143         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76144         Use these AC_-prefixed names, not the AM_-prefixed ones.
76145
76146         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76147
76148 2001-11-05  Jim Meyering  <meyering@lucent.com>
76149
76150         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76151
76152 2001-11-04  Jim Meyering  <meyering@lucent.com>
76153
76154         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76155         $DEFS.
76156
76157 2001-11-03  Jim Meyering  <meyering@lucent.com>
76158
76159         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76160         of AC_DEFUN.
76161
76162         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76163         know the name of the variable in the macro definition.
76164
76165 2001-11-03  Jim Meyering  <meyering@lucent.com>
76166
76167         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76168         in argmatch_to_argument call.
76169
76170         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76171         argument.
76172
76173         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76174         e.g., a fault due to an attempt to free a NULL pointer.
76175
76176 2001-11-01  Jim Meyering  <meyering@lucent.com>
76177
76178         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76179         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76180
76181 2001-11-01  Jim Meyering  <meyering@lucent.com>
76182
76183         * lib/dirfd.c, lib/dirfd.h: New files.
76184         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76185
76186         * lib/hash.c (hash_print) [TESTING]: Clean up.
76187
76188 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76189
76190         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76191         to avoid a warning if -Wall.
76192
76193 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76194
76195         * README: New file
76196         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76197         (per RMS's instructions, this is now the canonical source)
76198         * lgpl/, gpl/: New directories.
76199
76200 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76201
76202         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76203
76204 2001-10-21  Jim Meyering  <meyering@lucent.com>
76205
76206         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76207         this code would end up calling gettext even in packages built
76208         with --disable-nls.
76209         * lib/getopt.c (_): Likewise.
76210         * lib/regex.c (_): Likewise.
76211
76212 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76213
76214         * m4/error.m4 (jm_PREREQ_ERROR):
76215         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76216         AC_FUNC_STRERROR_R does that.
76217         Check for strerror declaration.
76218
76219         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76220         are supposed to have them these days.
76221         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76222         Merge changes from latest Autoconf CVS.
76223         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76224         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76225         POSIX decided to standardize on the int flavor of strerror_r.
76226
76227 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76228
76229         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76230         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76231         Use strerror_r that is only a macro, even if it is not a function.
76232         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76233         (private_strerror): Use prototypes, not old-style function definition.
76234         (print_errno_message): New function.
76235         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76236         char*-flavored one.
76237         (error_tail, error, error_at_line): Use it.
76238
76239 2001-10-11  Jim Meyering  <meyering@lucent.com>
76240
76241         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76242         and quote_n (1, ... to avoid clobbering a buffer.
76243
76244 2001-10-05  Jim Meyering  <meyering@lucent.com>
76245
76246         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76247         hash-pjw.h.
76248         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76249         * lib/hash-pjw.h: New file.
76250
76251 2001-09-30  Jim Meyering  <meyering@lucent.com>
76252
76253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76254         `struct fsstat' has the `f_fstypename' member.
76255         Use that to define FS_TYPE, which is now used to make
76256         the getfsstat link test tighter.
76257
76258 2001-09-30  Jim Meyering  <meyering@lucent.com>
76259
76260         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76261         Include <sys/ucred.h>, for Apple Darwin.
76262         Include sys/mount.h and sys/fs_types.h only if available.
76263         (FS_TYPE): Define.
76264         (read_filesystem_list): Use FS_TYPE.
76265
76266 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76267
76268         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76269         a boolean context.
76270
76271 2001-09-29  Jim Meyering  <meyering@lucent.com>
76272
76273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76274         [one-argument getmntent function]): Include stdio.h before mntent.h.
76275         SunOS 4.1.x needs it for the declaration of `FILE'.
76276         Patch by Volker Borchert.
76277
76278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76279         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76280         sys/fs_types.h, and make the link-test for getfsstat guard #include
76281         directives with appropriate #if HAVE_*_H tests so that we can
76282         detect getfsstat on Apple Darwin1.3.7 systems.
76283         Reported by Nelson Beebe.
76284         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76285
76286 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76287
76288         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76289         #defines strtoimax.  Also treat the other strto* functions
76290         like strtoimax.
76291
76292         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76293         Check for strtoul and strtoumax,
76294         as those declarations are made even in the signed case.
76295         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76296         Likewise, for strtol and strtoimax.
76297
76298 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76299
76300         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76301         #defines strtoimax.  Also treat the other strto* functions
76302         like strtoimax.
76303
76304         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76305         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76306         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76307
76308 2001-09-26  Jim Meyering  <meyering@lucent.com>
76309
76310         Most macros in unlocked-io.h had the wrong number of arguments.
76311         * lib/gen-uio: New script.
76312         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76313         * lib/unlocked-io.hin: Remove file.
76314         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76315         rather than trying to embed it here.
76316         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76317         Reported by Padraig Brady.
76318
76319 2001-09-25  Volker Borchert  <bt@teknon.de>
76320
76321         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76322         `result'.
76323
76324 2001-09-24  Jim Meyering  <meyering@lucent.com>
76325
76326         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76327
76328 2001-09-23  Jim Meyering  <meyering@lucent.com>
76329
76330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76331         instead of the mere test for existence of mntent.h.  The latter
76332         would get a false-positive on AIX 3.4 systems.
76333         In the outer getmntent if-block, don't die if neither of the getmntent
76334         tests succeeds.  Instead, just fall through and continue with the
76335         remaining tests.
76336
76337 2001-09-23  Jim Meyering  <meyering@lucent.com>
76338
76339         * lib/mountlist.c: Remove useless parentheses in #if directives.
76340         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76341         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76342
76343 2001-09-22  Jim Meyering  <meyering@lucent.com>
76344
76345         * m4/gettext.m4: New file.  From gettext.
76346         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76347         * m4/progtest.m4: Likewise
76348         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76349         * m4/glibc21.m4: Likewise.
76350
76351         * m4/libintl.m4: Remove.  No longer used.
76352
76353 2001-09-22  Jim Meyering  <meyering@lucent.com>
76354
76355         * lib/localcharset.c: Update from latest gettext.
76356         * lib/config.charset: Likewise.
76357
76358 2001-09-20  Jim Meyering  <meyering@lucent.com>
76359
76360         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76361         strtoimax.
76362         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76363         strtoumax.
76364
76365 2001-09-20  Jim Meyering  <meyering@lucent.com>
76366
76367         * lib/xstrtol.c (strtoimax): Guard declaration with
76368         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76369         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76370         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76371         (strtoumax): Likewise, for completeness (it wasn't necessary).
76372
76373 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76374
76375         * lib/strtoimax.c (HAVE_LONG_LONG):
76376         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76377         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76378         to work around bug in IBM C compiler.
76379
76380 2001-09-17  Jim Meyering  <meyering@lucent.com>
76381
76382         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76383         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76384         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76385         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76386         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76387         whenever the right hand side need not be expanded by the shell.
76388
76389 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76390
76391         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76392         library.  It's not correct, as some older glibcs are buggy.
76393         fnmatch wasn't fixed until glibc 2.2.
76394
76395         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76396         special shell magic here.
76397
76398 2001-09-16  Jim Meyering  <meyering@lucent.com>
76399
76400         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76401         * m4/jm-macros.m4: Require it.
76402
76403 2001-09-16  Jim Meyering  <meyering@lucent.com>
76404
76405         * lib/mkdir.c: New file.
76406
76407 2001-09-15  Jim Meyering  <meyering@lucent.com>
76408
76409         * m4/jm-macros.m4: Check for help2man.
76410
76411 2001-09-11  Jim Meyering  <meyering@lucent.com>
76412
76413         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76414         The body, by Paul Eggert, was moved here from configure.in.
76415         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76416
76417 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76418
76419         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76420         (jm_PREREQ): Use it.
76421
76422 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76423
76424         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76425         Use ssize_t, not int, to store result of readlink.
76426         Check for ssize_t overflow as well as size_t overflow,
76427         as POSIX says the result of readlink is implementation-defined
76428         when ssize_t overflows.
76429         Remove unnecessary cast to char*.
76430         Use free+malloc instead of realloc, as the storage doesn't need
76431         to be preserved and it's clearer and can be more efficient that way.
76432         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76433         * lib/xreadlink.h (xreadlink): Update prototype.
76434
76435 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76436
76437         * lib/xgetcwd.c: Revert some of the previous change; intead,
76438         fix the HAVE_GETCWD_NULL code to behave more like the
76439         !HAVE_GETCWD_NULL code used to.
76440
76441         Include "xalloc.h".
76442         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76443         invoke xalloc_die.
76444
76445 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76446
76447         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76448         sys/param.h, as pathmax.h includes them.
76449
76450 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76451
76452         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76453         (jm_PREREQ_XGETCWD): New macro.
76454
76455         * m4/getcwd.m4: New file.
76456
76457 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76458
76459         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76460         like the HAVE_GETCWD_NULL code.
76461         Include pathmax.h if not HAVE_GETCWD.
76462         Do not include xalloc.h.
76463         (INITIAL_BUFFER_SIZE): New symbol.
76464         Do not use xmalloc / xrealloc, since the caller is responsible for
76465         handling errors.  Preserve errno around `free' during failure.
76466         Do not overrun buffer when using getwd.
76467
76468 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76469
76470         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76471         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76472         getcwd (NULL, 0).
76473
76474 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76475
76476         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76477         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76478         spotted by Jim Meyering.
76479
76480 2001-09-03  Jim Meyering  <meyering@lucent.com>
76481
76482         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76483         failure.
76484
76485 2001-09-02  Jim Meyering  <meyering@lucent.com>
76486
76487         * lib/error.c: Update from GNU libc.
76488
76489 2001-09-01  Jim Meyering  <meyering@lucent.com>
76490
76491         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76492         Used by df.
76493
76494 2001-09-01  Jim Meyering  <meyering@lucent.com>
76495
76496         * lib/xreadlink.c: New file.
76497         * lib/xreadlink.h: New file.
76498         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76499         xreadlink.h.
76500
76501         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76502         doesn't conflict with sparc Solaris 7's definition in
76503         /usr/include/sys/int_types.h.
76504
76505         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76506         files.
76507         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76508         and strncasecmp as r-values.  Unixware didn't have declarations.
76509
76510 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/xstrtol.h: Add copyright notice.
76513         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76514         LONGINT_INVALID_SUFFIX_CHAR.
76515
76516 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76517
76518         * lib/xstrtol.c (strtoimax): New decl.
76519
76520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76521
76522         * lib/xgetcwd.c: Don't include pathmax.h.
76523         Include stdlib.h and unistd.h if available.
76524         Include xalloc.h.
76525         (xmalloc, xstrdup, free): Remove decls.
76526         (xgetcwd): Don't assume sizes fit in unsigned.
76527         Check for overflow when computing sizes.
76528         Simplify reallocation code.
76529
76530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76531
76532         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76533         a directory's st_size can have an arbitrary value, so the old
76534         usage could waste an arbitrary amount of memory.  All uses
76535         changed.
76536         * lib/savedir.h: Update prototype.
76537
76538 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76539
76540         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76541
76542         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76543         old strtoimax.c.
76544
76545         Also, make the following further changes to make this file's
76546         configuration more similar to that of strtol.c:
76547         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76548         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76549         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76550         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76551         changed to signed values.
76552
76553         And make the following changes as well:
76554         Fix copyright notice, as 1999 was missing.
76555         (verify): New macro.
76556         (strtoimax): Check sizes at compile-time, not run-time.
76557         Prefer strtol to strtoll if both work.
76558         (main): Remove; it was not that useful and was a pain to maintain.
76559
76560         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76561
76562 2001-08-31  Jim Meyering  <meyering@lucent.com>
76563
76564         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76565         Use an initial, malloc'd, buffer of length 128 rather than
76566         a statically allocated one of length 1024.
76567
76568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76569
76570         Simplify code, partly by assuming autoconf 2.52 semantics.
76571
76572         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76573
76574         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76575         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76576         All uses removed.
76577         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76578         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76579         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76580         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76581         jm_AC_HEADER_INTTYPES_H.
76582         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76583
76584         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76585
76586         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76587         Quote first arg of AC_DEFUN.
76588         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76589         since they are needed to parse the include file even if we need
76590         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76591         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76592         but with opposite signedness.
76593
76594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76595
76596         Merge 'exclude' changes from tar 1.13.22.
76597         This fixes one or two unlikely storage allocation overflow bugs,
76598         but doesn't change user-visible behavior otherwise.
76599
76600 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76601
76602         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76603         (jm_PREREQ_EXCLUDE): New macro.
76604
76605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76606
76607         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76608         tm to be declared.
76609
76610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76611
76612         * lib/hash.c: Remove '2001' from copyright notice.
76613
76614 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76615
76616         * lib/full-write.h: New file.
76617         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76618         * lib/full-write.c: Correct credits, as cccp.c no longer
76619         exists and anyway it was so heavily changed from the old cccp
76620         code as to be unrecognizable.  Include full-write.h.
76621         (full_write): Return size_t, with short writes meaning failure.
76622         All callers changed.  This fixes a bug with large buffers
76623         on 64-bit hosts.
76624         * lib/utime.c: Include full-write.h.
76625
76626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76627
76628         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76629         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76630         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76631         Include if available.
76632         (<xalloc.h>): Include
76633         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76634         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76635         collide with FNM macros.
76636         (struct patopts): New struct.
76637         (struct exclude): Use it, as exclude patterns now come with options.
76638         (new_exclude): Support above changes.
76639         (new_exclude, add_exclude_file):
76640         Initial size must now be a power of two to simplify overflow checking.
76641         (free_exclude, fnmatch_no_wildcards): New function.
76642         (excluded_filename): No longer requires options arg, as the options
76643         are determined by add_exclude.  Now returns bool, not int.
76644         (excluded_filename, add_exclude):
76645         Add support for the fancy new exclusion options.
76646         (add_exclude, add_exclude_file): Now takes int options arg.
76647         Check for arithmetic overflow when computing sizes.
76648         (add_exclude_file): xrealloc might modify errno, so don't
76649         realloc until after errno might be used.
76650
76651         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76652         New macros.
76653         (free_exclude): New decl.
76654         (add_exclude, add_exclude_file): Now takes int options arg.
76655         (excluded_filename): No longer requires options arg, as the options
76656         are determined by add_exclude.  Now returns bool, not int.
76657
76658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76659
76660         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76661
76662 2001-08-27  Jim Meyering  <meyering@lucent.com>
76663
76664         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76665
76666         * lib/version-etc.c (N_): Remove definition.
76667         Revert most of last change.
76668         Instead, simply don't mark the `Copyright...' string for translation.
76669         Based on advice from Paul Eggert.
76670
76671         * lib/strtoxmax.c: Tweak comment.
76672
76673 2001-08-26  Jim Meyering  <meyering@lucent.com>
76674
76675         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76676
76677         * m4/xstrtoimax.m4: New file.
76678         * m4/xstrtoumax.m4: Add comments explaining why we
76679         AC_REPLACE_FUNCS(strtol).
76680
76681 2001-08-26  Jim Meyering  <meyering@lucent.com>
76682
76683         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76684         of copyright with `%s' so translators don't get an untranslated
76685         message in 2002.
76686         (COPYRIGHT_YEAR): Define.
76687         (version_etc): Use fprintf rather than fputs.
76688         Suggestion from Ulrich Drepper.
76689
76690         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76691
76692         * lib/strtoll.c: New file, from GNU libc.
76693         * lib/xstrtoimax.c: New file.
76694
76695         * lib/xstrtol.h: Add xstrtoimax.
76696         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76697         * lib/strtoimax.c: New file.  Likewise, but first define
76698         STRTOUXMAX_SIGNED.
76699
76700         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76701         ...
76702         * lib/strtoxmax.c: ... then renamed to this.
76703
76704 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76705
76706         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76707         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76708         (jm_AC_TYPE_INTMAX_T): New macro.
76709         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76710
76711         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76712
76713         * m4/longlong.m4: Renamed from ulonglong.m4.
76714         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76715         * m4/uintmax_t.m4: Removed.
76716
76717 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76718
76719         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76720         Port to Solaris 8, where 'sed' requires a space after the 'r'
76721         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76722         Redirect output to $tmp just once.
76723
76724 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76725
76726         * lib/addext.c (<errno.h>): Include.
76727         (errno): Declare if not defined.
76728         (addext): Work correctly when pathconf returns -1 and leaves
76729         errno alone because there is no limit.  Also, work even if
76730         pathconf returns a value greater than SIZE_MAX.
76731
76732 2001-08-12  Jim Meyering  <meyering@lucent.com>
76733
76734         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76735         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76736         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76737         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76738         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76739         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76740         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76741         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76742         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76743         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76744         utime.m4, utimes.m4, xstrtoumax.m4:
76745         Quote the first argument in each use of AC_DEFUN.
76746
76747 2001-08-12  Jim Meyering  <meyering@lucent.com>
76748
76749         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76750         Simply `return getcwd (NULL, 0);'.
76751         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76752         Use 1300 as initial value for length, not PATH_MAX.
76753
76754         * lib/pathmax.h: Clean up cpp syntax.
76755
76756 2001-08-12  Jim Meyering  <meyering@lucent.com>
76757
76758         * lib/gettimeofday.c: New file.
76759         * lib/gtod.h: New file.
76760         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76761
76762 2001-08-05  Jim Meyering  <meyering@lucent.com>
76763
76764         * m4/jm-macros.m4: Require autoconf-2.52.
76765
76766 2001-08-04  Jim Meyering  <meyering@lucent.com>
76767
76768         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76769         stmt, to get in sync with glibc.
76770
76771 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76772
76773         The following changes are from gettext 0.10.39 as maintained by
76774         Bruno Haible.
76775
76776         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76777         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76778         with inverted sense.  All uses changed.
76779
76780         * lib/mbswidth.c: Don't include <limits.h>.
76781         Include <stdlib.h> and <string.h> unconditionally.
76782         (iswcntrl, mbsinit, ISCNTRL): New macros.
76783         (mbsnwidth): Use K&R style function declarations.
76784         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76785         can optimize it when MB_CUR_MAX == 1.
76786         The width of control characters is zero, not 1.
76787
76788 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76789
76790         The following changes are from gettext 0.10.39 as maintained by
76791         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76792
76793         * m4/codeset.m4: Upgrade to serial AM1.
76794         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76795         all uses changed.  Quote first arg of AC_DEFUN.
76796         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76797
76798         * m4/iconv.m4: Upgrade to serial AM2.
76799         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76800         Add --with-libconv-prefix.
76801         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76802         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76803         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76804         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76805         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76806
76807         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76808         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76809         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76810         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76811         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76812         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76813         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76814         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76815         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76816
76817         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76818         string.h any more.
76819
76820         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76821         not the default value.
76822
76823         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76824         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76825         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76826         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76827         Also check for iswcntrl, used for wcwidth fallback.
76828         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76829         to Autoconf 2.13.
76830
76831 2001-08-03  Jim Meyering  <meyering@lucent.com>
76832
76833         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76834         as it was in the original.  Reported by Paul Eggert.
76835
76836 2001-07-16  Jim Meyering  <meyering@lucent.com>
76837
76838         * m4/gettimeofday.m4: New file.
76839         Prompted by a report from Bernhard Baehr.
76840
76841 2001-07-15  Jim Meyering  <meyering@lucent.com>
76842
76843         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76844         stuff. Now it's in ../Makefile.cfg.
76845
76846 2001-07-15  Jim Meyering  <meyering@lucent.com>
76847
76848         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76849         (BUILT_SOURCES): Add unlocked-io.h.
76850         (io_functions): Define.
76851         (unlocked-io.h): New rule.
76852         (DISTCLEANFILES): Add unlocked-io.h.
76853         (all-local): Depend on unlocked-io.h, to ensure it is created.
76854
76855         * lib/unlocked-io.hin: New file
76856
76857         * lib/regex.c: Update from glibc.
76858
76859 2001-07-05  Jim Meyering  <meyering@lucent.com>
76860
76861         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76862         recommendation.
76863         (libfetish_a_SOURCES): Put all .h files here instead.
76864         Remove a thus-exposed (better checks in automake) duplicate and
76865         two unnecessary .h files.
76866
76867 2001-07-04  Jim Meyering  <meyering@lucent.com>
76868
76869         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76870         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76871         distcheck failure.
76872
76873 2001-07-02  Jim Meyering  <meyering@lucent.com>
76874
76875         The following changes were prompted by suggestions from Bruno Haible.
76876
76877         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76878         is now generated.
76879         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76880         definition of EXTRA_DIST.
76881         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76882         ensure that the generated file is created/updated whenever the list
76883         of $(unlocked_functions) is changed.
76884         (jm-glibc-io.m4): New rule.
76885         (unlocked-io.h): New rule -- currently unused.
76886
76887 2001-06-24  Jim Meyering  <meyering@lucent.com>
76888
76889         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76890         unmatched right bracket, rather than kludging it with an extra,
76891         falsely-matching quote in a comment.  Patch by Akim Demaille.
76892
76893 2001-06-11  Jim Meyering  <meyering@lucent.com>
76894
76895         * lib/regex.c: Update from GNU libc.
76896
76897 2001-05-27  Jim Meyering  <meyering@lucent.com>
76898
76899         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76900         Check for ut_type in struct utmp.
76901
76902 2001-05-27  Jim Meyering  <meyering@lucent.com>
76903
76904         * lib/readutmp.h (UT_TYPE): Define.
76905
76906 2001-05-24  Jim Meyering  <meyering@lucent.com>
76907
76908         * lib/argmatch.c: Include "quote.h".
76909         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76910         quote function.  Reported by Göran Uddeborg.
76911
76912 2001-05-22  Jim Meyering  <meyering@lucent.com>
76913
76914         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76915         now that we use the package-supplied version unconditionally.
76916         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76917
76918 2001-05-21  Jim Meyering  <meyering@lucent.com>
76919
76920         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76921         shell syntax errors.
76922
76923 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76924
76925         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76926
76927 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76928
76929         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76930         Don't bother to check library strftime, since
76931         we'll be using our own my_strftime function anyway.
76932         Define my_strftime instead of strftime.
76933
76934 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76935
76936         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76937         which is not yet declared.
76938
76939 2001-05-15  Jim Meyering  <meyering@lucent.com>
76940
76941         * m4/regex.m4: Use proper quoting so brackets appear in the test
76942         program.
76943         Reported by, and with help from, Bruno Haible.
76944
76945 2001-05-13  Jim Meyering  <meyering@lucent.com>
76946
76947         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76948         undefined.
76949
76950 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76951
76952         dirname code cleanup.  base_name now behaves more compatibly
76953         with POSIX basename when given file names that have trailing
76954         slashes, and similarly for dir_name.  Add new primitives
76955         base_len and dir_len.  Put the directory-name-related decls
76956         into dirname.h.
76957
76958         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76959         * lib/backupfile.c (base_name): Likewise.
76960         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76961         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76962         * lib/makepath.c (strip_trailing_slashes): Likewise.
76963         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76964         ISSLASH): Likewise.
76965         * lib/rename.c (strip_trailing_slashes): Likewise.
76966         * lib/same.c (base_name): Likewise.
76967         * lib/stripslash.c (ISSLASH): Likewise.
76968
76969         * lib/addext.c: Include <dirname.h> after size_t is defined.
76970         * lib/backupfile.c: Likewise.
76971
76972         * lib/addext.c (addext): Use base_len to trim redundant
76973         trailing slashes instead of doing it ourselves.
76974         But do not trim the last slash if it is not redundant.
76975
76976         * lib/backupfile.c (find_backup_file_name,
76977         max_backup_version): Use base_len instead of rolling it ourselves.
76978         Handle the case of "" and (on DOS) "C:" correctly.
76979
76980         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76981         needed. Include <string.h>, <dirname.h>.
76982         (base_name): Allow file names ending in slashes, other than names
76983         that are all slashes.  In this case, return the basename followed
76984         by the slashes.  This is more general, and can be used in places
76985         where the original base_name purposely had an assertion failure.
76986         (base_len): New function.
76987
76988         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76989         Do not include <assert.h>; no longer needed.
76990         Include xalloc.h.
76991         (memrchr): Remove decl.
76992         (dir_name_r): Remove.
76993         (dir_len): Renamed from dirlen.  All callers changed.
76994         Rewrite in terms of base_name, for simplicity and consistency.
76995         (dir_name): Never return NULL.  All callers changed.
76996         Do not include <stdlib.h> in test program; no longer needed.
76997         return 0; is fine for test program.
76998
76999         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77000         New macros.
77001         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77002
77003         * lib/path-concat.c (path_concat): Use base_len to compute
77004         base length, not strlen; this means we cannot rely on memcpy
77005         to null-terminate.
77006
77007         * lib/same.c (STREQ): Remove.
77008         (same_name): Handle the case where the basename ends in trailing '/'.
77009
77010         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77011         a slash was stripped.  Do not strip the last slash after a
77012         file system prefix.
77013
77014 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77015
77016         * lib/Makefile.am (libfetish_a_SOURCES):
77017         Add strftime.c, since we now compile it on all hosts.
77018
77019         * lib/strftime.c (my_strftime):
77020         Define to nstrftime if emacs, but only if my_strftime is not defined.
77021         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77022         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77023         Add one more extra argument: a nanoseconds value.
77024         All uses changed.
77025         (ns): New macro.
77026         (my_strftime function): Add %N format.
77027         (emacs_strftimeu): Renamed from emacs_strftime,
77028         with extra ut argument.
77029
77030 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77031
77032         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77033
77034 2001-04-21  Jim Meyering  <meyering@lucent.com>
77035
77036         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77037         doesn't interfere.
77038
77039 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77040
77041         * m4/ftruncate.m4: Check for chsize.
77042         Link with ftruncate.o unconditionally if ftruncate is missing.
77043         This was required when cross-compiling to i586-mingw32msvc.
77044
77045 2001-04-08  Jim Meyering  <meyering@lucent.com>
77046
77047         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77048         recomputed; that's necessary when the offset spans a DST transition.
77049         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77050
77051 2001-04-02  Jim Meyering  <meyering@lucent.com>
77052
77053         * lib/regex.h, regex.c: Update from GNU libc.
77054
77055 2001-03-24  Jim Meyering  <meyering@lucent.com>
77056
77057         * m4/jm-macros.m4: Require autoconf-2.49d.
77058
77059 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77060
77061         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77062
77063 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77064
77065         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77066
77067 2001-03-17  Jim Meyering  <meyering@lucent.com>
77068
77069         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77070         now that the version in autoconf is equivalent.
77071         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77072
77073         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77074         Suggestion from Akim Demaille.
77075
77076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77077         (jm_PREREQ_TEMPNAME): New function.
77078
77079 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77080
77081         * lib/tempname.c (uint64_t): Define to uintmax_t if
77082         not defined, and if UINT64_MAX is not defined.
77083         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77084         Reported by John David Anglin.
77085
77086 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77087
77088         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77089         resolve alias if codeset is empty.
77090         * lib/config.charset (BeOS): Use wildcard syntax.
77091
77092 2001-03-13  Jim Meyering  <meyering@lucent.com>
77093
77094         * lib/path-concat.c (path_concat)
77095         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77096         concatenating e.g., `C:' and `foo'.
77097         From Bruno Haible.
77098
77099 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77100
77101         * lib/localcharset.c (locale_charset): Don't use
77102         setlocale(LC_CTYPE,NULL). Don't return NULL.
77103         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77104
77105 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77106
77107         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77108         support for DOS/DJGPP.
77109
77110 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77111
77112         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77113         lacks mkstemp.  Compile our own tempname.c if we compile our own
77114         mkstemp.c, as mkstemp relies on tempname.
77115
77116 2001-03-01  Jim Meyering  <meyering@lucent.com>
77117
77118         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77119         AH_VERBATIM really does output its argument verbatim.
77120
77121 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77122
77123         * lib/Makefile.am (libfetish_a_SOURCES):
77124         Add dup-safer.c, fopen-safer.c.
77125         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77126
77127         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77128         * lib/unistd-safer.h: New files.
77129
77130 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77131
77132         The mkstemp replacement is taken from glibc 2.2.2, with some
77133         portability fixes for use outside glibc, as follows:
77134
77135         * lib/tempname.c (struct_stat64): New macro.
77136         (direxists, __gen_tempname): Use it.
77137         This avoids a portability problem with Solaris 8.
77138
77139         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77140         (<stddef.h>, <stdint.h>, <string.h>):
77141         Include only if STDC_HEADERS || _LIBC.
77142         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77143         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77144         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77145         (__set_errno): Define this macro if <errno.h> doesn't.
77146         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77147         Define these macros if <stdio.h> doesn't.
77148         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77149         Define these macros if <sys/stat.h>
77150         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77151         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77152         __xstat64): Define if not _LIBC.
77153         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77154         (__gen_tempname): Invoke gettimeofday only if
77155         HAVE_GETTIMEOFDAY || _LIBC;
77156         otherwise, fall back on plain "time".
77157         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77158
77159         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77160
77161         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77162
77163 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77164
77165         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77166
77167 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77168
77169         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77170         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77171         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77172         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77173
77174 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77175
77176         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77177         Remove workaround macros for hosts that have mbrtowc but not
77178         mbstate_t, as we now insist on proper declarations for both
77179         before using mbrtowc.
77180
77181 2001-02-17  Jim Meyering  <meyering@lucent.com>
77182
77183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77184         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77185         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77186         UnixWare 7.1.1.
77187
77188         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77189         rather than AC_CACHE_VAL.
77190
77191 2001-02-17  Jim Meyering  <meyering@lucent.com>
77192
77193         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77194         around included file name.
77195
77196         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77197
77198         * lib/strftime.c: Update from GNU libc (the only changes were to
77199         comments).
77200
77201 2001-02-17  Jim Meyering  <meyering@lucent.com>
77202
77203         * lib/regex.c: Update from libc.
77204
77205 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77206
77207         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77208         clash.
77209
77210 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77211
77212         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77213         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77214         Reported by Mark Hounschell via Paul Eggert.
77215
77216 2001-02-07  Jim Meyering  <meyering@lucent.com>
77217
77218         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77219
77220 2001-02-05  Jim Meyering  <meyering@lucent.com>
77221
77222         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77223         it includes the patch required for `large file' support with at least
77224         HP-UX's 10.20 /bin/cc.
77225
77226 2001-02-03  Jim Meyering  <meyering@lucent.com>
77227
77228         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77229         AS_IF, now that it works once again (mysteriously).
77230         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77231
77232 2001-01-30  Jim Meyering  <meyering@lucent.com>
77233
77234         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77235         * m4/chown.m4: Rename conftestchown to conftest.chown.
77236         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77237         s/conftestdir2/conftest.d2/.
77238         * m4/utimes.m4: s/conftestdata/conftest.data/
77239         Inspired by Pavel Roskin's change in autoconf.
77240
77241 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77242
77243         * lib/config.charset: Update for FreeBSD 4.2.
77244
77245 2001-01-27  Jim Meyering  <meyering@lucent.com>
77246
77247         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77248         a use of AS_IF.
77249         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77250
77251 2001-01-26  Jim Meyering  <meyering@lucent.com>
77252
77253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77254         quotearg.c includes it.
77255
77256 2001-01-26  Jim Meyering  <meyering@lucent.com>
77257
77258         * lib/quotearg.c: Include stddef.h.
77259         * lib/quote.c: Include stddef.h.
77260         Reported by Axel Kittenberger.
77261
77262         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77263         line in double quotes so that it evokes a better diagnostic.
77264         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77265         Reported by Axel Kittenberger.
77266
77267 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77268
77269         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77270         as if it was a `charset'.
77271
77272 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77273
77274         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77275         has const.
77276
77277 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77278
77279         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77280         to avoid a warning.  Add back 'const' to inptr.
77281
77282 2001-01-20  Jim Meyering  <meyering@lucent.com>
77283
77284         Be sure that headers are checked before used in code compiled
77285         for the type checks.
77286         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77287         In place of that, invoke jm_CHECK_ALL_TYPES.
77288         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77289         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77290         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77291         The check for ssize_t was mistakenly run before the test for unistd.h.
77292
77293         The configure-time check for stdbool.h was missing.
77294         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77295         (jm_PREREQ_HASH): New function.
77296
77297 2001-01-17  Jim Meyering  <meyering@lucent.com>
77298
77299         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77300         for autoconf-2.49c.
77301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77302
77303 2001-01-16  Jim Meyering  <meyering@lucent.com>
77304
77305         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77306         From Bruno Haible.
77307
77308 2001-01-14  Jim Meyering  <meyering@lucent.com>
77309
77310         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77311         foo and bar.  Create conftestdir/ in the script, not in the C code.
77312         Remove directories in the script, not in the C code.
77313         Remove conftestdir{,2} before trying to create the directory.
77314         Make the entire configure script fail if the mkdir fails.
77315
77316 2001-01-14  Jim Meyering  <meyering@lucent.com>
77317
77318         * lib/rename.c: New file.  From Volker Borchert.
77319         Include stdlib.h, string.h or strings.h, and xalloc.h.
77320         Use strip_trailing_slashes rather than open-coding it.
77321
77322 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77323
77324         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77325
77326 2001-01-03  Jim Meyering  <meyering@lucent.com>
77327
77328         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77329         of local `inptr' to avoid warning with some system declarations of
77330         iconv.
77331
77332 2001-01-02  Volker Borchert  <bt@teknon.de>
77333
77334         * m4/rename.m4: New file.
77335         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77336
77337 2001-01-01  Jim Meyering  <meyering@lucent.com>
77338
77339         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77340         even on systems with utmpx.h.  It's necessary for the declaration of
77341         utmp's ut_user member.  Reported by Andreas Jaeger.
77342
77343         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77344         available. They are required for the declarations of getgrgid and
77345         getpwuid resp.
77346         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77347         Reported by Andreas Jaeger.
77348
77349 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77350
77351         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77352         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77353         so `make install' also works in VPATH builds.
77354
77355 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77356
77357         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77358         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77359         can be used in subdirectories.
77360
77361 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77362
77363         * lib/modechange.c: Do not assume that mode_t uses the
77364         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77365         the other-execute bit of FOO even if S_IXOTH != 1.
77366
77367         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77368         WOTH, XOTH, ALLM): New macros.
77369         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77370          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77371         Use them.
77372         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77373         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77374         (mode_compile):
77375         No need to use uintmax_t; unsigned long is long enough.
77376         Don't bother to get suffix since we don't use it.
77377
77378 2000-12-26  Jim Meyering  <meyering@lucent.com>
77379
77380         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77381         better with autoheader.
77382
77383 2000-12-24  Jim Meyering  <meyering@lucent.com>
77384
77385         * lib/hash.c (is_prime): Return explicit boolean values.
77386         (hash_get_first): Return NULL to appease Irix5.6's 89.
77387         Reported by Nelson Beebe.
77388
77389 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77390
77391         * lib/localcharset.c (locale_charset): Add support for Win32.
77392
77393 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77394
77395         * lib/physmem.h, lib/physmem.c: New files.
77396
77397         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77398         (noinst_HEADERS): Add physmem.h.
77399
77400         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77401         't' for compatibility with Solaris 8 sort.
77402
77403 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77404
77405         * lib/config.charset: Add support for BeOS.
77406
77407 2000-12-17  Jim Meyering  <meyering@lucent.com>
77408
77409         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77410         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77411
77412 2000-12-16  Jim Meyering  <meyering@lucent.com>
77413
77414         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77415         N and M) would have treated it like `chown N:N FILE'.
77416
77417         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77418
77419 2000-12-16  Jim Meyering  <meyering@lucent.com>
77420
77421         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77422         SHELLS_FILE to a file name that's useful on djgpp systems.
77423         Include stdlib.h.
77424         (ADDITIONAL_DEFAULT_SHELLS): Define.
77425         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77426         Based mostly on a patch from Prashant TR.
77427
77428 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77429
77430         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77431         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77432         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77433
77434 2000-12-08  Andreas Schwab  <schwab@suse.de>
77435
77436         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77437         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77438
77439 2000-12-07  Jim Meyering  <meyering@lucent.com>
77440
77441         * lib/stripslash.c (ISSLASH): Define.
77442         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77443         `/'.
77444         From Prashant TR.
77445
77446         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77447         (dir_name_r): Declare this function as static.
77448         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77449         manifest itself on a name containing a mix of slashes and
77450         backslashes.
77451         Make this function work with names starting with a DOS-style
77452         drive letter and colon prefix.
77453         (dir_name): Append `.' if necessary.
77454         Based mostly on patches from Prashant TR and Eli Zaretskii.
77455
77456         * lib/dirname.h (dir_name_r): Remove prototype.
77457
77458 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77459
77460         * m4/off_t-format.m4: Remove this file.
77461         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77462
77463 2000-12-06  Jim Meyering  <meyering@lucent.com>
77464
77465         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77466         replacement strtoull, we may well need the replacement strtoul, too.
77467         Check for declarations of strtoul and strtoull.
77468         Check for strtol.  Mainly as a cue to cause automake to include
77469         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77470         Check for limits.h -- strtol.c needs it.
77471
77472 2000-12-05  Jim Meyering  <meyering@lucent.com>
77473
77474         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77475
77476 2000-12-04  Jim Meyering  <meyering@lucent.com>
77477
77478         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77479         Also include memory.h, stdlib.h, unistd.h if appropriate.
77480         Reported by Andreas Jaeger (conflicting declaration of malloc).
77481
77482 2000-12-02  Jim Meyering  <meyering@lucent.com>
77483
77484         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77485         * m4/jm-macros.m4 (jm_MACROS): require it.
77486
77487 2000-12-02  Jim Meyering  <meyering@lucent.com>
77488
77489         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77490
77491 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77492
77493         * lib/memrchr.c: Include <config.h> before any system include file.
77494
77495 2000-11-30  Jim Meyering  <meyering@lucent.com>
77496
77497         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77498
77499 2000-11-30  Jim Meyering  <meyering@lucent.com>
77500
77501         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77502
77503 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77504
77505         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77506
77507 2000-11-26  Jim Meyering  <meyering@lucent.com>
77508
77509         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77510
77511 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77512
77513         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77514         size of (size_t) -1; it's not portable.
77515
77516 2000-11-17  Jim Meyering  <meyering@lucent.com>
77517
77518         * lib/strstr.c: Update from GNU libc.
77519
77520 2000-11-17  Akim Demaille  <akim@epita.fr>
77521
77522         * lib/obstack.h: Formatting changes.
77523         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77524         prevent type checking.
77525         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77526         cast the value to (void *): assigning a `foo *' to a `void *'
77527         variable is valid.
77528         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77529
77530 2000-11-16  Jim Meyering  <meyering@lucent.com>
77531
77532         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77533
77534 2000-11-11  Jim Meyering  <meyering@lucent.com>
77535
77536         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77537
77538 2000-11-10  Jim Meyering  <meyering@lucent.com>
77539
77540         * lib/obstack.h: Update from GNU libc.
77541         * lib/obstack.c: Likewise.
77542
77543 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77544
77545         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77546
77547 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77548
77549         * lib/getusershell.c (setusershell): Use rewind rather than
77550         fseek/fseeko, to avoid configuration hassles with fseeko.
77551         Don't bother opening SHELLS_FILE if shellstream is NULL;
77552         it's not necessary.
77553
77554 2000-11-05  Jim Meyering  <meyering@lucent.com>
77555
77556         * lib/makepath.h (make_dir): Declare.
77557         * lib/makepath.c (make_dir): Remove `static' attribute.
77558         Tweak a comment.
77559
77560 2000-11-04  Jim Meyering  <meyering@lucent.com>
77561
77562         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77563
77564 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77565
77566         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77567         last one in a bucket, advance to the next bucket.
77568
77569 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77570
77571         * lib/fnmatch.c: Do not comment out all the code if we are using
77572         the GNU C library, because in some cases we are replacing buggy
77573         code in the GNU C library itself.
77574
77575 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77576
77577         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77578         (regex_compile): Catch bogus \(\1\).
77579
77580 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77581
77582         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77583         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77584         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77585
77586 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77587
77588         * lib/error.h, getline.h, modechange.h:
77589         Remove "2000" from Copyright line, as the file hasn't been
77590         changed this year other than in the copyright notice.
77591
77592         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77593         was changed this year.
77594
77595 2000-10-29  Jim Meyering  <meyering@lucent.com>
77596
77597         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77598         renaming.
77599         * m4/ls-mntd-fs.m4: Likewise
77600
77601 2000-10-29  Jim Meyering  <meyering@lucent.com>
77602
77603         * lib/xstat.in: Fix grammar in comment.
77604
77605 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77606
77607         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77608         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77609         doesn't define __restrict_arr.
77610
77611 2000-10-28  Jim Meyering  <meyering@lucent.com>
77612
77613         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77614         (jm_PREREQ_MEMCHR): New function.
77615
77616 2000-10-28  Jim Meyering  <meyering@lucent.com>
77617
77618         * lib/memchr.c: Update from libc.
77619         Adjust for portability:
77620         [HAVE_STDLIB_H]: Include stdlib.h.
77621         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77622         Undef __memchr, too.
77623         [!weak_alias]: Define __memchr to memchr.
77624
77625         * lib/regex.c: Update from libc.
77626         * lib/regex.h: Likewise.
77627         * lib/getopt1.c: Likewise.
77628         * lib/memcmp.c: Likewise.
77629
77630         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77631         Avoid using fseek, when possible -- it's broken by design.
77632         Patch by Ulrich Drepper.
77633
77634 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77635
77636         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77637         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77638         Giving in to popular pressure to shut up the compiler with casts.
77639
77640 2000-10-26  Jim Meyering  <meyering@lucent.com>
77641
77642         * lib/strftime.c: Update from libc.
77643
77644 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77645
77646         * regex.c: More `unsigned char' -> `re_char' changes.
77647         Also change several `int' into `re_wchar_t'.
77648         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77649         (PUSH_FAILURE_POINTER): Don't cast any more.
77650         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77651         We want GCC to complain, since this piece of code makes
77652         re_match non-reentrant, which *should* be fixed.
77653         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77654         (EXTEND_BUFFER): Use RETALLOC.
77655         (SET_LIST_BIT): Don't cast.
77656         (re_wchar_t): New type.
77657         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77658         that those two functions will always properly return.
77659         (IMMEDIATE_QUIT_CHECK): Cast to void.
77660         (analyse_first): Use recursion rather than an explicit stack.
77661         (re_compile_fastmap): Can't fail anymore.
77662         (re_search_2): Don't check re_compile_fastmap for failure.
77663         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77664         Now also sets the new value (passed in a new argument).
77665         (re_match_2_internal): Use it.
77666         Also, use a new var `reg' of type size_t when looping through regs
77667         rather than reuse the inappropriate `mcnt'.
77668
77669 2000-10-25  Jim Meyering  <meyering@lucent.com>
77670
77671         * lib/obstack.c: Update from libc.
77672
77673 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77674
77675         * regex.c (regex_compile): Change the way of handling a range from
77676         a char less than 256 to a char not less than 256.
77677
77678 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77679
77680         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77681         NT-Emacs only.
77682         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77683         so that re_search functions only quit when callers expect them to.
77684
77685 2000-10-23  Jim Meyering  <meyering@lucent.com>
77686
77687         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77688         wrong.  That set_locale call must not have any side effects.
77689         From Paul Eggert.
77690
77691 2000-10-22  Jim Meyering  <meyering@lucent.com>
77692
77693         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77694         [CYCLIC]: Remove now-unused definition.
77695
77696         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77697         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77698         Suggestion from Ulrich Drepper.
77699
77700 2000-10-21  Jim Meyering  <meyering@lucent.com>
77701
77702         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77703         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77705
77706 2000-10-21  Jim Meyering  <meyering@lucent.com>
77707
77708         * lib/dirname.c (memrchr): Declare if necessary.
77709         (dir_name): Remove the restriction that there be no
77710         trailing slashes.  Now, this code skips past them, effectively
77711         ignoring them.
77712         [TEST_DIRNAME] (main): New unit tests.
77713
77714         * lib/memrchr.c: New file from GNU libc.
77715         Undef __memrchr, too.
77716         [!weak_alias]: Define __memrchr to memrchr.
77717         Guard weak_alias use with `#ifdef weak_alias'.
77718
77719 2000-10-21  Jim Meyering  <meyering@lucent.com>
77720
77721         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77722         (dir_name): Use dir_name_r.
77723         * lib/dirname.h (dir_name_r): Declare it.
77724
77725 2000-10-17  Jim Meyering  <meyering@lucent.com>
77726
77727         * lib/quote.h (PARAMS): Define and use.
77728         Reported by Akim Demaille.
77729
77730         * lib/getopt.c: Update from libc.
77731
77732 2000-10-16  Jim Meyering  <meyering@lucent.com>
77733
77734         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77735         setlocale.
77736         From Jan Fedak.
77737
77738 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77739
77740         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77741
77742 2000-09-25  Jim Meyering  <meyering@lucent.com>
77743
77744         * lib/md5.h (rol): Define (from GnuPG).
77745
77746         * lib/sha.c: Give credit (GnuPG) where due.
77747         (M): Use rol rather than open-coding it.
77748         Add a FIXME comment.
77749
77750 2000-09-21  Jim Meyering  <meyering@lucent.com>
77751
77752         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77753         Reported by Michael Stone.
77754
77755 2000-09-20  Jim Meyering  <meyering@lucent.com>
77756
77757         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77758         (noinst_HEADERS): Add sha.h.
77759         Based on code from Scott G. Miller and from GnuPG.
77760
77761 2000-09-18  Jim Meyering  <meyering@lucent.com>
77762
77763         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77764         LIBS. Otherwise, everyone ends up linking with -lelf for some
77765         configurations.
77766         Reported by Mike Stone.
77767
77768 2000-09-15  Jim Meyering  <meyering@lucent.com>
77769
77770         * lib/regex.c: Update from libc.
77771
77772 2000-09-10  Jim Meyering  <meyering@lucent.com>
77773
77774         * lib/getopt.c (_getopt_internal): Update from glibc.
77775
77776 2000-09-09  Jim Meyering  <meyering@lucent.com>
77777
77778         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77779         think it should be used as a general replacement for isascii.
77780         * lib/fnmatch.c: Likewise.
77781         * lib/mbswidth.c: Likewise
77782         * lib/regex.c: Likewise.
77783
77784         Don't use atoi.
77785         * lib/userspec.c: Include sys/param.h and limits.h.
77786         Include xstrtol.h.
77787         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77788         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77789         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77790         UID, GID.  Check range.
77791
77792 2000-09-06  Jim Meyering  <meyering@lucent.com>
77793
77794         * lib/getopt.c (_getopt_internal): Update from glibc.
77795
77796 2000-08-30  Jim Meyering  <meyering@lucent.com>
77797
77798         * lib/strftime.c: Merge in changes from GNU libc.
77799
77800 2000-08-26  Jim Meyering  <meyering@lucent.com>
77801
77802         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77803         * m4/fpending.m4: New file.
77804
77805 2000-08-26  Jim Meyering  <meyering@lucent.com>
77806
77807         * lib/closeout.c: Include "__fpending.h".
77808         (close_stdout_status): Return right away if there's nothing to flush.
77809
77810         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77811         * lib/__fpending.c: New file.
77812         * lib/__fpending.h: New file.
77813
77814 2000-08-20  Jim Meyering  <meyering@lucent.com>
77815
77816         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77817         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77818         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77819
77820 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77821
77822         Improve fileutils installation on systems where running
77823         programs (like install) can't be unlinked.
77824         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77825         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77826
77827 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77828
77829         Standardize on "memory exhausted" instead of "Memory exhausted"
77830         or "virtual memory exhausted".
77831         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77832         "virtual memory exhausted".
77833         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77834         our own message.
77835         * lib/userspec.c (parse_user_spec): Likewise.
77836         * lib/bumpalloc.h: comment fix
77837         * lib/same.c, userspec.c: Include xalloc.h.
77838
77839         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77840         not char *const and pointing to a constant array.
77841         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77842         (xrealloc): Comment fix.
77843
77844         * lib/userspec.c (parse_user_spec):
77845         Don't translate a message until just before returning,
77846         to avoid unnecessary translation.
77847
77848 2000-08-07  Jim Meyering  <meyering@lucent.com>
77849
77850         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77851         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77852         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77853         getgroups.c, gethostname.c, getopt.h, group-member.c,
77854         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77855         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77856         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77857         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77858         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77859         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77860         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77861         yesno.c: Back out Copyright date changes for each file with no change
77862         this year.  This eases coordination with other programs using the same
77863         source code modules.  From Paul Eggert.
77864
77865 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77866
77867         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77868         not char, for compatibility with glibc 2.1.3 strftime.c.
77869
77870 2000-08-03  Greg McGary  <greg@mcgary.org>
77871
77872         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77873         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77874         (EXTEND_BUFFER): Use them.
77875
77876 2000-08-01  Jim Meyering  <meyering@lucent.com>
77877
77878         * lib/dirname.c (ISSLASH): Define.
77879         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77880         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77881         both `\' and `/' may be use as path separators.
77882         Based on a patch from Prashant TR.
77883
77884 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77885
77886         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77887         slot vector a constant, since it might get modified.
77888
77889 2000-07-31  Jim Meyering  <meyering@lucent.com>
77890
77891         * lib/xmalloc.c: Use `virtual memory exhausted', not
77892         `Memory exhausted'.
77893         * lib/obstack.c (print_and_abort): Likewise.
77894
77895 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77896
77897         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77898         buffer, so that the caller can always quote one small
77899         component of a "memory exhausted" message in slot 0.
77900         From a suggestion by Jim Meyering.
77901
77902 2000-07-30  Jim Meyering  <meyering@lucent.com>
77903
77904         * lib/makepath.c (make_path): Quote the other instance, too.
77905
77906         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77907         (STATIC_BUF_SIZE): Define.
77908         (quotearg_n_options): Use only statically allocated storage when
77909         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77910         than STATIC_BUF_SIZE.
77911
77912 2000-07-29  Jim Meyering  <meyering@lucent.com>
77913
77914         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77915         * lib/dirname.c (dir_name): Likewise.
77916
77917         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77918         `/'.
77919
77920         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77921         (dir_name): Assert that there are no trailing slashes.
77922
77923 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77924
77925         * lib/mbswidth.h (mbswidth): Add a flags argument.
77926         (mbswidth): New declaration.
77927         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77928         * lib/mbswidth.c (mbswidth): Add a flags argument.
77929         (mbsnwidth): New function.
77930
77931 2000-07-24  Jim Meyering  <meyering@lucent.com>
77932
77933         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77934
77935 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77936
77937         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77938
77939 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77940
77941         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77942         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77943         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77944         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77945         invoke multibyte primitives.
77946
77947 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77948
77949         * lib/quotearg.c:
77950         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77951         so that mbstate_t is always defined.
77952
77953         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77954         be 1 in at least one GCC installation, and this configuration
77955         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77956         performance on hosts that have mbrtowc but have only unibyte
77957         locales, but I assume these hosts are rare.
77958
77959 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77960
77961         * lib/mbswidth.c (_XOPEN_SOURCE):
77962         Don't define; this causes problems on Solaris 7.
77963         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77964
77965 2000-07-23  Jim Meyering  <meyering@lucent.com>
77966
77967         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77968         too: getgrgid, getpwuid, getuid.
77969
77970 2000-07-23  Jim Meyering  <meyering@lucent.com>
77971
77972         * lib/basename.c (base_name): Add an assertion.
77973
77974 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77975
77976         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77977         shadow its mbsinit function.
77978
77979 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77980
77981         * lib/mbswidth.h: New file.
77982         * lib/mbswidth.c: New file.
77983         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77984         (noinst_HEADERS): Add mbswidth.h.
77985
77986 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77987
77988         * lib/config.charset: Add support for FreeBSD. Improve support for
77989         HP-UX and IRIX 6.
77990
77991 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77992
77993         * m4/mbswidth.m4: New file.
77994         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77995
77996 2000-07-15  Jim Meyering  <meyering@lucent.com>
77997
77998         * lib/makepath.c: Include quote.h.
77999         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78000         corresponding argument in a `quote (...)' call.
78001         Give better diagnostics.
78002
78003         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78004         (noinst_HEADERS): Add quote.h.
78005
78006         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78007         from tar's src/misc.c.
78008         * lib/quote.h: New file.  Prototypes for same.
78009
78010 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78011
78012         From a suggestion by Bruno Haible.
78013         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78014         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78015         to decide whether to define the BeOS workaround macro;
78016         this adjusts to the change to AC_MBSTATE_T.
78017
78018 2000-07-14  Jim Meyering  <meyering@lucent.com>
78019
78020         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78021         jm_AC_TYPE_UINTMAX_T.
78022
78023 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78024
78025         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78026
78027         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78028         quotearg_buffer_restyled): Add support for
78029         clocale_quoting_style.  Undo previous change to
78030         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78031         and "{RIGHT QUOTATION MARK}" msgids.
78032
78033 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78034
78035         From a suggestion by Bruno Haible.
78036         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78037         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78038         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78039         and mbstate_t, to a single-part test that simply defines mbstate_t.
78040         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78041         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78042
78043 2000-07-10  Jim Meyering  <meyering@lucent.com>
78044
78045         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78046
78047         * m4/gnu-source.m4: Output to confdefs.h directly.
78048         Suggestion from Akim Demaille.
78049
78050 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78051
78052         The old behavior of quoting `like this' doesn't look good with
78053         newer, ISO-style fonts.  See:
78054         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78055
78056         Instead, quote "like this" by default.  Let the translator
78057         tailor the locale-specific quoting behavior by providing
78058         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78059
78060         * lib/quotearg.c (N_): New macro.
78061         (gettext_default): New function.
78062         (quotearg_buffer_restyled): Use
78063         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78064         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78065
78066 2000-07-09  Jim Meyering  <meyering@lucent.com>
78067
78068         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78069         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78070
78071         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78073
78074 2000-07-09  Jim Meyering  <meyering@lucent.com>
78075
78076         * lib/Most files: Update copyright dates to include 2000.
78077
78078 2000-07-08  Jim Meyering  <meyering@lucent.com>
78079
78080         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78081         if not defined.
78082         (xgethostname): Remove now-unnecessary #ifdef.
78083         Move declaration of `err' into loop where it's used.
78084
78085 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78086         and Bruno Haible  <haible@clisp.cons.org>
78087
78088         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78089         only if the test for an object-type mbstate_t fails.  This
78090         prevents us from mistakenly reporting that mbstate_t is a
78091         system object type after we "#define mbstate_t int" to work
78092         around its lack.
78093
78094 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78095         and Bruno Haible  <haible@clisp.cons.org>
78096
78097         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78098
78099 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78100
78101         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78102         to strerror_r.
78103         Include <ctype.h> for use of isalpha.
78104
78105 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78106
78107         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78108         by allocating a larger buffer. Test the gethostname return value for
78109         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78110         returns an error and ENAMETOOLONG isn't defined.
78111
78112 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78113
78114         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78115         dimension.
78116
78117 2000-07-04  Jim Meyering  <meyering@lucent.com>
78118
78119         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78120         of the deprecated AC_CHECKING.
78121
78122 2000-07-04  Jim Meyering  <meyering@lucent.com>
78123
78124         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78125         Reported by Bruno Haible.
78126
78127 2000-07-04  Jim Meyering  <meyering@lucent.com>
78128
78129         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78130         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78131         lacks mbrtowc.
78132
78133 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78134
78135         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78136         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78137
78138 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78139         and Bruno Haible  <haible@clisp.cons.org>
78140
78141         * lib/quotearg.c (mbrtowc):
78142         Assign to *pwc, and return 1 only if result is nonzero.
78143         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78144
78145 2000-07-03  Jim Meyering  <meyering@lucent.com>
78146
78147         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78148
78149 2000-07-03  Jim Meyering  <meyering@lucent.com>
78150
78151         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78152         This is necessary to get a definition of e.g., UTMP_FILE on
78153         HP-UX 10.20.
78154         From Bob Proulx.
78155
78156 2000-07-02  Jim Meyering  <meyering@lucent.com>
78157
78158         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78159
78160         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78161         AC_LIBOBJ(function_name).
78162         * m4/chown.m4: Likewise.
78163         * m4/fnmatch.m4: Likewise.
78164         * m4/ftruncate.m4: Likewise.
78165         * m4/getgroups.m4: Likewise.
78166         * m4/getline.m4: Likewise.
78167         * m4/group-member.m4: Likewise.
78168         * m4/jm-macros.m4: Likewise.
78169         * m4/lstat.m4: Likewise.
78170         * m4/malloc.m4: Likewise.
78171         * m4/memcmp.m4: Likewise.
78172         * m4/nanosleep.m4: Likewise.
78173         * m4/putenv.m4: Likewise.
78174         * m4/realloc.m4: Likewise.
78175         * m4/regex.m4: Likewise.
78176         * m4/stat.m4: Likewise.
78177         * m4/strftime.m4: Likewise.
78178
78179 2000-07-02  Jim Meyering  <meyering@lucent.com>
78180
78181         * lib/quotearg.c (mbstate_t): Don't define here.
78182
78183 2000-07-02  Jim Meyering  <meyering@lucent.com>
78184
78185         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78186
78187 2000-07-01  Jim Meyering  <meyering@lucent.com>
78188
78189         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78190
78191 2000-07-01  Jim Meyering  <meyering@lucent.com>
78192
78193         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78194         problem.
78195
78196 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78197
78198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78199         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78200
78201 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78202
78203         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78204         per change in ../m4/ls-mntd-fs.m4.
78205         (read_filesystem_list): Ignore symbolic links.
78206
78207 2000-06-29  Jim Meyering  <meyering@lucent.com>
78208
78209         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78210         for declaration of strcmp.
78211
78212         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78213
78214         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78215         Avoid warning by casting result to `char *' to remove `const'.
78216
78217 2000-06-28  Jim Meyering  <meyering@lucent.com>
78218
78219         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78220         included by quotearg.c, for which we perform this test.  From
78221         Bruno Haible.
78222
78223 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78224
78225         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78226         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78227         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78228
78229 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78230
78231         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78232
78233 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78234
78235         savedir now sets errno on failure and invokes xmalloc to get memory.
78236         Fix a couple of other minor bugs while we're at it.
78237
78238         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78239         (NAMLEN): Remove macro.
78240         (malloc, realloc): Remove decls.
78241         (stpcpy): Likewise.
78242         ("xalloc.h"): Include.
78243         (NAME_SIZE_DEFAULT): New macro.
78244         (savedir): Use xmalloc / xrealloc to allocate memory.
78245         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78246         Skip "" directory entries.
78247         Use strlen to calculate directory entry length, since the old method
78248         is rarely used these days and isn't worth supporting.
78249         Don't use a pointer after freeing it.
78250         Check for integer overflow when calculating allocation size.
78251         Use memcpy to copy entries, instead of stpcpy.
78252         Set errno properly when returning NULL.
78253         Check for readdir error.
78254
78255 2000-06-26  Jim Meyering  <meyering@lucent.com>
78256
78257         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78258
78259 2000-06-25  Jim Meyering  <meyering@lucent.com>
78260
78261         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78262         Linux header bug when _XOPEN_SOURCE is defined to 500.
78263
78264 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78265
78266         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78267         deficiency.
78268
78269 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78270
78271         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78272         Include xalloc.h.
78273         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78274
78275 2000-06-24  Jim Meyering  <meyering@lucent.com>
78276
78277         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78278         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78279         for which strerror does return char*, but which lacks a conveniently
78280         accessible declaration of the function.  If the compile-test says
78281         strerror_r doesn't work, then resort to a `run'-test that works on
78282         BeOS and segfaults on DEC Unix.
78283
78284 2000-06-24  Jim Meyering  <meyering@lucent.com>
78285
78286         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78287
78288 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78289
78290         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78291         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78292
78293 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78294
78295         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78296         (mbrtowc, mbstate_t): Define substitutes if
78297         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78298         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78299         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78300
78301 2000-06-23  Jim Meyering  <meyering@lucent.com>
78302
78303         * m4/afs.m4: Add missing AC_MSG_RESULT.
78304         Reported by Bruno Haible.
78305
78306         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78307         Suggestion from Bruno Haible.
78308
78309 2000-06-23  Jim Meyering  <meyering@lucent.com>
78310
78311         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78312
78313 2000-06-21  Jim Meyering  <meyering@lucent.com>
78314
78315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78316
78317 2000-06-21  Jim Meyering  <meyering@lucent.com>
78318
78319         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78320         (noinst_HEADERS): Add getstr.h.
78321
78322         * lib/getline.c (getstr): Move into a separate file.
78323         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78324         the following changes: new parameter, delim2; both delim[12]
78325         parameters have type `int', not `char'.  The latter would lose
78326         with 8-bit delimiters.
78327         * lib/getstr.h: New file.
78328
78329 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78330
78331         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78332         than 1024, return a memory chunk of least possible size, instead
78333         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78334         Use free/xmalloc instead of xrealloc to avoid copying for very long
78335         paths.
78336
78337 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78338
78339         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78340         the empty string.
78341
78342 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78343
78344         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78345         address, not strdup.  Include <stdlib.h> and don't declare free().
78346
78347 2000-06-19  Jim Meyering  <meyering@lucent.com>
78348
78349         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78350
78351 2000-06-18  Jim Meyering  <meyering@lucent.com>
78352
78353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78354
78355         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78356         `checking whether...' message to be consistent with that of the
78357         lstat test.
78358
78359 2000-06-18  Jim Meyering  <meyering@lucent.com>
78360
78361         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78362         Besides, these days every porting target provides a mkdir function.
78363
78364         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78365         needed. (this snippet comes from src/system.h).
78366
78367 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78368
78369         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78370
78371 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78372
78373         * lib/human.c (adjust_value): New function.
78374         (human_readable_inexact): Apply rounding style even when
78375         printing approximate values.
78376
78377 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78378
78379         * lib/human.c (human_readable_inexact): Allow an input block
78380         size that is not a multiple of the output block size, and vice versa.
78381         Reported by Piergiorgio Sartor.
78382
78383 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78384
78385         * lib/getdate.y (get_date): Apply relative times after time
78386         zone indicator, not before.  Reported by Todd A. Jacobs.
78387
78388 2000-06-13  Jim Meyering  <meyering@lucent.com>
78389
78390         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78391
78392         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78393
78394 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78395
78396         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78397
78398 2000-06-12  Jim Meyering  <meyering@lucent.com>
78399
78400         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78401         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78402         optional argument.
78403         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78404         the optional argument, `lib'.
78405
78406 2000-06-08  Jim Meyering  <meyering@lucent.com>
78407
78408         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78409
78410 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78411
78412         Rewrite largefile configuration so that we don't need to run
78413         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78414         AC_CANONICAL_HOST in configure.in -- jmm]
78415
78416         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78417         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78418         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78419         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78420         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78421         All uses changed.
78422         Instead of inspecting the output of getconf, try to compile the
78423         test program without and with the macro definition.
78424         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78425         for getconf.  Instead, check for the needed flags by compiling
78426         test programs.
78427
78428 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78429
78430         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78431
78432 2000-06-04  Jim Meyering  <meyering@lucent.com>
78433
78434         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78435         SunOS 4.1.4 for which gid_t is an unsigned type.
78436
78437 2000-06-03  Jim Meyering  <meyering@lucent.com>
78438
78439         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78440         now that autoconf requires that.
78441
78442         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78443         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78444         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78445
78446 2000-06-03  Jim Meyering  <meyering@lucent.com>
78447
78448         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78449
78450 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78451
78452         * m4/glibc21.m4: New file.
78453         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78454
78455 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78456
78457         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78458         newer, don't install charset.alias.
78459         * lib/config.charset: Change the Linux/glibc rules so they become empty
78460         on glibc-2.1 or newer.
78461
78462 2000-06-02  Jim Meyering  <meyering@lucent.com>
78463
78464         * lib/mountlist.c: Back out last change.  Instead, do this...
78465         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78466         me_dummy member using the same `ignore'-testing code.
78467         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78468         fs_type strings.
78469         From Mark D. Roth.
78470
78471 2000-05-29  Jim Meyering  <meyering@lucent.com>
78472
78473         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78474         mounts with the `ignore' attribute.  Based on a patch from
78475         Mark D. Roth.
78476
78477 2000-05-28  Jim Meyering  <meyering@lucent.com>
78478
78479         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78480         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78481         * m4/stat.m4: Likewise.
78482         * m4/lstat.m4: Likewise.
78483         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78484
78485         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78486         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78487
78488 2000-05-26  Jim Meyering  <meyering@lucent.com>
78489
78490         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78491
78492 2000-05-24  Jim Meyering  <meyering@lucent.com>
78493
78494         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78495         autoconf requires that.
78496         * m4/lib-check.m4: Likewise.
78497         * m4/jm-macros.m4: Likewise.
78498         * m4/strftime.m4: Likewise.
78499
78500         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78501         AC_CHECK_DECLS, now that autoconf requires that.
78502
78503 2000-05-22  Jim Meyering  <meyering@lucent.com>
78504
78505         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78506         * m4/lstat.m4: Likewise.
78507
78508 2000-05-22  Jim Meyering  <meyering@lucent.com>
78509
78510         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78511
78512 2000-05-20  Jim Meyering  <meyering@lucent.com>
78513
78514         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78515         (jm_PREREQ): Use it.
78516
78517 2000-05-18  Jim Meyering  <meyering@lucent.com>
78518
78519         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78520         back, too, since it may have been modified by allocate_entry.
78521         (hash_delete): Rewrite to use neither the assignment operator
78522         nor the comma operator in an if-expression.
78523
78524 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78525
78526         * lib/closeout.c:
78527         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78528         Remove; no longer needed.
78529         "quotearg.h": Add include.
78530         (file_name): Do not bother to explicitly initialize to NULL; it's less
78531         efficient on some hosts.
78532         (close_stdout_status): Remove test as to whether stdout was already
78533         closed; it breaks for the case "echo x | sort >&-".
78534         Quote file name colons.
78535         Do not assume that _("write error") lacks format strings.
78536
78537 2000-05-15  Jim Meyering  <meyering@lucent.com>
78538
78539         * lib/version-etc.c (version_etc_copyright): Update the copyright
78540         string used in all --version output.
78541
78542 2000-05-14  Jim Meyering  <meyering@lucent.com>
78543
78544         * lib/closeout.c (close_stdout_set_file_name): New function.
78545         (close_stdout_status): Use new file-scoped global.
78546         Return right away if fstat says the stdout file descriptor is invalid.
78547         * lib/closeout.h (close_stdout_set_file_name): Declare.
78548
78549 2000-05-10  Jim Meyering  <meyering@lucent.com>
78550
78551         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78552         (close_stdout_set_status): New function.
78553         * lib/closeout.h (close_stdout_set_status): Declare.
78554
78555 2000-05-09  Jim Meyering  <meyering@lucent.com>
78556
78557         * m4/gettext.m4: Rename this...
78558         * m4/libintl.m4: ...to this.
78559
78560 2000-05-08  Jim Meyering  <meyering@lucent.com>
78561
78562         * lib/long-options.c: Don't include closeout.h.
78563         (parse_long_options): Don't call close_stdout for --version.
78564
78565 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78566
78567         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78568         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78569         2.1.3 bug.  This avoids a clash when files like regex.c define
78570         _GNU_SOURCE.
78571
78572 2000-05-06  Jim Meyering  <meyering@lucent.com>
78573
78574         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78575         (AC_REPLACE_FUNCS): Add strnlen.
78576
78577         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78578         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78579
78580         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78581         AC_SEARCH_LIBS call for nanosleep.
78582         (LIB_NANOSLEEP): Set and AC_SUBST.
78583
78584 2000-05-06  Jim Meyering  <meyering@lucent.com>
78585
78586         * lib/strnlen.c: Undefine __strnlen and strnlen.
78587         [!weak_alias]: Define __strnlen to strnlen.
78588
78589         * lib/atexit.c: New file, from libiberty.
78590
78591 2000-05-06  Jim Meyering  <meyering@lucent.com>
78592
78593         * lib/closeout.c (close_stdout_status): Also check for errors on the
78594         stderr stream.
78595
78596 2000-05-05  Jim Meyering  <meyering@lucent.com>
78597
78598         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78599         AC_SEARCH_LIBS call for clock_gettime.
78600         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78601
78602         * m4/search-libs.m4: Update from autoconf.
78603
78604         su doesn't work on Solaris 2.6.
78605         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78606         <shadow.h>.  Reported by Dragos Harabor.
78607
78608 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78609
78610         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78611         memcpy instead of xmalloc, xrealloc, path_concat.
78612         (locale_charset): Treat empty environment variables as absent.
78613         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78614
78615 2000-05-04  Jim Meyering  <meyering@lucent.com>
78616
78617         * lib/getopt.c: Update from glibc.
78618         * lib/obstack.c: Likewise.
78619         * lib/obstack.h: Likewise.
78620         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78621         file
78622
78623         * lib/regex.h: Likewise.
78624         * lib/strndup.c: Likewise.
78625         * lib/strnlen.c: New file, from glibc.
78626
78627 2000-05-03  Jim Meyering  <meyering@lucent.com>
78628
78629         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78630
78631 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78632
78633         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78634         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78635         compile-time test, rather than inspecting host and OS, to
78636         decide whether to define _LARGEFILE_SOURCE.
78637
78638 2000-05-01  Jim Meyering  <meyering@lucent.com>
78639
78640         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78641
78642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78643         Based on a patch from Bruno Haible.
78644
78645 2000-05-01  Jim Meyering  <meyering@lucent.com>
78646
78647         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78648
78649 2000-04-29  Jim Meyering  <meyering@lucent.com>
78650
78651         * lib/path-concat.c: Declare strdup only if it's not defined.
78652         * lib/canon-host.c: Likewise.
78653
78654 2000-04-28  Jim Meyering  <meyering@lucent.com>
78655
78656         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78657         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78658         is included first, then limits.h is included by locale.h by libintl.h.
78659         From John David Anglin.
78660
78661 2000-04-25  Jim Meyering  <meyering@lucent.com>
78662
78663         * lib/makepath.c (S_IRWXUGO): Define.
78664         (make_path): Always perform explicit chmod if MODE specifies any
78665         of the `special' permission bits.  Prompted by a bug report against
78666         install from Mate Wierdl and Joost van Baal.
78667
78668 2000-04-18  Jim Meyering  <meyering@lucent.com>
78669
78670         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78671         (jm_PREREQ): Use it.
78672
78673 2000-04-18  Jim Meyering  <meyering@lucent.com>
78674
78675         * lib/README: New file.
78676
78677         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78678         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78679
78680 2000-04-17  Jim Meyering  <meyering@lucent.com>
78681
78682         Get it right :-)
78683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78684         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78685         Suggestion from Akim Demaille.
78686
78687 2000-04-17  Jim Meyering  <meyering@lucent.com>
78688
78689         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78690         the definition of it to rpl_strftime also defined-away the system's
78691         declaration.
78692
78693 2000-04-15  Jim Meyering  <meyering@lucent.com>
78694
78695         Use `C' to denote so-called `contiguous' files, the same way
78696         that tar does.
78697         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78698         (ftypelet): Use S_ISCTG.
78699         From Michael Deutschmann.
78700
78701 2000-04-14  Jim Meyering  <meyering@lucent.com>
78702
78703         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78704         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78705         clobbered.
78706
78707 2000-04-14  Jim Meyering  <meyering@lucent.com>
78708
78709         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78710
78711 2000-04-13  Jim Meyering  <meyering@lucent.com>
78712
78713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78714         AH_VERBATIM to insert required #ifndef into config.h.in.
78715         Suggestion from Akim Demaille.
78716
78717 2000-04-12  Jim Meyering  <meyering@lucent.com>
78718
78719         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78720         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78721         Christian Krackowizer.
78722
78723         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78724         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78725         (AC_SYS_LARGEFILE): Require.
78726         (AM_C_PROTOTYPES): Require.
78727
78728 2000-04-08  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78731         names don't conflict.  Reported by Eli Zaretskii.
78732
78733 2000-04-07  Jim Meyering  <meyering@lucent.com>
78734
78735         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78736         sys/types.h, to work around system header problems on AIX 3.2.5.
78737         From Bruno Haible.
78738
78739 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78740
78741         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78742         bug.  Deal with the different error behavior of Irix iconv.
78743
78744 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78745
78746         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78747         IRIX if the installer said otherwise.
78748
78749 2000-04-05  Jim Meyering  <meyering@lucent.com>
78750
78751         Portability tweaks required for ultrix4.3.
78752         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78753         (jm_CHECK_DECLS): Add getutent to the list of functions.
78754         (_jm_DECL_HEADERS): Add utmpx.h.
78755         From John David Anglin.
78756
78757         * m4/strftime.m4: Back out the 2000-04-02 change.
78758         Instead of that change, simply undefine putenv in the test program.
78759
78760 2000-04-05  Jim Meyering  <meyering@lucent.com>
78761
78762         Portability tweaks required for ultrix4.3.
78763         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78764         getutent.
78765         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78766         * lib/canon-host.c: Declare strdup.
78767         * lib/path-concat.c: Likewise.
78768         From John David Anglin.
78769
78770 2000-04-04  Jim Meyering  <meyering@lucent.com>
78771
78772         Be more DOS 8.3-friendly.
78773         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78774         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78775         * lib/Makefile.am: Reflect renaming.
78776         Reported by Eli Zaretskii.
78777
78778         Use a temporary file name that won't clash with `charset.alias'
78779         in the DOS 8.3 name space.
78780         * lib/Makefile.am (charset_tmp): Define.
78781         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78782         (uninstall-local): Likewise.
78783         Reported by Eli Zaretskii.
78784
78785 2000-04-03  Jim Meyering  <meyering@lucent.com>
78786
78787         * m4/gettext.m4: Fix typo in comment.
78788
78789         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78790         textutils/configure.in).  Suggestion from Paul Eggert.
78791         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78792
78793 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78794
78795         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78796         variable in the shell rather than using putenv, which isn't
78797         portable.  This avoids the configure-time inter-test dependency
78798         on the potentially-renamed putenv function.
78799
78800 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78801
78802         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78803         before checking struct stat.st_blksize, so that
78804         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78805
78806 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78807
78808         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78809         since strftime.c uses HAVE_STRFTIME to decide whether to use
78810         the underlying strftime.
78811
78812 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78813
78814         * lib/time/strftime.c (my_strftime): Make sure we call the system
78815         strftime, not ourselves, when invoking the underlying strftime.
78816
78817 2000-03-24  Jim Meyering  <meyering@lucent.com>
78818
78819         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78820         (charset_alias): Define.
78821         (install-exec-local): Factor out common code.
78822         (uninstall-local): Split lines longer than 80.
78823         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78824         (SUFFIXES): Define.
78825         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78826         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78827
78828 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78829
78830         * lib/config.charset: Output a line containing "Packages using this
78831         file".
78832         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78833         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78834         ref-del.sed): New rules.
78835
78836 2000-03-17  Jim Meyering  <meyering@lucent.com>
78837
78838         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78839         Otherwise, include <strings.h>
78840
78841 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78842
78843         * lib/unicodeio.c (utf8_wctomb): New function.
78844         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78845         format instead of in UCS-4 with platform dependent endianness.
78846
78847 2000-03-10  Jim Meyering  <meyering@lucent.com>
78848
78849         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78850         From Marco Franzen.
78851
78852 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78853
78854         * lib/savedir.c (savedir): Work even if directory size is
78855         negative; this can happen with some screwy NFS configurations.
78856
78857 2000-03-06  Jim Meyering  <meyering@lucent.com>
78858
78859         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78860         if it's NULL (because we ran out of memory).  From Bruno Haible.
78861
78862 2000-03-05  Jim Meyering  <meyering@lucent.com>
78863
78864         * lib/localcharset.c ("path-concat.h"): Include.
78865         (get_charset_aliases): Use path_concat instead of ANSI string
78866         concatenation.
78867
78868         * lib/unicodeio.h (PARAMS): Define.
78869         Use it to guard prototype.
78870
78871 2000-03-04  Jim Meyering  <meyering@lucent.com>
78872
78873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78874         for lib/localcharset.c.
78875
78876 2000-03-04  Jim Meyering  <meyering@lucent.com>
78877
78878         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78879         installing into it.
78880         (uninstall-local): Uncomment this rule so `make distcheck' works
78881         once again.
78882
78883         * lib/unicodeio.c (<errno.h>): Include it.
78884         (errno): Declare if not defined.
78885
78886         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78887
78888         * lib/config.charset: New version, incorporating remarks from a linux
78889         i18n mailing list.  From Bruno Haible.
78890
78891 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78892
78893         * m4/codeset.m4: New file.
78894         * m4/iconv.m4: New file.
78895         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78896
78897 2000-03-03  Jim Meyering  <meyering@lucent.com>
78898
78899         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78900
78901 2000-03-02  Jim Meyering  <meyering@lucent.com>
78902
78903         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78904         the messages come out on separate lines.
78905
78906         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78907         rather than jm_CHECK_DECLARATIONS.
78908         * m4/decl.m4: Remove now-unused file.
78909
78910         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78911         geteuid.
78912
78913 2000-03-02  Jim Meyering  <meyering@lucent.com>
78914
78915         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78916
78917 2000-03-01  Jim Meyering  <meyering@lucent.com>
78918
78919         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78920         * lib/unicodeio.c: Likewise.
78921
78922 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78923
78924         * lib/config.charset: New file.
78925         * lib/localcharset.c: New file.
78926         * lib/unicodeio.h, lib/unicodeio.c: New files.
78927         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78928         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78929         (noinst_HEADERS): Add unicodeio.h.
78930         (all-local, install-exec-local, charset.alias): New targets.
78931
78932 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78933
78934         * lib/quotearg.c (ALERT_CHAR): New macro.
78935         (quotearg_buffer_restyled): Use it.
78936
78937 2000-02-27  Jim Meyering  <meyering@lucent.com>
78938
78939         * m4/check-decl.m4: Add getenv to the list.
78940
78941 2000-02-27  Jim Meyering  <meyering@lucent.com>
78942
78943         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78944         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78945
78946         * lib/backupfile.c: Guard inclusion of stdlib.h with
78947         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78948         Declare malloc if needed.
78949
78950         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78951         `#ifndef HAVE_DECL..'
78952         now that autoconf always defines the HAVE_DECL_ symbols.
78953         * lib/human.c: Likewise.
78954         * lib/same.c: Likewise.
78955         * lib/strtoumax.c: Likewise.
78956
78957         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78958         declaration check was not run.
78959         * lib/hash.c: Likewise.
78960         * lib/human.c: Likewise.
78961         * lib/same.c: Likewise.
78962         * lib/strtoumax.c: Likewise.
78963
78964         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78965         `.', then first look up the entire `.'-containing string as a login
78966         name.
78967
78968 2000-02-23  Jim Meyering  <meyering@lucent.com>
78969
78970         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78971         in place of my hack.
78972
78973 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78974
78975         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78976         (textint): New typedef.
78977         (parser_control): Member year changed from int to textint.
78978         All uses changed.
78979         (YYSTYPE): Removed; replaced by %union with int and textint members.
78980         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78981         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78982         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78983         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78984         (date, number, to_year): Use width of number in digits, not its value,
78985         to determine whether it's a 2-digit year, or a 2-digit time.
78986         (yylex): Store number of digits of numeric tokens.
78987         Reported by John Kendall.
78988
78989         (parser_control): Changed from struct parser_control to typedef (for
78990         consistency).  All uses changed.
78991
78992         (tID): Removed; not used.
78993         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78994
78995 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78996
78997         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78998         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78999
79000 2000-02-12  Jim Meyering  <meyering@lucent.com>
79001
79002         * lib/userspec.c (ISDIGIT): Define it.
79003         (isdigit): Remove definition.
79004         (is_number): Use ISDIGIT, not isdigit.
79005         <libintl.h>: Include.
79006         (_ and N_): Define.
79007         (parse_user_spec): Mark translatable strings.
79008
79009 2000-02-10  Jim Meyering  <meyering@lucent.com>
79010
79011         With these changes, nanosleep.[ch] are finally enough like the other
79012         lib/* replacement files to compile on a few more losing systems.
79013
79014         * lib/nanosleep.h: Don't include config.h.
79015         Remove prototype from declaration of nanosleep.
79016         (PARAMS): Remove now-unneeded definition.
79017         * lib/nanosleep.c: #undef nanosleep.
79018         (rpl_nanosleep): Rename from nanosleep.
79019
79020 2000-02-10  Jim Meyering  <meyering@lucent.com>
79021
79022         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79023         gnu_nanosleep to rpl_nanosleep.
79024
79025 2000-02-09  Jim Meyering  <meyering@lucent.com>
79026
79027         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79028         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79029
79030 2000-02-08  Akim Demaille  <akim@epita.fr>
79031
79032         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79033         `[' and `]' and remove uses of `changequote'.
79034         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79035         (AC_SYS_LARGEFILE): Likewise.
79036         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79037         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79038         of changequote.
79039         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79040         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79041         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79042         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79043
79044 2000-02-05  Jim Meyering  <meyering@lucent.com>
79045
79046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79047         Remove explicit use of AC_HEADER_TIME.  It is required by
79048         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79049         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79050         in autoconf whereby the expansion of the latter ended up preceding
79051         the expansion of its prerequisite, AC_HEADER_TIME.
79052         Reported by Volker Borchert.
79053
79054 2000-02-03  Jim Meyering  <meyering@lucent.com>
79055
79056         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79057
79058 2000-02-03  Jim Meyering  <meyering@lucent.com>
79059
79060         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79061         rather than with `#if HAVE_UTMPNAME'.
79062
79063 2000-02-02  Jim Meyering  <meyering@lucent.com>
79064
79065         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79066         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79067         Reported by Eli Zaretskii.
79068
79069 2000-02-01  Jim Meyering  <meyering@lucent.com>
79070
79071         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79072
79073 2000-01-31  Jim Meyering  <meyering@lucent.com>
79074
79075         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79076         functions.  Add the time.h and sys/time.h headers along with the
79077         AC_REQUIRE'ment of AC_HEADER_TIME.
79078
79079 2000-01-31  Jim Meyering  <meyering@lucent.com>
79080
79081         * lib/nanosleep.h (nanosleep): Guard declaration with
79082         `#if ! HAVE_DECL_NANOSLEEP'.
79083         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79084         the declaration in that vendor's sys/timers.h.
79085         Reported by Christian Krackowizer.
79086
79087         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79088         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79089         (ISPRINT): Likewise.
79090         Reported by Tom Tromey.
79091
79092 2000-01-30  Jim Meyering  <meyering@lucent.com>
79093
79094         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79095
79096         * m4/prereq.m4 (utmp_includes): Define.
79097         Check for ut_user and ut_name members in both struct utmpx
79098         and struct utmp.
79099
79100 2000-01-30  Jim Meyering  <meyering@lucent.com>
79101
79102         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79103         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79104         header files where only utmpx.ut_user is declared.
79105
79106         * lib/readutmp.h (UT_USER): Define.
79107
79108 2000-01-29  Jim Meyering  <meyering@lucent.com>
79109
79110         * m4/lib-check.m4: New file containing library-related checks from
79111         fileutils and sh-utils (textutils had none).
79112
79113 2000-01-28  Jim Meyering  <meyering@lucent.com>
79114
79115         * m4/perl.m4: Change format of warning message to look more like that
79116         from the missing script.  Suggestion from François Pinard.
79117
79118 2000-01-25  Jim Meyering  <meyering@lucent.com>
79119
79120         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79121         well as time.h in the compile check.
79122         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79123         Fix typo in cross-compiling case: s/yes/no/.
79124
79125 2000-01-23  Jim Meyering  <meyering@lucent.com>
79126
79127         * m4/jm-macros.m4: Move df-related tests here from
79128         fileutils/configure.in
79129
79130         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79131         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79132
79133         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79134         s/space/ac_fsusage_space/.
79135         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79136
79137         * m4/ftruncate.m4: New file (derived from part of
79138         fileutils/configure.in).
79139         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79140         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79141
79142         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79143         AC_SUBST these here, rather than just in sh-util/configure.in, so
79144         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79145         all the same.
79146         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79147         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79148         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79149         (AC_SUBST(POW_LIBM)): Likewise.
79150         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79151
79152 2000-01-23  Jim Meyering  <meyering@lucent.com>
79153
79154         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79155         obstack.c.
79156
79157 2000-01-22  Jim Meyering  <meyering@lucent.com>
79158
79159         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79160
79161         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79162
79163         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79164         configure.in
79165         (AC_CHECK_HEADERS): Likewise for sh-utils.
79166         (AC_CHECK_HEADERS): Likewise for textutils.
79167         Merge the three lists of headers.
79168
79169         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79170         from fileutils' configure.in.
79171
79172         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79173         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79174         check-decl.m4.
79175
79176         * m4/check-decl.m4: Use #if rather than #ifdef.
79177         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79178         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79179         (_jm_DECL_HEADERS): Define new function.
79180         (jm_CHECK_DECLARATIONS): Require it.
79181
79182 2000-01-22  Jim Meyering  <meyering@lucent.com>
79183
79184         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79185         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79186         Required for some AIX systems.  Reported by Christian Krackowizer.
79187         [TESTING] (main): New function.
79188
79189         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79190         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79191         letters.
79192
79193         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79194         iswprint.
79195
79196         * lib/strverscmp.c (ISDIGIT): Define.
79197         (strverscmp): Use ISDIGIT, not isdigit.
79198
79199 2000-01-19  Jim Meyering  <meyering@lucent.com>
79200
79201         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79202         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79203         defines `struct timespec' in <sys/time.h>
79204
79205         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79206         Thanks to Akim for explaining.
79207
79208 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79209
79210         * lib/nanosleep.c (nanosleep):
79211         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79212         POSIX.1 doesn't require SA_INTERRUPT and some systems
79213         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79214         it's been part of POSIX.1 since day 1 (in 1988).
79215
79216 2000-01-17  Jim Meyering  <meyering@lucent.com>
79217
79218         * lib/interlock: Remove unused file.  Reported by François Pinard.
79219
79220 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79221
79222         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79223         alert, backslash, formfeed, and vertical tab unnecessarily in
79224         shell quoting style.
79225
79226 2000-01-16  Jim Meyering  <meyering@lucent.com>
79227
79228         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79229         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79230         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79231         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79232
79233 2000-01-16  Jim Meyering  <meyering@lucent.com>
79234
79235         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79236         because the latter didn't work.
79237
79238 2000-01-15  Jim Meyering  <meyering@lucent.com>
79239
79240         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79241         (AC_REPLACE_FUNCS): Add memcpy and memset.
79242         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79243         Add strpbrk.
79244         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79245
79246 2000-01-12  Jim Meyering  <meyering@lucent.com>
79247
79248         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79249         (jm_PREREQ): Use it.
79250         (jm_PREREQ_READUTMP): New macro.
79251         (jm_PREREQ): Use it.
79252
79253 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79254
79255         Quote multibyte characters correctly.
79256         * m4/c-bs-a.m4: New file.
79257         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79258         (jm_PREREQ): Use it.
79259
79260 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79261
79262         * m4/uintmax_t.m4: Port to autoconf 2.13.
79263
79264 2000-01-08  Jim Meyering  <meyering@ascend.com>
79265
79266         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79267         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79268
79269 2000-01-04  Jim Meyering  <meyering@ascend.com>
79270
79271         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79272         jm_STRUCT_DIRENT_D_TYPE.
79273         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79274         jm_STRUCT_DIRENT_D_INO.
79275         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79276         jm_STRUCT_UTIMBUF.
79277         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79278         renamings.
79279         * m4/utime.m4: Likewise.
79280
79281         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79282         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79283
79284 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79285
79286         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79287         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79288
79289 2000-01-02  Jim Meyering  <meyering@ascend.com>
79290
79291         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79292         remember if this is necessary.
79293
79294 1999-12-26  Jim Meyering  <meyering@ascend.com>
79295
79296         * m4/jm-macros.m4: Use it here.
79297         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79298
79299 1999-12-23  Jim Meyering  <meyering@ascend.com>
79300
79301         * m4/jm-macros.m4: Check for clock_gettime (moved from
79302         fileutils/configure.in)
79303         Check for gettimeofday.
79304
79305 1999-12-20  Jim Meyering  <meyering@ascend.com>
79306
79307         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79308         autoconf-2.14a-1999-12-20.
79309
79310 1999-12-19  Jim Meyering  <meyering@ascend.com>
79311
79312         * m4/lstat-slash.m4: New file.
79313         * m4/jm-macros.m4: Use the new macro:
79314         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79315
79316 1999-12-07  Jim Meyering  <meyering@ascend.com>
79317
79318         * m4/perl.m4: Require that File::Compare be available, too.
79319         Too many systems seem to lack it.
79320
79321         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79322         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79323
79324 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79325
79326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79327         problem with the QNX 4.25 shell, which doesn't propagate exit
79328         status of failed commands inside shell assignments.
79329
79330 1999-11-17  Jim Meyering  <meyering@ascend.com>
79331
79332         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79333
79334 1999-11-07  Jim Meyering  <meyering@ascend.com>
79335
79336         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79337
79338 1999-11-06  Jim Meyering  <meyering@ascend.com>
79339
79340         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79341         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79342
79343 1999-11-05  Jim Meyering  <meyering@ascend.com>
79344
79345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79346         configure.in of textutils, fileutils, and sh-utils into this one
79347         (shared between those packages) file.
79348         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79349         AC_STRUCT_ST_BLKSIZE.
79350
79351 1999-11-03  Jim Meyering  <meyering@ascend.com>
79352
79353         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79354         of AC_CHECK_TYPE checks includes unistd.h.
79355         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79356         Suggestion from Akim Demaille.
79357
79358 1999-10-30  Jim Meyering  <meyering@ascend.com>
79359
79360         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79361         m4-quoted string.
79362         * m4/ls-mntd-fs.m4: Likewise.
79363         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79364         * m4/jm-winsz1.m4: Likewise.
79365
79366         * m4/const.m4: Remove file, since the fix made it into the experimental
79367         version of autoconf.
79368         * m4/mktime.m4: Likewise.
79369
79370         * m4/check-type.m4: Remove file, now that the latest version of
79371         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79372
79373         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79374         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79375         AC_CHECK_TYPE.
79376
79377 1999-10-04  Jim Meyering  <meyering@ascend.com>
79378
79379         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79380
79381 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79382
79383         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79384         2.95.1 bug with HP-UX 10.20.
79385
79386 1999-09-17  Jim Meyering  <meyering@ascend.com>
79387
79388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79389         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79390         due to missing strdup (against sh-utils-2.0).
79391
79392 1999-08-29  Jim Meyering  <meyering@ascend.com>
79393
79394         * m4/jm-macros.m4: Require jm_BISON.
79395         * m4/bison.m4: New file.
79396
79397 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79398
79399         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79400         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79401
79402 1999-08-05  Jim Meyering  <meyering@ascend.com>
79403
79404         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79405         to avoid conflicts with `conftest' on 8+3 filesystems.
79406         Suggestion from Eli Zaretskii.
79407
79408 1999-08-04  Jim Meyering  <meyering@ascend.com>
79409
79410         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79411         fileutils and sh-utils (textutils's getline test was inadequate).
79412         (AM_FUNC_GETLINE): Run this test.
79413         (AC_CHECK_FUNCS): Check for getdelim.
79414         Reported by Bob Proulx.
79415
79416 1999-08-02  Jim Meyering  <meyering@ascend.com>
79417
79418         * m4/jm-macros.m4: Add a comment.
79419
79420 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79421
79422         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79423         <inttypes.h> defines strtoumax as a macro (and not as a
79424         function).
79425
79426 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79427
79428         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79429         that we can shift, multiply and divide unsigned long long
79430         values; Ultrix cc can't do it.
79431
79432 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79433
79434         * m4/mktime.m4: New file, which is a preview of what should appear
79435         in the next public autoconf release.
79436
79437 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79438
79439         * m4/lfs.m4: Remove this file.
79440         * m4/largefile.m4: New file.  It contains the old contents of
79441         lfs.m4, except that all names with prefix AC_LFS have been
79442         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79443         compatible with future autoconf versions.  Also, some minor m4
79444         quoting problems have been fixed.
79445
79446 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79447
79448         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79449         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79450         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79451         and simplify the shell code.
79452
79453 1999-08-01  Jim Meyering  <meyering@ascend.com>
79454
79455         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79456         m4.
79457
79458 1999-07-20  Jim Meyering  <meyering@ascend.com>
79459
79460         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79461
79462 1999-07-15  Jim Meyering  <meyering@ascend.com>
79463
79464         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79465
79466 1999-05-22  Jim Meyering  <meyering@ascend.com>
79467
79468         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79469
79470 1999-05-20  Jim Meyering  <meyering@ascend.com>
79471
79472         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79473         Add a colon after each `then' in case $4 is empty.
79474
79475 1999-05-16  Jim Meyering  <meyering@ascend.com>
79476
79477         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79478
79479 1999-05-10  Jim Meyering  <meyering@ascend.com>
79480
79481         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79482
79483         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79484         AC_FUNC_MKTIME.
79485
79486 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79487
79488         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79489
79490 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79491
79492         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79493         not CPPFLAGS, so that linking works correctly in IRIX.
79494
79495 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79496
79497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79498
79499 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79500
79501         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79502         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79503         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79504         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79505         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79506
79507         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79508
79509 1999-04-20  Jim Meyering  <meyering@ascend.com>
79510
79511         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79512         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79513         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79514
79515 1999-04-18  Jim Meyering  <meyering@ascend.com>
79516
79517         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79518         * m4/jm-macros.m4: Use it.
79519
79520 1999-04-06  Jim Meyering  <meyering@ascend.com>
79521
79522         * m4/strftime.m4: Remove test for %f.
79523
79524 1999-03-29  Jim Meyering  <meyering@ascend.com>
79525
79526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79527         superset of the AC_TYPE_* checks in the textutils, fileutils,
79528         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79529         AC_TYPE_PID_T.
79530
79531 1999-03-28  Jim Meyering  <meyering@ascend.com>
79532
79533         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79534         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79535         replaced e.g., in the *.sh files of the sh-utils.
79536
79537 1999-03-20  Jim Meyering  <meyering@ascend.com>
79538
79539         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79540         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79541         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79542
79543 1999-03-19  Jim Meyering  <meyering@ascend.com>
79544
79545         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79546
79547 1999-03-12  Jim Meyering  <meyering@ascend.com>
79548
79549         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79550
79551 1999-03-07  Jim Meyering  <meyering@ascend.com>
79552
79553         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79554         declared.
79555
79556 1999-02-17  Jim Meyering  <meyering@ascend.com>
79557
79558         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79559         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79560
79561 1999-02-07  Jim Meyering  <meyering@ascend.com>
79562
79563         * m4/group-member.m4: New file -- extracted from sh-utils'
79564         configure.in.
79565
79566         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79567         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79568
79569 1999-02-06  Jim Meyering  <meyering@ascend.com>
79570
79571         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79572         * m4/fnmatch.m4: Likewise.
79573         * m4/getgroups.m4: Likewise.
79574         * m4/lstat.m4: Likewise.
79575         * m4/malloc.m4: Likewise.
79576         * m4/putenv.m4: Likewise.
79577         * m4/realloc.m4: Likewise.
79578         * m4/regex.m4: Likewise.
79579         * m4/stat.m4: Likewise.
79580         * m4/strftime.m4: Likewise.
79581         Suggestion from Alain Magloire.
79582
79583         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79584         * m4/fnmatch.m4: Likewise.
79585         * m4/getgroups.m4: Likewise.
79586         * m4/getline.m4: Likewise.
79587         * m4/lstat.m4: Likewise.
79588         * m4/malloc.m4: Likewise.
79589         * m4/memcmp.m4: Likewise.
79590         * m4/putenv.m4: Likewise.
79591         * m4/realloc.m4: Likewise.
79592         * m4/regex.m4: Likewise.
79593         * m4/stat.m4: Likewise.
79594         * m4/strftime.m4: Likewise.
79595         Suggestion from Alain Magloire.
79596
79597         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79598         an argument.
79599
79600         * m4/regex.m4: Add a run-time Test for proper operation of
79601         re_compile_pattern.
79602
79603 1999-01-31  Jim Meyering  <meyering@ascend.com>
79604
79605         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79606
79607 1999-01-30  Jim Meyering  <meyering@ascend.com>
79608
79609         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79610
79611         * m4/jm-mktime.m4: Make this a wrapper around the official
79612         AM_FUNC_MKTIME rather than my private copy, now that the official one
79613         is up to date.
79614         * m4/mktime.m4: Remove file.
79615
79616         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79617         * m4/uptime.m4: Likewise.
79618         * m4/uintmax_t.m4: Likewise.
79619
79620 1999-01-28  Jim Meyering  <meyering@ascend.com>
79621
79622         * m4/jm-macros.m4: Use jm_AFS.
79623         * m4/afs.m4: New file (from fileutils' configure.in).
79624
79625         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79626         * m4/chown.m4: Likewise.
79627         * m4/d-ino.m4: Likewise.
79628         * m4/d-type.m4: Likewise.
79629         * m4/fnmatch.m4: Likewise.
79630         * m4/getgroups.m4: Likewise.
79631         * m4/gettext.m4: Likewise.
79632         * m4/jm-mktime.m4: Likewise.
79633         * m4/jm-winsz2.m4: Likewise.
79634         * m4/lcmessage.m4: Likewise.
79635         * m4/ls-mntd-fs.m4: Likewise.
79636         * m4/malloc.m4: Likewise.
79637         * m4/memcmp.m4: Likewise.
79638         * m4/putenv.m4: Likewise.
79639         * m4/realloc.m4: Likewise.
79640         * m4/st_mtim.m4: Likewise.
79641         * m4/strftime.m4: Likewise.
79642
79643 1999-01-16  Jim Meyering  <meyering@ascend.com>
79644
79645         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79646         (ARGMATCH_DIE_DECL): Define.
79647
79648 1999-01-12  Jim Meyering  <meyering@ascend.com>
79649
79650         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79651         Reported by Lars Hecking.
79652
79653 1999-01-10  Jim Meyering  <meyering@ascend.com>
79654
79655         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79656         gross kludge.
79657         * m4/inttypes_h.m4: Likewise.
79658         * m4/lstat.m4: Likewise.
79659         * m4/malloc.m4: Likewise.
79660         * m4/readdir.m4: Likewise.
79661         * m4/realloc.m4: Likewise.
79662         * m4/st_dm_mode.m4: Likewise.
79663         * m4/stat.m4: Likewise.
79664         * m4/utimbuf.m4: Likewise.
79665         * m4/utimes.m4: Likewise.
79666
79667         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79668         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79669         comments in config.h.in are meaningful.
79670
79671         * m4/jm-macros.m4: Require autoconf-2.13 here.
79672
79673         * m4/regex.m4: By default, don't use the included regex.c on systems
79674         with glibc 2.  Suggestion from Uli Drepper.
79675
79676 1999-01-02  Jim Meyering  <meyering@ascend.com>
79677
79678         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79679
79680 1998-12-18  Jim Meyering  <meyering@ascend.com>
79681
79682         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79683         Based on a suggestion from Lars Hecking.
79684
79685 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79686
79687         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79688
79689 1998-11-16  Jim Meyering  <meyering@ascend.com>
79690
79691         * m4/lfs.m4: Double-quote the `uname...` expression.
79692
79693 1998-11-14  Jim Meyering  <meyering@ascend.com>
79694
79695         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79696         * m4/stat.m4: Likewise.
79697
79698 1998-11-03  Jim Meyering  <meyering@ascend.com>
79699
79700         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79701         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79702
79703 1998-10-18  Jim Meyering  <meyering@ascend.com>
79704
79705         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79706
79707 1998-10-17  Jim Meyering  <meyering@ascend.com>
79708
79709         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79710         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79711         calls for those previously hard-coded headers.  Instead, take a new
79712         parameter.
79713         (jm_CHECK_DECLARATIONS): Reflect interface change.
79714         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79715         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79716
79717         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79718
79719 1998-10-14  Jim Meyering  <meyering@ascend.com>
79720
79721         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79722         instead of "TZ=America/Vancouver".  From Paul Eggert.
79723
79724 1998-10-11  Jim Meyering  <meyering@ascend.com>
79725
79726         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79727         This adds a test for a recently added compatibility fix for mktime.c.
79728         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79729
79730 1998-09-27  Jim Meyering  <meyering@ascend.com>
79731
79732         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79733
79734         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79735         ../configure.in, including a change from Gordon Matzigkeit to allow
79736         cross-compiling for the Hurd.
79737
79738         * m4/glibc.m4: New file/macro to test for the GNU C Library
79739         versions 1 and 2.  From Gordon Matzigkeit.
79740         Indent.
79741
79742 1998-09-21  Jim Meyering  <meyering@ascend.com>
79743
79744         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79745
79746 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79747
79748         Port nanosecond-resolution times to UnixWare 2.1.2 and
79749         pedantic Solaris 2.6.
79750
79751         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79752         AC_STRUCT_ST_MTIM.
79753         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79754         Generate name of ns member, instead of just 1 or undef.
79755         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79756
79757 1998-08-15  Jim Meyering  <meyering@ascend.com>
79758
79759         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79760         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79761         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79762         instead of jm_TYPE_SSIZE_T.
79763
79764 1998-08-12  Jim Meyering  <meyering@ascend.com>
79765
79766         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79767
79768 1998-08-02  Jim Meyering  <meyering@ascend.com>
79769
79770         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79771         in acconfig.h manually.
79772
79773 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79774
79775         * m4/st_mtim.m4: New file.
79776
79777 1998-07-28  Jim Meyering  <meyering@ascend.com>
79778
79779         * m4/utimes.m4: Undef stat.
79780
79781 1998-07-25  Jim Meyering  <meyering@ascend.com>
79782
79783         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79784         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79785
79786 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79787
79788         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79789         uid and gid actually remain unchanged.
79790
79791 1998-07-07  Jim Meyering  <meyering@ascend.com>
79792
79793         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79794
79795 1998-07-04  Jim Meyering  <meyering@ascend.com>
79796
79797         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79798         to prove that this macro can be used in packages without regex.c.
79799
79800 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79801
79802         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79803         is to be used.
79804
79805 1998-07-03  Jim Meyering  <meyering@ascend.com>
79806
79807         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79808
79809         * m4/gettext.m4: New file -- from gettext-0.10.35.
79810         * m4/lcmessage.m4: Likewise.
79811         * m4/progtest.m4: Likewise.
79812
79813         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79814         * m4/jm-macros.m4: Require the new macro.
79815
79816 1998-06-29  Jim Meyering  <meyering@ascend.com>
79817
79818         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79819         for the definition of NGROUPS (used in a system header included
79820         by sys/mount.h).
79821
79822 1998-06-28  Jim Meyering  <meyering@ascend.com>
79823
79824         * m4/ls-mntd-fs.m4: New file.
79825         * m4/fstypename.m4: New file.
79826
79827         * m4/jm-macros.m4: Require the new macro.
79828         * m4/jm-glibc-io.m4: New file.
79829
79830 1998-05-19  Jim Meyering  <meyering@ascend.com>
79831
79832         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79833         * m4/lchown.m4: New file.
79834
79835         * m4/Makefile.am.in: New file.
79836         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79837
79838 1998-05-14  Jim Meyering  <meyering@ascend.com>
79839
79840         * m4/Makefile.am (EXTRA_DIST): Add them.
79841         * m4/jm-macros.m4: New file.
79842         * m4/utimbuf.m4: New file.
79843
79844 1998-05-12  Jim Meyering  <meyering@ascend.com>
79845
79846         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79847
79848 1998-05-11  Jim Meyering  <meyering@ascend.com>
79849
79850         * m4/isc-posix.m4: New file.
79851
79852 1998-05-10  Jim Meyering  <meyering@ascend.com>
79853
79854         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79855
79856 1998-05-09  Jim Meyering  <meyering@ascend.com>
79857
79858         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79859         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79860         with automake.
79861
79862         * m4/ssize_t.m4: New file.
79863         * m4/mktime.m4: Remove file -- the new automake has this now.
79864
79865 1998-04-26  Jim Meyering  <meyering@ascend.com>
79866
79867         * m4/assert.m4: New file.
79868         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79869
79870 1998-04-05  Jim Meyering  <meyering@ascend.com>
79871
79872         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79873         (jm_PREREQ): Use it here.
79874
79875 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79876
79877         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79878         in acconfig.h.
79879
79880 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79881
79882         * m4/prereq.m4: New file.
79883         * m4/error.m4: New file.
79884         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79885
79886 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79887
79888         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79889         cache-check for the same variable -- that defeated the purpose of
79890         the test; the test program was never run.  This was a problem only
79891         on systems with losing getline functions -- HP-UX 10.20 is one.
79892         Reported by Bjorn Helgaas.
79893
79894 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79895
79896         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79897
79898 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79899
79900         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79901
79902         * m4/const.m4: New file.  Use an initializer in this declaration
79903         typedef int charset[2]; const charset x;
79904         Reported by Bob Glickstein.
79905
79906 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79907
79908         * m4/chown.m4: Fix reversed types on -1 args to chown.
79909         From Kaveh Ghazi.
79910
79911 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79912
79913         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79914         Add lseek and memchr.
79915
79916         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79917         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79918         have a 20-character limit on names.
79919
79920 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79921
79922         * m4/inttypes_h.m4: New file.
79923         * m4/uintmax_t.m4: New file.
79924         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79925
79926
79927         -----
79928
79929         Local Variables:
79930         coding: utf-8
79931         End:
79932
79933         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79934
79935         Copying and distribution of this file, with or without
79936         modification, are permitted provided the copyright notice
79937         and this notice are preserved.